Hi Simon,
Thanks for your reaction.
Yes I am using JBoss 2.0 FINAL.
I am glad to hear that this bug has been fixed,
but what keeps bugging me, why didn't I get
the exception when I ran it with Oracle?
In other words can you provide me some background to
the why of this bug?
I just studied the source code and the impression
I get is that this Exception implies that I return
a null key from the beans ejbCreate(). The weird thing
is, that I have the impression that this ejbCreate() is
not actually executed. That is I have not been able to
prove (yet) that the ejbCreate code of that bean has been
executed.
So where do I go wrong?
Regards,
Cor Hofman
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Bordet, Simone
Sent: Thursday, January 18, 2001 11:37
To: 'jBoss'
Subject: RE: [jBoss-User] java.lang.Error id may not be null
Are you using JBoss 2.0 ?
If so, this bug has been fixed in the current CVS.
Simon
> -----Original Message-----
> From: Cor Hofman [mailto:[EMAIL PROTECTED]]
> Sent: giovedì 18 gennaio 2001 10:42
> To: JBoss User list
> Subject: [jBoss-User] java.lang.Error id may not be null
>
>
> 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(Entit
> yInstanceCache
> .java:45)
> [Country] at
> org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPe
> rsistenceManag
> 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.invokeH
> ome(EntitySync
> hronizationInterceptor.java:160)
> [Country] at
> org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(Ent
> ityInstanceInt
> erceptor.java:86)
> [Country] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercepto
> rCMT.java:135)
> [Country] at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI
> nterceptorCMT.
> java:263)
> [Country] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxIntercepto
> rCMT.java:86)
> [Country] at
> org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityI
> nterceptor.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.invokeH
> ome(JRMPContai
> nerInvoker.java:200)
> [Country] at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomePro
> xy.java:198)
> [Country] at $Proxy5.create(Unknown Source)
> [Country] at
> org.companion.session.CountrySessionBean.create(CountrySession
> Bean.java:60)
> [Country] at java.lang.reflect.Method.invoke(Native Method)
> [Country] at
> org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.i
> nvoke(Stateles
> sSessionContainer.java:472)
> [Country] at
> org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invo
> ke(StatelessSe
> ssionInstanceInterceptor.java:87)
> [Country] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercepto
> rCMT.java:133)
> [Country] at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI
> nterceptorCMT.
> java:263)
> [Country] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT
> .java:99)
> [Country] at
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInter
> ceptor.java:14
> 4)
> [Country] at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
> [Country] at
> org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessio
> nContainer.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(TCPTr
> ansport.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(Entit
> yInstanceCache
> .java:45)
> [CountrySession] at
> org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPe
> rsistenceManag
> 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.invokeH
> ome(EntitySync
> hronizationInterceptor.java:160)
> [CountrySession] at
> org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(Ent
> ityInstanceInt
> erceptor.java:86)
> [CountrySession] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercepto
> rCMT.java:135)
> [CountrySession] at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI
> nterceptorCMT.
> java:263)
> [CountrySession] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxIntercepto
> rCMT.java:86)
> [CountrySession] at
> org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityI
> nterceptor.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.invokeH
> ome(JRMPContai
> nerInvoker.java:200)
> [CountrySession] at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomePro
> xy.java:198)
> [CountrySession] at $Proxy5.create(Unknown Source)
> [CountrySession] at
> org.companion.session.CountrySessionBean.create(CountrySession
> Bean.java:60)
> [CountrySession] at
> java.lang.reflect.Method.invoke(Native Method)
> [CountrySession] at
> org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.i
> nvoke(Stateles
> sSessionContainer.java:472)
> [CountrySession] at
> org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invo
> ke(StatelessSe
> ssionInstanceInterceptor.java:87)
> [CountrySession] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercepto
> rCMT.java:133)
> [CountrySession] at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI
> nterceptorCMT.
> java:263)
> [CountrySession] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT
> .java:99)
> [CountrySession] at
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInter
> ceptor.java:14
> 4)
> [CountrySession] at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
> [CountrySession] at
> org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessio
> nContainer.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(TCPTr
> ansport.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]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]