Minecraft Server Instance fail - Java error

OS Name/Version: Windows Desktop Windows 11 / x86_64 CPU: Intel(R) Core™ i7-8700K CPU @ 3.70GHz (6C/12T)

Product Name/Version: AMP version 2.4.3.0 (Decadeus), built 14/03/2023 23:15

Problem Description: Minecraft server instance fails on startup, and gives me this error in logs: It says that it “Cannot complete this action” when starting the server.

[19:50:01] [Core Info]            : Licence Present: AMP Professional Edition
[19:50:01] [ModuleLoader Notice]  : Using keypair with fingerprint mGvGKZe97s4Ova+hXZCwX3EzRayk72TuG4zi2YkrSOc=
[19:50:01] [ModuleLoader Info]    : SFTP Server started on 0.0.0.0:2224
[19:50:01] [WebServer Info]       : Websockets are enabled.
[19:50:01] [APIService Error]     : Failure to evaluate list source for setting: 
[19:50:01] [APIService Error]     : Couldn't create a delegate for MinecraftModule.MCConfig+JavaSettings.JavaVersionSelectionSource - Illegal characters in path.
[19:50:02] [Core Info]            : Webserver started on http://127.0.0.1:8081
[19:50:02] [WebServer Warning]    : RouterTimer@10Hz with 2 jobs started
[19:50:02] [System Info]          : Checking for AMP updates...
[19:50:02] [System Info]          : AMP is up-to-date.
[19:50:06] [System Info]          : Modpack cache is up-to-date.
[19:52:07] [Core Activity]        : Authentication attempt for user admin from 127.0.0.1
[19:52:09] [Core Activity]        : Authentication success
[19:52:10] [System Warning]       : Slow method invocation: Login took 2623ms to complete.
[19:52:10] [System Warning]       : Slow response: Core.Login took 2631ms to complete.
[19:52:10] [API:admin Error]      : Failure to evaluate list source for setting: MinecraftModule.JavaSettings.JavaVersion
[19:52:10] [API:admin Error]      : Couldn't create a delegate for MinecraftModule.MCConfig+JavaSettings.JavaVersionSelectionSource - Illegal characters in path.
[19:52:29] [API:admin Activity]   : Starting the application.
[19:54:42] [Core Activity]        : Authentication attempt for user admin from 127.0.0.1
[19:54:45] [Core Activity]        : Authentication success
[19:54:45] [System Warning]       : Slow method invocation: Login took 2497ms to complete.
[19:54:45] [System Warning]       : Slow response: Core.Login took 2498ms to complete.
[19:54:45] [API:admin Error]      : Failure to evaluate list source for setting: MinecraftModule.JavaSettings.JavaVersion
[19:54:45] [API:admin Error]      : Couldn't create a delegate for MinecraftModule.MCConfig+JavaSettings.JavaVersionSelectionSource - Illegal characters in path.
[19:56:07] [API:admin Activity]   : Starting the application.
[19:56:11] [API:admin Activity]   : Starting the application.
[19:56:15] [API:admin Activity]   : Starting the application.
[21:20:03] [Core Activity]        : Authentication attempt for user admin from 127.0.0.1
[21:20:06] [Core Activity]        : Authentication success
[21:20:06] [System Warning]       : Slow method invocation: Login took 2501ms to complete.
[21:20:06] [System Warning]       : Slow response: Core.Login took 2502ms to complete.
[21:20:07] [API:admin Error]      : Failure to evaluate list source for setting: MinecraftModule.JavaSettings.JavaVersion
[21:20:07] [API:admin Error]      : Couldn't create a delegate for MinecraftModule.MCConfig+JavaSettings.JavaVersionSelectionSource - Illegal characters in path.
[21:20:15] [API:admin Activity]   : Starting the application.
[21:20:20] [API:admin Activity]   : Starting the application.
[21:22:19] [Core Activity]        : Authentication attempt for user admin from 127.0.0.1
[21:22:21] [Core Activity]        : Authentication success
[21:22:21] [System Warning]       : Slow method invocation: Login took 2480ms to complete.
[21:22:21] [System Warning]       : Slow response: Core.Login took 2481ms to complete.
[21:22:23] [API:admin Error]      : Failure to evaluate list source for setting: MinecraftModule.JavaSettings.JavaVersion
[21:22:23] [API:admin Error]      : Couldn't create a delegate for MinecraftModule.MCConfig+JavaSettings.JavaVersionSelectionSource - Illegal characters in path.
[21:30:13] [System:admin Warning] : Slow method invocation: GetAMPUsersSummary took 2429ms to complete.
[21:30:13] [System:admin Warning] : Slow response: Core.GetAMPUsersSummary took 2430ms to complete.
[21:32:22] [System:admin Warning] : Slow method invocation: SetAMPRolePermission took 2041ms to complete.
[21:32:22] [System:admin Warning] : Slow response: Core.SetAMPRolePermission took 2041ms to complete.
[21:32:24] [System:admin Warning] : Slow method invocation: SetAMPRolePermission took 2049ms to complete.
[21:32:24] [System:admin Warning] : Slow response: Core.SetAMPRolePermission took 2050ms to complete.
[21:32:58] [API:admin Activity]   : Changing setting GSMyAdmin.GSMyAdminSettings.Theme to Aura
[21:35:32] [Core Activity]        : Authentication attempt for user admin from 127.0.0.1
[21:35:35] [Core Activity]        : Authentication success
[21:35:35] [System Warning]       : Slow method invocation: Login took 2538ms to complete.
[21:35:35] [System Warning]       : Slow response: Core.Login took 2538ms to complete.
[21:35:38] [API:admin Error]      : Failure to evaluate list source for setting: MinecraftModule.JavaSettings.JavaVersion
[21:35:38] [API:admin Error]      : Couldn't create a delegate for MinecraftModule.MCConfig+JavaSettings.JavaVersionSelectionSource - Illegal characters in path.
[21:38:46] [Core Activity]        : Authentication attempt for user admin from 127.0.0.1
[21:38:49] [Core Activity]        : Authentication success
[21:38:49] [System Warning]       : Slow method invocation: Login took 2500ms to complete.
[21:38:49] [System Warning]       : Slow response: Core.Login took 2501ms to complete.
[21:38:50] [API:admin Activity]   : Starting the application.
[21:38:51] [API:admin Error]      : Failure to evaluate list source for setting: MinecraftModule.JavaSettings.JavaVersion
[21:38:51] [API:admin Error]      : Couldn't create a delegate for MinecraftModule.MCConfig+JavaSettings.JavaVersionSelectionSource - Illegal characters in path.
[21:38:54] [API:admin Activity]   : Starting the application.
[21:39:05] [API:admin Activity]   : Updating the application.
[21:39:05] [System:admin Warning] : Returned exception from API call Core/UpdateApplication
[21:39:05] [Core:admin Error]     : ArgumentException
[21:39:05] [Core:admin Error]     : [0] (ArgumentException) : Illegal characters in path.
[21:39:05] [Core:admin Error]     :    at IO.LongPathHelper.Normalize(String path, UInt32 maxPathLength, Boolean checkInvalidCharacters, Boolean expandShortPaths)
   at IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at IO.Path.GetFullPathInternal(String path)
   at IO.DirectoryInfo.Init(String path, Boolean checkHost)
   at MinecraftModule.MinecraftApp.GetJavaVersions()
   at MinecraftModule.MinecraftApp.FindJava()
   at MinecraftModule.MinecraftApp.Update()
   at GSMyAdmin.WebServer.WebMethods.UpdateApplication()
   at GSMyAdmin.WebServer.WebAttributes.<InvokeMethod>()
   at GSMyAdmin.WebServer.APIService.<InvokeAPI>()
[21:50:45] [Core Activity]        : Authentication attempt for user admin from 127.0.0.1
[21:50:48] [Core Activity]        : Authentication success
[21:50:48] [System Warning]       : Slow method invocation: Login took 2507ms to complete.
[21:50:48] [System Warning]       : Slow response: Core.Login took 2508ms to complete.
[21:50:50] [API:admin Error]      : Failure to evaluate list source for setting: MinecraftModule.JavaSettings.JavaVersion
[21:50:50] [API:admin Error]      : Couldn't create a delegate for MinecraftModule.MCConfig+JavaSettings.JavaVersionSelectionSource - Illegal characters in path.
[21:51:18] [API:admin Activity]   : Starting the application.
[21:51:22] [API:admin Activity]   : Starting the application.

Seems like my java config is wrong, however I’m not sure how to fix it.

Actions taken to resolve so far:

  • Reinstalled AMP
  • Reinstalled Java
  • Restarted computer mutiple times

Can you run these in a command prompt and show me the output please?

echo %PATH%
echo %JAVA_HOME%

You’ve got a bad environment variable somewhere that’s screwing with things.

Edit: Next AMP update has a change that makes it tolerant of bad environment variables, so this will fix itself.

1 Like

Here’s the output from the 2 commands:

C:\Users\CaptainATW>echo %JAVA_HOME%
"C:\Program Files\Java\jdk1.8.0_05"

C:\Users\CaptainATW>echo %PATH%
C:\Program Files\Eclipse Foundation\jdk-16.0.2.7-hotspot\bin;C:\Program Files\Eclipse Adoptium\jre-17.0.6.10-hotspot\bin;C:\Program Files\Eclipse Adoptium\jre-8.0.362.9-hotspot\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;"C:\Program Files\Java\jdk1.8.0_05\bin";;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CubeCoders Limited\AMP\;C:\Users\CaptainATW\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\CaptainATW\AppData\Local\Programs\Python\Python311\;C:\Users\CaptainATW\AppData\Local\Microsoft\WindowsApps;C:\Users\CaptainATW\AppData\Local\atom\bin;;C:\Users\CaptainATW\AppData\Local\spicetify;C:\Users\CaptainATW\AppData\Local\Microsoft\WindowsApps;C:\Users\CaptainATW\AppData\Local\Programs\Microsoft VS Code\bin```

Yeah so your PATH variable is damaged. It has empty values and random quote marks at the end. Edit this variable via the System control panel to remove the errant quotes at the end and double semi colons.

Or just wait for the next update which allows AMP to tolerate damaged variables.

1 Like

Thank you, I removed the quotes and it works now

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.