|
MinimServer 2.2 - java.lang.StringIndexOutOfBoundsException: String index out of rang
|
|
05-04-2023, 02:55
(This post was last modified: 05-04-2023 02:56 by primouomo.)
Post: #1
|
|||
|
|||
|
MinimServer 2.2 - java.lang.StringIndexOutOfBoundsException: String index out of rang
I cannot even start the server, please see the error log below. I am on Win 10 and I had been using MinimServer for years and never had a blocker issue like this one.
Warning: conflicting ALBUM ARTIST values ignored for file classical/RCA LIVING STEREO/25 Brahms, Tchaikovsky/06. Tchaikovsky - Violin Concerto In D Op. 35 - 1. Allegro Vivacissimo.flac first conflicting value: Jascha Heifetz second conflicting value: Fritz Reiner java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(Unknown Source) at com.minimserver.Server$CachedAudioItem.readData(Server.java:20609) at com.minimserver.Server.readMetadata(Server.java:11568) at com.minimserver.Server.access$15400(Server.java:185) at com.minimserver.Server$Directory.postVisit(Server.java:17646) at com.minimserver.Server$Visitor.postVisitDirectory(Server.java:18067) at com.minimserver.Server$Visitor.postVisitDirectory(Server.java:17930) at java.nio.file.Files.walkFileTree(Unknown Source) at java.nio.file.Files.walkFileTree(Unknown Source) at com.minimserver.Server.readFiles(Server.java:8778) at com.minimserver.Server.doStart(Server.java:3846) at com.minimserver.Server.start(Server.java:1407) at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:204) at org.jminim.core.ContextImpl.start(ContextImpl.java:129) at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:2793) at org.jminim.core.LauncherImpl.run(LauncherImpl.java:1317) at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:125) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jminim.mlaunch.MinimLaunch.doLaunch(MinimLaunch.java:525) 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(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jminim.launch.Launcher.launch(Launcher.java:88) at com.minimserver.launch.LaunchServer.main(LaunchServer.java:38) |
|||
|
05-04-2023, 11:24
(This post was last modified: 05-04-2023 11:25 by simoncn.)
Post: #2
|
|||
|
|||
|
RE: MinimServer 2.2 - java.lang.StringIndexOutOfBoundsException: String index out of rang
Please do the following:
1) From the minim icon, select 'Show log' 2) From the log window, set the logging level to Trace 3) Leave the log window open 4) From the minim icon, select Restart 5) When you get the error, select 'Save as' from the log window and save the log file 6) Zip the log file (this step is important) and attach the zipped file to a post here as a file attachment. Don't try to copy lines from the log inline into a post. I will look at the log file and advise on next steps. |
|||
|
05-04-2023, 13:17
Post: #3
|
|||
|
|||
RE: MinimServer 2.2 - java.lang.StringIndexOutOfBoundsException: String index out of rang
(05-04-2023 11:24)simoncn Wrote: Please do the following: Thanks a lot! minimserver error.zip (Size: 32.51 KB / Downloads: 2)
|
|||
|
05-04-2023, 14:41
(This post was last modified: 05-04-2023 19:38 by simoncn.)
Post: #4
|
|||
|
|||
|
RE: MinimServer 2.2 - java.lang.StringIndexOutOfBoundsException
From this log, it looks like there might be a problem with the tagging of the file 12. Tchaikovsky - The Sleeping Beauty - Waltz.flac.
FLAC files should contain tags in the format tagName=tagValue. When a file is first read by MinimServer, these tags are added to the MinimServer cache. On subsequent scans of the library, the tags are read from the MinimServer cache instead of from the file. The error you have seen is caused by a tag being formatted incorrectly. Instead of tagName=tagValue, it is just tagName without an = sign. The code in MinimServer that reads tags from the cache assumes that the = sign is present and is producing this error when it is not present. To fix it, the first step is to use a tagging program to check the tags of this file to see if there are any tags without a value. If you find this, either delete the tags or give them values. If you have found any tags like this, you then need to exit MinimServer and delete the cache file and create it again. On Windows, the cache file is located at C:\Users\your-user-name\AppData\MinimServer\data\xxxx1.mcache or xxxx2.mcache, where xxxx is the name of your content directory. To be safe, I suggest you delete all files with a .mcache extension. The AppData folder is hidden by default in Windows File Explorer but you can type the full path into the Explorer address bar to view this folder. After you have done this, restart MinimServer to recreate the cache file or files. This will take much longer than usual because MinimServer needs to read every file from disk. If you don't find any tags like this, I suggest you exit MinimServer and delete the .mcache file or files as described above and try again. Edit: An alternative to editing the tags would be to temporarily remove this file from your library. You will still need to rebuild the cache as described above. |
|||
|
06-04-2023, 10:46
Post: #5
|
|||
|
|||
|
RE: MinimServer 2.2 - java.lang.StringIndexOutOfBoundsException
I have done some more investigation into this. MinimServer checks that tags in FLAC files are correctly formatted as tagName=tagValue, so it should not be possible to have an incorrectly formatted tag in the MinimServer cache file.
It is possible that the cache file has somehow become corrupt although I have never seen this before. The first step should be to delete and rebuild the cache file as described in my previous post. If the problem still occurs after this, I will need to see the cache file to find out what is causing the problem. My apologies for the inconvenience this is causing. |
|||
|
06-04-2023, 18:10
Post: #6
|
|||
|
|||
RE: MinimServer 2.2 - java.lang.StringIndexOutOfBoundsException: String index out of rang
(06-04-2023 10:46)simoncn Wrote: I have done some more investigation into this. MinimServer checks that tags in FLAC files are correctly formatted as tagName=tagValue, so it should not be possible to have an incorrectly formatted tag in the MinimServer cache file. Thanks a lot for the help! And clearing the cache files worked! |
|||
|
06-04-2023, 22:51
Post: #7
|
|||
|
|||
|
RE: MinimServer 2.2 - java.lang.StringIndexOutOfBoundsException
I am pleased to hear this. If it happens again, please save a copy of the .mcache file before clearing it, so that I can look at this file to see what has caused the error.
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help



