should work, testbeans do test hashtables of entity references

marc


|-----Original Message-----
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Ralf Neeb
|Sent: Thursday, February 08, 2001 3:46 PM
|To: [EMAIL PROTECTED]
|Subject: [jBoss-Dev] CMP and Hashtable?!? Is it possible?!?
|
|
|hello list,
|
|i'm new on the list and think i've found a bug
|(correct me if i'm wrong).
|
|I've an entity bean with two CMP-fields.
|The first field is a string and the pk.
|The second field is a Hashtable.
|
|And now I can deploy the entity bean. All works fine
|until the client tries to create a new instance.
|
|The client will become the reference for the home-
|interface, but home.create(String pk) throws following
|exceptions. I've thought all serializable objects can be
|a cmp-field.
|
|thx in advance for help,
|
|Ralf
|
|P.S.: Tested versions are jBoss 2.0 and the daily snapshot from February,
|8th
|
|----- snipp, exceptions ---------
|
|client-side:
|
|java.rmi.ServerException: RemoteException occurred in server thread;
|nested exception is:
|        javax.transaction.TransactionRolledbackException: id may not be
|null; nested exception is:
|        java.lang.Error: id may not be null
|
|server-side:
|
|[Entity] TRANSACTION ROLLBACK EXCEPTION:id may not be null; nested 
|exception
|is:
|
|        java.lang.Error: id may not be null
|[Entity] java.lang.Error: id may not be null
|[Entity]        at org.jboss.ejb.CacheKey.<init>(CacheKey.java:51)
|[Entity]        at
|org.jboss.ejb.plugins.EntityInstanceCache.createCacheKey(Enti
|tyInstanceCache.java:45)
|[Entity]        at
|org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPP
|ersistenceManager.java:162)
|[Entity]        at
|org.jboss.ejb.EntityContainer.createHome(EntityContainer.java
|:441)
|[Entity]        at java.lang.reflect.Method.invoke(Native Method)
|[Entity]        at
|org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome
|(EntityContainer.java:639)
|[Entity]        at
|org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke
|Home(EntitySynchronizationInterceptor.java:160)
|[Entity]        at
|org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(En
|tityInstanceInterceptor.java:86)
|[Entity]        at
|org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept
|orCMT.java:135)
|[Entity]        at
|org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Tx
|InterceptorCMT.java:263)
|[Entity]        at
|org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxIntercept
|orCMT.java:86)
|[Entity]        at
|org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(Security
|Interceptor.java:126)
|[Entity]        at
|org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogIntercepto
|r.java:106)
|[Entity]        at
|org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java
|:316)
|[Entity]        at
|org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke
|Home(JRMPContainerInvoker.java:143)
|[Entity]        at java.lang.reflect.Method.invoke(Native Method)
|[Entity]        at
|sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
|a:241)
|[Entity]        at sun.rmi.transport.Transport$1.run(Transport.java:142)
|[Entity]        at java.security.AccessController.doPrivileged(Native
|Method)
|[Entity]        at
|sun.rmi.transport.Transport.serviceCall(Transport.java:139)
|[Entity]        at
|sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
|t.java:443)
|[Entity]        at
|sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
|ransport.java:643)
|[Entity]        at java.lang.Thread.run(Thread.java:484)
|
|--
|IT Neeb GmbH - "reduce the complexity"
|
|

Reply via email to