Duplicate :
|
|
Relates :
|
|
Relates :
|
FULL PRODUCT VERSION : Java(TM) SE Runtime Environment (build 9-ea+111) Java HotSpot(TM) Client VM (build 9-ea+111, mixed mode) A DESCRIPTION OF THE PROBLEM : A small WebStart client throws a ClassNotFoundException despite compiling properly - it also executes correct with the Java 9 JRE when execute normally. Seems similar to JI-9033432 but the error is different, this bug doesn't talk about module exports. REGRESSION. Last worked in version 9 ADDITIONAL REGRESSION INFORMATION: Java(TM) SE Runtime Environment (build 9-ea+111) Java HotSpot(TM) Client VM (build 9-ea+111, mixed mode) STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Deploy the suggested class as a webstart client EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - The webstart application should execute normally ACTUAL - ClassNotFoundException ERROR MESSAGES/STACK TRACES THAT OCCUR : java.lang.ClassNotFoundException: javax.xml.bind.JAXBException at com.sun.deploy.security.DeployURLClassLoader.findClass(jdk.deploy@9-ea/DeployURLClassLoader.java:301) at com.sun.jnlp.JNLPClassLoader.findClass(jdk.javaws@9-ea/JNLPClassLoader.java:372) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:486) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:419) at Test.main(Test.java:5) at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531) at com.sun.javaws.Launcher.executeApplication(jdk.javaws@9-ea/Launcher.java:1780) at com.sun.javaws.Launcher.executeMainClass(jdk.javaws@9-ea/Launcher.java:1715) at com.sun.javaws.Launcher.doLaunchApp(jdk.javaws@9-ea/Launcher.java:1563) at com.sun.javaws.Launcher.run(jdk.javaws@9-ea/Launcher.java:164) at java.lang.Thread.run(java.base@9-ea/Thread.java:804) REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- import javax.xml.bind.JAXBException; public class Test { public static void main(String[] args) { new JAXBException(""); } } ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : None found
|