Discussions

EJB design: javax.transaction.TransactionRolledbackException

  1. Hi,

    I have a table with some fields which got inserted at first time but when try to update it it returns me the following error. But the main thing is that the same code works on NT based Application Server while the same code give error or Lnux based Application Server.

    TRANSACTION_ROLLEDBACK 0x0 No; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK: javax.transaction.TransactionRolledbackException: ; nested exception is:
    java.lang.NullPointerException minor code: 0 completed: No minor code: 0 completed: No
    org.omg.CORBA.TRANSACTION_ROLLEDBACK: javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBACK 0x0 No; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK: javax.transaction.TransactionRolledbackException: ; nested exception is:
    java.lang.NullPointerException minor code: 0 completed: No minor code: 0 completed: No
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at com.ibm.CORBA.iiop.UtilDelegateImpl.copyObjectByProxy(UtilDelegateImpl.java:1164)
    at com.ibm.CORBA.iiop.UtilDelegateImpl.copyObject(UtilDelegateImpl.java:781)
    at javax.rmi.CORBA.Util.copyObject(Util.java:327)
    at ggs.erm.beans.travel.travelrequestd._TravelRequestSession_Stub.findRequest(_TravelRequestSession_Stub.java:370)
    at ggs.erm.servlet.travel.TravelRequestS.performTask(TravelRequestS.java:925)
    at ggs.erm.servlet.travel.TravelRequestS.doGet(TravelRequestS.java:41)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
  2. Hi, I'm also having the same exception, but
    I'm working with AIX 5, WebSphere 5.1.1.2 and it happens sometimes (not always) while i'm calling a method of a Session Bean from another Session Bean... I looked up in the IBM site and I found this BUG PQ99126

    http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg1PQ99126

    Do you think that it is related?

    I don't know what to do, because I'm sure that my java component does work ok until suddenly WAS throws this weird exception....

    Thanks abroad.

    Ing. Mariano Testasecca
  3. This error comes when there is a problem with your DB. i.e. deadlock, long running queries etc
  4. change implementation class name[ Go to top ]

    try changing your implementation class name in JDBC Provider. i changed to oracle.jdbc.pool.OracleConnectionPoolDataSource
  5. All RuntimeExceptions will get autoRolled back in CMT...
    ; nested exception is:
    java.lang.NullPointerException minor code: 0 completed: No minor code: 0 completed: No
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at com.ibm.CORBA.iiop.UtilDelegateImpl.copyObjectByProxy(UtilDelegateImpl.java:1164)