Page 1 of 1

Issues with Temurin

PostPosted: Wed Feb 02, 2022 12:36 am
by ryan.m.beasley
Hello to any Servoy Devs,
Recently my company has upgraded our computers to use Temurin, IcedTea, the open source java. It did not play well with the existing smart client we're using, so all users had to get added to an exception list as a short term fix. The main error I'm getting is something like this:

Fatal: Launch Error: Could not launch JNLP file. The application has not been initialized, for more information execute javaws/browser from the command line and send a bug report.
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:583)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:946)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:577)
... 1 more
Caused by: java.lang.IllegalAccessError: class com.servoy.j2db.scripting.InstanceJavaMembers cannot access its superclass org.mozilla.javascript.JavaMembers
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.access$1701(JNLPClassLoader.java:104)
at net.sourceforge.jnlp.runtime.JNLPClassLoader$5.run(JNLPClassLoader.java:1749)
at net.sourceforge.jnlp.runtime.JNLPClassLoader$5.run(JNLPClassLoader.java:1746)
at java.security.AccessController.doPrivileged(Native Method)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1745)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClassExt(JNLPClassLoader.java:1782)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1582)
at com.servoy.j2db.smart.J2DBClient.createFormManager(J2DBClient.java:1220)
at com.servoy.j2db.ClientState.applicationSetup(ClientState.java:294)
at com.servoy.j2db.smart.J2DBClient.applicationSetup(J2DBClient.java:1032)
at com.servoy.j2db.smart.J2DBClient.startupApplication(J2DBClient.java:806)
at com.servoy.j2db.smart.J2DBClient$4.run(J2DBClient.java:713)
at com.servoy.j2db.smart.J2DBClient.mainImpl(J2DBClient.java:737)
at com.servoy.j2db.smart.J2DBClient.main(J2DBClient.java:700)

I can send over additional error logs I've received when trying to access the smart client with Temurin over email. Please let me know if anyone's experienced this and if there's a fix.

Thanks,
Ryan Beasley

Re: Issues with Temurin

PostPosted: Wed Feb 02, 2022 10:57 am
by jcompagner
i am not sure what that is, do they include there own rhino.jar file? (so they already provide a javascript impl)?
that will not be possible we need our own rhino implementation(js.jar)

Also i think its is better to just use our bootstrap.jar to start a smart client (the standalone variant)