Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

findByPrimaryKey gives NullPointerException

0 views
Skip to first unread message

Santosh Mani

unread,
Nov 29, 2004, 3:47:51 PM11/29/04
to
Hi,

We are using WLS 7.0 with SP1 and when calling findByPrimaryKey on a CMP EJB we get a NullPointer Exception with the following stack trace:

javax.ejb.FinderException: Problem in findByPrimaryKey while preparing or executing statement: 'weblogic.jdbc.rmi.SerialPreparedStatem ent@636bf6':
java.sql.SQLException: java.lang.NullPointerException - null
java.sql.SQLException: java.lang.NullPointerException - null
at weblogic.jdbc.oci.ResultSet.getString(ResultSet.java:164)
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 nz.co.nbnz.las2.entitybeans.CatCustomerEntityBean_3rkdpl__WebLogic_CMP_RDBMS.__WL_loadGroup0FromRS(CatCustomerEntityBean_3r kdpl__WebLogic_CMP_RDBMS.java:2106)
at nz.co.nbnz.las2.entitybeans.CatCustomerEntityBean_3rkdpl__WebLogic_CMP_RDBMS.ejbFindByPrimaryKey(CatCustomerEntityBean_3rkd pl__WebLogic_CMP_RDBMS.java:1693)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.findByPrimaryKey(RDBMSPersistenceManager.java:203)
at weblogic.ejb20.manager.BaseEntityManager.findByPrimaryKey(BaseEntityManager.java:500)
at weblogic.ejb20.manager.BaseEntityManager.localFindByPrimaryKey(BaseEntityManager.java:457)
at weblogic.ejb20.internal.EntityEJBLocalHome.findByPrimaryKey(EntityEJBLocalHome.java:275)
at nz.co.nbnz.las2.entitybeans.CatCustomerEntityBean_3rkdpl_LocalHomeImpl.findByPrimaryKey(CatCustomerEntityBean_3rkdpl_LocalH omeImpl.java:149)
at nz.co.nbnz.las2.entitybeans.CatCustomerXMLCreator.load(CatCustomerXMLCreator.java:305)

We are using the Oracle jDriver JDBC Library.

Thanks,
Santosh

thorick chow

unread,
Dec 2, 2004, 6:49:44 PM12/2/04
to
This should not be happening. I'd contact support about this problem.
0 new messages