0 Replies Latest reply on Jan 28, 2004 10:58 PM by rchristy63

    Trouble with one-to-many relationships

    rchristy63

       

      "rchristy63" wrote:
      We have a server running on the 3.2.2 release and as well as the 3.2.3 release for several months now successfully. A few days, we downloaded 3.2.4 release from the cvs head and had some problems with this server. If my query finds only one entity bean, than everything works fine. But if my query returns a group of entity beans, I see the following exception from class org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge. If anyone could explain what could cause this exception, it would be greatly appreciated.

      Thanks in advance,

      Rich


      22:02:08,204 ERROR [LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.util.Map com.rcm.securitiess
      ervice.ejbinterfaces.domain.Security.getSecurityProperties(), causedBy:
      javax.ejb.NoSuchObjectLocalException: New value [2850441] of a foreign key field securityID changed the value of a primary key field
      securityID[null]
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:142)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:89)
      at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:54)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:147)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
      at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:489)
      at org.jboss.ejb.Container.invoke(Container.java:700)
      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
      at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
      at $Proxy153.getSecurityProperties(Unknown Source)