IBM Support

PM60417: ORB REQUESTS ON A J2EE CLIENT FAIL WHEN USING HTTPS TUNNELING

Fixes are available

7.0.0.27: WebSphere Application Server V7.0 Fix Pack 27
8.5.0.2: WebSphere Application Server V8.5 Fix Pack 2
8.0.0.6: WebSphere Application Server V8.0 Fix Pack 6
7.0.0.29: WebSphere Application Server V7.0 Fix Pack 29
8.0.0.7: WebSphere Application Server V8.0 Fix Pack 7
8.0.0.8: WebSphere Application Server V8.0 Fix Pack 8
7.0.0.31: WebSphere Application Server V7.0 Fix Pack 31
7.0.0.27: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.33: WebSphere Application Server V7.0 Fix Pack 33
8.0.0.9: WebSphere Application Server V8.0 Fix Pack 9
7.0.0.35: WebSphere Application Server V7.0 Fix Pack 35
8.0.0.10: WebSphere Application Server V8.0 Fix Pack 10
7.0.0.37: WebSphere Application Server V7.0 Fix Pack 37
8.0.0.11: WebSphere Application Server V8.0 Fix Pack 11
7.0.0.39: WebSphere Application Server V7.0 Fix Pack 39
8.0.0.12: WebSphere Application Server V8.0 Fix Pack 12
7.0.0.41: WebSphere Application Server V7.0 Fix Pack 41
8.0.0.13: WebSphere Application Server V8.0 Fix Pack 13
7.0.0.43: WebSphere Application Server V7.0 Fix Pack 43
8.0.0.14: WebSphere Application Server V8.0 Fix Pack 14
7.0.0.45: WebSphere Application Server V7.0 Fix Pack 45
8.0.0.15: WebSphere Application Server V8.0 Fix Pack 15
7.0.0.27: Java SDK 1.6 SR12 Cumulative Fix for WebSphere Application Server
7.0.0.29: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
7.0.0.31: Java SDK 1.6 SR15 Cumulative Fix for WebSphere Application Server
7.0.0.35: Java SDK 1.6 SR16 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.37: Java SDK 1.6 SR16 FP3 Cumulative Fix for WebSphere Application Server
7.0.0.39: Java SDK 1.6 SR16 FP7 Cumulative Fix for WebSphere Application Server
7.0.0.41: Java SDK 1.6 SR16 FP20 Cumulative Fix for WebSphere Application Server
7.0.0.43: Java SDK 1.6 SR16 FP41 Cumulative Fix for WebSphere Application Server

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • HTTP tunnelling of the ORB requests using SSL (HTTPS protocol)
    doesn't work using the full J2EE application client (for
    example, when the application is launched using
    com.ibm.ws.runtime.LaunchClient class).
    
    ------------------------------------------------------------
    Caused by: java.lang.Error: factory already defined
    at
    java.net.URLConnection.setContentHandlerFactory(URLConnection.ja
    va:1181)
    at
    com.ibm.ws.orbimpl.transport.HTTPOutputStream.setUpURL(HTTPOutpu
    tStream.java:224)
    at
    com.ibm.ws.orbimpl.transport.HTTPOutputStream.write(HTTPOutputSt
    ream.java:292)
    at
    com.ibm.rmi.util.buffer.SequentialByteBuffer.flushTo(SequentialB
    yteBuffer.java:434)
    at
    com.ibm.rmi.iiop.IIOPOutputStream.writeTo(IIOPOutputStream.java:
    532)
    at com.ibm.rmi.iiop.Connection.write(Connection.java:2105)
    at com.ibm.rmi.iiop.Connection.send(Connection.java:2147)
    ...
    -------------------------------------------------------------
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server and Application Client 6.1, 7.0,     *
    *                  8.0, and 8.5                                *
    ****************************************************************
    * PROBLEM DESCRIPTION: ORB tunneling with a                    *
    *                      TunnelAgentURLString using the HTTPS    *
    *                      protocol fails with a                   *
    *                      java.lang.Error: factory already        *
    *                      defined                                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The Object Request Broker (ORB) extension tunneling code has a
    call to setContentHandlerFactory() to designate its specialized
    "ijavaorb/iiop" ContentHandler to be used for the reading of
    ORB
    messages within Hypertext Transfer Protocol Secure (HTTPS)
    messages.
    Starting in WebSphere Application Server (and Application
    Client) version 6.1, the runtime startup utilizes the Eclipse
    OSGi (tm) framework.  Within this framework a call is already
    made to setContentHandlerFactory.  This api can only be called
    once within the lifetime of a particular Java Virtual Machine
    (JVM).  Therefore when the ORB component eventually calls this
    api during the tunneling process, a java.lang.Error is thrown
    from the ORB code, causing the tunneling to fail and the
    overall
    ORB transmission to fail, as well as client or server startup.
    The exception stack:
    WSCL0100E: Exception received:
    com.ibm.ws.exception.RuntimeWarning: java.lang.Error: factory
    already defined
    at com.ibm.ws.runtime.component.ContainerHelper.startComponents
    (ContainerHelper.java:567)
    at com.ibm.ws.runtime.component.ContainerImpl.startComponents
    (ContainerImpl.java:627)
    at com.ibm.ws.client.applicationclient.ClientComponentInitImpl.
    start(ClientComponentInitImpl.java:77)
    at com.ibm.ws.client.applicationclient.ClientContainer.
    startComponents(ClientContainer.java:1400)
    at com.ibm.ws.client.applicationclient.ClientContainer.init
    (ClientContainer.java:279)
    at com.ibm.ws.client.applicationclient.launchClient.
    createContainerAndLaunchApp(launchClient.java:747)
    at com.ibm.ws.client.applicationclient.launchClient.main
    (launchClient.java:493)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
    (NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at com.ibm.wsspi.bootstrap.WSLauncher.launchMain
    (WSLauncher.java:213)
    ...
    Caused by: java.lang.Error: factory already defined
    at java.net.URLConnection.setContentHandlerFactory
    (URLConnection.java:1194)
    at com.ibm.ws.orbimpl.transport.HTTPOutputStream.setUpURL
    (HTTPOutputStream.java:224)
    at com.ibm.ws.orbimpl.transport.HTTPOutputStream.write
    (HTTPOutputStream.java:292)
    at com.ibm.rmi.util.buffer.SequentialByteBuffer.flushTo
    (SequentialByteBuffer.java:397)
    at com.ibm.rmi.iiop.IIOPOutputStream.writeTo
    (IIOPOutputStream.java:555)
    at com.ibm.rmi.iiop.Connection.write(Connection.java:2177)
    at com.ibm.rmi.iiop.Connection.send(Connection.java:2219)
    at com.ibm.rmi.iiop.Connection._locate(Connection.java:477)
    at com.ibm.rmi.iiop.Connection.locate(Connection.java:453)
    at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:229)
    ...
    This is only an issue when using ORB tunneling over HTTPS.  It
    does not fail for HTTP tunneling.
    

Problem conclusion

  • Instead of using the setContentHandlerFactory() api, the ORB
    now registers its "ijavaorb/iiop" HTTPS ContentHandler by
    means of the OSGi BundleContext.registerService api.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 7.0.0.27, 8.0.0.5 and 8.5.0.1.  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

    PM60417

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-03-14

  • Closed date

    2012-08-31

  • Last modified date

    2012-08-31

  • 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

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R700 PSY

       UP

  • R800 PSY

       UP

  • R850 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