1 Reply Latest reply on Aug 4, 2005 9:28 AM by Daniel Wakounig

    TransactionRolledbackLocalException in method

    Daniel Wakounig Newbie

      I have a problem with chaning my ejbs from remote interfaces to local interfaces.
      I'm running jboss server 3.2.6 and my application works as long as i am using remote interfaces. As soon as I change to local interfaces I get the exception
      TransactionRolledbackLocalException in method: null, causedBy:
      javax.ejb.EJBException: Data contains multiple values, but this cmr field is single valued
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.load(JDBCCMRFieldBridge.java:1308)

      Any ideas how to solve this problem?

        • 1. Re: TransactionRolledbackLocalException in method
          Daniel Wakounig Newbie

          after posting the question above I found the solution to my problem.
          The problem based on a wrong multiplicity-value.
          I used 'one' although I needed 'Many'.
          In my application an Instance of X is related to an instance of Y. So I though X would have always exactly one instance assigned. Thereby I forgot, that a instance of Y may be assigned to several instances of X.
          Because of Transaction security the system claimed an exception, because of an multiple 'assignment '.

          Thanks to all thathas thaught about a solution to my problem.