Bug#605458: [icedtea6-plugin] NULL pointer exception when starting minecraft

2013-01-29 Thread Fredrik Tolf
I'm experiencing a similar problem, though since it occurs at a different 
place in the source code, I'm not sure if it's a different bug or just in 
some slightly different version of NetX where stuff has been moved around.


Either way, I fixed the NPE I was having with the following small patch:

--- 
icedtea-web-1.3.1.orig/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
+++ icedtea-web-1.3.1/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
@@ -1115,7 +1115,7 @@ public class JNLPClassLoader extends URL
 }

 // Class from host X should be allowed to connect to host X
-if (cs.getLocation().getHost().length()  0)
+if ((cs.getLocation() != null)  (cs.getLocation().getHost() != null) 
 (cs.getLocation().getHost().length()  0))
 result.add(new SocketPermission(cs.getLocation().getHost(),
 connect, accept));

As you can see, it's a very simple patch with no other side effects, so I 
don't think it would hurt applying it until upstream can fix the problem 
for real.


--

Fredrik Tolf


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#605458: [icedtea6-plugin] NULL pointer exception when starting minecraft

2011-11-10 Thread Damien Raude-Morvan
forwarded 605458 http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=568
tag 605458 + confirmed
thanks

Le mardi 30 novembre 2010 10:43:09, Emil Langrock a écrit :
 Package: icedtea6-plugin
 Version: 6b20-1.9.1-1
 Severity: normal

Hi Emil,

 java version 1.6.0_20
 OpenJDK Runtime Environment (IcedTea6 1.9.1) (6b20-1.9.1-1)
 OpenJDK 64-Bit Server VM (build 17.0-b16, mixed mode)
[...]
 Caused by: java.lang.NullPointerException
 at
 net.sourceforge.jnlp.runtime.JNLPClassLoader.getPermissions(JNLPClassLoade
 r.java:537) ... 18 more
 Fatal error occured (8): null
 java.lang.NullPointerException
 at
 net.sourceforge.jnlp.runtime.JNLPClassLoader.getPermissions(JNLPClassLoade
 r.java:537

Thanks for your report, it's already known by icedtea-web upstream.
We ping you back when it's fixed and uploaded in Debian.

Regards,
-- 
Damien



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#605458: [icedtea6-plugin] NULL pointer exception when starting minecraft

2010-11-30 Thread Emil Langrock
Package: icedtea6-plugin
Version: 6b20-1.9.1-1
Severity: normal

--- Please enter the report below this line. ---

I tried to start minecraft from http://www.minecraft.net/play.jsp in
iceweasel. The first thing I saw was the permission request dialog (pressed
yes). After that the loading screen appears and went black afterwards. I see
following output in the console:


java version 1.6.0_20
OpenJDK Runtime Environment (IcedTea6 1.9.1) (6b20-1.9.1-1)
OpenJDK 64-Bit Server VM (build 17.0-b16, mixed mode)
java.lang.NullPointerException
at 
sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:649)
at 
sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:270)
at 
sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
java.lang.RuntimeException: Failed to handle message: width 854 height 480 for 
instance 1
at 
sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:660)
at 
sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:270)
at 
sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:82)
Caused by: java.lang.NullPointerException
at 
sun.applet.PluginAppletViewer.handleMessage(PluginAppletViewer.java:649)
... 2 more
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.lwjgl.util.applet.AppletLoader$3.getPermissions(AppletLoader.java:713)
at 
java.security.SecureClassLoader.getProtectionDomain(SecureClassLoader.java:210)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at 
org.lwjgl.util.applet.AppletLoader.switchApplet(AppletLoader.java:755)
at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:644)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.NullPointerException
at 
net.sourceforge.jnlp.runtime.JNLPClassLoader.getPermissions(JNLPClassLoader.java:537)
... 17 more
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.lwjgl.util.applet.AppletLoader$3.getPermissions(AppletLoader.java:713)
at 
java.security.SecureClassLoader.getProtectionDomain(SecureClassLoader.java:210)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at com.mojang.minecraft.MinecraftApplet.init(Unknown Source)
at 
org.lwjgl.util.applet.AppletLoader.switchApplet(AppletLoader.java:766)
at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:644)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.NullPointerException
at 
net.sourceforge.jnlp.runtime.JNLPClassLoader.getPermissions(JNLPClassLoader.java:537)
... 18 more
Fatal error occured (8): null
java.lang.NullPointerException
at 
net.sourceforge.jnlp.runtime.JNLPClassLoader.getPermissions(JNLPClassLoader.java:537)
at 
net.sourceforge.jnlp.runtime.JNLPPolicy.getPermissions(JNLPPolicy.java:65)
at net.sourceforge.jnlp.runtime.JNLPPolicy.implies(JNLPPolicy.java:100)
at java.security.ProtectionDomain.implies(ProtectionDomain.java:240)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:320)
at 
java.security.AccessController.checkPermission(AccessController.java:553)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at