9 Replies Latest reply on Jan 31, 2005 8:23 PM by Grayson Pierce

    jboss-5.0.0alpha composite keys

    Grayson Pierce Newbie

      Hello,

      I'm having trouble with composite keys. I'm trying the composite key example in the with @EmbeddedId and it deploys just fine but when you do ant run I get the following:

       [java] log4j:WARN No appenders could be found for logger (org.jboss.remotin
      g.Client).
       [java] log4j:WARN Please initialize the log4j system properly.
       [java] Exception in thread "main" javax.transaction.TransactionRolledbackEx
      ception: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=110
      6337186340IT/14, BranchQual=, localId=14] status=STATUS_NO_TRANSACTION; - nested
       throwable: (org.hibernate.exception.ConstraintViolationException: Could not exe
      cute JDBC batch update)
       [java] at org.jboss.aspects.tx.TxSupport.endTransaction(TxSupport.java:
      220)
       [java] at org.jboss.aspects.tx.TxSupport.invokeInOurTx(TxSupport.java:1
      53)
       [java] at org.jboss.aspects.tx.TxSupport$Required.serverInvoke(TxSuppor
      t.java:438)
       [java] at org.jboss.aspects.tx.TxInterceptor.internalInvoke(TxIntercept
      or.java:112)
       [java] at org.jboss.aspects.tx.TxInterceptor.invoke(TxInterceptor.java:
      60)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
      ocation.java:66)
       [java] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropag
      ationInterceptor.java:62)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
      ocation.java:66)
       [java] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(
      StatelessInstanceInterceptor.java:36)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
      ocation.java:66)
       [java] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(A
      uthenticationInterceptor.java:77)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
      ocation.java:66)
       [java] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(Sta
      telessContainer.java:148)
       [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:102)
       [java] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invok
      e(AOPRemotingInvocationHandler.java:74)
       [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:29
      3)
       [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:16
      9)
       [java] at org.jboss.remoting.transport.socket.ServerThread.processInvoc
      ation(ServerThread.java:255)
       [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(Server
      Thread.java:304)
       [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerTh
      read.java:147)
       [java] Java Result: 1