Re: -DNOSECURITY=true

fnl <[email protected]> Wed, 10 May 2023 11:35:47 -0700 (PDT)
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
------=_Part_1492_333090862.1683743747559
Content-Type: multipart/alternative; 
	boundary="----=_Part_1493_38975824.1683743747559"

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

The lin to the issue described on Stack Overflow:
https://stackoverflow.com/questions/63219405/exception-class-jdk-internal-l=
oader-classloadersappclassloader-cannot-be-cast-t

onsdag den 10. maj 2023 kl. 20.34.19 UTC+2 skrev fnl:

> I am able to reproduce this using Java 11.=20
> It seems to work fine under Java 8. So you can use Java 8 as a workaround=
=20
> until I got a fix for it in Robocode as it seems to be a bug.
>
> The issue is caused by some internal classes in Java that have changed,=
=20
> which Robocode accesses.=20
>
> On Stack Overflow, people have seen similar issues with Spring Boot as=20
> well.
>
> Thank you for reporting this. I will try to fix it with the next version=
=20
> of Robocode. =F0=9F=99=82=F0=9F=91=8D
>
> Best regards,
> - Flemming N. Larsen
>
> tirsdag den 9. maj 2023 kl. 01.01.07 UTC+2 skrev Gabriel Bonfim:
>
>> Hey guys, i have a problem kk
>>
>> When i run robocode using -DNOSECURITY=3Dtrue , i have this error messag=
e:=20
>> "caused by: java.lang.classcastexception: class=20
>> jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class=
=20
>> java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader=
=20
>> and java.net.URLClassLoader are in module java.base of loader 'boostrap'=
).
>>
>> Help. pls=20
>>
>

--=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/51f6ae2a-95a7-4faf-8ccf-a86135c10562n%40googlegroups.com.

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

The lin to the issue described on Stack Overflow:<br />https://stackoverflo=
w.com/questions/63219405/exception-class-jdk-internal-loader-classloadersap=
pclassloader-cannot-be-cast-t<br /><br /><div class=3D"gmail_quote"><div di=
r=3D"auto" class=3D"gmail_attr">onsdag den 10. maj 2023 kl. 20.34.19 UTC+2 =
skrev fnl:<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;">I =
am able to reproduce this using Java 11.=C2=A0<div>It seems to work fine un=
der Java 8. So you can use Java 8 as a workaround until I got a fix for it =
in Robocode as it seems to be a bug.<br><br>The issue is caused by some int=
ernal classes in Java that have changed, which Robocode accesses.=C2=A0</di=
v><div><br></div><div>On Stack Overflow, people have seen similar issues wi=
th Spring Boot as well.<br><br>Thank you for reporting this. I will try to =
fix it with the next version of Robocode. =F0=9F=99=82=F0=9F=91=8D</div><di=
v><br></div><div>Best regards,</div><div>- Flemming N. Larsen<br><br></div>=
<div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">tirsdag d=
en 9. maj 2023 kl. 01.01.07 UTC+2 skrev Gabriel Bonfim:<br></div><blockquot=
e class=3D"gmail_quote" style=3D"margin:0 0 0 0.8ex;border-left:1px solid r=
gb(204,204,204);padding-left:1ex">Hey guys, i have a problem kk<div><br></d=
iv><div>When i run robocode using -DNOSECURITY=3Dtrue , i have this error m=
essage: &quot;caused by: java.lang.classcastexception: class jdk.internal.l=
oader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClass=
Loader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLCla=
ssLoader are in module java.base of loader &#39;boostrap&#39;).</div><div><=
br></div><div>Help. pls=C2=A0</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/51f6ae2a-95a7-4faf-8ccf-a86135c10562n%40googlegroups.co=
m?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid=
/robocode/51f6ae2a-95a7-4faf-8ccf-a86135c10562n%40googlegroups.com</a>.<br =
/>

------=_Part_1493_38975824.1683743747559--

------=_Part_1492_333090862.1683743747559--