|
Error: String index out of range: 24?
|
|
07-09-2022, 12:17
Post: #1
|
|||
|
|||
|
Error: String index out of range: 24?
Hi all,
I'm getting an error on MinimServer 2.1: Unexpected exception java.lang.StringIndexOutOfBoundsException: String index out of range: 24 I can't think that I've done or am doing anything different to previously. MinimServer is failing to restart or rescan. Done a full computer restart, same issue persists. Thoughts anyone, Simon? Thanks in advance, Andrew |
|||
|
07-09-2022, 18:00
Post: #2
|
|||
|
|||
|
RE: Error: String index out of range: 24?
Please post the complete stack trace for this error. You can find this in the MinimServer log after the error has occurred.
|
|||
|
08-09-2022, 00:10
Post: #3
|
|||
|
|||
|
RE: Error: String index out of range: 24?
Hi Simon,
Thank you for replying. I presume this is what you are referring to... Current time is Wed Sep 07 21:33:33 AEST 2022 in time zone Australia/Melbourne java.lang.StringIndexOutOfBoundsException: String index out of range: 24 at java.lang.String.substring(String.java:1963) at com.minimserver.Server.readAddedDates(Server.java:8728) at com.minimserver.Server.doStart(Server.java:3849) at com.minimserver.Server.start(Server.java:1370) at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:230) at org.jminim.core.ContextImpl.start(ContextImpl.java:118) at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:2725) at org.jminim.core.LauncherImpl.run(LauncherImpl.java:1316) at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.jminim.launch.Launcher.launch(Launcher.java:88) at com.minimserver.launch.LaunchServer.main(LaunchServer.java:38) |
|||
|
08-09-2022, 09:53
Post: #4
|
|||
|
|||
|
RE: Error: String index out of range: 24?
Thanks for this. Are you running MinimServer on a Windows PC?
|
|||
|
08-09-2022, 11:28
Post: #5
|
|||
|
|||
| RE: Error: String index out of range: 24? | |||
|
08-09-2022, 14:24
Post: #6
|
|||
|
|||
|
RE: Error: String index out of range: 24?
This is a known problem that is fixed in the latest MinimServer update (update 218). To install this update, select Properties from the minim icon in the macOS taskbar, then select Packages. You should see minimserver-update-218 listed in the Available packages box. Select this package, then click Install and follow the prompts. When the package has been installed successfully, click Relaunch. MinimServer should restart without this error.
I am not sure why this update was not installed automatically for you. MinimServer checks for online updates when it is started and automatically downloads and installs the latest available update. This should happen if an internet connection is available and you have not disabled automatic updates in the Properties dialog. |
|||
|
08-09-2022, 14:34
(This post was last modified: 08-09-2022 14:40 by AndrewS.)
Post: #7
|
|||
|
|||
|
RE: Error: String index out of range: 24?
Thank you for this. I had autoUpdate set to 'false', so my bad there.
I've downloaded the latest update, however I'm now getting a new error, which is preventing rescan or restart: MinimServer 2.1 update 218, Copyright © 2012-2022 Simon Nash. All rights reserved. Java SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot 64-Bit Server VM (build 25.131-b11, mixed mode) Java runtime options: -Dfile.encoding=UTF-8 Platform default charset is UTF-8 System platform is macos-intel Using platform default language English (en-US) Current time is Thu Sep 08 23:26:26 AEST 2022 in time zone Australia/Melbourne starting flac Library MinimServer: incorrect date and time on line 882 of added-dates.txt Startup complete (I've searched for a file named 'added-dates.txt', to no avail.) |
|||
|
08-09-2022, 14:47
Post: #8
|
|||
|
|||
|
RE: Error: String index out of range: 24?
The added-dates.txt file is in your ~/Library/MinimServer/recent folder. To view this folder in macOS Finder, select 'Go to folder' and type this exact string as the folder location. The ~/Library folder is not the same as the /Library folder that Finder displays in its folder list.
When you have located the added-dates.txt file, attach it to a forum post here as a file attachment. Don't copy the contents into a post inline. I will look at the file to see what has caused this error message. |
|||
|
08-09-2022, 14:51
(This post was last modified: 08-09-2022 14:59 by AndrewS.)
Post: #9
|
|||
|
|||
|
RE: Error: String index out of range: 24?
Hmmm, no joy there. See attached screen grab. Have I got the correct search string? I have tried variations; removing tilda etc, with same result...
|
|||
|
08-09-2022, 15:01
Post: #10
|
|||
|
|||
|
RE: Error: String index out of range: 24?
It should be
~/Library/MinimServer/recent not ~/Library/MinimServer/recent folder |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help



