IBM Support

IJ03328: JAVA PLUGIN AND WEBSTART THROW A JAVA.LANG.STACKOVERFLOWERROR EXCEPTION WITH IBM JAVA 1.8 ON UNIX PLATFORM

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message:
    java.lang.StackOverflowError,("java.net.SocketPermission"
    "<hostname>:<portnumber>" "connect,resolve")
    .
    Stack Trace: network: Connecting http://<hostname>:<portnumber>/
    with proxy=DIRECT
    java.lang.StackOverflowError
    at
    java.net.URLStreamHandler.toExternalForm(URLStreamHandler.java:5
    30)
    ................................................................
    .....
    java.awt.EventDispatchThread.run(EventDispatchThread.java:93)
    Caused by: java.security.AccessControlException: Access denied
    ("java.net.SocketPermission" "<hostname>:<portnumber>"
    "connect,resolve")
    ................................................................
    .....
    Because of recursion, the failing Java stack contains a stack
    fragment which is repeated many times-
    <<=== start of the repeated section
    at
    sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpUR
    LConnection.java:1151)
    at
    sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnect
    ion.java:1034)
    at
    sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnect
    ion.java:1032)
    at
    java.security.AccessController.doPrivileged(AccessController.jav
    a:686)
    at
    java.security.AccessController.doPrivilegedWithCombiner(AccessCo
    ntroller.java:742)
    at sun.net.www.protocol.http.HttpURLConnection.
    (HttpURLConnection.java:1031)
    <<=== end of the repeated section
    at com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:40)
    at
    sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Http
    URLConnection.java:1561)
    <<=== start of the repeated section
    at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
    at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
    at
    sun.plugin2.applet.SecurityManagerHelper.checkConnectHelper(Unkn
    own Source)
    at
    sun.plugin2.applet.AWTAppletSecurityManager.checkConnect(Unknown
    Source)
    at
    sun.net.www.protocol.http.HttpURLConnection.checkURLFile(HttpURL
    Connection.java:726)
    (http://www.protocol.http.HttpURLConnection.checkURLFile
        %28HttpURLConnection.java:726%29)
    at
    sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpUR
    LConnection.java:559)
    (http://www.protocol.http.HttpURLConnection.writeRequests
       %28HttpURLConnection.java:559%29)
    at
    sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Http
    URLConnection.java:1549)
    (http://www.protocol.http.HttpURLConnection.getInputStream0%28Ht
    tpURLConnection.java:1549%29)
    at
    sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLCo
    nnection.java:102)
    (http://www.protocol.http.HttpURLConnection.access
    $200%28HttpURLConnection.java:102%29)
    at
    sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnect
    ion.java:1447) (http://www.protocol.http.HttpURLConnection$9.run
                 %28HttpURLConnection.java:1447%29)
    at
    sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnect
    ion.java:1445) (http://www.protocol.http.HttpURLConnection$9.run
                 %28HttpURLConnection.java:1445%29)
    at
    java.security.AccessController.doPrivileged(AccessController.jav
    a:686)
    at
    java.security.AccessController.doPrivilegedWithCombiner(AccessCo
    ntroller.java:742)
    at
    sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpU
    RLConnection.java:1477)
    at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
    at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
    at
    sun.plugin2.applet.SecurityManagerHelper.checkConnectHelper(Unkn
    own Source)
    at
    sun.plugin2.applet.AWTAppletSecurityManager.checkConnect(Unknown
    Source)
    <<=== end of the repeated section
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:572)
    at com.ibm.net.ssl.www2.protocol.https.c.<init>(c.java:212)
    .
    

Local fix

Problem summary

  • A java.lang.StackOverflowError is thrown in java 8 when java is
    launched using plugin or WebStart because IBM Java Security is
    not enabled to handle the socket permission in these cases.
    

Problem conclusion

  • IBM Java Security has been enabled to handle the Socket
    permission when java is launched using plugin or WebStart.
    .
    This APAR will be fixed in the following Java Releases:
       8    SR5 FP11  (8.0.5.11)
    .
    Contact your IBM Product's Service Team for these Service
    Refreshes and Fix Packs.
    For those running stand-alone, information about the available
    Service Refreshes and Fix Packs can be found at:
               https://www.ibm.com/developerworks/java/jdk/
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ03328

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-01-16

  • Closed date

    2018-02-19

  • Last modified date

    2018-02-19

  • 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

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
21 February 2022