MinimServer Forum

Full Version: OutofBounds Exception Asustor ARM version
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm running Minimserver on an ARM Asustor NAS.

On startup, Minimserver always repeatedly fails with an OutofBounds exception (Decoding Failure). It looks like it is parsing the NAS music content, but the failure is not at the same place each time.

If restarted 3 or 4 times, following re-occurence this is then eventually overcome, and the implementation works pretty solidly* for the rest of the session.

(*It will quite often fail again on first access by either of my two control points/renderers, but this is always fixed by a further single restart. )

I've lived with the issue so far, but like Minimserver enough to see if it is fixable.

I can quite easily capture logs at startup, but not sure if debug or trace is the best option?
Thanks for letting me know about this. I have been trying to track down this intermittent problem for a long time. It is a bug in Java, not MinimServer, and it is very hard to debug because I can do the same thing twice in succession and it might fail one time and work the next time.

What is the exact model of your NAS, and what versions of ADM, MinimServer and Java are you running?

Also, please post the exact error message from the MinimServer log, with the stack trace, the next time it happens.

NAS is an ASUSTOR 1002T

ADM is 2.7.1.RFT5 (the latest, though the same issues occurred on the previous version(s))

Minimserver is 0.8.4 update 99 (and the same comments apply as for ADM)

JRE is 1.8.0_51.1 (the only (ASUSTOR-provided) version that has ever been available during my ownership)

Log extract as follows (if you want more, you'll need to be more specific in your terminology ;-) )


07:58:51.790 main: postVisit: dirPath=/volume1/Media/Music/Al Green - Greatest Hits (Disc 2)
Decoding failure: bytes.length=13 bytes=47726561746573742048697473
java.lang.ArrayIndexOutOfBoundsException: 0
at sun.nio.cs.UTF_8$Decoder.decode(
at java.lang.StringCoding.decode(
at java.lang.String.<init>(
at java.lang.String.<init>(
at com.minimserver.Server$IdentityValue.toString(
at com.minimserver.Server.titleToString(
at com.minimserver.Server.computeAlbumInfoLocations(
at com.minimserver.Server.processDir(
at com.minimserver.Server.access$6700(
at com.minimserver.Server$Directory.postVisit(
at com.minimserver.Server$Visitor.postVisitDirectory(
at com.minimserver.Server$Visitor.postVisitDirectory(
at java.nio.file.Files.walkFileTree(
at java.nio.file.Files.walkFileTree(
at com.minimserver.Server.readFiles(
at com.minimserver.Server.doStart(
at com.minimserver.Server.start(
at org.jminim.core.ContextImpl.startComponent(
at org.jminim.core.ContextImpl.start(
at org.jminim.core.RootContextImpl.startComponent(
at org.jminim.core.ContextImpl.start(
at org.jminim.core.LauncherImpl.launch(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
at java.lang.reflect.Method.invoke(
at org.jminim.launch.Launcher.doLaunch(
at org.jminim.launch.Launcher.launch(
at com.minimserver.launch.LaunchServer.main(
07:58:52.149 main: error while starting component minimserver in context context0
07:58:52.149 main: >>> EVENT >>> componentError: minimserver
07:58:52.150 main: ServerControl: componentError event for minimserver
07:58:52.150 main: Monitor: componentError event for minimserver in context context0
07:58:52.151 main: stopping component minimserver in context context0
07:58:52.151 main: >>> EVENT >>> componentStopping: minimserver
07:58:52.151 main: ServerControl: componentStopping event for minimserver
07:58:52.152 main: Monitor: componentStopping event for minimserver in context context0
07:58:52.152 main: stopping MinimServer
07:58:52.153 main: disposing http service
07:58:52.154 main: disposing HTTPContext

Thanks for this information. The problem is related to the version of Java that ASUSTOR is providing.

I can PM you instructions for installing a later version of Java. Are you familiar with Linux commands?
...a late night, Simon! Thanks for the response.

I'm tech savvy, but very inexperienced with Linux.

I'm quite happy, for instance, using WinSCP, to explore "behind the scenes" in the NAS, and change parameters, but when it comes to using Linux commands to achieve something, then I'm a complete novice. I do have access to someone with a little more Linux experience, though.

If the instructions are easily scriptable for following, then it would be worthwhile PM'ing them, and I'll make a judgement. (It would also be good if the uninstall process was simple, such that I could revert, as there is a small number of other things on the NAS that depend on Java).

thank you for the instructions and the downloads via PM. All was pretty straightforward, and I can follow what the Scripts do/have done.

After updating Java, I've loaded and reloaded Minimserver a few times, and played music using both of my (different technology) control points/renderers.

So far so good - the consistent failures on startup have now completely disappeared, and the more sporadic failure on first access from a renderer hasn't yet re-occurred.

I'm very pleased, as I do like the implementation and functionality of Minimserver (not to mention the support Wink ) and whilst the issues were recoverable, they were also niggling.

I'll give it a bit more of a "soak test" when I get opportunity, and if all is still OK, I'll drop a small donation in via Paypal.

Many thanks.
Thanks for letting me know. I think it is very likely that this Java update has fixed the problem.

If anyone else is seeing the same problem, please let me know by posting here.
Well, best part of a week on, and nary a problem with anything.

Minimserver is now my main server software, and I've dropped a small donation in by Paypal.

Thanks Simon.
Thanks for testing this and for the donation.

I have decided to include the latest Java runtime in the ASUSTOR MinimServer package for ARM. This is simpler for users to install than doing what you did. This is an officially supported MinimServer build and I suggest you update to it by running the script and then downloading and manually installing MinimServer- You can find step-by-step instructions on this page.

With this package installed, MinimServer doesn't use the ASUSTOR version of Java but uses a bundled version that has a fix for the bug you were seeing.
...done all that Simon.

Confirmed that the new installation is (on minimal testing) looking OK.

I'll update again after a longer spell of use.
Pages: 1 2
Reference URL's