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 - ClassNotFoundException: javax.xml.bind.JAXBException
Summary: ClassNotFoundException: javax.xml.bind.JAXBException
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: matthias42
URL:
Keywords:
: 271237 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-05-17 23:31 UTC by brettryan
Modified: 2017-09-12 01:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 229188


Attachments
stacktrace (4.93 KB, text/plain)
2017-05-17 23:31 UTC, brettryan
Details

Note You need to log in before you can comment on or make changes to this bug.
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.