Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5688

XML parsing fails when xerces is installed on JDK 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 4.2.0
    • 4.2.0
    • None
    • None

    Description

      java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
      	at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
      	at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:?]
      	at org.apache.felix.gogo.runtime.CommandSessionImpl$JobImpl.run(CommandSessionImpl.java:829) ~[?:?]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:?]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:?]
      	at java.lang.Thread.run(Thread.java:748) [?:?]
      Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
      	at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClass(BundleWiringImpl.java:2410) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2194) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1607) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
      	at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source) ~[?:?]
      	at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source) ~[?:?]
      	at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source) ~[?:?]
      	at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source) ~[?:?]
      	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]
      	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]
      	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[?:?]
      	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) ~[?:?]
      	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) ~[?:?]
      	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121) ~[?:?]
      	at org.apache.karaf.util.XmlUtils.parse(XmlUtils.java:60) ~[?:?]
      	at org.apache.karaf.features.internal.model.JaxbUtil.unmarshalValidate(JaxbUtil.java:112) ~[?:?]
      	at org.apache.karaf.features.internal.model.JaxbUtil.unmarshal(JaxbUtil.java:100) ~[?:?]
      	at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:114) ~[?:?]
      	at org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50) ~[?:?]
      	at org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51) ~[?:?]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:372) ~[?:?]
      	at org.apache.karaf.features.command.RepoAddCommand.doExecute(RepoAddCommand.java:54) ~[?:?]
      	at org.apache.karaf.features.command.FeaturesCommandSupport.execute(FeaturesCommandSupport.java:42) ~[?:?]
      	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?]
      	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?]
      	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
      	... 4 more
      Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:?]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:?]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
      	at org.apache.felix.framework.ExtensionManager$ExtensionManagerWiring.getClassByDelegation(ExtensionManager.java:940) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1660) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1590) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
      	at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClass(BundleWiringImpl.java:2410) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2194) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1607) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
      	at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source) ~[?:?]
      	at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source) ~[?:?]
      	at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source) ~[?:?]
      	at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source) ~[?:?]
      	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]
      	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[?:?]
      	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[?:?]
      	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) ~[?:?]
      	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) ~[?:?]
      	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121) ~[?:?]
      	at org.apache.karaf.util.XmlUtils.parse(XmlUtils.java:60) ~[?:?]
      	at org.apache.karaf.features.internal.model.JaxbUtil.unmarshalValidate(JaxbUtil.java:112) ~[?:?]
      	at org.apache.karaf.features.internal.model.JaxbUtil.unmarshal(JaxbUtil.java:100) ~[?:?]
      	at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:114) ~[?:?]
      	at org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50) ~[?:?]
      	at org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51) ~[?:?]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:372) ~[?:?]
      	at org.apache.karaf.features.command.RepoAddCommand.doExecute(RepoAddCommand.java:54) ~[?:?]
      	at org.apache.karaf.features.command.FeaturesCommandSupport.execute(FeaturesCommandSupport.java:42) ~[?:?]
      	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?]
      	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?]
      	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
      	... 4 more
      

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              gnodet Guillaume Nodet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: