Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-943

ClassNotFoundException: org.eclipse.persistence.internal.libraries.antlr.runtime.tree.Tree

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • Post-Helium
    • adsal
    • None
    • Operating System: All
      Platform: All

    • 2213

      The exception is listed below. From what I can tell the org.eclipse.persistence.internal.libraries.antlr.runtime.tree.Tree class is in the bundle so I don't understand why it is not found.

      What is strange about this issue is that depending on the type of incoming http request, it works and others it fails. You issue an HTTP GET to 127.0.0.1:8080://controller/nb/v2/neutron with no message body and the call works. If you issue a POST with a message body composed of some JSON text then you get the exception below. That makes sense in the call stack below as I see MOXyJsonProvider, then SAXUnmarshaller so it looks like the HTTP POST is received and then some JSON parser class is loaded to parse the JSON piece.

      The JSON text should be OK since this is a basic neutron net-create request. It works fine in all other versions of ODL. It is just the latest ODL version post Helium where this fails. So I am guessing there is some weird dependency that has changed in master.

      2014-10-16 19:45:01,900 | ERROR | -bio-8080-exec-5 | [JAXRSNeutron] | 254 - org.apache.juli.extras - 7.0.53.v201406060720 | Servlet.service() for servlet [JAXRSNeutron] in context with path [/controller/nb/v2/neutron] threw exception [Servlet execution threw an exception] with root cause
      java.lang.ClassNotFoundException: org.eclipse.persistence.internal.libraries.antlr.runtime.tree.Tree
      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:]
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:]
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:]
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)[org.eclipse.osgi-3.8.2.v20130124-134944.jar:]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_65]
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.getNewXMLReader(SAXUnmarshaller.java:200)[152:org.eclipse.persistence.core:2.5.0.v20130507-3faac2b]
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.getXMLReader(SAXUnmarshaller.java:188)[152:org.eclipse.persistence.core:2.5.0.v20130507-3faac2b]
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:425)[152:org.eclipse.persistence.core:2.5.0.v20130507-3faac2b]
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:375)[152:org.eclipse.persistence.core:2.5.0.v20130507-3faac2b]
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:705)[152:org.eclipse.persistence.core:2.5.0.v20130507-3faac2b]
      at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:655)[152:org.eclipse.persistence.core:2.5.0.v20130507-3faac2b]
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:301)[153:org.eclipse.persistence.moxy:2.5.0.v20130507-3faac2b]
      at org.eclipse.persistence.jaxb.rs.MOXyJsonProvider.readFrom(MOXyJsonProvider.java:580)[153:org.eclipse.persistence.moxy:2.5.0.v20130507-3faac2b]
      at com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:488)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:46)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:153)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:203)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)[260:com.sun.jersey.jersey-server:1.17.0]
      at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)[261:com.sun.jersey.servlet:1.17.0]
      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)[261:com.sun.jersey.servlet:1.17.0]
      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)[261:com.sun.jersey.servlet:1.17.0]
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[203:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)[247:org.apache.catalina:7.0.53.v201406061610]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)[247:org.apache.catalina:7.0.53.v201406061610]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)[247:org.apache.catalina:7.0.53.v201406061610]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)[247:org.apache.catalina:7.0.53.v201406061610]
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)[247:org.apache.catalina:7.0.53.v201406061610]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)[247:org.apache.catalina:7.0.53.v201406061610]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)[247:org.apache.catalina:7.0.53.v201406061610]
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)[247:org.apache.catalina:7.0.53.v201406061610]
      at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:339)[247:org.apache.catalina:7.0.53.v201406061610]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)[247:org.apache.catalina:7.0.53.v201406061610]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)[247:org.apache.catalina:7.0.53.v201406061610]
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)[247:org.apache.catalina:7.0.53.v201406061610]
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)[247:org.apache.catalina:7.0.53.v201406061610]
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)[247:org.apache.catalina:7.0.53.v201406061610]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_65]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_65]
      at java.lang.Thread.run(Thread.java:745)[:1.7.0_65]

            Unassigned Unassigned
            shague Sam Hague
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: