getting NullPointerException while executing rpc on 26th August stable helium release

asked 2015-08-31 08:53:47 -0800

harsharya91 gravatar image

updated 2015-08-31 09:00:24 -0800

unable to execute rpc's on the latest helium releases. Used the same rpc's with 30 Oct 2014 build and it is working fine. My yang-module

module show-version {
    namespace "http://yang.harsh-test.org/yang/1.1/rpc";
    prefix rpc;

    rpc get-system-information {
        output {
            container system-information {
                leaf hardware-model {
                    mandatory true;
                    type string {
                        length 1..max;
                    }
                }
                leaf os-name {
                    mandatory true;
                    type string {
                        length 1..max;
                    }
                }
                leaf os-version {
                    mandatory true;
                    type string {
                        length 1..max;
                    }
                }
                leaf serial-number {
                    mandatory true;
                    type string {
                        length 1..max;
                    }
                }
                leaf host-name {
                    mandatory true;
                    type string {
                        length 1..max;
                    }
                }
                leaf cluster-node {
                    type empty;
                }
                leaf virtual-chassis {
                    type empty;
                }
                leaf blade-server {
                    type empty;
                }
                leaf blade-server-member {
                    type empty;
                }
            }
        }
    }
}

http://ip:8080/restconf/operations/opendaylight-inventory:nodes/node/m10schemanew/yang-ext:mount/show-version:get-system-information Method: POST Content-Type: xml/application

Executed correctly on 30th Oct 2014 build

{
    "get-system-information": {
        "output": {
            "system-information": {
                "hardware-model": "olive",
                "os-name": "harsh-os",
                "os-version": "version-1",
                "host-name": "foo"
            }
        }
    }
}

Please find the stacktrace below for failed scenario:

{
    "errors":  {
        "error": [
            {
                "error-type": "application",
                "error-tag": "operation-failed",
                "error-message": "The operation encountered an unexpected error while executing.",
                "error-info": "java.lang.NullPointerException\n\tat 
                org.opendaylight.controller.sal.connect.netconf.util.NetconfMessageTransformUtil.createSchemaForRpc(NetconfMessageTransformUtil.java:357)\n\tat
                org.opendaylight.controller.sal.connect.netconf.schema.mapping.NetconfMessageTransformer.toRpcRequest(NetconfMessageTransformer.java:80)\n\tat 
                org.opendaylight.controller.sal.connect.netconf.schema.mapping.NetconfMessageTransformer.toRpcRequest(NetconfMessageTransformer.java:34)\n\tat 
                org.opendaylight.controller.sal.connect.netconf.sal.NetconfDeviceRpc.transformRequest(NetconfDeviceRpc.java:65)\n\tat 
                org.opendaylight.controller.sal.connect.netconf.sal.NetconfDeviceRpc.invokeRpc(NetconfDeviceRpc.java:51)\n\tat 
                org.opendaylight.controller.sal.dom.broker.impl.SchemaAwareRpcBroker.invokeRpc(SchemaAwareRpcBroker.java:181)\n\tat 
                org.opendaylight.controller.sal.restconf.rpc.impl.MountPointRpcExecutor.invokeRpcUnchecked(MountPointRpcExecutor.java:39)\n\tat 
                org.opendaylight.controller.sal.restconf.rpc.impl.AbstractRpcExecutor.invokeRpc(AbstractRpcExecutor.java:35)\n\tat 
                org.opendaylight.controller.sal.restconf.impl.RestconfImpl.callRpc(RestconfImpl.java:613)\n\tat 
                org.opendaylight.controller.sal.restconf.impl.RestconfImpl.invokeRpc(RestconfImpl.java:458)\n\tat 
                org.opendaylight.controller.sal.restconf.impl.StatisticsRestconfServiceWrapper.invokeRpc(StatisticsRestconfServiceWrapper.java:72)\n\tat 
                sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n\tat 
                sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:606)\n\tat 
                com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\n\tat 
                com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)\n\tat 
                com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\n\tat 
                com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)\n\tat 
                com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat 
                com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100)\n\tat 
                com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat 
                com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\n\tat 
                com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)\n\tat 
                com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)\n\tat ...
(more)
edit retag flag offensive close merge delete

Comments

Is this present in the Helium-SR4 release here: https://www.opendaylight.org/downloads

Colin Dixon ( 2015-09-02 15:48:20 -0800 )edit