0 Replies Latest reply on Feb 8, 2002 11:04 AM by isojboss

    Problem in fetching cmr field in jboss3.0

    isojboss

      Hello,

      We are using JBoss3.0 Alpha from Nov. 21, 2001. we just deployed two simple entity beans with one to one bidirectional relationship, we are able to set the cmr field successfully, however we got an error on getting the cmr field value. Following is the exception

      [09:56:22,114,LogInterceptor] TransactionRolledbackException, causedBy:
      javax.ejb.EJBException: Internal error setting instance field id:
      java.lang.IllegalArgumentException:
      object is not an instance of declaring class
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setPrimaryKeyValue(JDBCAb

      stractCMPFieldBridge.java:142)
      at
      org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.load(JDBCCMRFieldBridge.java:654)

      at
      org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.getValue(JDBCCMRFieldBridge.java:

      388)
      at
      org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocati

      onHandler.java:111)
      at
      org.jboss.proxy.ProxyCompiler$Runtime.invoke(ProxyCompiler.java:89)



      We also tried one to many relation. We got the same exception when we tried to get the single object through cmr field, however, getting collection was not a problem.
      Can someone help us on this?


      Thanks,

      Iso