Hey all, my client applet runs fine until it tries to switch screens.
The server-client works fine from the SDK itself.
I can’t figure out where this error is coming from at all, it only mentions nifty (but like I said this bug only appears on the applet).
I am using:
Product Version: jMonkeyEngine SDK 3.0RC2
3.0.0.10449 External Libraries Nightly
3.0.0.10462 Libraries Nightly
Java: 1.6.0_22; Java HotSpot™ Server VM 17.1-b03
System: Windows 7 version 6.1 running on x86; Cp1252; en_GB (jmonkeyplatform)
3.0.0.10216.2 Nifty GUI (nightly)
The following error is what is returned.
[java]
Exception in thread “LWJGL Renderer Thread” java.lang.NullPointerException
at java.util.logging.Logger.doSetParent(Unknown Source)
at java.util.logging.Logger.getAnonymousLogger(Unknown Source)
at java.util.logging.Logger.getAnonymousLogger(Unknown Source)
at de.lessvoid.nifty.screen.Screen$EndScreenEndNotify.perform(Screen.java:678)
at de.lessvoid.nifty.screen.Screen$LocalEndNotify.perform(Screen.java:638)
at de.lessvoid.nifty.elements.Element$LocalEndNotify.perform(Element.java:1957)
at de.lessvoid.nifty.elements.Element$LocalEndNotify.perform(Element.java:1957)
at de.lessvoid.nifty.effects.EffectProcessorImpl.checkFinish(EffectProcessorImpl.java:339)
at de.lessvoid.nifty.effects.EffectProcessorImpl.renderActive(EffectProcessorImpl.java:315)
at de.lessvoid.nifty.effects.EffectProcessorImpl.renderPre(EffectProcessorImpl.java:62)
at de.lessvoid.nifty.effects.EffectManager$RenderPhasePre.render(EffectManager.java:301)
at de.lessvoid.nifty.effects.EffectManager.renderInternal(EffectManager.java:163)
at de.lessvoid.nifty.effects.EffectManager.renderPre(EffectManager.java:150)
at de.lessvoid.nifty.elements.Element.render(Element.java:718)
at de.lessvoid.nifty.elements.Element.renderInternalChildElements(Element.java:751)
at de.lessvoid.nifty.elements.Element.renderChildren(Element.java:744)
at de.lessvoid.nifty.elements.Element.render(Element.java:713)
at de.lessvoid.nifty.screen.Screen.renderLayers(Screen.java:314)
at de.lessvoid.nifty.Nifty.render(Nifty.java:321)
at com.jme3.niftygui.NiftyJmeDisplay.postQueue(NiftyJmeDisplay.java:178)
at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:979)
at com.jme3.renderer.RenderManager.render(RenderManager.java:1035)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:252)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:151)
at com.jme3.system.lwjgl.LwjglCanvas.runLoop(LwjglCanvas.java:229)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:228)
at java.lang.Thread.run(Unknown Source)
[/java]
How the change screen is called (all binding and nifty xml stuff is done at project startup).
[java]app.enqueue(new Callable() {
public Void call() throws Exception {
nifty.gotoScreen(“lobby”);
Main.state=State.LOBBY;
return null;
}
});[/java]
The xml for the nifty can be seen here:
http://facelessgames.com/niftyscreens.txt
Is this something caused by the nifty nightly build or something else entirely.
Just to expand a little. This error started occurring after updating my Java version. Could this cause nifty issues?
All the best.