Re: Robocode crashing at intialization

fnl <[email protected]> Thu, 6 Oct 2022 06:21:24 -0700 (PDT)
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
------=_Part_1478_590524236.1665062484713
Content-Type: multipart/alternative; 
	boundary="----=_Part_1479_1548591626.1665062484713"

------=_Part_1479_1548591626.1665062484713
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thank you for the follow-up. =F0=9F=99=82=F0=9F=91=8D
 I will keep this in mind if we see this issue again, which is very likely.

Cheers,
- Flemming

mandag den 3. oktober 2022 kl. 22.38.57 UTC+2 skrev [email protected]:

> Hello Flemming,
>
> Just had the same issue now on Ubuntu20.04 using jdk-17.0.4.1+1 from=20
> https://adoptium.net/temurin/releases/ (amongst others). I am sill a bit=
=20
> confused between Gradle, Jetbrains and OS configuration of the JDKs,=20
> however I thinks that is what I configured. In the end to get the test=20
> (mostly) running I had to use the VM option=20
> "--add-opens=3Djava.base/java.util=3DALL-UNNAMED" as described in=20
> https://github.com/junit-pioneer/junit-pioneer/issues/509. Although this=
=20
> has nothing to do with robocode, that helped.
>
> BR
> Alessandro
> fnl schrieb am Dienstag, 5. April 2022 um 20:00:32 UTC+2:
>
>> It seems to be a problem with the Java version.
>> I have tested Robocode against Java 17 with Eclipse Adoptium (Temurin) o=
n=20
>> Windows 11, where it seems to run.
>>
>> I suggest you try to use an older Java version when running Robocode,=20
>> e.g. version 11.
>>
>> Which version of Java are you running? You can find out by writting this=
=20
>> command from the command line:
>>
>> java -version
>>
>> Best regards,
>>
>> - Flemming
>> tirsdag den 5. april 2022 kl. 19.58.02 UTC+2 skrev John Davis:
>>
>>> Hi
>>> can anyone help me please? I'm trying to setup a basic robot in Robocod=
e=20
>>> for a college assignment. I did a basic program in eclipse, and set=20
>>> Robocode to initialize from there. Robocode starts up and then crashes.=
 Has=20
>>> anyone every seen this? Please Please Help....Thanks
>>>
>>> See the fault below from the console.....
>>>
>>> Loaded net.sf.robocode.api
>>> Loaded net.sf.robocode.core
>>> Loading plugins from C:\robocode\libs
>>> Loaded net.sf.robocode.battle
>>> Loaded net.sf.robocode.host
>>> Loaded net.sf.robocode.repository
>>> Loaded net.sf.robocode.sound
>>> Loaded net.sf.robocode.ui
>>> Loaded net.sf.robocode.ui.editor
>>> No robocode.properties. Using defaults.
>>> No robocode.properties. Using defaults.
>>> WARNING: A terminally deprecated method in java.lang.System has been=20
>>> called
>>> WARNING: System::setSecurityManager has been called by=20
>>> net.sf.robocode.host.security.RobocodeSecurityManager=20
>>> (file:/C:/robocode/libs/robocode.host-1.9.4.5.jar)
>>> WARNING: Please consider reporting this to the maintainers of=20
>>> net.sf.robocode.host.security.RobocodeSecurityManager
>>> WARNING: System::setSecurityManager will be removed in a future release
>>> java.lang.ExceptionInInitializerError
>>>     at=20
>>> net.sf.robocode.repository.RepositoryManager.reload(RepositoryManager.j=
ava:164)
>>>     at=20
>>> net.sf.robocode.ui.WindowManager.showSplashScreen(WindowManager.java:35=
8)
>>>     at net.sf.robocode.core.RobocodeMain.run(RobocodeMain.java:124)
>>>     at java.base/java.lang.Thread.run(Thread.java:833)
>>> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to mak=
e=20
>>> field private static final java.util.HashMap=20
>>> sun.net.www.protocol.jar.JarFileFactory.fileCache accessible: module=20
>>> java.base does not "opens sun.net.www.protocol.jar" to unnamed module=
=20
>>> @529abded
>>>     at=20
>>> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Acce=
ssibleObject.java:354)
>>>     at=20
>>> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Acce=
ssibleObject.java:297)
>>>     at=20
>>> java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
>>>     at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
>>>     at=20
>>> net.sf.robocode.io.URLJarCollector.<clinit>(URLJarCollector.java:48)
>>>     ... 4 more
>>>
>>> java.lang.ExceptionInInitializerError
>>>     at=20
>>> net.sf.robocode.repository.RepositoryManager.reload(RepositoryManager.j=
ava:164)
>>>     at=20
>>> net.sf.robocode.ui.WindowManager.showSplashScreen(WindowManager.java:35=
8)
>>>     at net.sf.robocode.core.RobocodeMain.run(RobocodeMain.java:124)
>>>     at java.base/java.lang.Thread.run(Thread.java:833)
>>> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to mak=
e=20
>>> field private static final java.util.HashMap=20
>>> sun.net.www.protocol.jar.JarFileFactory.fileCache accessible: module=20
>>> java.base does not "opens sun.net.www.protocol.jar" to unnamed module=
=20
>>> @529abded
>>>     at=20
>>> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Acce=
ssibleObject.java:354)
>>>     at=20
>>> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Acce=
ssibleObject.java:297)
>>>     at=20
>>> java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
>>>     at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
>>>     at=20
>>> net.sf.robocode.io.URLJarCollector.<clinit>(URLJarCollector.java:48)
>>>     ... 4 more
>>>
>>>

--=20
You received this message because you are subscribed to the Google Groups "=
Robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/=
robocode/cf8342ff-2759-4851-bd56-a0b193bb05edn%40googlegroups.com.

------=_Part_1479_1548591626.1665062484713
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thank you for the follow-up. =F0=9F=99=82=F0=9F=91=8D<div>&nbsp;I will keep=
 this in mind if we see this issue again, which is very likely.</div><div><=
br></div><div>Cheers,<br></div><div>- Flemming</div><div><br></div><div cla=
ss=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">mandag den 3. okt=
ober 2022 kl. 22.38.57 UTC+2 skrev [email protected]:<br/></div><blockquot=
e class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px soli=
d rgb(204, 204, 204); padding-left: 1ex;"><div>Hello Flemming,</div><div><b=
r></div><div>Just had the same issue now on Ubuntu20.04 using jdk-17.0.4.1+=
1 from <a href=3D"https://adoptium.net/temurin/releases/" target=3D"_blank"=
 rel=3D"nofollow" data-saferedirecturl=3D"https://www.google.com/url?hl=3Dd=
a&amp;q=3Dhttps://adoptium.net/temurin/releases/&amp;source=3Dgmail&amp;ust=
=3D1665148780681000&amp;usg=3DAOvVaw0Lg9U7jyAV3wyWQbhXx_e1">https://adoptiu=
m.net/temurin/releases/</a> (amongst others). I am sill a bit confused betw=
een Gradle, Jetbrains and OS configuration of the JDKs, however I thinks th=
at is what I configured. In the end to get the test (mostly) running I had =
to <span>use the VM option &quot;--add-opens=3Djava.base/java.util=3DALL-UN=
NAMED&quot; as described in <a href=3D"https://github.com/junit-pioneer/jun=
it-pioneer/issues/509" target=3D"_blank" rel=3D"nofollow" data-saferedirect=
url=3D"https://www.google.com/url?hl=3Dda&amp;q=3Dhttps://github.com/junit-=
pioneer/junit-pioneer/issues/509&amp;source=3Dgmail&amp;ust=3D1665148780681=
000&amp;usg=3DAOvVaw1zag-tpHazgdzXgxI6ho4T">https://github.com/junit-pionee=
r/junit-pioneer/issues/509</a>. Although this has nothing to do with roboco=
de, that helped.<br></span></div><div><span><br></span></div><div><span>BR<=
br></span></div>Alessandro<br><div class=3D"gmail_quote"><div dir=3D"auto" =
class=3D"gmail_attr">fnl schrieb am Dienstag, 5. April 2022 um 20:00:32 UTC=
+2:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex"><p>It seems to be =
a problem with the Java version.<br>I have tested Robocode against Java 17 =
with Eclipse Adoptium=C2=A0(Temurin) on Windows 11, where it seems to run.<=
/p><p>I suggest you try to use an older Java version when running Robocode,=
 e.g. version 11.<br><br>Which version of Java are you running? You can fin=
d out by writting this command from the command line:</p><p>java -version</=
p><p>Best regards,</p><p>- Flemming</p><div class=3D"gmail_quote"><div dir=
=3D"auto" class=3D"gmail_attr">tirsdag den 5. april 2022 kl. 19.58.02 UTC+2=
 skrev John Davis:<br></div><blockquote class=3D"gmail_quote" style=3D"marg=
in:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><di=
v>Hi</div><div>can anyone help me please? I&#39;m trying to setup a basic r=
obot in Robocode for a college assignment. I did a basic program in eclipse=
, and set Robocode to initialize from there. Robocode starts up and then cr=
ashes. Has anyone every seen this? Please Please Help....Thanks</div><div><=
br></div><div>See the fault below from the console.....<br></div><div><br><=
/div>Loaded net.sf.robocode.api<br>Loaded net.sf.robocode.core<br>Loading p=
lugins from C:\robocode\libs<br>Loaded net.sf.robocode.battle<br>Loaded net=
.sf.robocode.host<br>Loaded net.sf.robocode.repository<br>Loaded net.sf.rob=
ocode.sound<br>Loaded net.sf.robocode.ui<br>Loaded net.sf.robocode.ui.edito=
r<br>No robocode.properties. Using defaults.<br>No robocode.properties. Usi=
ng defaults.<br>WARNING: A terminally deprecated method in java.lang.System=
 has been called<br>WARNING: System::setSecurityManager has been called by =
net.sf.robocode.host.security.RobocodeSecurityManager (file:/C:/robocode/li=
bs/robocode.host-1.9.4.5.jar)<br>WARNING: Please consider reporting this to=
 the maintainers of net.sf.robocode.host.security.RobocodeSecurityManager<b=
r>WARNING: System::setSecurityManager will be removed in a future release<b=
r>java.lang.ExceptionInInitializerError<br>=C2=A0 =C2=A0 at net.sf.robocode=
.repository.RepositoryManager.reload(RepositoryManager.java:164)<br>=C2=A0 =
=C2=A0 at net.sf.robocode.ui.WindowManager.showSplashScreen(WindowManager.j=
ava:358)<br>=C2=A0 =C2=A0 at net.sf.robocode.core.RobocodeMain.run(Robocode=
Main.java:124)<br>=C2=A0 =C2=A0 at java.base/java.lang.Thread.run(Thread.ja=
va:833)<br>Caused by: java.lang.reflect.InaccessibleObjectException: Unable=
 to make field private static final java.util.HashMap sun.net.www.protocol.=
jar.JarFileFactory.fileCache accessible: module java.base does not &quot;op=
ens sun.net.www.protocol.jar&quot; to unnamed module @529abded<br>=C2=A0 =
=C2=A0 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessibl=
e(AccessibleObject.java:354)<br>=C2=A0 =C2=A0 at java.base/java.lang.reflec=
t.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)<br>=C2=
=A0 =C2=A0 at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field=
.java:178)<br>=C2=A0 =C2=A0 at java.base/java.lang.reflect.Field.setAccessi=
ble(Field.java:172)<br>=C2=A0 =C2=A0 at net.sf.robocode.io.URLJarCollector.=
&lt;clinit&gt;(URLJarCollector.java:48)<br>=C2=A0 =C2=A0 ... 4 more<br><br>=
java.lang.ExceptionInInitializerError<br>=C2=A0 =C2=A0 at net.sf.robocode.r=
epository.RepositoryManager.reload(RepositoryManager.java:164)<br>=C2=A0 =
=C2=A0 at net.sf.robocode.ui.WindowManager.showSplashScreen(WindowManager.j=
ava:358)<br>=C2=A0 =C2=A0 at net.sf.robocode.core.RobocodeMain.run(Robocode=
Main.java:124)<br>=C2=A0 =C2=A0 at java.base/java.lang.Thread.run(Thread.ja=
va:833)<br>Caused by: java.lang.reflect.InaccessibleObjectException: Unable=
 to make field private static final java.util.HashMap sun.net.www.protocol.=
jar.JarFileFactory.fileCache accessible: module java.base does not &quot;op=
ens sun.net.www.protocol.jar&quot; to unnamed module @529abded<br>=C2=A0 =
=C2=A0 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessibl=
e(AccessibleObject.java:354)<br>=C2=A0 =C2=A0 at java.base/java.lang.reflec=
t.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)<br>=C2=
=A0 =C2=A0 at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field=
.java:178)<br>=C2=A0 =C2=A0 at java.base/java.lang.reflect.Field.setAccessi=
ble(Field.java:172)<br>=C2=A0 =C2=A0 at net.sf.robocode.io.URLJarCollector.=
&lt;clinit&gt;(URLJarCollector.java:48)<br>=C2=A0 =C2=A0 ... 4 more<br><br>=
</blockquote></div></blockquote></div></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Robocode&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">robocode+u=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/robocode/cf8342ff-2759-4851-bd56-a0b193bb05edn%40googlegroups.co=
m?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid=
/robocode/cf8342ff-2759-4851-bd56-a0b193bb05edn%40googlegroups.com</a>.<br =
/>

------=_Part_1479_1548591626.1665062484713--

------=_Part_1478_590524236.1665062484713--