: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

package mygame;
import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.renderer.RenderManager;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.input.;
import com.jme3.input.controls.
;
import com.jme3.input.MouseInput;
import com.jme3.input.controls.KeyTrigger;
import com.jme3.input.controls.MouseButtonTrigger;
import com.jme3.input.controls.ActionListener;
import com.jme3.input.controls.AnalogListener;

public class Rotate extends SimpleApplication
{
private final static Trigger TRIGGER_COLOR = new KeyTrigger(KeyInput.KEY_SPACE);
private final static Trigger TRIGGER_ROTATE = new MouseButtonTrigger(MouseInput.BUTTON_LEFT);
private final static String MAPPING_COLOR = “Toggle Color”;
private final static String MAPPING_ROTATE = “Rotate”;
public static void main(String[] args)
{
Rotate app = new Rotate();
app.start();
}

private Geometry geom;
@Override
public void simpleInitApp()
{
inputManager.addMapping(MAPPING_COLOR, TRIGGER_COLOR);
inputManager.addMapping(MAPPING_ROTATE, TRIGGER_ROTATE);
inputManager.addListener(actionListener, new String[]{MAPPING_COLOR});
inputManager.addListener(analogListener, new String[]{MAPPING_ROTATE});
Box b = new Box(1, 1, 1);
Geometry geom = new Geometry(“Box”, b);
Material mat = new Material(assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);
mat.setColor(“Color”, ColorRGBA.Green);
geom.setMaterial(mat);
rootNode.attachChild(geom);
}
private ActionListener actionListener = new ActionListener()
{
public void onAction(String name, boolean isPressed, float tpf)
{
if (name.equals(MAPPING_COLOR) && !isPressed)
{
geom.getMaterial().setColor(“Color”, ColorRGBA.randomColor());
}
}
};
private AnalogListener analogListener = new AnalogListener()
{
public void onAnalog(String name, float intensity, float tpf)
{
if (name.equals(MAPPING_ROTATE))
{
geom.rotate(0, intensity, 0);
}
}
};

@Override
public void simpleUpdate(float tpf) 
{
    //TODO: add update code
}

@Override
public void simpleRender(RenderManager rm) 
{
    //TODO: add render code
}

}

debug:
Jan 06, 2014 7:06:43 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(…) returned error code 5.
Jan 06, 2014 7:06:45 PM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.0.0 RC2
Jan 06, 2014 7:06:45 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Lwjgl 2.9.0 context running on thread LWJGL Renderer Thread
Jan 06, 2014 7:06:45 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Adapter: atiu9p64 aticfx64 aticfx64 atiu9pag aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64
Jan 06, 2014 7:06:45 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Driver Version: null
Jan 06, 2014 7:06:45 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Vendor: ATI Technologies Inc.
Jan 06, 2014 7:06:45 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: OpenGL Version: 3.2.9606 Compatibility Profile Context
Jan 06, 2014 7:06:45 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Renderer: ATI Radeon HD 4250
Jan 06, 2014 7:06:45 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: GLSL Ver: 1.50
Jan 06, 2014 7:06:46 PM com.jme3.asset.AssetConfig loadText
WARNING: Cannot find loader com.jme3.scene.plugins.blender.BlenderModelLoader
Jan 06, 2014 7:06:46 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Device: OpenAL Soft
Jan 06, 2014 7:06:46 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Vendor: OpenAL Community
Jan 06, 2014 7:06:46 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Renderer: OpenAL Soft
Jan 06, 2014 7:06:46 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Version: 1.1 ALSOFT 1.15.1
Jan 06, 2014 7:06:46 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: AudioRenderer supports 64 channels
Jan 06, 2014 7:06:46 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio effect extension version: 1.0
Jan 06, 2014 7:06:46 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio max auxilary sends: 4
Jan 06, 2014 7:06:56 PM com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.NullPointerException
at mygame.Rotate$2.onAnalog(Rotate.java:70)
at com.jme3.input.InputManager.invokeAnalogs(InputManager.java:245)
at com.jme3.input.InputManager.invokeUpdateActions(InputManager.java:215)
at com.jme3.input.InputManager.update(InputManager.java:883)
at com.jme3.app.Application.update(Application.java:604)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:231)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:151)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:185)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:228)
at java.lang.Thread.run(Thread.java:722)

BUILD SUCCESSFUL (total time: 16 seconds)

this is the problem i am encountering i almost followed all the steps correctly but i could not figure out what is the problem plz help me.

It even says exactly what line the problem is on, line 70 in Rotate.java you have a null pointer exception.

“java.lang.NullPointerException at mygame.Rotate$2.onAnalog(Rotate.java:70)”

This is basic java stuff, maybe it would be helpful if you did something simpler than 3D game coding to start with.

Thank you, i did not realize the mistake, i corrected it.