controlP5 error
in
Contributed Library Questions
•
1 year ago
I met following error message in the start of the application. But it still runs and receives no more error message during running.
Sep 12, 2012 2:24:38 AM controlP5.ControlBroadcaster printMethodError
SEVERE: An error occured while forwarding a Controller event, please check your code at controlEvent
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at controlP5.ControlBroadcaster.invokeMethod(Unknown Source)
at controlP5.ControlBroadcaster.broadcast(Unknown Source)
at controlP5.CheckBox.updateValues(Unknown Source)
at controlP5.CheckBox.updateValues(Unknown Source)
at controlP5.CheckBox.activate(Unknown Source)
at BoKVis.setup(BoKVis.java:338)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at BoKVis.controlEvent(BoKVis.java:540)
... 13 more
SEVERE: An error occured while forwarding a Controller event, please check your code at controlEvent
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at controlP5.ControlBroadcaster.invokeMethod(Unknown Source)
at controlP5.ControlBroadcaster.broadcast(Unknown Source)
at controlP5.CheckBox.updateValues(Unknown Source)
at controlP5.CheckBox.updateValues(Unknown Source)
at controlP5.CheckBox.activate(Unknown Source)
at BoKVis.setup(BoKVis.java:338)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at BoKVis.controlEvent(BoKVis.java:540)
... 13 more
When I commented the line (checkAnimation.activate(0)), the error msg is gone. This is in the setup(). But I need to activate it.
1