I have an CMP entity bean running with 2.4.3 and mySQL under
Solaris 8/SPARC. The bean was fine, but I needed to add some
fields. I added the fields and associated methods as well as
modified the ejb-jar.xml file. Redeployed. Dropped the old
table. Restarted jboss to make sure it built the new table.
New table checks out ok with the new fields. Everything looks
fine.

When I invoke a find method on the table, it works correctly,
but as soon as I attempt to access any of the fields in the bean
through an accessor method, I get the exceptions below on
the client and server side.

I saved to old .java files for the class and diff only shows the
additional fields.

The only significant difference is the old bean had about 10 fields
and the new one has 28.

Can anyone give me a clue what object fails to load? I'm continuing
to look for a typo-type of error, but any clues anyone can offer
will be appreciated. What is Null?

On the client side, this is the exception:

java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
        javax.transaction.TransactionRolledbackException: Load failed;
nested exception is:
        java.lang.NullPointerException; nested exception is:
        java.rmi.ServerException: Load failed; nested exception is:
        java.lang.NullPointerException

On the server side this is the exception:

[Profile] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is:
        java.lang.NullPointerException; nested exception is:
        java.rmi.ServerException: Load failed; nested exception is:
        java.lang.NullPointerException
[Profile] java.rmi.ServerException: Load failed; nested exception is:
[Profile]       java.lang.NullPointerException
[Profile] java.lang.NullPointerException
[Profile]       at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getResultObject(JDBCCommand.java
:504)
[Profile]       at
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.loadOneEntity(JDBCLoad
EntityCommand.java:219)
[Profile]       at
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.handleResult(JDBCLoadE
ntityCommand.java:176)
[Profile]       at
org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand.executeStatementAndHandleRe
sult(JDBCQueryCommand.java:59)
[Profile]       at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:160
)
[Profile]       at
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntity
Command.java:147)
[Profile]       at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(JAWSPersistence
Manager.java:156)
[Profile]       at
org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager
.java:362)
[Profile]       at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchron
izationInterceptor.java:286)
[Profile]       at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce
ptor.java:208)
[Profile]       at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav
a:136)
[Profile]       at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[Profile]       at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:307)
[Profile]       at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[Profile]       at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12
8)
[Profile]       at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[Profile]       at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:427)
[Profile]       at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:393)
[Profile]       at java.lang.reflect.Method.invoke(Native Method)
[Profile]       at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[Profile]       at sun.rmi.transport.Transport$1.run(Transport.java:152)
[Profile]       at java.security.AccessController.doPrivileged(Native
Method)
[Profile]       at
sun.rmi.transport.Transport.serviceCall(Transport.java:148)
[Profile]       at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
[Profile]       at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7
06)
[Profile]       at java.lang.Thread.run(Thread.java:484)





_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to