BIRT 4.12 JDK 11 vs. JDK 17 - Solution of new module handling (javax, com.sun.net.*, etc.) #1160
-
Hello Together,
The results with JDK 11 was perfect. The same reports with JDK 17 crash in both cases with error. Can someone give me some hints how I can solve the java-handling with JDK 17? report 2 - error: HTTP-request report 1 - report file: XML-parser report 2 - report file: HTTP-request |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't have a solution, but this could be related to a similar issue I noticed with Java 17 (see #1138). In my case, the exception was In fact the mentioned class still exists in the JDK, but it could not be accessed from Rhino due to the complexities of interfaces and abstract classes. In my case, one possible workaround (which I didn't follow further because it failed a few code lines later) was to move the code that deals with this class directly into a custom JAR in such a way that it hides these classes from the (Rhino) caller. Another, temporary workaorund is to use and Note that your case might be different. According to https://stackoverflow.com/questions/70129530/is-it-possible-to-run-wildfly-10-on-new-jdk17, a similar approach could work for jaxp by using the JVM option |
Beta Was this translation helpful? Give feedback.
I don't have a solution, but this could be related to a similar issue I noticed with Java 17 (see #1138).
In my case, the exception was
java.lang.IllegalAccessException: class org.mozilla.javascript.MemberBox cannot access class sun.java2d.SunGraphics2D (in module java.desktop) because module java.desktop does not export sun.java2d to unnamed module
In fact the mentioned class still exists in the JDK, but it could not be accessed from Rhino due to the complexities of interfaces and abstract classes.
In my case, one possible workaround (which I didn't follow further because it failed a few code lines later) was to move the code that deals with this class directly into a custom JAR in such …