1 Reply Latest reply on Nov 30, 2001 6:27 AM by Marcus Brito

    at wits end with jboss: java.lang.Error

    Joe G Newbie

      Been using jboss for 6 months now with very littl problems. For some reason, however, my trusty reliable bean server has decided to hit me with some bad mojo. I've seen others in the forum post similar problems but no "gurus" have taken the challenge to explain the following.
      I have a typical CMP entity bean. It has three persisted String fields (one of which is the PK), the appropriate setter and getter methods as well as the default findBy methods. For some reason I am unable to have a simple client create a new instance of the bean. I can successfully lookup the bean's home interface but when I call the create method I get the following stack trace:


      [GPIOT] TRANSACTION ROLLBACK EXCEPTION:id may not be null; nested exception is:
      java.lang.Error: id may not be null
      [GPIOT] java.lang.Error: id may not be null
      [GPIOT] at org.jboss.ejb.CacheKey.(CacheKey.java:67)
      [GPIOT] at org.jboss.ejb.plugins.EntityInstanceCache.createCacheKey(EntityInstanceCache.java:48)
      [GPIOT] at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:237)
      [GPIOT] at org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:616)
      [GPIOT] at java.lang.reflect.Method.invoke(Native Method)
      [GPIOT] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:843)
      [GPIOT] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:231)
      [GPIOT] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:154)
      [GPIOT] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:108)
      [GPIOT] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
      [GPIOT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:307)
      [GPIOT] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
      [GPIOT] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:103)
      [GPIOT] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
      [GPIOT] at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:420)
      [GPIOT] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:370)
      [GPIOT] at java.lang.reflect.Method.invoke(Native Method)
      [GPIOT] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      [GPIOT] at sun.rmi.transport.Transport$1.run(Transport.java:152)
      [GPIOT] at java.security.AccessController.doPrivileged(Native Method)
      [GPIOT] at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      [GPIOT] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
      [GPIOT] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
      [GPIOT] at java.lang.Thread.run(Thread.java:484)

      I'm about to throw the computer off the third floor here so any support would be greatly appreciated.

      Thanks, Joe