JDK-8076042 : Getting sometime a NullPointerException when launching a JNLP
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 8u40
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_7
  • CPU: x86_64
  • Submitted: 2015-03-11
  • Updated: 2015-08-05
  • Resolved: 2015-03-26
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 7 Ultimate 64bit
Microsoft Windows [Version 6.1.7601]

A DESCRIPTION OF THE PROBLEM :
Sorry that I have to open a new bug-report but we having currently the same problem like described in this links
https://bugs.openjdk.java.net/browse/JDK-8064358
https://community.oracle.com/thread/3682142

We are getting sometimes NullPointerException when we try to start our application.
All our JARs are signed and our main-jar contains an jnlp-Template.

In most cases the start works as expected but sometimes we get the mentioned NullPointerException.

java.lang.NullPointerException
at com.sun.javaws.JnlpxArgs.execProgram(Unknown Source)
at com.sun.javaws.Launcher.relaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareResources(Unknown Source)
at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

The web-start error is always:
Cannot use secure launcher with main class: XXX
where XXX is a random text from the jnlp (property, attribute etc.).

The behavior is very strange and seems to be only an issue if the jnlp was downloaded.
I'm working an a windows 7 machine with google chrome and always have to download the jnlp.
After I've downloaded the jnlp I start the local file.

In Internet Explorer I have the option to run the jnlp directly (nut sure if a temp-file is created or javaws is called with the url).
But it seems that starting from IE the NullPointerException does not occur.


Maybe you can send me the source of deploy.jar or deploy.jar with debug-informations to create a stacktrace with linenumbers.
In my opinion there is a bug on getting the class-name of the main-class.


REPRODUCIBILITY :
This bug can be reproduced often.


Comments
Use attached zip file and edit the fleet.jnlp file to refer the path per your file location. Followed the instructions as provided by the submitter and could not reproduce this with JRE 8u31 and 8u40. **********************************************************************
26-03-2015

Received following response from the submitter: ******************************************************************* Hi ......................, it seems that I could finally build a small example based on the Webstart DynamicTreeDemo. Locally I can reproduce the NullPointerException. call javaws -clearcache Extract dist.zip your desktop/dist update fleet.jnlp with the correct codebase open index.html downoad fleet.jnlp to your desktop (named it always fleet.jnlp) run it Locally I get the java.lang.NullPointerException at com.sun.javaws.JnlpxArgs.execProgram(Unknown Source) at com.sun.javaws.Launcher.relaunch(Unknown Source) at com.sun.javaws.Launcher.prepareResources(Unknown Source) at com.sun.javaws.Launcher.prepareAllResources(Unknown Source) at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source) at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source) at com.sun.javaws.Launcher.launch(Unknown Source) at com.sun.javaws.Main.launchApp(Unknown Source) at com.sun.javaws.Main.continueInSecureThread(Unknown Source) at com.sun.javaws.Main.access$000(Unknown Source) at com.sun.javaws.Main$1.run(Unknown Source) at java.lang.Thread.run(Unknown Source) with this console output CacheEntry[file:////C:/Users/mkoch/Desktop/dist/DynamicTreeDemo.jar]: updateAvailable=false,lastModified=Wed Mar 18 12:54:01 CET 2015,length=22783 Cannot use secure launcher with main class: 8alue #### Java Web Start Error: #### null ************************************************************************************************************************************
26-03-2015

Sent an email to the submitter requesting more information: ***************************************************************************************** On 3/16/2015 3:58 PM, ............ wrote: > Hi .........., > > I couldn't reproduce the issue with jnlp in the JDK-8064358. > Could you please provide more information including the url to jnlp for me to assess this clearly? > > Thank You, > ................. *****************************************************************************************
16-03-2015