IBM Support

PM65856: UNABLE TO USE USERTRANSACTION AS ARGUMENT TO REMOTE METHOD

Fixes are available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The following IllegalStateException may be thrown when
    UserTransaction is used as an argument to a remote method...
    
    java.lang.IllegalStateException: UserTransaction accessed
    outside EJB method
    at
    com.ibm.ejs.container.UserTransactionWrapper.readObject(UserTran
    sactionWrapper.java:592)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:60)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at
    com.ibm.rmi.io.IIOPInputStream.invokeObjectReader(IIOPInputStrea
    m.java:1809)
    at
    com.ibm.rmi.io.IIOPInputStream.inputObjectUsingClassDesc(IIOPInp
    utStream.java:1529)
    at
    com.ibm.rmi.io.IIOPInputStream.inputObjectClassDesc(IIOPInputStr
    eam.java:1504)
    at
    com.ibm.rmi.io.IIOPInputStream.readSerializable(IIOPInputStream.
    java:1178)
    at
    com.ibm.rmi.io.IIOPInputStream.simpleReadObjectInternal(IIOPInpu
    tStream.java:460)
    at
    com.ibm.rmi.io.IIOPInputStream.simpleReadObjectLoop(IIOPInputStr
    eam.java:545)
    at
    com.ibm.rmi.io.IIOPInputStream.simpleReadObject(IIOPInputStream.
    java:497)
    at
    com.ibm.rmi.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:
    210)
    at com.ibm.rmi.iiop.CDRReader.read_value(CDRReader.java:1578)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server V7.0 users *
    *                  of remote Enterprise Java Beans (EJBs)      *
    ****************************************************************
    * PROBLEM DESCRIPTION: UserTransaction cannot be passed as     *
    *                      an argument to an in-process remote     *
    *                      method if the argument size is large.   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When a remote method is called on an EJB that is running in
    the same process, the ORB optimizes the marshalling and
    demarshalling of arguments by using a temporary byte array.
    If the arguments are large and the byte array would grow too
    large, the ORB uses a secondary thread for demarshalling.  If
    the EJB container UserTransaction object is demarshalled on
    the secondary thread, it is unable to find thread data from
    the main thread, and it fails.
    

Problem conclusion

  • The EJB container UserTransaction object no longer searches
    for thread data while being demarshalled.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 7.0.0.25.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM65856

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-05-30

  • Closed date

    2012-06-12

  • Last modified date

    2012-06-12

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 October 2021