Toplink QueryException with a constructor expression

Hello together,
I have a Spring 2.5 web application with JPA and JSF running on Glassfish and a PostgreSql database.
Everything is running perfect on localhost but on an other machine, on enterprise Glassfish Server I'm getting the following error:
javax.servlet.ServletException: #{mybean.search}: Exception [TOPLINK-6137] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.QueryException
Exception Description: An Exception was thrown while executing a ReportQuery with a constructor expression: java.lang.NoSuchMethodException: com.company.CustomerDetail.<init>(com.company.db.Customer)
Query: ReportQuery(com.company.db.Customer)after triggering the JPA query:
Query q = em.createQuery("SELECT NEW com.company.util.CustomerDetail(c) FROM Customer c");
    List<CustomerDetail> result = q.getResultList();applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:p="http://www.springframework.org/schema/p"
       xsi:schemaLocation="
           http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
           http://www.springframework.org/schema/context
           http://www.springframework.org/schema/context/spring-context-2.5.xsd
           http://www.springframework.org/schema/tx
           http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
     <tx:annotation-driven />   
     <context:annotation-config/>
     <bean id="entityManagerFactory"
          class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
          p:dataSource-ref="dataSource" >       
        <property name="jpaVendorAdapter">
            <bean class="org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter"
                  p:databasePlatform="${jpa.databasePlatform}"
                  p:showSql="${jpa.showSql}" p:database="${jpa.database}" />
        </property>
        <property name="loadTimeWeaver" >
            <bean class="org.springframework.instrument.classloading.glassfish.GlassFishLoadTimeWeaver"/>
        </property>
    </bean>
    <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"
          p:driverClassName="${jdbc.driverClassName}" p:url="${jdbc.url}"  p:username="${jdbc.username}"
          p:password="${jdbc.password}" />   
    <bean id="propertyConfigurer"
          class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
          p:location="/WEB-INF/config/jdbc.properties" />
     <bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/>   
     <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
                    http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
   <persistence-unit name="MyPU" transaction-type="JTA">
    <provider>oracle.toplink.essentials.PersistenceProvider</provider>
    <jta-data-source>jdbc/company</jta-data-source>
    <properties/>
  </persistence-unit>
</persistence>Customer class looks like this
package com.company.db.Customer;
import ...
@Entity
@Table(name = "Customer")
public class Customer implements java.io.Serializable {
//     private static final long serialVersionUID = 1L;
     private String username;
     private String password;
     public Customer() {
     public Customer(String username, String password) {
          this.username = username;
          this.password = password;
     @Id
     @Column(name = "USERNAME", nullable = false, length = 50)
     public String getUsername() {
          return this.username;
     public void setUsername(String username) {
          this.username = username;
     @Column(name = "PASSWORD", nullable = false, length = 50)
     public String getPassword() {
          return this.password;
     public void setPassword(String password) {
          this.password = password;
}and CustomerDetail class
package com.company.util.CustomerDetail;
import ...
public class CustomerDetail implements java.io.Serializable {
     private Customer user;
     private String password;
     private String username;
     public CustomerDetail() {
     public CustomerDetail(Customer user) {
              this.user=user
setter...
getter...
and some methods...I also tried different configurations but the TopLink Error above still remains on the enterprise Glassfish Server.
On both machines are the same java version ("1.6.0_17") and Glassfish-v2.1 version running.
The only difference between the two computers is that the localhost pc has a 64-bit processor.
Any suggestions?
Thank you.

Hmm, as I said everything works fine on localhost and now with Hibernate on enterprise Glassfish too.
Anyway, the full exception stack trace:
[#|2009-12-16T17:24:43.623+0100|SEVERE|sun-appserver2.1|javax.enterprise.resource.webcontainer.jsf.application|_ThreadID=21;
_ThreadName=httpWorkerThread-80-3;_RequestID=4507a195-ccd3-451c-b723-f4970667e28b;
|Exception [EclipseLink-6137] (Eclipse Persistence Services -
2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.QueryException
Exception Description: An Exception was thrown while executing a ReportQuery with a constructor expression:
java.lang.NoSuchMethodException: com.company.CustomerDetail.<init>(com.company.db.Customer)
Query: ReportQuery(referenceClass=Parkarea jpql="SELECT new com.company.util.CustomerDetail(c) FROM Customer c");
        at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
        at javax.faces.component.UICommand.broadcast(UICommand.java:383)
        at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:324)
        at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:299)
        at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:256)
        at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:469)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
        at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
        at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
        at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
        at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
        at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        at org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
        at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
        at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
        at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
        at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        at org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
        at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277)
        at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
        at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
        at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        at org.springframework.security.securechannel.ChannelProcessingFilter.doFilterHttp(ChannelProcessingFilter.java:116)
        at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
        at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
        at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
        at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)I'm not sure about the reflective lookup. I put this into the Class
   public static Class getThisClassName() { return CustomerDetail.class;
   }and recompiled. Nothing!
I deploy a War file over Glassfish console.

Similar Messages

  • How do i connect my airport extreme with my airport express

    how do i link my Airport Express with my Airport Extreme?

    Hello Bob -
    I have an Apple Extreme (5th Gen) and I have tried to extend my network with an Apple Express Model No. A1264 with the ethernet connection.  It does not seem to work, and has crashed my network twice.  When I did get it to work, the wireless crawled.  When I took the AirPort Express off of the network the speed went back up.
    Can this be done to extend the network, as I have the Extreme in the basement where the cable comes into the house, and I have two other floors that need wireless access.  Any suggestions for this older model AirPort Express? 
    Thanks.

  • I can not join my Apple extreme with the Apple express. I shows a conflict in the network! I've tried everything. How can they join on the same network?

    I can not join my Apple extreme with the Apple express. I shows a conflict in the network! I've tried everything. How can they join on the same network?

    It says that my DHCP has to be changed! How? to what?
    It is 802.11g.express. but is set to default by the computer (Macbook Air).
    The other is 802.11n. (express)
    Extreme is 802.11.g. Is the Main Airport.
    It is on ethernet & wep 128 security.

  • How can I use an Express database build with RAA in Express Objects???

    Hello, everybody!
    I have installed Express Server and Client on my computer. I've build an Express database With Relational Access Manager mapping data from an Oracle database.
    Now I want to use this express database in Oracle Express Objects.
    I understand that an express database build with understand can be used by defining a connection to Express Server and using the option Relational Access Manager Connection.
    But, I didn't understand the settings of this option. I open the settings window and there it is :
    - the MASTER DATABASE Box where I have to write the name of the CUBE from the express database build with understand?
    - the RDC File Box : what do I have to write here? I've read the HELP but I didn't understood. There is no file with the RDC extension in my computer.
    Thank you for your help!
    Anca.
    [email protected]

    you can extend it, very easly, with an Airport Express.
    once you connect the AExpress, on the App Airport Utility, in Wireless tab choose to "Extent a Network", you will be able to select your Network enter your Network Password and it is done
    i have 2 AExpress to extend my signal and also to Airplay to Remote Speakers and works perfectly
    good luck

  • Is it possible to create a hot spot with Apple Airport Express 2nd Generation Dual Band Wireless Router, usefull in a hotel with ethernet wall sucket.

    is it possible to create a hot spot with apple Airport express 2 generation and use it i a hotel with ethernet wall socket and use it with my Ipad 2?

    HenrikAppleJespersen wrote:
    is it possible to create a hot spot with apple Airport express 2 generation and use it i a hotel with ethernet wall socket and use it with my Ipad 2?
    Yes, it is one of the things AirPort Express was specifically designed for.

  • What's wrong with the regular expression?

    Hi all,
    For the life of me I can not figure out what is wrong with this regular expression
    .*\bA specific phrase\.\b.*
    This is just an example the actual phrase can be an specific phrase. My problem comes when the specific phrase ends in a period. I've escaped the period but it still gives me an error. The only time I don't get an error is when I take off the end boundry character which will not suffice as a solution. I need to be able to capture all the text before and after said phrase. If the phrase doesn't have a period it would look like this...
    .*\bA specific phrase\b.*
    which works fine. So what is it about the \.\b combination that is not matching?
    I've been banging my head on this for a while and I'm getting nowhere.
    The application highlights text that comes from a server. The user builds custom highlights that have some options. Highlight entire line, match partial word, and ignore case. The code that builds my pattern is here
    String strHighlight = _strHighlight;
            strHighlight = strHighlight.replaceAll("\\*", "\\\\*");
            strHighlight = strHighlight.replaceAll("\\.", "\\\\.");
            String strPattern = strHighlight;
            if(_bEntireParagraph)
                if(_bPartialWord)
                    strPattern = ".*" + strHighlight + ".*";
                else               
                    strPattern = ".*\\b" + strHighlight + "\\b.*";           
            else
                if(_bPartialWord)
                    strPattern = strHighlight;
                else               
                    strPattern = "\\b" + strHighlight + "\\b";  
            if(_bIgnoreCase)
                _patHighlight = Pattern.compile(strPattern, Pattern.CASE_INSENSITIVE);
            else
                _patHighlight = Pattern.compile(strPattern);So for example I matching the phrase: The dog ate the cat. And that phrase came over in the following text: Look there's a dog. The dog ate the cat. "Oh my!"
    And my user has the entire line and ignore case options selected then my regex woud look like this: .*\bThe dog ate the cat\b.*
    That should get highlighted, but for some reason it doesn't. Correct me if I'm wrong but doesn't the regex read as follows:
    any characters
    word boundry
    The dog ate the cat[period]
    word boundry
    any characters until newline.
    Any help will be much appreciated

    A word boundary (in the context of regexes) is a position that is either followed by a word character and not preceded by one (start of word) or preceded by a word character and not followed by one (end of word). A word character is defined as a letter, a digit, or an underscore. Since a period is not a word character, the only way the position following it could be a word boundary is if the next character is a letter, digit or underscore. But a sentence-ending period is always followed by whitespace, if anything, so it makes no sense to look for a word boundary there. I think, instead of \b, you should use negative lookarounds, like so:   strPattern = ".*(?<!\\w)" + strHighlight + "(?!\\w).*";

  • With my Airport Express, I can join the network but not extend it.

    I just bought a new Airport Express to extend the network I have setup with my Airport Extreme.  At first, it seemed the Express was unable to get a correct IP address, I think because I had my DHCP server running from the cable modem, and the Extreme was just acting as a bridge.  I switched the Extreme to run a DHCP server and now the Express correctly receives an IP address.  However, it still tells me that it cannot extend the network, but gives no details why.  It just tells me to make sure I have the correct password and to be sure I am in range.
    Clearly I am in range and have the correct password, because when I switch to "join network", all works fine.  Though when I do switch, I still get an amber blinking light and Airport Utility still thinks the Express is in Extend mode.  When I unplug and replug the Express, then it comes up with a green light and Airport Utility shows it in Join mode and all works fine. 
    I am thinking there might be something wrong with my Express and am considering exchanging it.  Just wondering if anyone has any ideas as to why this may be happening?
    Thanks.

    However, it still tells me that it cannot extend the network, but gives no details why.
    Suggest that you check your AirPort Extreme to make sure that you have enabled the wireless network to be extended.
    Open AirPort Utility, select the AirPort Extreme, and click Manual Setup
    Click the Wireless tab below the row of icons
    Just under the setting for Wireless Network name......make sure that there is a check mark next to "Allow this network to be exended".
    Update to save changes
    Now, try the configuration with the AirPort Express set to "Extend a wireless network"

  • How do I share a 3G USB modem connected to my Macbook Pro with my Airport Express?

    Hi. I have a 3g USB modem connected to my macbook pro, and I want to try share the signal with my Airport Express (latest model).
    Now before everybody screams that it can't be done, I was searching the forums and found a discussion in which someone describes how to do it from 2008, unfortunately it is archived and I couldn't ask the author directly, and the description doesn't go into much detail.
    In the thread, the author describes turning internet sharing on to share the USB modem, creating a network on the macbook, then renaming the Airport Express network name the same as the macbook, and setting the AX to Join a Network.
    Problem being there is no description of whether the macbook connected to the AX via ethernet or wifi, what settings were changed on the AX eg bridge mode.
    Is this possible in theory, and has anybody had any success sharing a 3g USB modem via a macbook pro to an AX? I know there are other options like getting 3g ethernet modems, unfortunately not an option in this case - new house, waiting for DSL to be installed, 2-3 month wait.
    Thanks

    Well, you cannot use the 3G USB modem plugged directly into the Express. However, you can configure your MacBook Pro to do 'Internet sharing' (SysPrefs>Sharing) over the Ethernet port, and then connect your Express into the Ethernet port. Alternatively, you could always get your MacBook to 'create a wireless network'.
    new house, waiting for DSL to be installed, 2-3 month wait.
    You could always look for open WiFi networks to *cough*borrow*cough* .

  • Problems with java constructor: "inconsistent data types" in SQL query

    Hi,
    I tried to define a type "point3d" with some member functions, implemented in java, in my database. Therefor I implemented a class Point3dj.java as you can see it below and loaded it with "loadjava -user ... -resolve -verbose Point3dj.java" into the database.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    package spatial.objects;
    import java.sql.*;
    public class Point3dj implements java.sql.SQLData {
    public double x;
    public double y;
    public double z;
    public void readSQL(SQLInput in, String type)
    throws SQLException {
    x = in.readDouble();
    y = in.readDouble();
    z = in.readDouble();
    public void writeSQL(SQLOutput out)
    throws SQLException {
    out.writeDouble(x);
    out.writeDouble(y);
    out.writeDouble(z);
    public String getSQLTypeName() throws SQLException {
    return "Point3dj";
    public Point3dj(double x, double y, double z)
    this.x = x;
    this.y = y;
    this.z = z;
    public static Point3dj create(double x, double y, double z)
    return new Point3dj(x,y,z);
    public double getNumber()
         return Math.sqrt(this.x*this.x + this.y*this.y + this.z*this.z);
    public static double getStaticNumber(double px, double py, double pz)
         return Math.sqrt(px*px+py*py+pz*pz);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Additionally, I created the corresponding type in SQL by
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    CREATE OR REPLACE TYPE point3dj AS OBJECT EXTERNAL NAME
    'spatial.objects.Point3dj' LANGUAGE JAVA USING SQLDATA (
    x FLOAT EXTERNAL NAME 'x',
    y FLOAT EXTERNAL NAME 'y',
    z FLOAT EXTERNAL NAME 'z',
    MEMBER FUNCTION getNumber RETURN FLOAT
    EXTERNAL NAME 'getNumber() return double',
    STATIC FUNCTION getStaticNumber(xp FLOAT, yp FLOAT, zp FLOAT) RETURN FLOAT
    EXTERNAL NAME 'getStaticNumber(double, double, double) return double')
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    After that I tried some SQL commands:
    create table pointsj of point3dj;
    insert into pointsj values (point3dj(2,1,1));
    SELECT x, a.getnumber() FROM pointsj a;Now, the problem:
    Everything works fine, if I delete the constructor
    public Point3dj(double x, double y, double z)
    this.x = x;
    this.y = y;
    this.z = z;
    in the java class, or if I replace it with a constructor that has no input arguments.
    But with this few code lines in the java file, I get an error when executing the SQL command
    SELECT x, a.getnumber() FROM pointsj a;The Error is:
    "ORA-00932: inconsistent data types: an IN argument at position 1 that is an instance of an Oracle type convertible to an instance of a user defined Java class expected, an Oracle type that could not be converted to a java class received"
    I think, there are some problems with the input argument of the constructor, but why? I don't need the constructor in SQL, but it is used by a routine of another java class, so I can't just delete it.
    Can anybody help me? I would be very glad about that since I already tried a lot and also search in forums and so on, but wasn't successful up to new.
    Thanks!

    Dear Avi,
    This makes sense when it is a short code sample (and i think i've done that across various posts), but sometime this is too long to copy/paste, in these cases, i refer to the freely available code samples, as i did above on this forum; here is the quote.
    Look at examples of VARRAY and Nested TABLES of scalar types in the code samples of my book (chapter 8) http://books.elsevier.com/us//digitalpress/us/subindex.asp?maintarget=companions/defaultindividual.asp&isbn=9781555583293&country=United+States&srccode=&ref=&subcode=&head=&pdf=&basiccode=&txtSearch=&SearchField=&operator=&order=&community=digitalpress
    As you can see, i was not even asking people to buy the book, just telling them where to grab the code samples.
    I appreciate your input on this and as always, your contribution to the forum, Kuassi

  • Problems with java regular expressions

    Hi everybody,
    Could someone please help me sort out an issue with Java regular expressions? I have been using regular expressions in Python for years and I cannot figure out how to do what I am trying to do in Java.
    For example, I have this code in java:
    import java.util.regex.*;
    String text = "abc";
              Pattern p = Pattern.compile("(a)b(c)");
              Matcher m = p.matcher(text);
    if (m.matches())
                   int count = m.groupCount();
                   System.out.println("Groups found " + String.valueOf(count) );
                   for (int i = 0; i < count; i++)
                        System.out.println("group " + String.valueOf(i) + " " + m.group(i));
    My expectation is that group 0 would capture "abc", group 1 - "a" and group 2 - "c". Yet, I I get this:
    Groups found 2
    group 0 abc
    group 1 a
    I have tried other patterns and input text but the issue remains the same: no matter what, I cannot capture any paranthesized expression found in the pattern except for the first one. I tried the same example with Jakarta Regexp 1.5 and that works without any problems, I get what I expect.
    I am using Java 1.5.0 on Mac OS X 10.4.
    Thank to all who can help.

    paulcw wrote:
    If the group count is X, then there are X plus one groups to go through: 0 for the whole match, then 1 through X for the individual groups.It does seem confusing that the designers chose to exclude the zero-group from group count, but the documentation is clear.
    Matcher.groupCount():
    Group zero denotes the entire pattern by convention. It is not included in this count.

  • How do I import an AVI file for use with FInal Cut Express

    How do I import or use an AVI file with Final Cut Express?
    Thank you. Do I need to convert my AVI file and what is the
    easiest way to do that? Thank you.

    You should convert the media to QuickTime. Without knowing any specifics most likely the simplest way is to use MPEG Streamclip.

  • I am unable to join my existing wireless network with new AirPort Express

    I am unable to join my existing wireless network with new AirPort Express.
    I am using a DLink DI-524 Router, Windows 7 (64), and the AirPort Express.
    AirPort Utility will not recognize the AEX wirelessly, it will only recognize it when it is connected by Ethernet. I can then configure the AEX and verify that the settings stick once disconnected and then reconnected. However, even after that, it will not recognize the AEX once disconnected from the Ethernet cable.
    I followed the suggestions of several other threads on these forums. But I am unable to get the AEX to work.
    Any suggestions? Thanks in advance.

    Welcome to the discussion area!
    It's almost always a security setting that causes problems when the Airport Express (AX) tries to join a third party wireless network. The AX usually does not "join" correctly and that's why you can't see it on your wireless network using AirPort Utility.
    Using an ethernet cable is still the more reliable way to configure and adjust the AX, but if you are want to try to configure it using wireless, you must return the AX back to factory defaults as follows:
    Power down the AX
    Hold in the reset button +and keep holding it in+ as you plug the AX back in to power
    Release the reset button after 10 seconds
    When it is set to factory defaults, the AX broadcasts a wireless signal with a network name like "apple network xxxxxx" where the "x's" are either letters or numbers. You must look for this network by clicking on the fan shaped Airport icon at the top of the screen. If you don't see this network, then click Join Other Network to search that way. Unless you connect to this network, you will not be able to configure the AX using wireless.
    Do you know the exact security type that your D-Link router is using? That is the key element in the process.
    Open AirPort utility, click Manual Setup
    Click the Base Station tab to establish a name for the AX, device password and adjust time zone settings
    Click the Wireless tab
    Wireless Mode....Join a wireless network
    Wireless Network Name...must exactly match your D-Link wireless network name
    Enable ethernet clients if you want the port to be active (your D-Link must be compatible with ProxySTA for this to work)
    Wireless Security...exact setting of the D-Link network. WEP security causes a lot of issues. Try to use WPA/WPA2 Personal, which is far more secure.
    Wireless Password...must match the D-Link network
    Click the Music icon to enable AirTunes
    Click Update to save settings
    Any luck?

  • Issues Capturing with Final Cut Express

    Hi
    I am currently having issues capturing with Final Cut Express. I am using a Firewire 800 gold speed cable 9pin/4pin with my Sony LSF-S58 camera. I use mini DV tapes and usually capture on other computers with no problems. However this time I am using Final Cut Express version 4.0.1 along with a Thunderbolt to Firewire adapter so it'll connect with my MAC Book Pro (Operating system OS X 10.6.8). The issue is when I open Final Cut's capture option there is a message at the bottom that says "No Communicatin" I have tried various settings within easy set-up and nothing seems to work as well as browsing this help board along with others looking for the answer. Any help anyone can provide would be great. Thanks.

    When I Google LSF-S58, I get a Sony Lens Hood, not a camera. Are you recording in HD or SD?
    Have you used the Thunderbolt to Firewire convertor successfully on your computer with other devices?
    Have you used the Thunderbolt port successfully with other Thunderbolt devices?
    I don't know if this is applicable to your computer, but there is a Thunderbolt software update for 10.6.8 here:
    http://support.apple.com/kb/DL1452?viewlocale=en_US&locale=en_US
    MtD

  • Using an Airport Extreme with my AirPort Express as a new network?

    Hello.
    I am looking into buying an airport extreme as a replacement for a Netgear router that does not seem to work. I have an Aiport express already.
    So let me see if I can get this straight...
    I can have 6 computers (all PCs) connected (and a couple other devices like a TIVO) all connected to an airport extreme base station to the internet and 1 airport express set as a remote base station. All devices will be able to connect to the internet (3 computers plugged in via Ethernet on Airpot Extreme) and share printers/files/etc? Is there a limit to the number of computers that I can have (even if i am extending with an Airport Express?
    I would appreciate any help steering me in the right direction.
    Dell Laptop   Windows XP  

    Andrew,
    Yes you can do all those things.
    There is a limit on the total number of connections but it is very large.
    The Airport Express can be used in a number of ways.
    ...For music only - which is not a problem.
    ...Or as a wireless relay - using something called WDS. In this mode you can connect further computers to the ethernet port of the Airport Express. Or extend the wireless reach of the network.
    If your ONLY use for the Express is to connect a computer, its probably better to get a wireless card for it.

  • How to insert a logo with final cut express 4?

    How to insert a logo with final cut express 4? like this
    http://www.milano.nl/sbs6_2005.jpg

    I'm not certain, but I think, if there's not a background color saved as part of the original file, you'll retain the transparency. Give it a try.
    What application are you using to create the original file?

Maybe you are looking for

  • How is the IP Profile set please?

    HI, Could someone please confirm how the IP Profile I see when I run the BT Speedtester is set? Is it changed automatically, depending on my actual download spped achieved, or is it (or can it be) set manually by a BT Engineer? Another quick question

  • Download trial Elements 12

    I tried to download Elements 12 trial. Dowloaded "Dowkload Assistant" but got error message "This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance." Followed instruct

  • Blackmagic uncompressed avi to quicktime

    Here's a nice question to post on christmas eve (I've had my fill of sentimental films and good cheer - bah humbug) I've been given some uncompressed avi files to use in my current edit (using fcp). They were captured from Beta sp using a PC and a Bl

  • Is there a repair for deep back scratches ipod touch 5th gen?

    I was so irresponsible. I got out of the car without knowing that my iPod touch was on my lap, and my iPod fell on the ground. The disappointing part was it has a deep scratches on the side because it slid and the volume buttons were scratched to. I'

  • Can't open iPhoto Library after 7.1.5 update

    Hello. I accidently updated my system while my iPhoto library was in a different folder. Now iphoto doesnt recognize it as my library, even though it still has the standard iPhoto library icon. I have iPhoto choose my library file, which is 900 mb, b