Hi there,
I have written a program that, among other things, generate 2 tabs (controlp5 tabs).
All the features i wrote work just fine when i'm running the program but i keep getting those warning/errors messages and i want some help to understand them if you please :
28 mai 2013 12:03:54 controlP5.ControlBroadcaster printMethodError
GRAVE: 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.Tab.mousePressed(Unknown Source)
at controlP5.ControllerGroup.setMousePressed(Unknown Source)
at controlP5.ControlWindow.mousePressedEvent(Unknown Source)
at controlP5.ControlWindow.mouseEvent(Unknown Source)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1084)
at processing.core.PApplet.handleMethods(PApplet.java:1279)
at processing.core.PApplet.handleMouseEvent(PApplet.java:2560)
at processing.core.PApplet.dequeueEvents(PApplet.java:2463)
at processing.core.PApplet.handleDraw(PApplet.java:2153)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:193)
at processing.core.PApplet.run(PApplet.java:2020)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassCastException: controlP5.Tab cannot be cast to controlP5.Controller
at controlP5.ControlEvent.getController(Unknown Source)
at controlP5.ControlEvent.controller(Unknown Source)
at main_ihm.controlEvent(main_ihm.java:118)
... 21 more
Why am i getting those warnings when my program works?
Thank you
I have written a program that, among other things, generate 2 tabs (controlp5 tabs).
All the features i wrote work just fine when i'm running the program but i keep getting those warning/errors messages and i want some help to understand them if you please :
28 mai 2013 12:03:54 controlP5.ControlBroadcaster printMethodError
GRAVE: 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.Tab.mousePressed(Unknown Source)
at controlP5.ControllerGroup.setMousePressed(Unknown Source)
at controlP5.ControlWindow.mousePressedEvent(Unknown Source)
at controlP5.ControlWindow.mouseEvent(Unknown Source)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1084)
at processing.core.PApplet.handleMethods(PApplet.java:1279)
at processing.core.PApplet.handleMouseEvent(PApplet.java:2560)
at processing.core.PApplet.dequeueEvents(PApplet.java:2463)
at processing.core.PApplet.handleDraw(PApplet.java:2153)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:193)
at processing.core.PApplet.run(PApplet.java:2020)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassCastException: controlP5.Tab cannot be cast to controlP5.Controller
at controlP5.ControlEvent.getController(Unknown Source)
at controlP5.ControlEvent.controller(Unknown Source)
at main_ihm.controlEvent(main_ihm.java:118)
... 21 more
Why am i getting those warnings when my program works?
Thank you
1