MinimServer Forum

Full Version: Error message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Bonjour Simon,

Got this message after starting MinimServer. Do I need to do anything? MinimServer works fine:

MinimServer[DiskStation] is running
HTTPConnection: exception while processing HTTP request: java.lang.NullPointerException
java.lang.NullPointerException
at com.minimstreamer.FLACResource.getNextFrame(FLACResource.java:284)
at com.minimstreamer.FLACResource.open(FLACResource.java:216)
at com.minimserver.ServerRequestHandler.processRequest(ServerRequestHandler.java:39​4)
at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​63)
at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:418)
Thanks for letting me know about this. This shouldn't be happening and I will investigate what might be causing it.
I believe I have a similar problem, Simon. Please move this if it isn't. Minimserver status page has an error in red: java.lang.NullPointerException and minimwatch is red. This happened after a firmware update on the QNAP where Minimserver resides. Minimwatch is on a Win10 machine. Restarting Minimserver has no remedy nor does setting resourceInfo to 3000. The error message is immediate on restart. Minimserver is down.

java.lang.NullPointerException
at com.minimstreamer.Streamer.checkPath(Streamer.java:293)
at com.minimstreamer.Streamer.configureConverter(Streamer.java:472)
at com.minimstreamer.Streamer.doTranscodeInit(Streamer.java:253)
at com.minimstreamer.Streamer.start(Streamer.java:146)
at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:167)
at com.minimserver.Server.doStart(Server.java:794)
at com.minimserver.Server.start(Server.java:456)
at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:167)
at org.jminim.core.ContextImpl.start(ContextImpl.java:92)
at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:1402)
at org.jminim.core.LauncherImpl.run(LauncherImpl.java:1106)
at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:121)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.jminim.launch.Launcher.doLaunch(Launcher.java:621)
at org.jminim.launch.Launcher.launch(Launcher.java:204)
at com.minimserver.launch.LaunchServer.main(LaunchServer.java:30)
MinimServer: resourceInfo setting is 3000
java.lang.NullPointerException
at com.minimstreamer.Streamer.checkPath(Streamer.java:293)
at com.minimstreamer.Streamer.configureConverter(Streamer.java:472)
at com.minimstreamer.Streamer.doTranscodeInit(Streamer.java:253)
at com.minimstreamer.Streamer.start(Streamer.java:146)
at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:167)
at com.minimserver.Server.doStart(Server.java:794)
at com.minimserver.Server.start(Server.java:456)
at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:167)
at org.jminim.core.ContextImpl.start(ContextImpl.java:92)
at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:1402)
at org.jminim.core.LauncherImpl.run(LauncherImpl.java:1106)
at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:121)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.jminim.launch.Launcher.doLaunch(Launcher.java:621)
at org.jminim.launch.Launcher.launch(Launcher.java:204)
at com.minimserver.launch.LaunchServer.main(LaunchServer.java:30)
(04-04-2016 11:23)mars51 Wrote: [ -> ]I believe I have a similar problem, Simon. Please move this if it isn't. Minimserver status page has an error in red: java.lang.NullPointerException and minimwatch is red. This happened after a firmware update on the QNAP where Minimserver resides. Minimwatch is on a Win10 machine. Restarting Minimserver has no remedy nor does setting resourceInfo to 3000. The error message is immediate on restart. Minimserver is down.

This isn't exactly the same problem but I am happy to use this thread for discussion. Which firmware version did you install? I have just updated my TS119 to the 11 March 2016 version of QTS 4.2.0 and I am not seeing this error.

The problem is caused by a missing PATH environment variable in the MinimServer process. I will add a check for this in the next MinimStreamer update so that MinimServer/MinimStreamer doesn't crash. However, the PATH variable should not be missing and I suggest you contact QNAP about this.
Thanks Simon. The firmware is the same as yours, their 11 March update to 4.2.0 I have an old TS-412. I have had these update problems before, which is why I waited this time. I imagine if the PATH variable was present in your update, it should worked for me.
Is there anything I can do? Reinstall Java perhaps?
Installing Java does change the PATH, so it is posssible that this could be related. You could try uninstalling Java, then rebooting the NAS and reinstalling Java. After this, reboot the NAS again.

If this doesn't solve the problem, login to the NAS using SSH. Type the command 'set' and copy and paste the complete output from this command into a post here.
Pleased to report that worked, Simon. Uninstall JRE, reboot, install JRE, reboot. Minimserver now running normally.
Reference URL's