Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2009, 07:15 PM
Member
 
Join Date: Jun 2009
Posts: 1
Rep Power: 0
PeteMansfield is on a distinguished road
Question NullPointerException at FindAppletJDKLevel(unknown source)
Hello,

I am attempting to embed an applet in html and I am running into an error which I cannot find much documentation about. I receive the following:

java.lang.NullPointerException
at sun.plugin2.applet.Plugin2Manager.findAppletJDKLev el(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException

I used Netbeans 6.5.1 with jdk1.6.0_14 to develop this applet and it utilizes third-party proprietary libraries. The applet runs in Netbeans. Here is the applet:

import java.awt.*;
import java.awt.event.*;
import java.beans.Beans;
import javax.swing.*;
import java.applet.Applet;
import java.awt.GridLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.comm.CommDriver;

import com.topaz.sigplus.SigPlus;
import com.topaz.sigplus.SigPlusEvent0;
import com.topaz.sigplus.SigPlusListener;

public class SigApplet extends Applet {
private JPanel p1 = new JPanel(new GridLayout(1,1));
private JPanel p2 = new JPanel(new FlowLayout(FlowLayout.CENTER));
private JButton jbtSign;
private JButton jbtClear;
private JButton jbtSubmit;
private SigPlus sigObj;

public void init() {
super.init();
setLayout(new GridLayout(2,1));
// SigApplet demo = new SigApplet();
try
{
jbtSign = new JButton("Sign");
jbtClear = new JButton("Clear");
jbtSubmit = new JButton("Submit");

p2.add(jbtSign);
p2.add(jbtClear);
p2.add(jbtSubmit);

add(p1, BorderLayout.CENTER);
add(p2, BorderLayout.SOUTH);

jbtSign.addActionListener(new jbtSignListener());
jbtClear.addActionListener(new jbtClearListener());

ClassLoader cl = (com.topaz.sigplus.SigPlus.class).getClassLoader() ;
sigObj = (SigPlus)Beans.instantiate( cl, "com.topaz.sigplus.SigPlus" );
setLayout( new GridLayout( 1, 1 ) );
p1.add( sigObj );
sigObj.addSigPlusListener( new SigPlusListener()
{
public void handleTabletTimerEvent( SigPlusEvent0 evt )
{
}

public void handleNewTabletData( SigPlusEvent0 evt )
{
}

public void handleKeyPadData( SigPlusEvent0 evt )
{
}
} );
setSize( 350, 150 );
show();

sigObj.setTabletModel( "SignatureGemLCD1X5" );
sigObj.setTabletComPort( "HID1" );

sigObj.setTabletState( 0 );
}
catch ( Exception e )
{
return;
}
}

public void start() {
super.start();
}

private class jbtSignListener implements ActionListener {
public void actionPerformed(ActionEvent e) {
sigObj.setTabletState(1);
}
}

private class jbtClearListener implements ActionListener {
public void actionPerformed(ActionEvent e) {
sigObj.clearTablet();
}
}

}

I then self-sign this jar with a certificate I generated with keytool and then drop it and the classes generated by Netbeans into a directory with an HTML with the following implementation:

<html>
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<applet code="SigApplet.class" archive="SigApplet.jar" height="200" width="300"></applet>
</div>
</form>
</body>
</html>

I get the certificate screen, but once I accept it, I receive the NullPointerException at FindAppletJDKLevel. I've also tried using the object tag and I get the same error. Following the same methods above I was able to get a simple loan calculator applet to load in a browser. Any thoughts?

Thanks,
Pete
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 09-14-2009, 09:21 PM
Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 0
ForceRs is on a distinguished road
Default
You are likely missing a class file that in your jar file.

I had a similar situation and found that the new "next-generation" java plugin does not report NoClassDefFoundError, but instead reports findAppletJDKLevel.

To see if you are missing class files, do the following:

1) Close all browsers, ensuring that there are no plugin coffee cup icons in the Windows taskbar.
2) Open the Java Control panel (Start->Control Panel->Java).
2.5) On the General tab, clear cache by clicking Settings..., Delete Files..., OK.
3) Open the Advanced tab.
4) Expand the Java Plug-in tree option.
5) Ensure that the "Enable the next-generation Java Plug-in" option is NOT checked and click OK.
6) Visit your page again.
7) View the java console stacktrace. It should include NoClassDefFoundError error message.
8) Add the missing classes to your jar file.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 09-17-2009, 02:32 PM
Member
 
Join Date: Sep 2009
Posts: 9
Rep Power: 0
WindRider is on a distinguished road
Default
I have exactly the same problem. Unfortunately the ForceRs' suggestions didn't help. Can someone explain what does it mean this mysterious error? It appears on different browsers and JDK versions.

I cannot post any source code, cause I'm new to the forum and it's forbidden for me.

Please, help!!!
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 09-17-2009, 02:36 PM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 5,968
Rep Power: 7
Fubarable is on a distinguished road
Default
You can post code as long as you use code tags. You just can't post links, but you can get around that by doing tricks such as typing your links and substituting <dot> or whatever for "."

Also, you may wish to start your own thread for this complete with as much relevant information as you can provide. Then link to this thread (with the tricks as noted above). Much luck.
__________________
When posting code, please use code tags so that your code is readable. To do this, place the tag [code] before your block of code and [/code] after your block of code.
How to use Code Tags
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 09-17-2009, 03:12 PM
Member
 
Join Date: Sep 2009
Posts: 9
Rep Power: 0
WindRider is on a distinguished road
Default
Here it is...

The HTML:
Code:
<applet id="FlightNavigator" mayscript code="org.jdesktop.applet.util.JNLPAppletLauncher" width=800 height=500
      archive="applet-launcher.jar, 
               worldwind.jar, 
               FlightNavigatorApplet.jar, 
               http : //download . java . net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar, 
               http : //download . java . net/media/gluegen/webstart/gluegen-rt.jar">
   <param name="jnlp_href" value="FlightNavigatorApplet_local.jnlp">
   <param name="codebase_lookup" value="false">
   <param name="subapplet.classname" value="com.buildware.navigator.FlightNavigatorApplet">
   <param name="subapplet.displayname" value="Flight Navigator Applet">
   <param name="noddraw.check" value="true">
   <param name="progressbar" value="true">
   <param name="jnlpNumExtensions" value="1">
   <param name="jnlpExtension1" value="http : // download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp">
</applet>
The JNLP:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id -->
   <jnlp spec="1.0+" href="FlightNavigatorApplet_local.jnlp">
    <information>
        <title>Filght Navigator</title>
        <vendor>Buildware Technology Inc.</vendor>
        <homepage href="www . buildware . com / flightnavigator"/>
        <description>Flight Navigator Applet</description>
        <description kind="short">Aircraft Navigation System</description>
        <offline-allowed/>
    </information>
    <security>
        <all-permissions/>
    </security>
     <resources os="Windows">
       <property name="sun.java2d.noddraw" value="true"/>
     </resources>
     <resources>
        <j2se href="h t t p : //java . sun . com/products/autodl/j2se" version="1.5+" initial-heap-size="512m"
              max-heap-size="512m"/>
        <property name="sun.java2d.noddraw" value="true"/>
        <jar href="rxtxcomm.jar"/>
        <jar href="log4j-1.2.14.jar"/>
        <jar href="gpsinput-0.5.3.jar"/>
		<jar href="gpstool-0.5.3.jar"/>	
		<jar href="FengGUI.jar"/>
		<jar href="FengGUI-Optional.jar"/>
        <jar href="worldwind.jar"/>
        <jar href="SARApp.jar"/>
        <jar href="Components.jar"/>
        <jar href="FlightNavigatorApplet.jar" main="true"/>
        <extension name="jogl" href="h t t p : // download . java . net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp"/>
        <!-- <extension name="jinput" href="h t t p : // www . dustedpixels . com/download/webstart/JInput.jnlp"/> -->
     </resources>

     <resources os="Windows" arch="x86">	
	    <nativelib href="rxtx-comm-natives-windows-i586.jar"/>
     </resources>
    
     <!-- Width and heigth are overwritten by the surrounding web page -->
     <applet-desc
         name="Flight Navigator Applet"
         main-class="com.buildware.navigator.FlightNavigatorApplet"
         width="600" height="400">
        <param name="separate_jvm" value="true" />
     </applet-desc>
   </jnlp>
The exception is thrown after the jar validations and before the applet is initialized. My java code is pretty huge to post it here. I could post some fragments if you like. I have read at least 2 dozens of forum threads and didn't find anything helpful!
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 09-17-2009, 04:10 PM
Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 0
ForceRs is on a distinguished road
Default
Well, I submitted and Sun accepted the NoClassDefFoundError / Next Generation Plug-in combination as a bug. h t t p : //bugs . sun . com/bugdatabase/view_bug.do?bug_id=6881931

BUT this seems to only be a clue. It solves the "simple" error of mere NoClassDefFoundError. I too have an applet that fails to load exactly as described by WindRider: Jars load, but init() method is never called, and applet fails to load with the findAppletJDKLevel stacktrace.

What I have discovered, though, is that my applet only fails to load if I close all browsers, clear cache on disk (via control panel), and then visit the page. However, if I simply close the browser (do not clear disk cache) and go back to the page, the applet loads fine thereafter.

Since it seemed that having the jar file preloaded was the key to success, I changed my object applet cache_archive tag to
Code:
<PARAM name = "cache_archive_ex" value = "MyJar1.jar;preload,MyJar2.jar;preload,MyJar3.jar;preload">
to force preloading, but this had no effect.

I also tried to do TraceClassLoading via JVM parameter "-XX:-TraceClassLoading", but got no output by specifying the option (set in Java Runtime Environment Settings tab of control panel).

Additionally, my applet only fails in this way if it is signed. When I run from an unsigned jar, it loads the first time every time.

WindRider, does your applet run when unsigned?
WindRider, does your applet load the second time in when signed?

Last edited by ForceRs; 09-17-2009 at 04:47 PM.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 09-17-2009, 04:46 PM
Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 0
ForceRs is on a distinguished road
Default
Oh, my applet is not JNLP.

I hope we can keep this discussion going. I am going to spend today incrementally modifying applet tags/applet/etc. to hopefully discover what causes it to not load.
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 09-17-2009, 06:29 PM
Member
 
Join Date: Sep 2009
Posts: 9
Rep Power: 0
WindRider is on a distinguished road
Default
When I put unsigned version of the main JAR...

Code:
...com.sun.deploy.net.JARSigningException: Found unsigned entry in resource: ...

When I try to test in appletviewer:
Code:
appletviewer -J-Djava.security.policy=policy index_local.html
...with fully permissive policy file:
Code:
grant { permission java.security.AllPermission; };
...I get this error:

Code:
E:\Projects\eclipse-workspace\FlightNavigator\site-release>appletviewer -J-Djava
.security.policy=policy index_local.html
JNLPAppletLauncher: static initializer
os.name = windows xp
nativePrefix =   nativeSuffix = .dll
tmpRootDir = C:\DOCUME~1\SVETLO~1\LOCALS~1\Temp\jnlp-applet\jln64856367209535600
22
Applet.init
subapplet.classname = com.buildware.navigator.FlightNavigatorApplet
subapplet.displayname = Flight Navigator Applet
Applet.start
os.name = windows xp
os.arch = x86
processNativeJar: using previously cached: C:\Documents and Settings\Svetlozar K
ostadinov\.jnlp-applet\cache\UNKNOWN\ac2a4b532e5fb3933e9486008314b08c4514b395\gl
uegen-rt-natives-windows-i586.jar
validateCertificates:
VALIDATE: gluegen-rt.dll
extractNativeLibs:
EXTRACT: gluegen-rt.dll(gluegen-rt)
processNativeJar: using previously cached: C:\Documents and Settings\Svetlozar K
ostadinov\.jnlp-applet\cache\UNKNOWN\ac2a4b532e5fb3933e9486008314b08c4514b395\jo
gl-natives-windows-i586.jar
validateCertificates:
VALIDATE: jogl.dll
VALIDATE: jogl_awt.dll
VALIDATE: jogl_cg.dll
extractNativeLibs:
EXTRACT: jogl.dll(jogl)
EXTRACT: jogl_awt.dll(jogl_awt)
EXTRACT: jogl_cg.dll(jogl_cg)
Exception in thread "AWT-EventQueue-1" java.lang.NoClassDefFoundError: netscape/
javascript/JSObject
        at com.buildware.navigator.FlightNavigatorApplet.<init>(FlightNavigatorA
pplet.java:24)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at org.jdesktop.applet.util.JNLPAppletLauncher.startSubApplet(JNLPApplet
Launcher.java:1914)
        at org.jdesktop.applet.util.JNLPAppletLauncher.access$200(JNLPAppletLaun
cher.java:658)
        at org.jdesktop.applet.util.JNLPAppletLauncher$5.run(JNLPAppletLauncher.
java:1269)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException: netscape.javascript.JSObject
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:180)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:143)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 18 more
Could it be the NoClassDefFoundError in AppletViewer appearing as a NullPointerException in the browser?
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 09-18-2009, 12:38 AM
Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 0
ForceRs is on a distinguished road
Default
I've created a test case that fails.

It fails with
Java Plug-in 1.6.0_15
Using JRE version 1.6.0_15-b03 Java HotSpot(TM) Client VM
and
Java Plug-in 1.6.0_18
Using JRE version 1.6.0_18-ea-b02 Java HotSpot(TM) Client VM

Please follow these instructions and let me know if it fails for you, too:
1) Close all browsers, ensuring that there are no plug-in coffee cup icons in the Windows taskbar.
2) Open the Java Control panel (Start->Control Panel->Java).
3) On the General tab, clear cache by clicking Settings..., Delete Files..., OK.
4) Open the Advanced tab.
5) Expand the Java Plug-in tree option.
6) Ensure that the "Enable the next-generation Java Plug-in" option is checked and click OK.
7) Visit page h t t p : // www . printdesktop . com/SignedAppletFails/SignedAppletFails.html
8) When presented with the allow applet to run dialog, check the "Always trust content from this publisher" checkbox.
9) The first page should load fine (SignedAppletFails.html).
10) From the main menu in the applet, click the Open_Window menu item and then click the "Top--reload page" sub-menu.
11) This should launch SignedAppletFails_New.html.
12) View the java console stacktrace. It should include a NullPointerException with reference to findAppletJDKLevel.

A few observations:
* Oddly, if you simply type "x" (clear classloader cache) on the java console, click the browser back button, and then choose "Open_Window->Top--reload page", the second applet runs fine.
* If you close the browser, wait for the coffee cup taskbar icon to go away, and immediately revisit the test page, all will work. It only happens when the disk cache is COMPLETELY empty.
* If you remove the certificate you accepted in step 8, and then perform the whole test again, but DO NOT check the "Always trust content from this publisher" checkbox, all will run fine.
* The jar file in this test case that I suspect is not being released (unlocked, whatever) by the first applet tear down is named SignedAppletFailsMisc.jar. The reason I believe SignedAppletFailsMisc.jar is being held is that if I were to create an identical file named SignedAppletFailsMisc2.jar and referenced SignedAppletFailsMisc2.jar in the second page, all would be fine.
* Again, It only happens when the disk cache is COMPLETELY empty.

I will submit the bug to sun after I receive some confirmation.

The problem (in this test case, at least), is that when the applet is signed, and the next-generation plug-in is enabled, and the JVM disk cache is completely empty, this error occurs.

The issue is that I have a common jar file that each applet references in the OBJECT applet tag. This is completely normal practice and is allowed. It seems that when the first applet is destroyed, it has some kind of lock on the jar file (SignedAppletFailsMisc.jar in this test), preventing the next applet launch from being able to use it.

Unfortunately, by default, this happens the very first time our web application is used (sign on and then redirect to another page that references a jar used in the sign on page). Meaning that the first thing a potential customer sees is a null pointer exception after logging in -- yikes!

The only workarounds I have thus far are to disable next-generation plug-in (testing for it in the sign on page), or, worst yet, supplying only one jar file per applet, each containing ALL of the classes required -- there is a lot of duplication of classes.

Last edited by ForceRs; 09-18-2009 at 10:18 PM. Reason: Updates steps to reproduce issue
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 09-18-2009, 12:40 PM
Member
 
Join Date: Sep 2009
Posts: 9
Rep Power: 0
WindRider is on a distinguished road
Default
I've tried to reproduce your test case, but I use Opera, Chrome and my IE is ver. 8. You could try to use Unlocker 1.8.7 utility to see if there's a lock on the jar. It works on low level.
I was trying to find a source code for findAppletJDKLevel() at least to understand what this method is intended for. But it looks like the Java Plug-In's source is not publicly available. It is not at docjar . com and OpenJDK7. I'm completly exhausted by this idiotic problem!
Bookmark Post in Technorati
Reply With Quote
  #11 (permalink)  
Old 09-18-2009, 03:52 PM
Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 0
ForceRs is on a distinguished road
Default
Yes, I ran FileMon (from Sysinternals) to look for a blatant file lock, but the jar is read, then converted to a Windows temp file and then migrates to the java cache in the form of at least two files on disk (cryptic names: 3e82ce00-78e54783 and 3e82ce00-78e54783.idx) in one of 63 sub-folders of C:\Documents and Settings\user\Application Data\Sun\Java\Deployment\cache\6.0\.

By the way, a co-worker has the 1.6.0_14-b08 plug-in and my test case works for him. So it seems like 1.6.0_15 is where this particular issue started.
Bookmark Post in Technorati
Reply With Quote
  #12 (permalink)  
Old 09-18-2009, 04:24 PM
Member
 
Join Date: Sep 2009
Posts: 9
Rep Power: 0
WindRider is on a distinguished road
Default
I've tested on my girlfriend's PC wich has JRE 1.6.0_7 and it's the same. Then upgraded my computer from JDK 1.6.0_13 to 16 - the same! I have found something - a source code for method findAppletJDKLevel()
(h t t p : // www . docjar . com/html/api/sun/applet/AppletPanel.java.html, line 1212), but not of the same package. However, this method's purpose could be virtually the same. It reads the 8-th byte from the applet's main .class header. That is a signature showing the JDK version which the applet is intended for. Do you have an idea where could be thrown this NullPointerException? Unfortunately, OpenJDK doesn't include the Plug-In implementation to trace the problem!
Bookmark Post in Technorati
Reply With Quote
  #13 (permalink)  
Old 09-18-2009, 04:46 PM
Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 0
ForceRs is on a distinguished road
Default
WindRider, when you same "it is the same", do you mean you cannot get the failure to occur or you can?

I looked at the code, but without it being the right package, I fear it is useless to try. No super obvious NPE, but would need access to all code to be serious about it.
Bookmark Post in Technorati
Reply With Quote
  #14 (permalink)  
Old 09-18-2009, 04:55 PM
Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 0
ForceRs is on a distinguished road
Default
WindRider, regarding your:
Exception in thread "AWT-EventQueue-1" java.lang.NoClassDefFoundError: netscape/javascript/JSObject
in applet viewer, just ensure that the applet viewer has jaws.jar in its classpath. This should resolve this. jaws.jar is part of main plug-in for browser, so this is not likely your cause. However, if you find more classnotfounderrors after JSObject, then that may be your cause.
Bookmark Post in Technorati
Reply With Quote
  #15 (permalink)  
Old 09-18-2009, 05:25 PM
Member
 
Join Date: Sep 2009
Posts: 9
Rep Power: 0
WindRider is on a distinguished road
Default
1. I'm using plugin.jar, where the JSObject is defined. I think jaws.jar is for older versions of the Plug-In (mine is 1.6.0_16). However, do you how to add it to the runtime classpath of appletviewer?? I'm not experienced with Java. I've tried to do this, but failed.

2. I have turned on the logging, tracing and lifecycle exceptions in advanced settings of the java control panel. Then tested in IE8 and now it shows a little bit more verbose log of the situation. Seems like the problem is related to the caching of one of the jars, as you supposed! I'm pasting the end of the log (truncated the beginning):

Code:
security: Blacklist revocation check is enabled
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/rxtxcomm.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/log4j-1.2.14.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/gpsinput-0.5.3.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/gpstool-0.5.3.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/FengGUI.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/FengGUI-Optional.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/worldwind.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/SARApp.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/Components.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/FlightNavigatorApplet.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: h t t p : // download . java . net/media/jogl/builds/archive/jsr-231-1.x-webstart-current/jogl.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: h t t p : // download . java . net/media/gluegen/webstart/gluegen-rt.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: h t t p : // download . java . net/media/gluegen/webstart/gluegen-rt-natives-windows-i586.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: h t t p : // download . java . net/media/jogl/builds/archive/jsr-231-1.x-webstart-current/jogl-natives-windows-i586.jar, version: null]
cache: Skip blacklist check as cached value is ok.
network: Cache entry found [u r l: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/rxtx-comm-natives-windows-i586.jar, version: null]
network: Created version ID: 1.5+
network: Created version ID: 1.6.0.16
network: Created version ID: 1.6.0.16
network: Created version ID: 1.6
basic: LaunchDesc location: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/FlightNavigatorApplet_local.jnlp
network: Created version ID: 1.0+
network: Created version ID: 6.0
basic: JRESelectException(1): ignored - relaunched already
security: Mark trusted: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/FlightNavigatorApplet_local.jnlp
basic: LD - All JAR files signed: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/FlightNavigatorApplet_local.jnlp
security: Mark trusted: h t t p : // download . java . net/media/jogl/builds/archive/jsr-231-1.x-webstart-current/jogl.jnlp
basic: LD - All JAR files signed: h t t p : // download . java . net/media/jogl/builds/archive/jsr-231-1.x-webstart-current/jogl.jnlp
security: Mark trusted: h t t p : // download . java . net/media/gluegen/webstart/gluegen-rt.jnlp
basic: LD - All JAR files signed: h t t p : // download . java . net/media/gluegen/webstart/gluegen-rt.jnlp
basic: passing security checks; secureArgs:true, allSigned:false
basic: JRESelectException(2): ignored - relaunched already
basic: continuing launch in this VM
basic: JNLP2ClassLoader.getPermissions() ..
security: JAVAWS AppPolicy Permission requested for: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/FlightNavigatorApplet.jar
basic: JNLP2ClassLoader.getPermissions() X
network: Cache entry not found [u r l: f i l e : /E:/Projects/eclipse-workspace/FlightNavigator/site-release/components.jar, version: null]
basic: JNLP2ClassLoader.findClass: com.buildware.navigator.AppletBase: try again ..
basic: exception: null.
java.lang.NullPointerException
	at sun.plugin2.applet.Plugin2Manager.findAppletJDKLevel(Unknown Source)
	at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException
Ignored exception: java.lang.NullPointerException
basic: Loading Java Applet Failed...
Can you decipher anything of this?
Bookmark Post in Technorati
Reply With Quote
  #16 (permalink)  
Old 09-18-2009, 10:14 PM
Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 0
ForceRs is on a distinguished road
Default
The final jar in trace should have a capital "C":
this
E:/Projects/eclipse-workspace/FlightNavigator/site-release/components.jar
should be this:
E:/Projects/eclipse-workspace/FlightNavigator/site-release/Components.jar

Once you get that, you are probably going to be okay. Maybe your jnlp?
Bookmark Post in Technorati
Reply With Quote
  #17 (permalink)  
Old 09-18-2009, 10:28 PM
Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 0
ForceRs is on a distinguished road
Default
To set classpath for appletViewer in eclipse, go to run configurations and choose your applet under Java Applet and then go to classpath tab and ensure jaws.jar is in there somewhere. If necessary, download jaws.jar. Here is screenshot: h t t p : // w w w . printdesktop . com/SignedAppletFails/AppletViewer.gif
Bookmark Post in Technorati
Reply With Quote
  #18 (permalink)  
Old 09-18-2009, 11:39 PM
Member
 
Join Date: Sep 2009
Posts: 9
Rep Power: 0
WindRider is on a distinguished road
Default
1. About the last... I know how to set it up in Eclipse, but I'm ALSO trying to use the command line to run AppletViewer (instead the normal web browser). I mean:

Code:
appletviewer -J-Djava.security.policy=policy index_local.html
That's because of the HTML file which contains some JScript code to control the applet from outside. I don't how to use this "extended" syntax of AppletViewer from the Eclipse environment.
I would just like to know why Java don't find JSObject located plugin.jar even if it is part of the Java VM libraries. (jre6/lib directory)?

2.
Bookmark Post in Technorati
Reply With Quote
  #19 (permalink)  
Old 09-21-2009, 07:54 PM
Member
 
Join Date: Sep 2009
Posts: 9
Rep Power: 0
WindRider is on a distinguished road
Default
2. It seems that the capital "C" is not a problem. Here (h t t p : // frontendjava . canalblog . com/)

I've found other people having troubles with the same problem. They said, the cause could be even a very small mistake in the JNLP code.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Tags
applet, applet problem, findappletjdklevel, nullpointerexception

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown problem sanchir0805 New To Java 4 03-20-2009 04:56 AM
Hi , Error in Jsp page is as "NumberFormatException.forInputString(Unknown Source)" lavanya82 JavaServer Pages (JSP) and JSTL 9 02-20-2009 08:22 AM
Same source file but different source folders for different build configurations? m3anman Eclipse 0 01-29-2009 11:43 AM
java.net.MalformedURLException: unknown protocol: ntp Nicholas Jordan Networking 6 12-24-2008 04:35 AM
MavenJava - browse source code of all open source projects online jirkacelak Java Announcements 1 11-28-2008 07:27 PM


All times are GMT +2. The time now is 07:05 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org