I have a nifty gui screen that works perfectly, except whenever I click on the TextField (I have only one) I get the following exception:
[java]Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker callMethod
WARNING: RuntimeException: java.lang.IllegalArgumentException: wrong number of arguments
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: sun.reflect.NativeMethodAccessorImpl invoke0 (NativeMethodAccessorImpl.java:-2)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: sun.reflect.NativeMethodAccessorImpl invoke (NativeMethodAccessorImpl.java:57)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: sun.reflect.DelegatingMethodAccessorImpl invoke (DelegatingMethodAccessorImpl.java:43)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: java.lang.reflect.Method invoke (Method.java:601)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: de.lessvoid.nifty.NiftyMethodInvoker callMethod (NiftyMethodInvoker.java:145)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: de.lessvoid.nifty.NiftyMethodInvoker performInvoke (NiftyMethodInvoker.java:104)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: de.lessvoid.nifty.Nifty$DelayedMethodInvoke perform (Nifty.java:1176)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: de.lessvoid.nifty.Nifty invokeMethods (Nifty.java:1154)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: de.lessvoid.nifty.Nifty handleDynamicElements (Nifty.java:312)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: de.lessvoid.nifty.Nifty access$1500 (Nifty.java:73)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: de.lessvoid.nifty.Nifty$NiftyInputConsumerImpl processEvent (Nifty.java:1371)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: de.lessvoid.nifty.Nifty$NiftyInputConsumerImpl processMouseEvent (Nifty.java:1329)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: com.jme3.niftygui.InputSystemJme handleMouseEvent (InputSystemJme.java:124)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: com.jme3.niftygui.InputSystemJme onMouseButtonEventQueued (InputSystemJme.java:196)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: com.jme3.niftygui.InputSystemJme forwardEvents (InputSystemJme.java:260)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: de.lessvoid.nifty.Nifty update (Nifty.java:248)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: com.jme3.niftygui.InputSystemJme endInput (InputSystemJme.java:113)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: com.jme3.input.InputManager processQueue (InputManager.java:821)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: com.jme3.input.InputManager update (InputManager.java:885)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: com.jme3.app.Application update (Application.java:606)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: com.jme3.app.SimpleApplication update (SimpleApplication.java:230)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: com.jme3.system.lwjgl.LwjglAbstractDisplay runLoop (LwjglAbstractDisplay.java:151)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: com.jme3.system.lwjgl.LwjglDisplay runLoop (LwjglDisplay.java:185)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: com.jme3.system.lwjgl.LwjglAbstractDisplay run (LwjglAbstractDisplay.java:228)
Feb 06, 2013 2:02:05 PM de.lessvoid.nifty.NiftyMethodInvoker logException
WARNING: java.lang.Thread run (Thread.java:722)[/java]
It doesn’t crash the program, or even the nifty gui, it just logs the message in console. I have attempted multiple TextFields, and they all generate the exception on click. I do not have an “onClick” event on my TextField, but I tried adding one. The event performs fine, but the exception still logs in the console. I attempted moving the TextField onto a different panel and layer but it still generates the exception. I also tried to add visibleToMouse true and false, but neither affects the exception. It’s probably something simple I’m missing, but I can’t find much on this exception through Google.
It only happens for the left mouse button click, but doesn’t matter if the TextField had focus before or not.
Thanks in advance for any help!!