Problem accessing /restconf/operations/snmp-switches:add

asked 2014-11-04 14:20:35 -0800

vishpat gravatar image

I have developed a MDSAL module and get the following exception while accessing a RPC defined in it. The weird thing is the restconf url shows up as a valid URL in the restconf API explorer (i.e. http://localhost:8181/apidoc/explorer/index.html )

<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/> <title>Error 500 Server Error</title>

HTTP ERROR 500

Problem accessing /restconf/operations/snmp-switches:add. Reason:

    Server Error

Caused by:

java.lang.NullPointerException
        at org.opendaylight.controller.sal.restconf.impl.ControllerContext.toQName(ControllerContext.java:768)
        at org.opendaylight.controller.sal.restconf.impl.ControllerContext.getRpcDefinition(ControllerContext.java:777)
        at org.opendaylight.controller.sal.restconf.impl.RestconfImpl.resolveIdentifierInInvokeRpc(RestconfImpl.java:555)
        at org.opendaylight.controller.sal.restconf.impl.RestconfImpl.invokeRpc(RestconfImpl.java:444)
        at org.opendaylight.controller.sal.restconf.impl.StatisticsRestconfServiceWrapper.invokeRpc(StatisticsRestconfServiceWrapper.java:72)
        at sun.reflect.GeneratedMethodAccessor229.invoke(Unknown Source)
100  8020  100  64MethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
        at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
        at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
        at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
        at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100)
        at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(Roo63  100  1557   263k  6498

edit retag flag offensive close merge delete