MinimServer Forum
Java problem with minimserver 2.2 - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: Java problem with minimserver 2.2 (/showthread.php?tid=6906)



Java problem with minimserver 2.2 - lafuente - 05-05-2023 07:27

Hello,

I recently updated my linux system and since I can't launch Minimserver.

The java version is :
Code:
openjdk version "17.0.6" 2023-01-17
OpenJDK Runtime Environment (build 17.0.6+10-Debian-1)
OpenJDK 64-Bit Server VM (build 17.0.6+10-Debian-1, mixed mode, sharing)

And Minimserver reply this when using "./startc" command :

Code:
java.lang.StringIndexOutOfBoundsException: begin 0, end 4, length 1
        at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4602)
        at java.base/java.lang.String.substring(String.java:2705)
        at org.jminim.core.RuntimeImpl.formatDate(RuntimeImpl.java:1790)
        at org.jminim.core.RuntimeImpl.checkStreamerLicenseExpiry(RuntimeImpl.java:1783)
        at org.jminim.core.RuntimeImpl.initRuntime(RuntimeImpl.java:401)
        at org.jminim.core.LauncherImpl.run(LauncherImpl.java:1172)
        at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:125)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja​va:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso​rImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja​va:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso​rImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.jminim.launch.Launcher.launch(Launcher.java:88)
        at com.minimserver.launch.LaunchServer.main(LaunchServer.java:38)

Can you please help me ?
Thank you,
Manu


RE: Java problem with minimserver 2.2 - simoncn - 05-05-2023 10:54

This is a MinimServer problem, not a Java problem. You should be able to work around it by doing the following:

1) In the minimserver/data folder, either delete or rename the files minimserver.config and minimserver.config.save
2) Use the startc command to start MinimServer
3) You will see an error message about MinimStreamer having been disabled
4) Open the MinimServer configuration web page and select the License tab
5) You should see a message telling you that your license has been updated from Starter to Full
6) Use the exit command to stop MinimServer
7) Use the startc command to start MinimServer
8) MinimServer and MinimStreamer should now be running normally


RE: Java problem with minimserver 2.2 - lafuente - 05-05-2023 12:16

Thank you Simon,
Problem solved.