3 Replies Latest reply on Mar 27, 2002 4:03 PM by oravecz

    TransactionRolledbackException Embedded Exception  null; nes

      hi,

      i get this error when i try to connect to database from a bean called by a servlet.
      pls. help..

      javax.transaction.TransactionRolledbackException: null
      Embedded Exception
      null; nested exception is:
      javax.ejb.EJBException: null
      Embedded Exception
      null
      javax.ejb.EJBException: null
      Embedded Exception
      null
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:553)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:82)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:410)
      at java.lang.reflect.Method.invoke(Native Method)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      at sun.rmi.transport.Transport$1.run(Transport.java:152)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
      at java.lang.Thread.run(Thread.java:484)
      java.lang.NullPointerException

        • 1. Re: TransactionRolledbackException Embedded Exception  null;
          oravecz

          It appears that your bean class is throwing a NullPointerException. It appears, that this exception is erroneously getting wrapped many times by jBoss. Look about halfway through the trace and you should see the line number of your NullPointerException.

          • 2. Re: TransactionRolledbackException Embedded Exception  null;

            hi,

            i went through the code and found that the NullPointerException came when the Servlet calls the Bean method.

            can u tell me what is wrong and why this error pops up ?.

            thanks.

            java.lang.NullPointerException
            at beanprg.generateRegid(RegIDGenBean.java:43)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:542)
            at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:82)


            • 3. Re: TransactionRolledbackException Embedded Exception  null;
              oravecz

              You want to know why your code throws a NPE at line 43 of your RegIDGenBean class? I am assuming it is your class...check the code...