So I recently spent at least 10 hours making a scene and something happened where I ran the scene and I got a null pointer, and a problem with binary importer. I tried to undo everything but it wouldnt let me. How can I fix this? I would absolutely hate to redo it and have the same thing happen. Error:
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.NullPointerException
at com.jme3.export.binary.BinaryImporter.readObject(BinaryImporter.java:313)
at com.jme3.export.binary.BinaryImporter.load(BinaryImporter.java:243)
at com.jme3.export.binary.BinaryImporter.load(BinaryImporter.java:126)
at com.jme3.export.binary.BinaryImporter.load(BinaryImporter.java:110)
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:283)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:369)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:373)
at mygame.Main.loadTerrain(Main.java:82)
at mygame.Main.simpleInitApp(Main.java:63)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:225)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:130)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:207)
at java.lang.Thread.run(Thread.java:662)
I found the tab where you can display the history files and I go to a file, click replace all to the current file but it doesn’t save. Is there another way to apply files from history?
@normen can you give me a solution? This is very very disapointing to me that a null pointer corrupted the entire file because it says 1kb which cannot possibly have any data. I will not continue until I have a solution because if it happens again I will be pissed beyond belief.
Could you upload the J3o? It seems you’re using RC2, and I’d like to test it against last SVN.
A nullpointer should be easy to figure out, maybe your file can be restored in some way.
@zarch I was copying scene objects and adding them, ran the program, got the error and I haven’t been able to open the composer of the scene yet. It says error in scene. I am using rc2. And under the file history, it uses the net beans to crest backup patch files and I am having trouble applying the history files to the current one.
I followed the manual but when I right click the .j3o files, I get the option to revert back to the history, but I can’t click on it. I don’t know if this is a jme3 glitch or I have something set up wrong.
@jrlowe said:
I guess I tightroped in a hurricane with no net. Guess I am back to plan A but hey, a lesson learned.
Sorry you had to learn this particular lesson the hard way.
I could spin many horrifying tales of life lessons slowly teaching me to always use revision control and to always make frequent backups. To include losing almost a years worth of artwork, writing, and code when some hard drives died within a few hours of each other. “But I backed it up to another hard drive?!?”
@jrlowe said:
I guess I tightroped in a hurricane with no net. Guess I am back to plan A but hey, a lesson learned.
Or....you could listen to me and upload your j3o, so I look into it.
There are no guaranty, your j3o is maybe completely screwed up, but you never know if it's a NPE it's maybe just something missing somewhere...
I could restore your file, and even try to understand what went wrong and help make the SDK a bit more reliable.
I already installed and set up tortoise and am saving my work via assembla so I think it should be fine though. I had no version control previously so don’t bother trying to fix it. Most likely user error