roborescue / adf-sample-agent-java

A sample team using RCRS Agent Development Framework
https://roborescue.github.io/rcrs-adf-sample/
BSD 3-Clause "New" or "Revised" License
11 stars 26 forks source link

start.sh error: java.net.URLClassLoader #5

Closed devswha closed 6 years ago

devswha commented 6 years ago

Dear developer, As refer to the manual, run rcrs-sever/start-comprun.sh script and when I run start.sh script, there is one error so that I cannot run the script.

Here is my java version information. java version "9.0.4" Java(TM) SE Runtime Environment (build 9.0.4+11) Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

Error message: [ RCRS ADF Version 2.3.0 (build 20180327T191931Z) ]

Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader at adf.launcher.AgentLauncher.initConnector(AgentLauncher.java:56) at adf.launcher.AgentLauncher.init(AgentLauncher.java:35) at adf.launcher.AgentLauncher.(AgentLauncher.java:29) at adf.Main.main(Main.java:23)

Would you help fix this running errors? I would really appreciate it if you could help.

Best regards, swha

gnardin commented 6 years ago

Dear @swhaKo , Looks like this error is happening because of a structural change on the Java 9. The "base ClassLoader is no longer from URLClassLoader". The solution to this issue may take some time and may require some testing. So, I recommend you to roll back to Java JDK 1.8 until this issue has been solved. Thank you, -Luis

gnardin commented 6 years ago

Dear @tkmnet , Can you please take a look at this issue as it is related to the roborescue/rcrs-adf-core Issue-1? Thank you, -Luis

tkmnet commented 6 years ago

Please merge and build my pull-request on rcrs-adf-core, and update adf-core.jar on this repository.

gnardin commented 6 years ago

Dear @tkmnet , I merged and tested the fix successfully. Thank you,

gnardin commented 6 years ago

Dear @swhaKo , The problem you reported has been fixed. We have tested it and it work correctly. Please check if you have any issues and let us know. I will wait until May 25 or until you reply to close the issue. Best regards,