0 Replies Latest reply on Jan 20, 2003 10:28 PM by tissues

    help! CMP2.0 One to Many Error

    tissues Newbie

      Dear Sir,

      I had checked gangsters is not null, but when run gangsters.add(gangster), it will should follow message.

      What's wrong?
      Can any body kindly help?

      Many thanks,

      Newbie user of Jboss.
      =====================================================
      11:32:58,153 INFO [STDOUT] Creating Organization 123 Great JBOSS
      11:32:58,520 INFO [STDOUT] Creating Gangster 345 Test Tissues
      11:32:59,108 INFO [STDOUT] Add gangster
      11:32:59,146 INFO [STDOUT] gangsters is not null
      11:32:59,147 INFO [STDOUT] 0
      11:32:59,150 ERROR [STDERR] java.lang.NullPointerException
      11:32:59,152 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet.add(RelationSet.java:86)
      11:32:59,154 ERROR [STDERR] at OrganizationBean.addGangster(OrganizationBean.java:22)
      11:32:59,176 ERROR [STDERR] at java.lang.reflect.Method.invoke(Native Method)
      11:32:59,182 ERROR [STDERR] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1194)
      11:32:59,187 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:95)
      11:32:59,192 ERROR [STDERR] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:297)
      11:32:59,202 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      11:32:59,207 ERROR [STDERR] at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:90)
      11:32:59,212 ERROR [STDERR] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:163)
      11:32:59,217 ERROR [STDERR] at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107)
      11:32:59,226 ERROR [STDERR] at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)
      11:32:59,231 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
      11:32:59,236 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
      11:32:59,242 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
      11:32:59,247 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
      11:32:59,252 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
      11:32:59,257 ERROR [STDERR] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
      11:32:59,263 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:712)
      11:32:59,268 ERROR [STDERR] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
      11:32:59,285 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      11:32:59,296 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)
      11:32:59,314 ERROR [STDERR] at java.lang.reflect.Method.invoke(Native Method)
      11:32:59,324 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:242)
      11:32:59,327 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Transport.java:155)
      11:32:59,345 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
      11:32:59,355 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Transport.java:152)
      11:32:59,364 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:462)
      11:32:59,367 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:662)
      11:32:59,383 ERROR [STDERR] at java.lang.Thread.run(Thread.java:498)