Loading...
Logo
Processing Forum
Hi all,

I'm using the Keystone library to do some perspective warping on some images. I'd like to be able to save and load my coordinates, like in the example app that comes with the library ("CornerPin.pde").

But when I try to trigger the ks.save() command, I get this error:

Copy code
  1. IllegalAccessError: tried to access method processing.data.XML.save(Ljava/io/OutputStream;)Z from class deadpixel.keystone.Keystone
It does appear to output a "keystone.xml" file into the data subdirectory of the sketch, but the file has zero bytes.

This is using Processing 2.0b8 and the most recent version of Keystone.

Any advice?

-Cassidy

Replies(2)

I have the same problem...

HELP!
I just downloaded processing 2.01 for MacOSX and installed the Keystone library through the processing "add library" menu and tried with the version on his site. (On his site the version says 004 but if you install and run in the console it says 003 ???)

I using a Macbook Pro OS X (late 2012) 10.8.3 an I am running into the same problem as described above.
When I hit the save key the app[ crashes. I have seen other posts on the forum describing issues with the new XML library of processing and library version mismatch but I have the latest version of Processing with the latest version of the library.. What am I missing ?

See Error report:

Keystone 003
java.lang.RuntimeException: java.lang.NoSuchMethodError: processing.data.XML.save(Ljava/io/OutputStream;)Z
at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:100)
at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:205)
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
at javax.media.opengl.Threading.invoke(Threading.java:191)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:483)
at processing.opengl.PGL.requestDraw(PGL.java:1155)
at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1602)
at processing.core.PApplet.run(PApplet.java:2141)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NoSuchMethodError: processing.data.XML.save(Ljava/io/OutputStream;)Z
at deadpixel.keystone.Keystone.save(Unknown Source)
at deadpixel.keystone.Keystone.save(Unknown Source)
at CornerPin.keyPressed(CornerPin.java:100)
at processing.core.PApplet.keyPressed(PApplet.java:3355)
at processing.core.PApplet.handleKeyEvent(PApplet.java:3173)
at processing.core.PApplet.dequeueEvents(PApplet.java:2610)
at processing.core.PApplet.handleDraw(PApplet.java:2281)
at processing.opengl.PGL$PGLListener.display(PGL.java:2643)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:576)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:561)
at javax.media.opengl.awt.GLCanvas$7.run(GLCanvas.java:1054)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1024)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:899)
at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:1065)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:708)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:669)
at java.awt.EventQueue$2.run(EventQueue.java:667)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:678)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)