This discussion is archived
5 Replies Latest reply: Mar 18, 2009 5:37 AM by 807574 RSS

Java 6 Update 10 breaks Netlet

807574 Newbie
Currently Being Moderated
Running JES 05Q4 last portal/srap before Portal 7.

Java 6 Update 10 with the "defaulted to on" Next. Gen Plug-In throws this:

gateway port : 443
Java version : 1.6.0_10
Proxy type : null
java.lang.NullPointerException
     at NL37.m(NL37)
     at NL37.<init>(NL37)
     at SServer.n(SServer)
     at SServer.start(SServer)
     at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException

Idea's other than disabling the plugin.
  • 1. Re: Java 6 Update 10 breaks Netlet
    807574 Newbie
    Currently Being Moderated
    I have just discovered the same today.

    Just opened a case with Sun Microsystems. From what I can tell, if the netlet can't read the browser's proxy settings, it fails. JAVA 1.6.0_10 works find with FireFox but not IE.

    I will keep the board updated,
  • 2. Re: Java 6 Update 10 breaks Netlet
    807574 Newbie
    Currently Being Moderated
    With Java 6 update 10 & 11, I am seeing the netlet fail with Portal 7.0 and Firefox on three different clients. On a fourth client, Netscape 7.2 and Seamonkey both work with Java 1.6u11. We have the netlet disabled for IE, so it can't be tested. I cannot find any information on the problem and will be opening a case with Sun support.

    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4

    Java Plug-in 1.6.0_11
    Using JRE version 1.6.0_11 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Administrator
    ----------------------------------------------------
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    ----------------------------------------------------


    NetletEnvDetect init
    NetletEnvDetect configURL : https://####/portal/NetletConfig
    gateway protocol : https
    gateway host : ###
    gateway port : 443
    ClientConfig targetURL https://####/portal/NetletConfig
    Netlet config: https://####/portal/NetletConfig?func=loadResources
    Java version : 1.6.0_11
    Proxy type : null
    java.lang.NullPointerException
    at com.sun.portal.netlet.client.applet.NL32.l(NL32)
    at com.sun.portal.netlet.client.applet.NL32.<init>(NL32)
    at com.sun.portal.netlet.client.applet.NL52.<init>(NL52)
    at com.sun.portal.netlet.client.applet.NetletApplet.b(NetletApplet)
    at com.sun.portal.netlet.client.applet.NetletApplet.h(NetletApplet)
    at com.sun.portal.netlet.client.applet.NetletApplet.start(NetletApplet)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.NullPointerException
  • 3. Re: Java 6 Update 10 breaks Netlet
    807574 Newbie
    Currently Being Moderated
    From Sun Support. It solved my issue.

    Suggested Fix:
    Install latest JRE version 1.6.0_11 and ensure it works fine.
    ------------
    C:\Program Files\Java\jre6\bin>java -version
    java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)
    ------------

    Take the backup of firefox plugins (C:\Program Files\Mozilla Firefox\plugins) directory that
    contains npnul32.dll & npdeploytk.dll
    Example: backup contents copied to C:\Program Files\Mozilla Firefox\plugins\orig

    Goto JRE6 bin (say C:\Program Files\Java\jre6\bin) directory and copy the following np*.dll files
    to firefox plugins (C:\Program Files\Mozilla Firefox\plugins) directory:
    -------------
    npdeploytk.dll
    npjpi160_11.dll
    npoji610.dll
    npt.dll
    -------------

    Then copy the following np*.dll files from JRE6 new_plugin
    (say C:\Program Files\Java\jre6\bin\new_plugin) directory
    to firefox plugins (C:\Program Files\Mozilla Firefox\plugins) directory:
    --------------
    npdeploytk.dll
    npjp2.dll
    --------------


    Finally ensure you've copied the following files (np*.dll files) from both JRE6 bin and
    bin\new_plugin directory to firefox plugins directory :
    ----------------
    npdeploytk.dll
    npjp2.dll
    npjpi160_11.dll
    npnul32.dll
    npoji610.dll
    npt.dll
    ----------------

    The above specified steps are derived from the following link:
    Source: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # Workaround if Java is not detected: On most systems, the Java plugin files are detected via plugin scanning if the required registry entry exists. However, in some cases, Java is not detected unless the Java np*.dll plugin files are copied from the Java application folder bin folder.
    Note: The following steps should be executed only as a last resort, as each time Java is updated the outdated plugin files must be removed and the newer versions copied over. For more information, see these notes.

    1. Copy the np*.dll files for your version of the JRE from the following location:
    C:\Program Files\Java\j2re<version>\bin\
    2. Paste them into your Firefox plugins folder, which is typically in the following location:
    C:\Program Files\Mozilla Firefox\plugins

    3. Important: If copying the Java plugin files to the browser plugins folder does not activate Java after restarting Firefox, remove them from the folder.
  • 4. Re: Java 6 Update 10 breaks Netlet
    807574 Newbie
    Currently Being Moderated
    Answer I got from SUN:

    Please can you test disabling "next-gen Java plugin " and check if your netlet works. It is a new feature in java 1.6 10.

    Here are Additional Details and Instructions to Disable the plugin:

    On the Windows platform, the new plug-in is automatically enabled for running applets in the Internet Explorer and Firefox 3 web browsers during installation of the JRE. No user intervention is necessary.

    For the time being, both the classic and new plug-ins are shipped side-by-side. In order to provide a fallback for backward compatibility purposes, a switch has been provided in the Java Control Panel to toggle which plug-in is used for applet execution. To toggle between them, run the Java Control Panel, go to the Advanced tab, Java Plug-in node, and toggle the checkbox labeled 'Enable the next-generation Java Plug-in'.
  • 5. Re: Java 6 Update 10 breaks Netlet
    807574 Newbie
    Currently Being Moderated
    I would suggest these are workarounds, not solutions. This doesn't help for users of Chrome (even tho yes I assume it's not considered a recommended browser) as you cannot disable the 2n'd gen plug-in. Any better responses out there.

    Z