This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270672

Summary: ClassNotFoundException: javax.xml.bind.JAXBException
Product: ide Reporter: brettryan <brettryan>
Component: CodeAssignee: matthias42
Status: RESOLVED FIXED    
Severity: normal CC: MackSix
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 229188
Attachments: stacktrace

Description brettryan 2017-05-17 23:31:34 UTC
Build: NetBeans IDE Dev (Build 201705170001)
VM: Java HotSpot(TM) 64-Bit Server VM, 9-ea+169, Java(TM) SE Runtime Environment, 9-ea+169
OS: Mac OS X

User Comments:
brettryan: Attempting to execute SQL.




Stacktrace: 
java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
   at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:553)
   at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:486)
   at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:486)
   at org.netbeans.modules.db.sql.execute.SQLExecuteHelper.execute(SQLExecuteHelper.java:115)
Comment 1 brettryan 2017-05-17 23:31:36 UTC
Created attachment 164344 [details]
stacktrace
Comment 2 matthias42 2017-05-18 20:04:28 UTC
Reassigned this to IDE, as the launcher needs to adjust to the changes in the JDK, that removes the xml bind modules from the default modules set.

--add-modules=java.xml.bind

should fix this.
Comment 3 matthias42 2017-08-06 02:02:55 UTC
*** Bug 271237 has been marked as a duplicate of this bug. ***
Comment 4 matthias42 2017-08-06 02:54:21 UTC
Suggested fix was pushed as:

http://hg.netbeans.org/core-main/rev/f99a5428c47d
Comment 5 Quality Engineering 2017-09-12 01:58:25 UTC
Integrated into 'main-silver', will be available in build *201709120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f99a5428c47d
User: Matthias Blaesing <matthias42@netbeans.org>
Log: #270672: Allow usage of JAXB on JDK9

JAXB is not part of the default module path and needs to be explicitly enabled.
For releases post JDK9 removal of java.xml.bind is announced and needs to
be replaced by library dependencies.