Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Java.lang.NullPointerException (Read 5782 times)
dhoult
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: Jun 3rd, 2008
Java.lang.NullPointerException
Jun 5th, 2008 at 2:07pm
Print Post  
Hi,

Running in Applet mode. This exception happens about 50% of the time while loading the page and page does not finish loading. The other 50% it works fine and great.

Any ideas?
  
Back to top
 
IP Logged
 
dhoult
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: Jun 3rd, 2008
Re: Java.lang.NullPointerException
Reply #1 - Jun 5th, 2008 at 2:09pm
Print Post  
Full text from Java Console:


java.lang.NullPointerException

at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException

at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException

at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException

at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Java.lang.NullPointerException
Reply #2 - Jun 5th, 2008 at 2:24pm
Print Post  
Hi,

It doesn't seem the to reach the Netdiagram's applet's code at all. With what browser and Java runtime version are you getting the exception?

Stoyan
  
Back to top
 
IP Logged
 
dhoult
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: Jun 3rd, 2008
Re: Java.lang.NullPointerException
Reply #3 - Jun 5th, 2008 at 2:30pm
Print Post  
IE7
Java (build 1.6.0_05-b13)

So this could be a problem with code before we get to the applet? as in OUR code? we don't make mistakes Wink
whatever the issue, I just want to track it down so if i can eliminate your applet from the possible sources that's a step forward.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Java.lang.NullPointerException
Reply #4 - Jun 5th, 2008 at 4:03pm
Print Post  
Never said it's your code, the exception log shows the culprit is sun.plugin.AppletViewer Wink Are there any other applets on the page apart from the Flowchart, e.g. the Overview, ShapelistBox, or some third-party applets? Have you set the JarLocation property?
  
Back to top
 
IP Logged
 
dhoult
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: Jun 3rd, 2008
Re: Java.lang.NullPointerException
Reply #5 - Jun 5th, 2008 at 4:06pm
Print Post  
we have this defined first:
<ndiag:flowchart id="palette" JarLocation="/Content/JDiagram.jar" runat="server" style="left: 0pt;" BorderColor="#e8eef7" BorderStyle="None" BoxClickedScript="palette_BoxClicked" AntiAlias="AntiAlias" BorderWidth="0" AutoActivateApplet="True"></ndiag:flowchart>

then further down the page we have this:
<ndiag:flowchart id="canvas" JarLocation="/Content/JDiagram.jar" ArrowCreatedScript="canvas_ArrowCreated" DocClickedScript="canvas_DocClicked" runat="server" style="position: absolute; top: 50px;left: 300px" BoxDblClickedScript="canvas_BoxClicked" AntiAlias="AntiAlias" AutoActivateApplet="True"></ndiag:flowchart>
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Java.lang.NullPointerException
Reply #6 - Jun 5th, 2008 at 4:14pm
Print Post  
Actually AutoActivateApplet is not required anymore, since Microsoft removed the "click to activate" feature from IE with a recent Widows Update. Try how that will work with AutoActivateApplet set to false. It might help, because the auto-activate feature leads to injecting the applets into the DOM via JavaScript, which could get the applet plugin into trouble.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
dhoult
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: Jun 3rd, 2008
Re: Java.lang.NullPointerException
Reply #7 - Jun 5th, 2008 at 4:16pm
Print Post  
ok, I'll give that a whirl and let you know.
Thanks
  
Back to top
 
IP Logged
 
dhoult
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: Jun 3rd, 2008
Re: Java.lang.NullPointerException
Reply #8 - Jul 27th, 2008 at 12:53pm
Print Post  
sorry, forget to let you know.
That was the issue Smiley

Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint