Exception in thread "Animation Thread"
in
Integration and Hardware
•
8 months ago
Greetings,
I have created a jsp/servlet application and I also have 2 Processing applets which work fine on their own.
the first is 2D so it only needs the core.jar
the second is 3D so it needs more libraries (code.jar,jogl.jar,glugen.jar,opengl.jar)
Through the servlet I post them on my main page in the same way.
out.println("<
applet code
=\"org.me.Cloudy.class\" archive= \"Cloudy.jar,core.jar,opengl.jar,gluegen-rt.jar,gluegen-rt-natives-windows-amd64.jar,jogl.all.jar,jogl-all-natives-windows-amd64.jar\" WIDTH=\"400\" HEIGHT=\"200\"></
applet
>");
out.println("<applet code=\"org.me.sun.Sun_2D.class\" archive= \"Sun_2D_Applet.jar,core.jar\" WIDTH=\"500\" HEIGHT=\"500\"></applet>");
Although the 2D works fine and shows up on the main page I get this error from the 3D
Exception in thread "Animation Thread" java.lang.NullPointerException
at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1885)
at javax.media.opengl.GLProfile.get(GLProfile.java:766)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:553)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:564)
at processing.opengl.PGL.initPrimarySurface(Unknown Source)
at processing.opengl.PGraphicsOpenGL.initPrimary(Unknown Source)
at processing.opengl.PGraphicsOpenGL.requestDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Can anyone help me?
Thanks in advance!
1