Hi,
I have searched the mailing list for an answer on this one.
I noticed that several other entries, without any replies.
One thread suggests it has something to do with connection pooling
or an incorrect class loader....? Anyway here is what I did.
I had a neat little BMP entity bean, which worked fine with Oracle 7.
Then I switched over to Interbase 6.0 and everything seemed okay.
At least modifying en removing rows from the database table does work.
But when I tried to call the home.create() of this
bean. Al of a sudden I got an Exception throw at me. In the
log file the trace trace said:
[Country] TRANSACTION ROLLBACK EXCEPTION:id may not be null; nested
exception is:
java.lang.Error: id may not be null
[Country] java.lang.Error: id may not be null
[Country] at org.jboss.ejb.CacheKey.<init>(CacheKey.java:51)
[Country] at
org.jboss.ejb.plugins.EntityInstanceCache.createCacheKey(EntityInstanceCache
.java:45)
[Country] at
org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPersistenceManag
er.java:151)
[Country] at
org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:441)
[Country] at java.lang.reflect.Method.invoke(Native Method)
[Country] at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContaine
r.java:639)
[Country] at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySync
hronizationInterceptor.java:160)
[Country] at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt
erceptor.java:86)
[Country] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
[Country] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
[Country] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
[Country] at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:126)
[Country] at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
[Country] at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316)
[Country] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
nerInvoker.java:200)
[Country] at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:198)
[Country] at $Proxy5.create(Unknown Source)
[Country] at
org.companion.session.CountrySessionBean.create(CountrySessionBean.java:60)
[Country] at java.lang.reflect.Method.invoke(Native Method)
[Country] at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
sSessionContainer.java:472)
[Country] at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
ssionInstanceInterceptor.java:87)
[Country] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[Country] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
[Country] at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[Country] at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:14
4)
[Country] at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
[Country] at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:271)
[Country] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:163)
[Country] at java.lang.reflect.Method.invoke(Native Method)
[Country] at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[Country] at sun.rmi.transport.Transport$1.run(Transport.java:142)
[Country] at java.security.AccessController.doPrivileged(Native Method)
[Country] at sun.rmi.transport.Transport.serviceCall(Transport.java:139)
[Country] at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
[Country] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
43)
[Country] at java.lang.Thread.run(Thread.java:484)
[CountrySession] TRANSACTION ROLLBACK EXCEPTION:id may not be null; nested
exception is:
java.lang.Error: id may not be null; nested exception is:
javax.transaction.TransactionRolledbackException: id may not be null;
nested exception is:
java.lang.Error: id may not be null
[CountrySession] javax.transaction.TransactionRolledbackException: id may
not be null; nested exception is:
[CountrySession] java.lang.Error: id may not be null
[CountrySession] java.lang.Error: id may not be null
[CountrySession] at org.jboss.ejb.CacheKey.<init>(CacheKey.java:51)
[CountrySession] at
org.jboss.ejb.plugins.EntityInstanceCache.createCacheKey(EntityInstanceCache
.java:45)
[CountrySession] at
org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPersistenceManag
er.java:151)
[CountrySession] at
org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:441)
[CountrySession] at java.lang.reflect.Method.invoke(Native Method)
[CountrySession] at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContaine
r.java:639)
[CountrySession] at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySync
hronizationInterceptor.java:160)
[CountrySession] at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt
erceptor.java:86)
[CountrySession] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
[CountrySession] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
[CountrySession] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
[CountrySession] at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:126)
[CountrySession] at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
[CountrySession] at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316)
[CountrySession] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
nerInvoker.java:200)
[CountrySession] at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:198)
[CountrySession] at $Proxy5.create(Unknown Source)
[CountrySession] at
org.companion.session.CountrySessionBean.create(CountrySessionBean.java:60)
[CountrySession] at java.lang.reflect.Method.invoke(Native Method)
[CountrySession] at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
sSessionContainer.java:472)
[CountrySession] at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
ssionInstanceInterceptor.java:87)
[CountrySession] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[CountrySession] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
[CountrySession] at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[CountrySession] at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:14
4)
[CountrySession] at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
[CountrySession] at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:271)
[CountrySession] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:163)
[CountrySession] at java.lang.reflect.Method.invoke(Native Method)
[CountrySession] at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[CountrySession] at sun.rmi.transport.Transport$1.run(Transport.java:142)
[CountrySession] at java.security.AccessController.doPrivileged(Native
Method)
[CountrySession] at
sun.rmi.transport.Transport.serviceCall(Transport.java:139)
[CountrySession] at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
[CountrySession] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
43)
[CountrySession] at java.lang.Thread.run(Thread.java:484)
[Bean Cache] Resized cache for bean Country: old size = 50, new size = 65
Country is the BMP bean, CountrySession is a stateless session bean from
which I am calling
the home.create() method of the BMP entity bean.
Another thing that puzzles me are the following lines in the log file. Are
they possibly related?
[Configuration] Detected JMX Bug: Server reports attribute 'JDBCUser' is not
writeable for MBean 'DefaultDomain:name=Interbase,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'TimestampUsed'
is not writeable for MBean
'DefaultDomain:name=Interbase,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'JDBCUser' is not
writeable for MBean 'DefaultDomain:name=InstantDB,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'TimestampUsed'
is not writeable for MBean
'DefaultDomain:name=InstantDB,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'JDBCUser' is not
writeable for MBean 'DefaultDomain:name=DefaultDS,service=XADataSource'
[Configuration] Detected JMX Bug: Server reports attribute 'TimestampUsed'
is not writeable for MBean
'DefaultDomain:name=DefaultDS,service=XADataSource'
I am lost...... Help :-(
Cor Hofman
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]