Nullpointer exception

Hello everyone! It’s the first time I use the jmonkeyengine and I’ve test this tutorial https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_simpleapplication

But when I launch the program and I click on “ok” when the app’s windows appear I have this error:

[java]INFO: Running on jMonkey Engine 3 Alpha 0.6

15 oct. 2010 18:14:35 com.jme3.system.Natives extractNativeLibs

INFO: Extraction Directory #1: file:/C:/Users/destiny/Documents/NetBeansProjects/msn_alternative_repo/Msn_alternative/jME3_10-15-2010/

15 oct. 2010 18:14:35 com.jme3.system.Natives extractNativeLibs

INFO: Extraction Directory #2: C:UsersdestinyDocumentsNetBeansProjectsmsn_alternative_repoMsn_alternative

15 oct. 2010 18:14:35 com.jme3.system.Natives extractNativeLibs

INFO: Extraction Directory #3: C:UsersdestinyDocumentsNetBeansProjectsmsn_alternative_repoMsn_alternative

15 oct. 2010 18:14:35 com.jme3.system.lwjgl.LwjglAbstractDisplay run

INFO: Using LWJGL 2.5

15 oct. 2010 18:14:35 com.jme3.system.lwjgl.LwjglDisplay createContext

INFO: Selected display mode: 640 x 480 x 0 @0Hz

15 oct. 2010 18:14:35 com.jme3.app.Application handleError

GRAVE: Failed to create display

org.lwjgl.LWJGLException: Pixel format not accelerated

at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)

at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)

at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:185)

at org.lwjgl.opengl.Display.createWindow(Display.java:315)

at org.lwjgl.opengl.Display.create(Display.java:855)

at org.lwjgl.opengl.Display.create(Display.java:783)

at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:105)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:90)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:183)

at java.lang.Thread.run(Thread.java:619)

15 oct. 2010 18:14:35 com.jme3.system.lwjgl.LwjglTimer

INFO: Timer resolution: 1000 ticks per second

Exception in thread “LWJGL Renderer Thread” java.lang.NullPointerException

at com.jme3.renderer.lwjgl.LwjglRenderer.initialize(LwjglRenderer.java:172)

at com.jme3.system.lwjgl.LwjglContext.internalCreate(LwjglContext.java:72)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:133)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:183)

at java.lang.Thread.run(Thread.java:619)[/java]

I’m using the release “jME3_10-15-2010.zip” with netbeans. Is it normal? If not, can someone help me? Thanks

Try to update your graphic card drivers.

The renderer is failing when checking the capabilities of your graphic device, it should not be null.

1 Like