MinimServer Forum
Minimserver java exception error - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: Minimserver java exception error (/showthread.php?tid=2823)



Minimserver java exception error - Martin H - 23-12-2015 11:45

Simon

Woke up this morning and minimserver appeared offline and there was an exception error in the log. The detail is below:

Control point - Lumin on ipad Air all up to date versions (typically use Kazoo but was just trying it this morning for the first time in ages and so it would have probably needed to resync it's database etc. but it seemed to show as offline immediately).

Melco N1A - minimserver 75 updated yesterday (along with minimwatch)

The NAS and file system were all visible and accessible using windows explorer but minimwatch showed the Melco in red.

I simply restarted and things seem to be OK now. Smile - but thought I should post the detail here for record.


MinimServer 0.8.3 update 75, Copyright © 2012-2015 Simon Nash. All rights reserved.
MinimStreamer 0.5.21, Copyright © 2012-2015 Simon Nash. All rights reserved.
Java™ SE Runtime Environment (build 1.8.0_33-b05)
Java HotSpot™ Client VM (build 25.33-b05, mixed mode)
Platform default charset is US-ASCII
Language setting is 'en'
Current time is Tue Dec 22 16:04:23 GMT 2015 in time zone Europe/London
starting MinimServer[N1-03B4]
MinimServer[N1-03B4] is running
MinimServer: exception while processing action request: java.lang.IndexOutOfBoundsException: Index: 5103, Size: 5103
java.lang.IndexOutOfBoundsException: Index: 5103, Size: 5103
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at com.minimserver.Server$FolderComparator.compare(Server.java:18188)
at com.minimserver.Server$FolderComparator.compare(Server.java:18179)
at java.util.TimSort.countRunAndMakeAscending(TimSort.java:351)
at java.util.TimSort.sort(TimSort.java:216)
at java.util.Arrays.sort(Arrays.java:1512)
at java.util.ArrayList.sort(ArrayList.java:1454)
at java.util.Collections.sort(Collections.java:175)
at com.minimserver.Server$FolderContainer.doPopulate(Server.java:18000)
at com.minimserver.Server$FolderContainer.populate(Server.java:17845)
at com.minimserver.Server.populateContainer(Server.java:6687)
at com.minimserver.Server.access$21200(Server.java:114)
at com.minimserver.Server$ContentDirectoryProvider.doBrowse(Server.java:19806)
at com.minimserver.Server$ContentDirectoryProvider.browse(Server.java:19760)
at org.openhome.net.device.providers.DvProviderUpnpOrgContentDirectory1$DoBrowse.ac​tionInvoked(DvProviderUpnpOrgContentDirectory1.java:978)
MinimServer error: now stopped, use 'restart' or 'exit'
Language setting is 'en'
Current time is Wed Dec 23 10:30:33 GMT 2015 in time zone Europe/London
starting MinimServer[N1-03B4]
MinimServer[N1-03B4] is running


RE: Minimserver java exception error - simoncn - 29-12-2015 22:31

Thanks for letting me know about this. I can imagine a very unusual combination of circumstances that might possibly produce this stack trace. I have added some code that I hope will prevent this or make it much less likely to occur.


RE: Minimserver java exception error - Martin H - 29-12-2015 22:43

Thanks Simon. I haven't seen it since and everything has been working well.


RE: Minimserver java exception error - simoncn - 03-02-2016 18:33

(29-12-2015 22:43)Martin H Wrote:  Thanks Simon. I haven't seen it since and everything has been working well.

I have found out what was causing this and it is now fixed in MinimServer update 76. Thanks very much for letting me know about the problem.