Archi Forum

Archi Plug-ins => jArchi => Topic started by: Xiaoqi on November 04, 2022, 16:41:37 PM

Title: jArchi1.3: org.graalvm.polyglot.PolyglotException: java.lang.NoClassDefFoundErro
Post by: Xiaoqi on November 04, 2022, 16:41:37 PM
Hello,

After upgrading to jArchi 1.3, I found error for below script (actually learnt from JB's before):

current_datetime = new Date();
formatted_date = current_datetime.getFullYear() + "/" + (current_datetime.getMonth() + 1) + "/" + current_datetime.getDate();

// here need to select the View
$(selection).prop("Last Update", formatted_date);

I use this one to create/update the view property with current date.

While under jArchi 1.3, it's not working anymore with following error message in screen:

org.graalvm.polyglot.PolyglotException: java.lang.NoClassDefFoundError: com/ibm/icu/impl/Grego
at com.oracle.truffle.js.runtime.builtins.JSDate.getOffset(JSDate.java:401)
at com.oracle.truffle.js.runtime.builtins.JSDate.getOffset(JSDate.java:410)
at com.oracle.truffle.js.runtime.builtins.JSDate.localTZA(JSDate.java:449)
at com.oracle.truffle.js.runtime.builtins.JSDate.localTZA(JSDate.java:397)
at com.oracle.truffle.js.runtime.builtins.JSDate.localTime(JSDate.java:389)

Are there any hints? Thanks a lot.
Xiaoqi
Title: Re: jArchi1.3: org.graalvm.polyglot.PolyglotException: java.lang.NoClassDefFoundErro
Post by: Phil Beauvoir on November 04, 2022, 17:23:28 PM
Thanks for the bug report. I'll get a new version of jArchi out ASAP.

Phil
Title: Re: jArchi1.3: org.graalvm.polyglot.PolyglotException: java.lang.NoClassDefFoundErro
Post by: Phil Beauvoir on November 04, 2022, 17:59:05 PM
I've updated jArchi to version 1.3.1 and updated the download attachment on Patreon.

The GraalVM developers decided to use an internal class from a 3rd party dependency (com.ibm.icu.impl.Grego) that wasn't exposed as API. So now we have to ship an additional 13mb jar with jArchi so it can access that one class.
Title: Re: jArchi1.3: org.graalvm.polyglot.PolyglotException: java.lang.NoClassDefFoundErro
Post by: Xiaoqi on November 04, 2022, 20:30:54 PM
Thanks Phil for your quick fix, just installed the jArchi1.3.1, the above error message is gone, and this script line runs correctly.

Have a nice weekend.

Regards, Xiaoqi
Title: Re: jArchi1.3: org.graalvm.polyglot.PolyglotException: java.lang.NoClassDefFoundErro
Post by: Phil Beauvoir on November 04, 2022, 20:42:41 PM
Thanks for testing, Xiaoqi. Also have a nice weekend!

Phil