Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java client side application after updating java 7 - 25 to latest version 7 – 45 on client pc

 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


We have a client side java application

It works fine for java 7 -25 update and earlier version on client computer. After updating to java 7 – 45 , it no longer works when we try to launch the application by using .jnlp file.

The exception that we got so far is :

java.lang.NullPointerException
    at java.io.StringReader.<init>(Unknown Source)
    at org.glassfish.appclient.client.JWSAppClientContainerMain.
insertMaskingLoader(JWSAppClientContainerMain.java:186)
    at org.glassfish.appclient.client.JWSAppClientContainerMain.
main(JWSAppClientContainerMain.java:132)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Please give me some suggestions .

Thank you
 
Campbell Ritchie
Sheriff
Posts: 48917
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please show us the code where that exception happened, please. I cannot see how the upgrade contributed to the Exception.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15272
37
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the release notes for Java 7u45. I see one thing in there that might be your problem:
Area: Deployment/Plugin
Synopsis: Non-JNLP trusted applet fails to load using the file:\\ URL.

Local trusted applets that do not deploy using a JNLP file will fail to load by throwing a java.lang.NullPointerException. You can work around this issue by using one of the following methods:

Use a JNLP file to launch the applet.
Try loading the applet over HTTP or HTTPS.
 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jesper de Jong wrote:Check the release notes for Java 7u45. I see one thing in there that might be your problem:
Area: Deployment/Plugin
Synopsis: Non-JNLP trusted applet fails to load using the file:\\ URL.

Local trusted applets that do not deploy using a JNLP file will fail to load by throwing a java.lang.NullPointerException. You can work around this issue by using one of the following methods:

Use a JNLP file to launch the applet.
Try loading the applet over HTTP or HTTPS.


Can you please show me which problem is it?
 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Please show us the code where that exception happened, please. I cannot see how the upgrade contributed to the Exception.


the exception that i showed above is all i got , and it did not show where it happens
 
Campbell Ritchie
Sheriff
Posts: 48917
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jim li wrote: . . . the exception that i showed above is all i got , and it did not show where it happens
Good grief. Quite surprising that there were no line numbers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic