Bug 997 : java.lang.VerifyError when initialising.
Last modified: 2008-11-06 07:25




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
siliconeagle
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-11-04 14:22
I am using Processing-0154 on latest Java 6 (1.6.0_10) and Linux(Ubuntu
intrepid) IN ECLIPSE

I am getting a launch error when I use the OPENGL video mode. It looks like
a loaded class is trying to reference a previously loaded class (in a
previous classloader). where the access method is protected. I noticed the
access for the bindTexture method changed from public to protected recently
- this may have something to do with it.

When running this code as an applet in eclipse the below error occurs.
import processing.core.PApplet;

public class TestVid extends PApplet {
public void setup() {
size(800,600, OPENGL);
}
public void draw() { }
}

Exception in thread "Animation Thread" java.lang.VerifyError: (class:
processing/opengl/PGraphicsOpenGL, method: bindTexture signature:
(Lprocessing/core/PImage;)V) Bad access to protected data
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getConstructor(Class.java:1657)
at processing.core.PApplet.makeGraphics(PApplet.java:1131)
at processing.core.PApplet.size(PApplet.java:970)
at processing.core.PApplet.size(PApplet.java:930)
at net.robmunro.video.Video2.setup(Video2.java:67)
at processing.core.PApplet.handleDraw(PApplet.java:1372)
at processing.core.PApplet.run(PApplet.java:1300)
at java.lang.Thread.run(Thread.java:619)
Additional Comment #1 From fry 2008-11-04 14:24
you're mixing different versions of core.jar in your eclipse setup.
Additional Comment #2 From siliconeagle 2008-11-05 12:57
Just to document this, i had changed the core.jar reference to use the new
processing-0154 lib but hadn't replaced the opengl.jar reference (to
processing-0148) to use the new one.
Additional Comment #3 From fry 2008-11-06 07:25
yup, welcome to Java development.