[sfc-dev] SFC Master RESTconf is broken

Andrej Kincel -X (akincel - Pantheon Technologies SRO at Cisco) akincel at cisco.com
Fri Mar 6 14:42:29 UTC 2015


I've done a fresh build and it started to work again.

This is the fix:
https://git.opendaylight.org/gerrit/gitweb?p=yangtools.git;a=commit;h=8809e0bf716cb032959e31a4c0e377b67f299afb

Meaning, probably we or some of our dependencies are using @Deprecated APIs. Just remove .m2/org/opendaylight/yangtools
And build again :)

Andrej


-----Original Message-----
From: sfc-dev-bounces at lists.opendaylight.org [mailto:sfc-dev-bounces at lists.opendaylight.org] On Behalf Of Brady Allen Johnson
Sent: Friday, March 06, 2015 3:32 PM
To: sfc-dev at lists.opendaylight.org
Subject: [sfc-dev] SFC Master RESTconf is broken


Hello all,

Both Andrej and I have encountered the same problem on SFC Master today. 
Actually, the problem is not in the SFC code base, but as a result of one of the Maven SNAPSHOT artifacts.

The problem is that its not possible to configure SFC via RESTConf, most likely due to the exception we're seeing as pasted below.

We're looking into the problem, but a work-around for now would be to build with the Maven offline option:

     $ mvn -o clean install

This will only work if you already have everything needed in your local Maven repo. And assuming you havent already downloaded the problematic artifact.

Regards,

Brady



2015-03-06 13:24:41,925 | WARN  | ool-857-thread-3 | AbstractLifeCycle                | 167 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.14.v20131031 | FAILED JAXRSRestconf: java.lang.NoSuchMethodError: org.opendaylight.yangtools.yang.data.impl.schema.transform.dom.parser.DomToNormalizedNodeParserFactory.getInstance(Lorg/opendaylight/yangtools/yang/data/impl/codec/xml/XmlCodecProvider;)Lorg/opendaylight/yangtools/yang/data/impl/schema/transform/dom/parser/DomToNormalizedNodeParserFactory;
java.lang.NoSuchMethodError: org.opendaylight.yangtools.yang.data.impl.schema.transform.dom.parser.DomToNormalizedNodeParserFactory.getInstance(Lorg/opendaylight/yangtools/yang/data/impl/codec/xml/XmlCodecProvider;)Lorg/opendaylight/yangtools/yang/data/impl/schema/transform/dom/parser/DomToNormalizedNodeParserFactory;
	at org.opendaylight.controller.sal.rest.impl.XmlNormalizedNodeBodyReader.<clinit>(XmlNormalizedNodeBodyReader.java:50)[219:org.opendaylight.controller.sal-rest-connector:1.2.0.SNAPSHOT]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.7.0_71]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_71]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_71]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)[:1.7.0_71]
	at java.lang.Class.newInstance(Class.java:379)[:1.7.0_71]
	at com.sun.jersey.core.spi.component.ComponentConstructor._getInstance(ComponentConstructor.java:192)
	at com.sun.jersey.core.spi.component.ComponentConstructor.getInstance(ComponentConstructor.java:179)
	at com.sun.jersey.core.spi.component.ProviderFactory.__getComponentProvider(ProviderFactory.java:166)
	at com.sun.jersey.core.spi.component.ProviderFactory._getComponentProvider(ProviderFactory.java:159)
	at com.sun.jersey.core.spi.component.ProviderFactory.getComponentProvider(ProviderFactory.java:153)
	at com.sun.jersey.core.spi.component.ProviderServices.getComponent(ProviderServices.java:251)
	at com.sun.jersey.core.spi.component.ProviderServices.getProviders(ProviderServices.java:148)
	at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:175)
	at com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:162)
	at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1310)
	at com.sun.jersey.server.impl.application.WebApplicationImpl.access$700(WebApplicationImpl.java:168)
	at com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:774)
	at com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:770)
	at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)
	at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:770)
	at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:765)
	at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:489)[191:com.sun.jersey.servlet:1.17.0]
	at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:319)[191:com.sun.jersey.servlet:1.17.0]
	at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:605)[191:com.sun.jersey.servlet:1.17.0]
	at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:210)[191:com.sun.jersey.servlet:1.17.0]
	at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:374)[191:com.sun.jersey.servlet:1.17.0]
	at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:557)[191:com.sun.jersey.servlet:1.17.0]
	at javax.servlet.GenericServlet.init(GenericServlet.java:161)[162:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0]
	at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:532)[167:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:344)[167:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[167:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:791)[167:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)[167:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)[167:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doStart(HttpServiceContext.java:222)[177:org.ops4j.pax.web.pax-web-jetty:3.1.0]
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[167:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.start(JettyServerImpl.java:197)[177:org.ops4j.pax.web.pax-web-jetty:3.1.0]
	at org.ops4j.pax.web.service.internal.HttpServiceStarted.end(HttpServiceStarted.java:1032)[176:org.ops4j.pax.web.pax-web-runtime:3.1.0]
	at org.ops4j.pax.web.service.internal.HttpServiceProxy.end(HttpServiceProxy.java:422)[176:org.ops4j.pax.web.pax-web-runtime:3.1.0]
	at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.end(RegisterWebAppVisitorWC.java:341)[182:org.ops4j.pax.web.pax-web-extender-war:3.1.0]
	at org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:678)[182:org.ops4j.pax.web.pax-web-extender-war:3.1.0]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.register(WebAppPublisher.java:237)[182:org.ops4j.pax.web.pax-web-extender-war:3.1.0]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.addingService(WebAppPublisher.java:182)[182:org.ops4j.pax.web.pax-web-extender-war:3.1.0]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.addingService(WebAppPublisher.java:135)[182:org.ops4j.pax.web.pax-web-extender-war:3.1.0]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)[karaf.jar:3.0.1]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)[karaf.jar:3.0.1]
	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[karaf.jar:3.0.1]
	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[karaf.jar:3.0.1]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:317)[karaf.jar:3.0.1]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)[karaf.jar:3.0.1]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher.publish(WebAppPublisher.java:101)[182:org.ops4j.pax.web.pax-web-extender-war:3.1.0]
	at org.ops4j.pax.web.extender.war.internal.WebObserver.deploy(WebObserver.java:213)[182:org.ops4j.pax.web.pax-web-extender-war:3.1.0]
	at org.ops4j.pax.web.extender.war.internal.WebObserver$1.doStart(WebObserver.java:175)[182:org.ops4j.pax.web.pax-web-extender-war:3.1.0]
	at org.ops4j.pax.web.extender.war.internal.extender.SimpleExtension.start(SimpleExtension.java:58)[182:org.ops4j.pax.web.pax-web-extender-war:3.1.0]
	at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender$1.run(AbstractExtender.java:266)[182:org.ops4j.pax.web.pax-web-extender-war:3.1.0]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_71]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_71]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_71]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_71]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_71]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_71]
	at java.lang.Thread.run(Thread.java:745)[:1.7.0_71]


_______________________________________________
sfc-dev mailing list
sfc-dev at lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/sfc-dev


More information about the sfc-dev mailing list