We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › classCastException
Page Index Toggle Pages: 1
classCastException? (Read 565 times)
classCastException?
Jul 20th, 2009, 7:41am
 
Hello, what does classCastException means? im getting this message when i try to run a processing sketch.

this is the complete message im getting, what i cant understand what is wrong, any idea?


Exception in thread "Animation Thread" java.lang.ClassCastException: processing.core.PGraphicsJava2D
     at codeanticode.glgraphics.GLCamera.<init>(GLCamera.java:248)
     at codeanticode.glgraphics.GLCamera.<init>(GLCamera.java:99)
     at codeanticode.glgraphics.GLCamera.<init>(GLCamera.java:85)
     at Agentgl_hashgrid.setup(Agentgl_hashgrid.java:68)
     at processing.core.PApplet.handleDraw(PApplet.java:1400)
     at processing.core.PApplet.run(PApplet.java:1328)
     at java.lang.Thread.run(Thread.java:613)
Re: classCastException?
Reply #1 - Jul 20th, 2009, 8:30am
 
This means your code is trying to convert one object into an unrelated object. But please post a few lines of code and or the version of the glgraphics library you are using, since this is a very general error message.
Page Index Toggle Pages: 1