Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exception: java.lang.IndexOutofBoundsException
05-08-2019, 19:34
Post: #1
Exception: java.lang.IndexOutofBoundsException
I am repeatedly receiving the following message when I attempt to rescan and it has made my MinimServer inoperative. Please advise.

Exception while processing action request: java.lang.IndexOutOfBoundsException: Index: 5451, Size: 5451
Find all posts by this user
Quote this message in a reply
05-08-2019, 20:55 (This post was last modified: 05-08-2019 20:56 by simoncn.)
Post: #2
RE: Exception: java.lang.IndexOutofBoundsException
Please copy and paste the full stack trace into a post here. You can find this in the MinimServer log (click Show log from the minim icon).
Find all posts by this user
Quote this message in a reply
05-08-2019, 21:00
Post: #3
RE: Exception: java.lang.IndexOutofBoundsException
MinimServer crash dump, produced at 20190805-041804.721

MinimServer: exception while processing action request: java.lang.IndexOutOfBoundsException: Index: 5451, Size: 5451

java.lang.IndexOutOfBoundsException: Index: 5451, Size: 5451
at java.util.ArrayList.rangeCheck(ArrayList.java:635)
at java.util.ArrayList.get(ArrayList.java:411)
at com.minimserver.Server$FolderComparator.compare(Server.java:18966)
at com.minimserver.Server$FolderComparator.compare(Server.java:18957)
at java.util.TimSort.binarySort(TimSort.java:265)
at java.util.TimSort.sort(TimSort.java:190)
at java.util.TimSort.sort(TimSort.java:173)
at java.util.Arrays.sort(Arrays.java:659)
at java.util.Collections.sort(Collections.java:217)
at com.minimserver.Server$FolderContainer.doPopulate(Server.java:18822)
at com.minimserver.Server$FolderContainer.populate(Server.java:18657)
at com.minimserver.Server.populateContainer(Server.java:6922)
at com.minimserver.Server.access$27900(Server.java:131)
at com.minimserver.Server$ContentDirectoryProvider.doBrowse(Server.java:20827)
at com.minimserver.Server$ContentDirectoryProvider.browse(Server.java:20775)
at org.openhome.net.device.providers.DvProviderUpnpOrgContentDirectory1$DoBrowse.ac​tionInvoked(DvProviderUpnpOrgContentDirectory1.java:978)

"Thread-1137" id=1147 RUNNABLE (in native)

"Thread-1136" id=1146 RUNNABLE
at sun.management.ThreadImpl.dumpThreads0(Native Method)
at sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:440)
at org.jminim.core.LogImpl.writeCrashDump(LogImpl.java:1206)
at org.jminim.core.LogImpl.printStackTraceSync(LogImpl.java:1131)
- locked org.jminim.core.LogImpl@1289116
at org.jminim.core.LogImpl.errorEx(LogImpl.java:232)
at com.minimserver.Server$ContentDirectoryProvider.browse(Server.java:20793)
at org.openhome.net.device.providers.DvProviderUpnpOrgContentDirectory1$DoBrowse.ac​tionInvoked(DvProviderUpnpOrgContentDirectory1.java:978)

"Thread-1135" id=1145 RUNNABLE (in native)

"Thread-1134" id=1144 RUNNABLE (in native)

"Thread-1133" id=1143 RUNNABLE (in native)

"Thread-1040" id=1050 RUNNABLE (in native)

"Thread-595" id=605 RUNNABLE (in native)

"Thread-372" id=382 RUNNABLE (in native)

"Thread-31" id=41 RUNNABLE (in native)

"Thread-30" id=40 RUNNABLE (in native)

"Thread-26" id=36 RUNNABLE (in native)

"Thread-13" id=23 RUNNABLE (in native)

"Thread-7" id=17 RUNNABLE (in native)
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at org.jminim.lib.HTTPService.runServerThread(HTTPService.java:333)
at org.jminim.lib.HTTPService.access$200(HTTPService.java:31)
at org.jminim.lib.HTTPService$1.run(HTTPService.java:318)

"Thread-6" id=16 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.HTTPService$SocketThread@4d59b1
at java.lang.Object.wait(Object.java:503)
at org.jminim.lib.HTTPService$SocketThread.run(HTTPService.java:388)

"Thread-5" id=15 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.OhNetService$TimerThread@3ba6e9
at org.jminim.lib.OhNetService$TimerThread.run(OhNetService.java:1015)

"Thread-4" id=14 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.OhNetService$ActionThread@4b1459
at java.lang.Object.wait(Object.java:503)
at org.jminim.lib.OhNetService$ActionThread.run(OhNetService.java:970)

"Thread-1" id=9 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.core.RuntimeImpl$TimerThread@124e456
at org.jminim.core.RuntimeImpl$TimerThread.run(RuntimeImpl.java:3935)

"Thread-0" id=8 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.core.RuntimeImpl$ActionThread@10aee97
at java.lang.Object.wait(Object.java:503)
at org.jminim.core.RuntimeImpl$ActionThread.run(RuntimeImpl.java:3889)

"Signal Dispatcher" id=4 RUNNABLE

"Finalizer" id=3 WAITING
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.ReferenceQueue$Lock@b61ff1
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)

"Reference Handler" id=2 WAITING
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.Reference$Lock@eb16f7
at java.lang.Object.wait(Object.java:503)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)

"main" id=1 WAITING
at java.lang.Object.wait(Native Method)
- waiting on java.lang.Object@30d680
at java.lang.Object.wait(Object.java:503)
at org.jminim.core.RuntimeImpl.waitForRequest(RuntimeImpl.java:3797)
at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:2315)
at org.jminim.core.LauncherImpl.run(LauncherImpl.java:1267)
at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:142)
at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jminim.mlaunch.MinimLaunch.doLaunch(MinimLaunch.java:519)
at org.jminim.mlaunch.MinimLaunch.launch(MinimLaunch.java:150)
at org.jminim.mlaunch.MinimLaunch.launch(MinimLaunch.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jminim.launch.Launcher.launch(Launcher.java:88)
at com.minimserver.launch.LaunchServer.main(LaunchServer.java:34)

- - - - - - - - - - - - - - - -
Find all posts by this user
Quote this message in a reply
05-08-2019, 21:19
Post: #4
RE: Exception: java.lang.IndexOutofBoundsException
Thanks for this. It looks like your control point might be accessing the list of folders while it is changing (or has changed very recently) because of a rescan. Which control point are you using?
Find all posts by this user
Quote this message in a reply
05-08-2019, 23:04
Post: #5
RE: Exception: java.lang.IndexOutofBoundsException
I recently did change my folders but was unable to change the content directories in MinimServer as it did not give me a GUI, only a text of status, so no way to delete or add content directories to reflect the folder changes.
I do not know what a "control point" is, so I cannot reply to your question. MinimServer is working in Synology.
Find all posts by this user
Quote this message in a reply
06-08-2019, 09:50
Post: #6
RE: Exception: java.lang.IndexOutofBoundsException
(05-08-2019 23:04)MarshBruce Wrote:  I recently did change my folders but was unable to change the content directories in MinimServer as it did not give me a GUI, only a text of status, so no way to delete or add content directories to reflect the folder changes.
I do not know what a "control point" is, so I cannot reply to your question. MinimServer is working in Synology.

The control point is the GUI that you use to browse your library and select music to play. How are you doing this?

On Synology, you can show the MinimServer web page by clicking on the MinimServer icon in the Synology DSM main menu or by clicking Open from the MinimServer icon in the Synology Package Center. This allows you to set and change a single content directory. To set more than one content directory and enable other diagnostic and configuration settings, you should install MinimWatch on another computer in your local network. See this section for details.
Find all posts by this user
Quote this message in a reply
06-08-2019, 21:41
Post: #7
RE: Exception: java.lang.IndexOutofBoundsException
I use both in Synology, I click on the MinimServer icon in the Synology DSM main menu and I click Open from the MinimServer icon in the Synology Package Center. Both bring up text of status page that does not allow me to alter the content directories.


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
06-08-2019, 21:52
Post: #8
RE: Exception: java.lang.IndexOutofBoundsException
Because you have set multiple content directories using MinimWatch, you cannot change these directories from the status page. You need to change these directories from MinimWatch.

To make progress with solving this problem, I need to know what control point you are using. The control point is the GUI that you use to browse your library and select music to play. How are you doing this?
Find all posts by this user
Quote this message in a reply
06-08-2019, 22:10
Post: #9
RE: Exception: java.lang.IndexOutofBoundsException
In Synology, I go to File Station and then select a directory that the music may be in. That works.

(I also use Naim app that shows MinimServer, and when I select that, it will show me the content directories (the older ones before the changes).

I hope I am being responsive to you inquiry
Find all posts by this user
Quote this message in a reply
07-08-2019, 09:51
Post: #10
RE: Exception: java.lang.IndexOutofBoundsException
It sounds like your control point is the Naim app. Do you have the Naim app running when you do a rescan and get the error message? If so, please try powering off the device that is running the Naim app and do the rescan again.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)