FindByPrimaryKey EJBQL error

Hello,
deploying an ejb on WLS7.0, I get the following error :Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:
weblogic.ejb20.cmp.rdbms.finders.IllegalExpressionException:
While trying to process Query
Method Name: findByPrimaryKey
Parameter Types: (java.lang.Integer)
EJB Query: SELECT OBJECT(bean) FROM primebrokerage.ejb.common.transactio
n AS bean WHERE ( bean.transactionId = ?1 )
Invalid Expression: First term of range_variable_declaration 'primebrokerage.ejb
.common.transaction', cannot be a Path Expression, it can only be an abstract_sc
hema_name
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:280)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:487)
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:799)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1248)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:235)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationC
ontainer.java:1425)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:650)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:548)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:1026)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:700)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
could anybody give me a hint ? this finder is generated by the container soI don't understand why it does not work.
Thank's.
Nicolas

Thank's a lot.
"Emmanuel Proulx" <[email protected]> wrote:
You're right, findByPrimaryKey is automatically generated by the EJB
container.
The bean type shown in the error message shows the abstract schema name
as
primebrokerage.ejb.common.transaction (see tag <abstract-schema-name>
in
ejb-jar.xml). Make sure your abstract schema name doesn't contain dots,
as
it will be used in the generated EJB-QL.
Emmanuel
"nicolas FRANK" <[email protected]> wrote in message
news:[email protected]...
Hello,
deploying an ejb on WLS7.0, I get the following error :Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The errorwas:
weblogic.ejb20.cmp.rdbms.finders.IllegalExpressionException:
While trying to process Query
Method Name: findByPrimaryKey
Parameter Types: (java.lang.Integer)
EJB Query: SELECT OBJECT(bean) FROMprimebrokerage.ejb.common.transactio
n AS bean WHERE ( bean.transactionId = ?1 )
Invalid Expression: First term of range_variable_declaration'primebrokerage.ejb
common.transaction', cannot be a Path Expression, it can only be anabstract_sc
hema_name
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:280)
atweblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)
atweblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:487)
atweblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:799)
atweblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1248)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:235)
atweblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationC
ontainer.java:1425)
atweblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:650)
atweblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:548)
atweblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:1026)
atweblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:700)
atweblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
could anybody give me a hint ? this finder is generated by the
container so
I don't understand why it does not work.
Thank's.
Nicolas

Similar Messages

  • EJB QL Sample errors in deploying

    I get following error when deploying ear file in oc4j10g. =>
    D:\oc4j10g\j2ee\home>java -jar admin.jar ormi://localhost:23791 admin welcome -d
    eploy -file d:\myj2ee\oc4jsamples\accounts\ejbql\build\ejbql.ear -deploymentName
    Ejbql
    Error: Deploy error: deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-mod
    ule, Exception: Missing method-params in query-method; see page 478 in ejb 2.0 s
    pec
    com.evermind.client.orion.AdminCommandException: Deploy error: deploy failed!: ;
    nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-mod
    ule, Exception: Missing method-params in query-method; see page 478 in ejb 2.0 s
    pec
    at com.evermind.client.orion.DeployCommand.execute(DeployCommand.java:95
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:117)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :26)
    java.rmi.RemoteException: deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-mod
    ule, Exception: Missing method-params in query-method; see page 478 in ejb 2.0 s
    pec
    at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_R
    EMOTE_SERVER(RMIConnection.java:1504)
    at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java
    :1456)
    at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocati
    onHandler.java:55)
    at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(Rec
    overableRemoteInvocationHandler.java:22)
    at __Proxy0.deploy(Unknown Source)
    at com.evermind.client.orion.DeployCommand.execute(DeployCommand.java:92
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:117)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :26)
    Caused by: oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-
    module, Exception: Missing method-params in query-method; see page 478 in ejb 2.
    0 spec
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:94)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.internalDeploy(DefaultApplicationServerAdministrator.java:378)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.deploy(DefaultApplicationServerAdministrator.java:278)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:140)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:54)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:199)
    at java.lang.Thread.run(Thread.java:534)
    ---- Embedded exception
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module, Exc
    eption: Missing method-params in query-method; see page 478 in ejb 2.0 spec
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:94)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.internalDeploy(DefaultApplicationServerAdministrator.java:378)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.deploy(DefaultApplicationServerAdministrator.java:278)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:140)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:54)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:199)
    at java.lang.Thread.run(Thread.java:534)
    ---- Embedded exception
    java.lang.InstantiationException: Error initializing ejb-module, Exception: Miss
    ing method-params in query-method; see page 478 in ejb 2.0 spec
    at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:1792)
    at com.evermind.server.Application.postInit(Application.java:635)
    at com.evermind.server.Application.setConfig(Application.java:206)
    at com.evermind.server.ApplicationServer.addApplication(ApplicationServe
    r.java:1654)
    at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(Applica
    tionDeployer.java:414)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
    ployer.java:132)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:76)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.internalDeploy(DefaultApplicationServerAdministrator.java:378)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.deploy(DefaultApplicationServerAdministrator.java:278)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:140)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:54)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:199)
    at java.lang.Thread.run(Thread.java:534)
    ---- Embedded exception
    java.lang.InstantiationException: Error initializing ejb-module, Exception: Miss
    ing method-params in query-method; see page 478 in ejb 2.0 spec
    at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:1792)
    at com.evermind.server.Application.postInit(Application.java:635)
    at com.evermind.server.Application.setConfig(Application.java:206)
    at com.evermind.server.ApplicationServer.addApplication(ApplicationServe
    r.java:1654)
    at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(Applica
    tionDeployer.java:414)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
    ployer.java:132)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:76)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.internalDeploy(DefaultApplicationServerAdministrator.java:378)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.deploy(DefaultApplicationServerAdministrator.java:278)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:140)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:54)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:199)
    at java.lang.Thread.run(Thread.java:534)
    D:\oc4j10g\j2ee\home>

    Hello Ravi,
    The EJB 2.0 specification has made it mandatory to have <method-params> tag within the ejb-jar.xml. Due to the absence of this tag, you are getting the error...
    Please modify ejb-jar.xml and add an empty <method-params></method-params> tag for the findByAllAccounts and ejbSelectByTopAccounts methods. For example,
    <query>
    <description>This query retrieves all the accounts</description>
    <query-method>
    <method-name>findByAllAccounts</method-name>
    <method-params></method-params>
    </query-method>
    <ejb-ql>select distinct object(ua) from UserAccount ua</ejb-ql>
    </query>
    Notice the empty <method-params> tag added. Please do the same for the ejbSelectByTopAccounts method.
    Another thing to be changed is the jsp:usebean tag in index.jsp and DisplayAccounts.jsp. In the mentioned files, replace jsp:usebean with jsp:useBean. Please notice the capital 'B'. JDK 1.4 has made this mandatory.
    Futher more, as you would be aware, 10G onwards, the CMP beans accesses the database tables through the Toplink. Toplink is the default persistence manager now. To use the orion-ejb-jar.xml, please start the OC4J with the following command
    java -Ddefault.cmp.pm=native_cmp -jar oc4j.jar
    I would like to point out that the sample works fine in OC4J 904 developers preview without any of the above mentioned changes. The sample application has been certified in that version.
    Thanks for pointing this problem out. We are making the necessary changes in the sample and the updated jar will be uploaded on OTN shortly.
    Hope this helps,
    Rajat

  • CMP findByPrimaryKey( Integer primaryKey ) Error

    I am using WebLogic 7.0 and my test program is throwing following error. I struggled to solve the problem for the last 2 days. Please Help
    run:
         [java]
         [java] Beginning com.tt.schms.school.ejb.cmp.Client...
         [java]
         [java] Trying to find school with id: 0
         [java] There was an exception while creating and using the School.
         [java] This indicates that there was a problem communicating with the server: javax.ejb.FinderException: Problem in
    findByPrimaryKey while preparing or executing statement: 'weblogic.jdbc.rmi.SerialPreparedStatement@353cde':
         [java] java.sql.SQLException: No data found
         [java] java.sql.SQLException: No data found
         [java]     at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6207)
         [java]     at sun.jdbc.odbc.JdbcOdbc.SQLGetDataInteger(JdbcOdbc.java:3166)
         [java]     at sun.jdbc.odbc.JdbcOdbcResultSet.getDataInteger(JdbcOdbcResultSet.java:5333)
         [java]     at sun.jdbc.odbc.JdbcOdbcResultSet.getInt(JdbcOdbcResultSet.java:550)
         [java]     at weblogic.jdbc.jts.ResultSet.getInt(ResultSet.java:141)
         [java]     at weblogic.jdbc.rmi.internal.ResultSetImpl.getInt(ResultSetImpl.java:210)
         [java]     at weblogic.jdbc.rmi.internal.ResultSetStraightReader.getInt(ResultSetStraightReader.java:57)
         [java]     at weblogic.jdbc.rmi.SerialResultSet.getInt(SerialResultSet.java:188)
         [java]     at com.tt.schms.school.ejb.cmp.SchoolBean_15djmm__WebLogic_CMP_RDBMS.__WL_loadGroup0FromRS(SchoolBean_1
    5djmm__WebLogic_CMP_RDBMS.java:941)
         [java]     at com.tt.schms.school.ejb.cmp.SchoolBean_15djmm__WebLogic_CMP_RDBMS.ejbFindByPrimaryKey(SchoolBean_15d
    jmm__WebLogic_CMP_RDBMS.java:724)
         [java]     at java.lang.reflect.Method.invoke(Native Method)
         [java]     at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.findByPrimaryKey(RDBMSPersistenceManager.java:216)
         [java]     at weblogic.ejb20.manager.BaseEntityManager.findByPrimaryKey(BaseEntityManager.java:755)
         [java]     at weblogic.ejb20.manager.BaseEntityManager.remoteFindByPrimaryKey(BaseEntityManager.java:698)
         [java]     at weblogic.ejb20.internal.EntityEJBHome.findByPrimaryKey(EntityEJBHome.java:367)
         [java]     at com.tt.schms.school.ejb.cmp.SchoolBean_15djmm_HomeImpl.findByPrimaryKey(SchoolBean_15djmm_HomeImpl.j
    ava:102)
         [java]     at com.tt.schms.school.ejb.cmp.SchoolBean_15djmm_HomeImpl_WLSkel.invoke(Unknown Source)
         [java]     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
         [java]     at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
         [java]     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
         [java]     at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:821)
         [java]     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
         [java]     at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
         [java]     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
         [java]     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
         [java]
         [java]
         [java] End com.tt.schms.school.ejb.cmp.Client...
         [java]Please note that corresponding data is there in the database. When I access the DB using BMP from the same client code, it works fine.
    I searched this forum but could not find appropriate soln. There was one topic where the problem was solved by putting brackets around the where clause of ejbql. I assume findByPrimaryKey() method is implemented by the Container so I do not need to define ejbql (Am I correct ?) .
    Let me know gurus.
    Thanx

    Got around this problem by using direct jdbc driver instead of jdbc-odbc bridge.
    I know there are several limitations with jdbc-odbc bridge which might be causing this problem

  • Error FindByPrimaryKey

    Hello, I hava a simple EJB that i have deployed in Weblogic 7.0. I am using Microsoft Access as Database to make the test. When use the finder "FindbyPrimaryKey" gives me the following error:
    javax.ejb.FinderException: Problem in findByLogin while preparing or executing statement: 'weblogic.jdbc.rmi.SerialPreparedStatement@407776':
    java.sql.SQLException: No data found
    java.sql.SQLException: No data found
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6207)
         at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3261)
         at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5393)
         at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:321)
         at weblogic.jdbc.jts.ResultSet.getString(ResultSet.java:84)
         at weblogic.jdbc.rmi.internal.ResultSetImpl.getString(ResultSetImpl.java:178)
         at weblogic.jdbc.rmi.internal.ResultSetStraightReader.getString(ResultSetStraightReader.java:37)
         at weblogic.jdbc.rmi.SerialResultSet.getString(SerialResultSet.java:128)
         at prueba.Usuario1Bean_3zqk0z__WebLogic_CMP_RDBMS.__WL_loadGroup0FromRS(Usuario1Bean_3zqk0z__WebLogic_CMP_RDBMS.java:844)
         at prueba.Usuario1Bean_3zqk0z__WebLogic_CMP_RDBMS.ejbFindByLogin(Usuario1Bean_3zqk0z__WebLogic_CMP_RDBMS.java:468)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.scalarFinder(RDBMSPersistenceManager.java:248)
         at weblogic.ejb20.manager.BaseEntityManager.scalarFinder(BaseEntityManager.java:609)
         at weblogic.ejb20.manager.BaseEntityManager.remoteScalarFinder(BaseEntityManager.java:549)
         at weblogic.ejb20.internal.EntityEJBHome.finder(EntityEJBHome.java:553)
         at prueba.Usuario1Bean_3zqk0z_HomeImpl.findByLogin(Usuario1Bean_3zqk0z_HomeImpl.java:123)
         at prueba.Usuario1Bean_3zqk0z_HomeImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:785)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    The entity bean exists in the database so i don�t know what�s happening
    any idea?
    Thanks,
    Ranob

    I am getting the exactly same error with 7.0
    run:
         [java]
         [java] Beginning com.tt.schms.school.ejb.cmp.Client...
         [java]
         [java] Trying to find school with id: 0
         [java] There was an exception while creating and using the School.
         [java] This indicates that there was a problem communicating with the server: javax.ejb.FinderException: Problem in
    findByPrimaryKey while preparing or executing statement: 'weblogic.jdbc.rmi.SerialPreparedStatement@353cde':
         [java] java.sql.SQLException: No data found
         [java] java.sql.SQLException: No data found
         [java]     at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6207)
         [java]     at sun.jdbc.odbc.JdbcOdbc.SQLGetDataInteger(JdbcOdbc.java:3166)
         [java]     at sun.jdbc.odbc.JdbcOdbcResultSet.getDataInteger(JdbcOdbcResultSet.java:5333)
         [java]     at sun.jdbc.odbc.JdbcOdbcResultSet.getInt(JdbcOdbcResultSet.java:550)
         [java]     at weblogic.jdbc.jts.ResultSet.getInt(ResultSet.java:141)
         [java]     at weblogic.jdbc.rmi.internal.ResultSetImpl.getInt(ResultSetImpl.java:210)
         [java]     at weblogic.jdbc.rmi.internal.ResultSetStraightReader.getInt(ResultSetStraightReader.java:57)
         [java]     at weblogic.jdbc.rmi.SerialResultSet.getInt(SerialResultSet.java:188)
         [java]     at com.tt.schms.school.ejb.cmp.SchoolBean_15djmm__WebLogic_CMP_RDBMS.__WL_loadGroup0FromRS(SchoolBean_1
    5djmm__WebLogic_CMP_RDBMS.java:941)
         [java]     at com.tt.schms.school.ejb.cmp.SchoolBean_15djmm__WebLogic_CMP_RDBMS.ejbFindByPrimaryKey(SchoolBean_15d
    jmm__WebLogic_CMP_RDBMS.java:724)
         [java]     at java.lang.reflect.Method.invoke(Native Method)
         [java]     at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.findByPrimaryKey(RDBMSPersistenceManager.java:216)
         [java]     at weblogic.ejb20.manager.BaseEntityManager.findByPrimaryKey(BaseEntityManager.java:755)
         [java]     at weblogic.ejb20.manager.BaseEntityManager.remoteFindByPrimaryKey(BaseEntityManager.java:698)
         [java]     at weblogic.ejb20.internal.EntityEJBHome.findByPrimaryKey(EntityEJBHome.java:367)
         [java]     at com.tt.schms.school.ejb.cmp.SchoolBean_15djmm_HomeImpl.findByPrimaryKey(SchoolBean_15djmm_HomeImpl.j
    ava:102)
         [java]     at com.tt.schms.school.ejb.cmp.SchoolBean_15djmm_HomeImpl_WLSkel.invoke(Unknown Source)
         [java]     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
         [java]     at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
         [java]     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
         [java]     at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:821)
         [java]     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
         [java]     at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
         [java]     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
         [java]     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
         [java]
         [java]
         [java] End com.tt.schms.school.ejb.cmp.Client...
         [java]If you find the solution could you please post it here.
    Thanx

  • 11.1.1.4 Error in findByPrimaryKey

    When using findByPrimaryKey on EntityDefImpl it throws a number format exception when the key contains a date value. My primary key is composed of four attributes which the first one is a date field.
    The error thrown is just a number format exception pointing the date value and thrown at the point where I call EntitiDefImpl.findByPrimaryKey(getDBTransaction, pkey) the pkey is pkey = VO.getCurrentRow().getKey is this a bug or am I doing something wrong
    Regards
    Bee.
    Edited by: NewBee on Jun 17, 2011 6:31 AM

    Basically I do not want to use NumberFormat to convert a string to date.
    What I'm trying to do is use findByPrimaryKey on EntityDefImpl to get an entity by passing the key. The key I'm using is a composite key which the first attribute is a date value. If I get the ViewObject current row to retrieve the Key [vo.getKey()] and supply that in the findByPrimaryKey (as illustrated in the start of this thread) I get the following error.
    Key:oracle.jbo.Key[2011-03-02 509 1 1 ]
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: For input string: "3-"
    java.lang.NumberFormatException: For input string: "3-"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:458)
         at java.lang.Integer.parseInt(Integer.java:499)
         at oracle.sql.NUMBER.toBytes(NUMBER.java:1976)
         at oracle.sql.NUMBER.stringToBytes(NUMBER.java:3514)
         at oracle.sql.NUMBER.<init>(NUMBER.java:302)
         at oracle.jbo.domain.Number.<init>(Number.java:293)
         at oracle.jbo.domain.Number$1.convert(Number.java:64)
         at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:855)
         at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:102)
         at oracle.jbo.server.AttributeDefImpl.convertToJava(AttributeDefImpl.java:2223)
         at oracle.jbo.server.EntityDefImpl.prepKeyForFind(EntityDefImpl.java:5726)
         at oracle.jbo.server.EntityDefImpl.findByPrimaryKey(EntityDefImpl.java:1760)here I'm not doing any date conversion manually in my code. what I have done is get the key by getkey() and supply it to findByPrimaryKey

  • EJBQL delete statment - error

    Hi,
    I'm trying to execute a simple delete statment:
    DELETE FROM SecurityRate sr
    WHERE sr.assetId = :assetId
    AND sr.relevanceDay = :relevanceDay
    AND sr.cDataSourceId = :dataSource
    AND sr.cTradingTypeId = :tradingType
    AND sr.securityRateId > 0
    But all I got it's the next exception:
    FINE: DELETE FROM SECURITY_RATE WHERE (((((ASSET_ID = ?) AND (RELEVANCE_DAY = ?)) AND (C_DATA_SOURCE_ID = ?)) AND (C_TRADING_TYPE_ID = ?)) AND (SECURITY_RATE_ID > ?))
         bind => [5100029, 2006-08-30, 3, 24, 0]
    27/04/2007 15:37:34 com.evermind.server.ejb.logging.EJBMessages logException
    SEVERE: [SecuritySession:public void com.tm.business.securities.SecuritySessionBean.createSecurityRateFromFile(com.tm.persistence.securities.ejb.SecurityRate)] exception occurred during method invocation: javax.ejb.EJBException: java.lang.IllegalArgumentException: An instance of a null PK has been incorrectly provided for this find operation.; nested exception is: java.lang.IllegalArgumentException: An instance of a null PK has been incorrectly provided for this find operation.
    javax.ejb.EJBException: java.lang.IllegalArgumentException: An instance of a null PK has been incorrectly provided for this find operation.; nested exception is: java.lang.IllegalArgumentException: An instance of a null PK has been incorrectly provided for this find operation.
    java.lang.IllegalArgumentException: An instance of a null PK has been incorrectly provided for this find operation.
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.findInternal(EntityManagerImpl.java:269)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.find(EntityManagerImpl.java:130)
         at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.find(AbstractEntityManagerProxy.java:58)
         at com.tm.infra.session.EntityManagerContext.insert(EntityManagerContext.java:182)
         at com.tm.infra.session.EntityManagerWrapper.insert(EntityManagerWrapper.java:142)
         at com.tm.business.securities.SecuritySessionBean.createSecurityRateFromFile(SecuritySessionBean.java:459)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.MethodBasedInterceptor$EJBInvocationCallbackImpl.proceed(MethodBasedInterceptor.java:110)
         at com.tm.infra.session.EntityManagerWrapper.trace(EntityManagerWrapper.java:364)
         at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.MethodBasedInterceptor.invoke(MethodBasedInterceptor.java:47)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiresNewInterceptor.invoke(TxRequiresNewInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at SecuritySession_LocalProxy_d7ebed.createSecurityRateFromFile(Unknown Source)
         at com.tm.infra.files.handlers.File24Handler.handle02Record(File24Handler.java:28)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.tm.infra.files.ejb.FileExtractorSessionBean.handleRecord(FileExtractorSessionBean.java:471)
         at com.tm.infra.files.ejb.FileExtractorSessionBean.extractFile(FileExtractorSessionBean.java:270)
         at com.tm.infra.files.ejb.FileExtractorSessionBean.extractFile(FileExtractorSessionBean.java:81)
         at com.tm.infra.files.ejb.FileExtractorSessionBean.activateFileExtractor(FileExtractorSessionBean.java:748)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.MethodBasedInterceptor$EJBInvocationCallbackImpl.proceed(MethodBasedInterceptor.java:110)
         at com.tm.infra.session.EntityManagerWrapper.trace(EntityManagerWrapper.java:364)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.MethodBasedInterceptor.invoke(MethodBasedInterceptor.java:47)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxNeverInterceptor.invoke(TxNeverInterceptor.java:51)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at FileExtractorSession_LocalProxy_d7ebed.activateFileExtractor(Unknown Source)
         at com.tm.view.actions.operational.FileUploadActions.extractFile(FileUploadActions.java:39)
         at com.tm.view.backing.operational.FileUpload$FileExtractorThread.run(FileUpload.java:149)
         at java.lang.Thread.run(Thread.java:595)
    Any ideas?
    Thanks Shachar

    You could use it like this:
    DELETE FROM forecast f
    WHERE (f.lmp, f.dt) IN (SELECT cy.lmp, cy.dt
                                      FROM (SELECT lmp, change_sd, add_months(dt, 12) AS dt FROM forecast WHERE event = 'GROWTH RATE') ny --next year,
                                           (SELECT lmp, change_sd, dt FROM forecast WHERE event = 'GROWTH RATE') cy -- current year
                                     WHERE ny.change_sd = cy.change_sd
                                           AND ny.dt = cy.dt
                                           AND ny.lmp = cy.lmp);Not sure if you just want to delete rows with event = 'GROWTH RATE' or a matching change_sd also, if you do you'll have to add it there to the where.
    DELETE FROM forecast f
    WHERE (f.lmp, f.dt) IN
    (SELECT cy.lmp, cy.dt
       FROM (SELECT lmp, change_sd, add_months(dt, 12) AS dt FROM forecast WHERE event = 'GROWTH RATE') ny --next year,
            (SELECT lmp, change_sd, dt FROM forecast WHERE event = 'GROWTH RATE') cy -- current year
      WHERE ny.change_sd = cy.change_sd
            AND ny.dt = cy.dt
            AND ny.lmp = cy.lmp)
       AND f.event = 'GROWTH RATE';

  • J2ee verifier errors

    Hi,
    i am using netbean4.1beta IDE and i have created the following files
    TblProjectlocalBusiness.java
    TblProjectLocal.java
    TblProjectLocalHome.java
    TblProjectBean.java
    i can't compile the Item.java alone but i can compile all of them together.
    i am using mysql database.
    i tried to verify the EJB Module and
    i got the following errors.
    Can anyone advice on how to get rid off the errors?
    Thanks..
    FAILED TESTS :
    Test Name : tests.ejb.entity.findbyprimarykey.HomeInterfaceFindByPrimaryKeyArg
    Test Assertion : Home interface defines findByPrimaryKey method with primary key class as method parameter. Please refer to EJB 2.1 Specification Section #10.6.10, #10.6.12 for further information.
    Test Description : For [ OCCS-EJBModule#OCCS-EJBModule#TblProjectBean ]
    For home interface [ occsdb.TblProjectLocalHome ].
    Error: No single-parameter findByPrimaryKey(PrimaryKeyClass) method was found in home interface [ occsdb.TblProjectLocalHome ].
    Test Name : tests.ejb.entity.ejbql.EjbQLFromCmpEntityDescriptor
    Test Assertion : Container-managed persistence EJB QL queries should comply with specification rules for syntax and semantics. Please refer to EJB 2.1 Specification Section #11.3.5 for further information.
    Test Description : For [ OCCS-EJBModule#OCCS-EJBModule#TblProjectBean ]
    Error: Entity bean [ occsdb.TblProjectBean ] has the following EJB QL error(s) [
    JDO75006: Invalid EJBQL query
    Bean: TblProjectBean
    Method: java.util.Collection findByBudget(java.lang.Double)
    EJBQL: SELECT OBJECT(t) FROM TblProject AS t WHERE t.budget = ?1
    Error: column(23): JDO75313: Identifier 'TblProject' does not denote abstract schema type.
    TblProjectLocalHome.java
    package occsdb;
    public interface TblProjectLocalHome extends javax.ejb.EJBLocalHome {
    occsdb.TblProjectLocal findByPrimaryKey(java.lang.Object key) throws javax.ejb.FinderException;
    occsdb.TblProjectLocal create(java.lang.String projectId, java.sql.Timestamp start, java.sql.Timestamp deadline, java.lang.Double budget, java.lang.String product) throws javax.ejb.CreateException;
    java.util.Collection findByProjectId(java.lang.String projectId) throws javax.ejb.FinderException;
    java.util.Collection findByBudget(java.lang.Double budget) throws javax.ejb.FinderException;
    java.util.Collection findByProduct(java.lang.String product) throws javax.ejb.FinderException;
    TblProjectBean.java
    package occsdb;
    import javax.ejb.*;
    public abstract class TblProjectBean implements javax.ejb.EntityBean, occsdb.TblProjectLocalBusiness {
    private javax.ejb.EntityContext context;
    // <editor-fold defaultstate="collapsed" desc="EJB infrastructure methods. Click on the + sign on the left to edit the code.">
    // TODO Consider creating Transfer Object to encapsulate data
    // TODO Review finder methods
    * @see javax.ejb.EntityBean#setEntityContext(javax.ejb.EntityContext)
    public void setEntityContext(javax.ejb.EntityContext aContext) {
    context = aContext;
    * @see javax.ejb.EntityBean#ejbActivate()
    public void ejbActivate() {
    * @see javax.ejb.EntityBean#ejbPassivate()
    public void ejbPassivate() {
    * @see javax.ejb.EntityBean#ejbRemove()
    public void ejbRemove() {
    * @see javax.ejb.EntityBean#unsetEntityContext()
    public void unsetEntityContext() {
    context = null;
    * @see javax.ejb.EntityBean#ejbLoad()
    public void ejbLoad() {
    * @see javax.ejb.EntityBean#ejbStore()
    public void ejbStore() {
    // </editor-fold>
    // <editor-fold defaultstate="collapsed" desc="CMP fields and relationships. Click on the + sign on the left to edit the code.">
    public abstract java.lang.String getProjectId();
    public abstract void setProjectId(java.lang.String projectId);
    public abstract java.sql.Timestamp getStart();
    public abstract void setStart(java.sql.Timestamp start);
    public abstract java.sql.Timestamp getDeadline();
    public abstract void setDeadline(java.sql.Timestamp deadline);
    public abstract java.lang.Double getBudget();
    public abstract void setBudget(java.lang.Double budget);
    public abstract java.lang.String getProduct();
    public abstract void setProduct(java.lang.String product);
    // </editor-fold>
    public java.lang.Object ejbCreate(java.lang.String projectId, java.sql.Timestamp start, java.sql.Timestamp deadline, java.lang.Double budget, java.lang.String product) throws javax.ejb.CreateException {
    if (projectId == null) {
    throw new javax.ejb.CreateException("The field \"projectId\" must not be null");
    // TODO add additional validation code, throw CreateException if data is not valid
    setProjectId(projectId);
    setStart(start);
    setDeadline(deadline);
    setBudget(budget);
    setProduct(product);
    return null;
    public void ejbPostCreate(java.lang.String projectId, java.sql.Timestamp start, java.sql.Timestamp deadline, java.lang.Double budget, java.lang.String product) {
    TblProjectlocalBusiness.java
    package occsdb;
    public interface TblProjectLocalBusiness {
    java.lang.String getProjectId();
    void setProjectId(java.lang.String projectId);
    java.sql.Timestamp getStart();
    void setStart(java.sql.Timestamp start);
    java.sql.Timestamp getDeadline();
    void setDeadline(java.sql.Timestamp deadline);
    java.lang.Double getBudget();
    void setBudget(java.lang.Double budget);
    java.lang.String getProduct();
    void setProduct(java.lang.String product);
    TblProjectLocal.java
    package occsdb;
    public interface TblProjectLocal extends javax.ejb.EJBLocalObject, occsdb.TblProjectLocalBusiness {
    }

    The sentence "i can't compile the Item.java alone but i can compile all of them together." can be ignored.
    I'm sorry.

  • Can not use SUM in a simple query because of a syntax error?

    Hi
    Thank you for reading my post.
    I am trying to execute the following query:
    q = em.createQuery("SELECT SUM((NE.pipeLength - 0.6)+((NE.networkDepth-NE.initialDepth)*0.41)+ NE.standLenght)  FROM NExpansion NE  where (( NE.contract.contractor=:contractor) AND (NE.pDiameter=:diameter))");
                  q.setParameter("contractor", contractor);
    q.setParameter("diameter", diameter);
         l =  (Long) q.getSingleResult();And I get the following error:
    Caused by: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [SELECT SUM((NE.pipeLength - 0.6)+((NE.networkDepth-NE.initialDepth)*0.41)+ NE.standLenght)  FROM NExpansion NE  where (( NE.contract.contractor=:contractor) AND (NE.pDiameter=:diameter))], line 1, column 12: unexpected token [(].
    Internal Exception: line 1:12: unexpected token: (
            at oracle.toplink.essentials.exceptions.EJBQLException.unexpectedToken(EJBQLException.java:389)
            at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.handleANTLRException(EJBQLParser.java:350)
            at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.addError(EJBQLParser.java:278)
            at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.reportError(EJBQLParser.java:378)
            at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.aggregateExpression(EJBQLParser.java:1416)
            at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.selectExpression(EJBQLParser.java:1158)
            at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.selectClause(EJBQLParser.java:403)
            at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.selectStatement(EJBQLParser.java:178)
            at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:135)
            at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.parse(EJBQLParser.java:166)
            at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.buildParseTree(EJBQLParser.java:127)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:215)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:189)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:153)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.<init>(EJBQueryImpl.java:114)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.<init>(EJBQueryImpl.java:99)
            at oracle.toplink.essentials.internal.ejb.cmp3.EJBQueryImpl.<init>(EJBQueryImpl.java:86)
            at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.createQuery(EntityManagerImpl.java:204)
            ... 30 more
    Caused by: line 1:12: unexpected token: (
            at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.aggregateExpression(EJBQLParser.java:1365)
            ... 43 morePlease let me know what am I doing wrong?
    Thanks.

    Hello,
    From the grammar in the JPA spec, SUM only takes a state_field_path_expression which is defined as
    state_field_path_expression := {identification_variable | single_valued_association_path_expression}.state_field
    Please feel free to file an enhancement to have this expanded upon.
    Best Regards,
    Chris

  • Errors while running SRDemo tutorial (JSF/ EJB) to testing data model

    Hi experts,
    I go the following error messages while running SRDemo
    (web application - EJB 3.0, JSF, JPA) tutorial (Java EE tutorial from JavaEE_tutorial_setup.zip) on page 44 of 222 - testing the data model in JDeveloper version 10.1.3.1, the tutorial shows what the output should be, but I got the errors even though I followed all the steps, all JAVA EXPERTS, could you tell me what might be wrong? how should I do with those configureation files like persistence.xml? Thank you very much in advance. Jan
    Creating a service request //correct output
    setting the status //correct output
    setting the timestamp for request date //correct output
    2007-01-29 15:07:14.859 //correct output
    getting product object with id = 117 //correct output
    // error stack trace showed in JDeveloper
    Jan 29, 2007 3:07:16 PM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    javax.ejb.EJBException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
    oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         Nested exception is:
    Local Exception Stack:
    Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at oracle.toplink.essentials.exceptions.EJBQLException.unexpectedToken(EJBQLException.java:358)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.handleANTLRException(EJBQLParserBase.java:246)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.reportError(EJBQLParserBase.java:204)
         at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:156)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.parseEJBQLString(EJBQLParserBase.java:315)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:199)
         at oracle.toplink.essentials.queryframework.EJBQLPlaceHolderQuery.processEjbQLQuery(EJBQLPlaceHolderQuery.java:96)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2040)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2027)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:679)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:559)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:180)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:230)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
         at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
         at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
         at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    javax.ejb.EJBException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at com.evermind.server.ejb.EJBUtils.createEJBException(EJBUtils.java:365)
         at com.evermind.server.ejb.EJBUtils.createEJBException(EJBUtils.java:356)
         at com.evermind.server.ejb.AbstractEJBObject.OC4J_handleUncheckedException(AbstractEJBObject.java:396)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         ... 8 more
    Caused by: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at oracle.toplink.essentials.exceptions.EJBQLException.unexpectedToken(EJBQLException.java:358)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.handleANTLRException(EJBQLParserBase.java:246)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.reportError(EJBQLParserBase.java:204)
         at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:156)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.parseEJBQLString(EJBQLParserBase.java:315)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:199)
         at oracle.toplink.essentials.queryframework.EJBQLPlaceHolderQuery.processEjbQLQuery(EJBQLPlaceHolderQuery.java:96)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2040)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2027)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:679)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:559)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:180)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:230)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
         at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
         at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
         at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         ... 13 more
    javax.ejb.EJBException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
    oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         Nested exception is:
    Local Exception Stack:
    Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at oracle.toplink.essentials.exceptions.EJBQLException.unexpectedToken(EJBQLException.java:358)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.handleANTLRException(EJBQLParserBase.java:246)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.reportError(EJBQLParserBase.java:204)
         at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:156)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.parseEJBQLString(EJBQLParserBase.java:315)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:199)
         at oracle.toplink.essentials.queryframework.EJBQLPlaceHolderQuery.processEjbQLQuery(EJBQLPlaceHolderQuery.java:96)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2040)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2027)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:679)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:559)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:180)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:230)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
         at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
         at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
         at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    javax.ejb.EJBException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
         at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:125)
         at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:517)
         at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:461)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.findProductById(Unknown Source)
         at org.srdemo.client.ServiceRequestFacadeClientEmbed.main(ServiceRequestFacadeClientEmbed.java:38)
    Caused by: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at oracle.toplink.essentials.exceptions.EJBQLException.unexpectedToken(EJBQLException.java:358)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.handleANTLRException(EJBQLParserBase.java:246)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.reportError(EJBQLParserBase.java:204)
         at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:156)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.parseEJBQLString(EJBQLParserBase.java:315)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:199)
         at oracle.toplink.essentials.queryframework.EJBQLPlaceHolderQuery.processEjbQLQuery(EJBQLPlaceHolderQuery.java:96)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2040)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2027)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:679)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:559)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:180)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:230)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
         at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
         at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
         at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         ... 13 more
    Process exited with exit code 0.

    Hi,
    the problem seems to be caused by an invalid query
    selectobject (product) from Products product where product.PROD_ID = :prodId
    Should be
    select object (product) from Products product where product.PROD_ID = :prodId
    Please check the query you created in TopLink
    Frank

  • Error While Trying To Populate Data .....Invalid Row ID

    Hi ,
    I have created a form wherein the user enters details and presses save . The data on the form level is populated in a Custom Table . Some attributes of the table are programatically populated and some attributes are tagged to UI Components on the Form Level.
    When the user presses Save the following Error Occurs
    oracle.apps.fnd.framework.OAException: oracle.jbo.DMLException: JBO-26080: Error while selecting entity for TcsAssocFrontEndSegLookUpEO
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormData(OAPageBean.java:2517)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1647)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01410: invalid ROWID
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1141)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2487)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2854)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:550)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:614)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:4962)
         at oracle.apps.fnd.framework.server.OAEntityImpl.doSelect(OAEntityImpl.java:1684)
         at oracle.jbo.server.EntityImpl.populate(EntityImpl.java:4122)
         at oracle.jbo.server.EntityDefImpl.findFromDatabase(EntityDefImpl.java:889)
         at oracle.jbo.server.EntityDefImpl.findByPrimaryKey(EntityDefImpl.java:1069)
         at oracle.jbo.server.QueryCollection.findByKey(QueryCollection.java:2944)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:3072)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:3004)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:2998)
         at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:6450)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.findByKey(OAViewObjectImpl.java:456)
         at oracle.apps.fnd.framework.webui.OAWebBeanDataAttributeHelper.checkAttributes(OAWebBeanDataAttributeHelper.java:1129)
         at oracle.apps.fnd.framework.webui.OAWebBeanDataAttributeHelper.getViewObjectRow(OAWebBeanDataAttributeHelper.java:773)
         at oracle.apps.fnd.framework.webui.OAWebBeanDataAttributeHelper.setValue(OAWebBeanDataAttributeHelper.java:496)
         at oracle.apps.fnd.framework.webui.OAWebBeanFormElementHelper.setValue(OAWebBeanFormElementHelper.java:445)
         at oracle.apps.fnd.framework.webui.OAWebBeanTextInputHelper.setValue(OAWebBeanTextInputHelper.java:161)
         at oracle.apps.fnd.framework.webui.OAWebBeanFormElementHelper.processFormAttribute(OAWebBeanFormElementHelper.java:407)
         at oracle.apps.fnd.framework.webui.OAWebBeanFormElementHelper.processFormDataAfterController(OAWebBeanFormElementHelper.java:340)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(OAWebBeanHelper.java:757)
         at oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean.processFormData(OAMessageTextInputBean.java:488)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(OAWebBeanHelper.java:1068)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1024)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1018)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(OAWebBeanHelper.java:758)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(OAWebBeanContainerHelper.java:662)
         at oracle.apps.fnd.framework.webui.beans.layout.OACellFormatBean.processFormData(OACellFormatBean.java:416)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(OAWebBeanHelper.java:1068)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1024)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1018)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(OAWebBeanHelper.java:758)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(OAWebBeanContainerHelper.java:662)
         at oracle.apps.fnd.framework.webui.beans.layout.OARowLayoutBean.processFormData(OARowLayoutBean.java:352)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(OAWebBeanHelper.java:1068)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1024)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1018)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(OAWebBeanHelper.java:758)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(OAWebBeanContainerHelper.java:662)
         at oracle.apps.fnd.framework.webui.beans.layout.OATableLayoutBean.processFormData(OATableLayoutBean.java:354)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(OAWebBeanHelper.java:1068)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1024)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1018)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(OAWebBeanHelper.java:758)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(OAWebBeanContainerHelper.java:662)
         at oracle.apps.fnd.framework.webui.beans.layout.OAContentContainerBean.processFormData(OAContentContainerBean.java:353)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(OAWebBeanHelper.java:1068)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1024)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1018)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(OAWebBeanHelper.java:758)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(OAWebBeanContainerHelper.java:662)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormData(OAHeaderBean.java:394)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(OAWebBeanHelper.java:1068)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1024)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1018)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(OAWebBeanHelper.java:758)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(OAWebBeanContainerHelper.java:662)
         at oracle.apps.fnd.framework.webui.OASubTabLayoutHelper.processFormData(OASubTabLayoutHelper.java:524)
         at oracle.apps.fnd.framework.webui.beans.layout.OASubTabLayoutBean.processFormData(OASubTabLayoutBean.java:470)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(OAWebBeanHelper.java:1068)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1024)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1018)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(OAWebBeanHelper.java:758)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(OAWebBeanContainerHelper.java:662)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormData(OAStackLayoutBean.java:356)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(OAWebBeanHelper.java:1068)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1024)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1018)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(OAWebBeanHelper.java:758)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(OAWebBeanContainerHelper.java:662)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormData(OAPageLayoutBean.java:1574)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(OAWebBeanHelper.java:1068)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1024)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1018)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(OAWebBeanHelper.java:758)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(OAWebBeanContainerHelper.java:662)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormData(OAFormBean.java:390)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(OAWebBeanHelper.java:1068)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1024)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(OAWebBeanHelper.java:1018)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(OAWebBeanHelper.java:758)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(OAWebBeanContainerHelper.java:662)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormData(OABodyBean.java:358)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormData(OAPageBean.java:2505)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1647)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.sql.SQLException: ORA-01410: invalid ROWID
    I am wondering if the error is occuring due to the fact that i am partly populating the data declaratively and partly programatically ?
    Kindly Help ,
    Thanks

    Thanks Mani ,
    The table being populated is a customised table . It has[b] no primary key . All the columns are[b] nullable . The VO that i am using is taking rowid as Primary Key By default. I am not explicitly setting rowId .

  • Error Message: JBO-26080: Error while selecting entity for PoLines

    I'm using JDev 9.0.4.
    i make a VO from two EO at the BC4J level.
    then i create complete struts JSP Application for this VO.
    so i get a page that i can do New/Edit and Delete to each row.
    when i try to do Edit for some lines (not all of them) i get this error :
    Error Message: JBO-26080: Error while selecting entity for PoLines
    Error Message: ORA-01722: invalid number
    What does it mean ? how can i solve it ?
    Thank You

    Un-comment the following lines to display the stack trace
    oracle.jbo.DMLException: JBO-26080: Error while selecting entity for ElcPoLines
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:832)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:4665)
         at oracle.jbo.server.EntityImpl.populate(EntityImpl.java:3845)
         at oracle.jbo.server.EntityDefImpl.findFromDatabase(EntityDefImpl.java:888)
         at oracle.jbo.server.EntityDefImpl.findByPrimaryKey(EntityDefImpl.java:943)
         at oracle.jbo.server.QueryCollection.findByKey(QueryCollection.java:2524)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:2907)
         at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:6019)
         at oracle.jbo.client.JboUtil.getRowFromKey(JboUtil.java:91)
         at oracle.jbo.html.BC4JContext.getRow(BC4JContext.java:307)
         at oracle.jbo.html.struts11.actions.EditAction.populateBC4JFormBean(EditAction.java:160)
         at oracle.jbo.html.struts11.actions.EditAction.edit(EditAction.java:59)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01722: invalid number
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:242)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:554)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1478)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:890)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2407)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2660)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:457)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:387)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:606)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:4665)
         at oracle.jbo.server.EntityImpl.populate(EntityImpl.java:3845)
         at oracle.jbo.server.EntityDefImpl.findFromDatabase(EntityDefImpl.java:888)
         at oracle.jbo.server.EntityDefImpl.findByPrimaryKey(EntityDefImpl.java:943)
         at oracle.jbo.server.QueryCollection.findByKey(QueryCollection.java:2524)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:2907)
         at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:6019)
         at oracle.jbo.client.JboUtil.getRowFromKey(JboUtil.java:91)
         at oracle.jbo.html.BC4JContext.getRow(BC4JContext.java:307)
         at oracle.jbo.html.struts11.actions.EditAction.populateBC4JFormBean(EditAction.java:160)
         at oracle.jbo.html.struts11.actions.EditAction.edit(EditAction.java:59)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)

  • Error in loading package in the application

    Hi all,
    We are getting an error in loading packages in our application.We are using oc4j.
    The following is the error message we got.
    Not Found
    The requested URL /credit/pls/cnhcalms/add_new_customer.handleAction was not found on this server.
    Thanks in advance.

    Hi Rajat:
    Thank you for the reply.
    I had the xercers jars in jdk/jre/lib/endorsed directory.
    If I remove these, the ejbql works. I do need these in there for a different reason. Is there any way I can have the xercers jars in jdk/jre/lib/endorsed directory and still the ejbql work on oc4j.
    Thanks,
    Sabu

  • Error while running entity - help needed

    Hi everybody,
    Following is the error i get when i run the following comand,
    It prepares the std_ejb_jar file and when executing the ejbc command following error ocurs :
    D:\bea\wlserver6.0\samples\ejb\com\entity\cabin>java -classpath d:\bea\wlserver6.0/lib/weblogic_sp.jar;d:\bea\wlserver6.0/lib/weblogic.jar weblogic.ejbc -verbose -compiler javac build\std_ejb_cabin.jar \ejb_cabin.jar
    ERROR: Error from ejbc: [9.7.12] In EJB cabinmethod, the findByPrimaryKey method must return the Entity bean's remote interface type, and it's parameter must be the primary key type or java.lang.Object: findByPrimaryKey(ejb.com.entity.cabin.CabinPK) ERROR: ejbc found errors Process Exit...
    I have a table called cabin_table with id has not null.
    Thanx in Advance

    Thanks Buddy,
    I think that was the correct one, but as i was using the example of ejb1.1 compatible, this is futher giving me a problem, Says U need to make the methods in the bean as abstract, i think this is as per the ejb2.0 specs right?.
    I would try for that ad come back to u
    Thanks
    Amit

  • Ejb error while migrating from wl5.1 to wl8.1

    Hello All,
    I am trying to resolve this error that i am getting. Before i jump into the problem i would like to mention that i am in the process of converting our application from weblogic 5.1 to weblogic 8.1. For now i am using the same ejb(1.1 spec) and deploying it on WL8.1, the ejbs do get deployed, however when i try to run the application i get the following error. Am i missing something here (in descriptor files or somewhere else). Appreciate any input on this problem.
    com.xxx.yyy.jsp.data.ScreenData: findByPrimaryKey(com.xxx.yyy.ejb.testUser.TestUserPK(10002))
    com.xxx.yyy.jsp.data.ScreenData: Find AppUser Home for (com.xxx.yyy.ejb.testUser.TestUserPK(10002))
    com.xxx.yyy.jsp.data.ScreenData: Find AppUser Bean for (com.xxx.yyy.ejb.testUser.TestUserPK(10002))
    com.xxx.yyy.jsp.data.ScreenData Application user id com.xxx.yyy.ejb.testUser.TestUserPK(10002) remote server error.
    Error during setXXXContext: ; nested exception is:
    java.lang.IllegalStateException: [EJB:010193]Illegal call to EJBContext method. The bean is in "context setting" state. It cannot perform 'getting EJB object for Entity bean' OR 'getting the primary key' action(s). Refer to the EJB specification for more details.
    java.rmi.RemoteException: Error during setXXXContext: ; nested exception is:
    java.lang.IllegalStateException: [EJB:010193]Illegal call to EJBContext method. The bean is in "context setting" state. It cannot perform 'getting EJB object for Entity bean' OR 'getting the primary key' action(s). Refer to the EJB specification for more details.
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:186)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
    at com.xxx.yyy.ejb.testUser.TestUserBean_19p26e_HomeImpl_812_WLStub.findByPrimaryKey(Unknown Source)
    at com.xxx.yyy.jsp.data.ScreenData.findByPrimaryKey(ScreenData.java:104)
    at jsp_servlet._jsp.__router._jspService(__router.java:219)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Thanks
    vivi

    seems like you are calling EntityContext.getEJBObject() or EntityContext.getPrimaryKey() before the context has been set on the bean. an IllegalStateException is thrown in such cases.
    cheers,
    mihir

  • Error while deploying CMP.. can u pls tell me...

    Hi,
    Below is the error my jboss 3.2.3 container is throwing when i tried to deploy my CMP entity bean. It says
    my ejbFindByPrimaryKey() method must be implemented,but in a CMP i am told the container will take care of the implementation, one just has to specify it in the home object.. can anyone pls tell me where i could have gone wrong.
    2004-07-09 12:47:39,825 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/D:/jboss-3.2.3/server/default/deploy/product.jar
    2004-07-09 12:47:40,404 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
    Bean : Product
    Section: 12.2.2
    Warning: The class must be defined as public and must not be abstract.
    2004-07-09 12:47:40,404 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
    Bean : Product
    Section: 12.2.5
    Warning: Every entity bean must define the ejbFindByPrimaryKey method.
    2004-07-09 12:47:40,419 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/D:/jboss-3.2.3/server/default/deploy/product.jar
    org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
         at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:491)
         at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
         at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
         at $Proxy6.deploy(Unknown Source)
         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)

    This is my code
    ProductBean
    import javax.ejb.EntityContext;
    import javax.ejb.EntityBean;
    public abstract class ProductBean implements EntityBean {
         protected EntityContext ctx;
         //All set and get Methods
         public abstract String getName();
         public abstract void setName(String name);
         public abstract String getDescription() ;
         public abstract void setDescription(String desc);
         public abstract double getBasePrice() ;
         public abstract void setBasePrice(double baseprice);
         public abstract String getProductID();     
         public abstract void setProductID(String prodname);
         //EJB required Methods
         public void ejbActivate(){
              System.out.println("ejbActivate called");
         public void ejbRemove(){
              System.out.println("ejbRemove called");
         public void ejbPassivate(){
              System.out.println("ejbPassivate called");
         public void ejbLoad(){
              System.out.println("ejbLoad called");
         public void ejbStore(){
              System.out.println("ejbStore called");
         public void setEntityContext(EntityContext ctx){
              System.out.println("setEntityContext called");
              this.ctx=ctx;
         public void UnsetEntityContext(){
              System.out.println("UnsetEntityContext called");
              this.ctx=null;
         public void ejbPostCreate(String productID,String name,String description,double basePrice){
              System.out.println("ejbPostCreate called");
         public ProductKey ejbCreate(String productID,String name,String description,double basePrice){
              System.out.println("Create method  called");
              setProductID(productID);
              setName(name);
              setDescription(description);
              setBasePrice(basePrice);
              return new ProductKey(productID); // i am not sure which to retun,
              //return null;
                                               //Well just on a note for the above
                                              // I READ THAT CMP2.0 MUST RETURN NULL, BUT IN ED-ROMANS MASTERING
                                              // EJB  IT SAYS THE BEAN MUST RETURN THE PRIMARY KEY CLASS.
                                              // I HAVE TRIED BOTH THE ABOVE RETURN VALUES, STILL I GET THE SAME
                                              / /ERROR.
    HomeInterface
    import java.rmi.RemoteException;
    import java.util.Collection;
    import javax.ejb.CreateException;
    import javax.ejb.EJBHome;
    import javax.ejb.FinderException;
    public interface ProductHome extends EJBHome {
         public Product create(String productID,String name,String description,double basePrice)throws CreateException,RemoteException;
         public Product findByPrimaryKey(ProductKey key) throws FinderException,RemoteException;
         public Collection findByName(String name) throws RemoteException,FinderException;
         public Collection findByDescription(String desc) throws RemoteException,FinderException;
         public Collection findByBasePrice(double basePrice) throws RemoteException,FinderException;
         public Collection findByExpensiveProduct(double minPrice ) throws RemoteException,FinderException;
         public Collection findCheapProducts(double maxPrice) throws RemoteException,FinderException;
         public Collection findAllProducts() throws RemoteException,FinderException;
    RemoteInterface
    import java.rmi.RemoteException;
    import javax.ejb.EJBObject;
    public interface Product extends EJBObject {
         public String getName() throws RemoteException;
         public void setName(String name)throws RemoteException;
         public String getDescription() throws RemoteException;
         public void setDescription(String desc) throws RemoteException;
         public double getBasePrice() throws RemoteException;
         public void setBasePrice(double baseprice)throws RemoteException;
         public String getProductID()throws RemoteException;     
    ProductKey class - This is my PRIMARY KEY CLASS
    import java.io.Serializable;
    public class ProductKey implements Serializable{
         public String productID;
         public ProductKey(){          
         public ProductKey(String prodID){
              productID=prodID;
         public String toString(){
              return productID;
         public int hashCode()     {
              return productID.hashCode();
         public boolean equals(Object prod){
              return ((ProductKey)prod).productID.equals(productID);
    This is my ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar >
       <description><![CDATA[No Description.]]></description>
       <display-name>Generated by XDoclet</display-name>
       <enterprise-beans>
          <entity>
             <description><![CDATA[]]></description>
             <ejb-name>Product</ejb-name>
             <home>ProductHome</home>
             <local-home>ProductHomeLocal</local-home>
             <remote>Product</remote>
             <local-remote>ProductLocal</local-remote>
             <ejb-class>ProductBean</ejb-class>
               <persistence-type>Bean</persistence-type>
               <prim-key-class>ProductKey</prim-key-class>
               <reentrant>False</reentrant>     
               <cmp-version>2.x</cmp-version>
              <abstract-schema-name>ProductBean</abstract-schema-name>
              <cmp-field> <field-name>productID</field-name></cmp-field>
              <cmp-field> <field-name>name</field-name></cmp-field>
              <cmp-field> <field-name>description</field-name></cmp-field>
              <cmp-field> <field-name>basePrice</field-name></cmp-field>       
               <primkey-field>productID</primkey-field>
            <query>
                 <query-method>
                      <method-name>findByName</method-name>
                           <method-params>
                                <method-param>java.lang.String</method-param>
                           </method-params>
                 </query-method>
                 <ejb-ql>
                           <![CDATA[SELECT OBJECT(a) from ProductBean as a where name=?1]]>
                 </ejb-ql>
            </query>
            <query>
                 <query-method>
                      <method-name>findByBasePrice</method-name>
                           <method-params>
                                <method-param>double</method-param>
                           </method-params>
                 </query-method>
                 <ejb-ql>
                           <![CDATA[SELECT OBJECT(a) from ProductBean as a where basePrice = ?1]]>
                 </ejb-ql>
            </query>
            <query>
                 <query-method>
                      <method-name>findExpensiveProducts</method-name>
                           <method-params>
                                <method-param>double</method-param>
                           </method-params>
                 </query-method>
                 <ejb-ql>
                           <![CDATA[SELECT OBJECT(a) from ProductBean as a where basePrice > ?1]]>
                 </ejb-ql>
            </query>
            <query>
                 <query-method>
                      <method-name>findCheapProducts</method-name>
                           <method-params>
                                <method-param>double</method-param>
                           </method-params>
                 </query-method>
                 <ejb-ql>
                           <![CDATA[SELECT OBJECT(a) from ProductBean as a where basePrice < ?1]]>
                 </ejb-ql>
            </query>
                    <query>
                 <query-method>
                      <method-name>findAllProducts</method-name>
                           <method-params>
                                <method-param>double</method-param>
                           </method-params>
                 </query-method>
                 <ejb-ql>
                           <![CDATA[SELECT OBJECT(a) from ProductBean as a where productID IS NOT NULL]]>
                 </ejb-ql>
            </query>
                 </entity>
          </enterprise-beans>
       </ejb-jar>
    This is my jboss.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">
    <jboss>
       <unauthenticated-principal>nobody</unauthenticated-principal>
       <enterprise-beans>
          <entity>
             <ejb-name>Product</ejb-name>
             <jndi-name>ProductHome</jndi-name>
              <local-jndi-name>ProductHomeLocal</local-jndi-name>
          </entity>
       </enterprise-beans>
       <resource-managers>
       </resource-managers>
    </jboss>
    This is my jbosscmp-jdbc.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN" "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd">
    <jbosscmp-jdbc>
       <defaults>
         <datasource>java:/OracleDS</datasource>
         <datasource-mapping>Oracle8</datasource-mapping>
       </defaults>
       <enterprise-beans>
          <entity>
             <ejb-name>Product</ejb-name>
             <table-name>ProductTable</table-name>
             <cmp-field>
                <field-name>productID</field-name>
                <column-name>PRODUCTID</column-name>
            </cmp-field>
             <cmp-field>
                <field-name>name</field-name>
                <column-name>NAME</column-name>
            </cmp-field>
            <cmp-field>
                <field-name>description</field-name>
                <column-name>DESCRIPTION</column-name>
            </cmp-field>
            <cmp-field>
                <field-name>basePrice</field-name>
                <column-name>BASEPRICE</column-name>
            </cmp-field>
          </entity>
       </enterprise-beans>
    </jbosscmp-jdbc>

Maybe you are looking for

  • SPOOL_INTERNAL_ERROR short dump while running RBDAPP01

    I recently encountered this run-time error when processing IDOCs. The IDOC message type was WMMBXY, if that helps. We have been using this message type and have been processing thousands of these transactions for years, and this just suddenly happene

  • Two ADE users on one computer

    I have a laptop, a kobo and ADE and everything works fine.  I have admin rights on the laptop, and the ADE is authorized for me and computer, and I use it with my library account. My wife is also a user on the same laptop, and has her own login name

  • HP Officejet 6500A+ connected wirelessly to HP Omni 220 PC.

    The printer and PC do not stay connected for any length of time. It is a 50/50 shot as to whether I will be able to print anything from the PC. Sometimes it starts printing, makes some spooling noises, gets hung up for 15 minutes, then drops the file

  • Tape Trouble Error

    Hello, I have a new error message, when I am trying to digitize Betacam footage via my Kona LHe card It reads "Tape Trouble. Check VTR. Do not attempt to eject tape or use transport without checking VTR first." Then an OK button The UVW-1600 keeps pl

  • Playback and rendered video jumps up and down regularly and minutely

    A number of the sequences I've edited have a minute but noticible up-and-down movement.  For example, see http://www.youtube.com/watch?v=hely09sD6gY  You'll notice that only the video image moves up and down, not any of the still images or the Studio