Re: classloader error

danielb987
 

This StackOverflow question might give a clue:
https://stackoverflow.com/questions/17515333/noclassdeffounderror-org-w3c-dom-elementtraversal

Daniel

2019-10-17 04:09 skrev Pete Cressman:

I upgraded to Java 1.8.0_231 and merged from the master.
After a clean build IO get this error upon launching PanelPro or
DecoderPro:
java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
__
In a branch compiled before the above upgrade/merge, I can launch
PanelPro or DecoderPro with no errors.
[java] 2019-10-16 19:01:23,756
ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception
caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [main]
[java] java.lang.NoClassDefFoundError:
org/w3c/dom/ElementTraversal
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at
java.lang.ClassLoader.defineClass(ClassLoader.java:763)
[java] at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[java] at
java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
[java] at
java.net.URLClassLoader.access$100(URLClassLoader.java:73)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
[java] at java.security.AccessController.doPrivileged(Native
Method)
[java] at
java.net.URLClassLoader.findClass(URLClassLoader.java:361)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[java] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[java] at
org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown
Source)
[java] at
org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown
Source)
[java] at
org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown
Source)
[java] at
org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown
Source)
[java] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at org.apache.xerces.parsers.XMLParser.parse(Unknown
Source)
[java] at org.apache.xerces.parsers.DOMParser.parse(Unknown
Source)
[java] at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
[java] at
sun.util.xml.PlatformXmlPropertiesProvider.getLoadingDoc(PlatformXmlPropertiesProvider.java:106)
[java] at
sun.util.xml.PlatformXmlPropertiesProvider.load(PlatformXmlPropertiesProvider.java:78)
[java] at
java.util.Properties$XmlSupport.load(Properties.java:1201)
[java] at java.util.Properties.loadFromXML(Properties.java:881)
[java] at
jmri.profile.ProfileManager.readActiveProfile(ProfileManager.java:293)
[java] at
jmri.profile.ProfileManager.getStartingProfile(ProfileManager.java:906)
[java] at
jmri.profile.ProfileManagerDialog.getStartingProfile(ProfileManagerDialog.java:318)
[java] at apps.Apps.<init>(Apps.java:185)
[java] at apps.PanelPro.PanelPro.<init>(PanelPro.java:40)
[java] at apps.PanelPro.PanelPro.main(PanelPro.java:120)
[java] Caused by: java.lang.ClassNotFoundException:
org.w3c.dom.ElementTraversal
[java] at
java.net.URLClassLoader.findClass(URLClassLoader.java:381)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[java] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[java] ... 31 more
DecoderPro differs only at the bottom of the stack:
[java] at
jmri.profile.ProfileManagerDialog.getStartingProfile(ProfileManagerDialog.java:318)
[java] at apps.gui3.Apps3.configureProfile(Apps3.java:335)
[java] at apps.AppsBase.<init>(AppsBase.java:92)
[java] at apps.gui3.Apps3.<init>(Apps3.java:93)
[java] at apps.gui3.dp3.DecoderPro3.<init>(DecoderPro3.java:27)
[java] at apps.gui3.dp3.DecoderPro3.main(DecoderPro3.java:96)
[java] Caused by: java.lang.ClassNotFoundException:
org.w3c.dom.ElementTraversal
[java] at
java.net.URLClassLoader.findClass(URLClassLoader.java:381)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[java] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[java] ... 33 more
__
What might be the problem? Thanks for any suggestions.
Pete C__
Links:
------
[1] https://jmri-developers.groups.io/g/jmri/message/2093
[2] https://groups.io/mt/34668273/1303822
[3] https://jmri-developers.groups.io/g/jmri/post
[4] https://jmri-developers.groups.io/g/jmri/editsub/1303822
[5] https://jmri-developers.groups.io/g/jmri/leave/defanged

Join jmri@jmri-developers.groups.io to automatically receive all group messages.