java.lang.NoSuchMethodException: org.onosproject.ymstest.module.SimpleDataTypesManager.setSimple-data-types(org.onosproject.yang.gen.v1.urn.simple.data.types.rev20131112.SimpleDataTypesOpParam)

JIRA | Adarsh m | 3 months ago
  1. 0

    Hi, Issue occurred when sending data via postman for NBI testing Yang : module simple-data-types { yang-version 1; namespace "urn:simple:data:types"; prefix smpdtp; revision 2013-11-12; identity iden; typedef tpdfstring { type string; } typedef tpdfbit { type bits { bit b1; bit b2; bit b3; } } typedef tpdfun4 { type boolean; } typedef tpdfun3 { type union { type tpdfbit; type tpdfstring; } } typedef tpdfun2 { type union { type tpdfun3; type tpdfun4; } } typedef tpdfun1 { type union { type uint8; type decimal64 { fraction-digits 2; } } } container cont { leaf lfint8Min { type int8; } leaf lfint8Max { type int8; } leaf lfint16Min { type int16; } leaf lfint16Max { type int16; } leaf lfint32Min { type int32; } leaf lfint32Max { type int32; } leaf lfint64Min { type int64; } leaf lfint64Max { type int64; } leaf lfuint8Max { type uint8; } leaf lfuint16Max { type uint16; } leaf lfuint32Max { type uint32; } leaf lfuint64Max { type uint64; } leaf lfstr { type string; } leaf lfstr1 { type string { length "1..2"; } } leaf lfbool1 { type boolean; } leaf lfbool2 { type boolean; } leaf lfbool3 { type boolean; } leaf lfdecimal1 { type decimal64 { fraction-digits 2; } } leaf lfdecimal2 { type decimal64 { fraction-digits 2; } } leaf lfdecimal3 { type decimal64 { fraction-digits 2; } } leaf lfdecimal4 { type decimal64 { fraction-digits 2; } } leaf lfdecimal6 { type decimal64 { fraction-digits 2; } } leaf lfenum { type enumeration { enum "enum1"; enum "enum2"; enum "enum3"; enum "enum4"; } } leaf lfbits { type bits { bit bit1; bit bit2; bit bit3; bit bit4; } } leaf lfbinary { type binary; } leaf lfref1 { type leafref { path "../lfstr"; //reference to string type } } leaf lfref2 { type leafref { path "../lfint8Max"; //reference to number type } } leaf lfempty { type empty; } leaf lfunion1 { type union { type uint16; type string; } } leaf lfunion2 { type union { type decimal64 { fraction-digits 2; } type string; } } leaf lfunion4 { type union { type boolean; type string; } } leaf lfunion5 { type union { type uint16; type string; } } leaf lfunion7 { type tpdfun3; } leaf lfunion8 { type union { type uint16; type string; } } leaf lfunion9 { type union { type uint16; type boolean; } } leaf lfunion10 { type union { type bits { bit bt1; bit bt2; } type boolean; } } leaf lfunion11 { type union { type tpdfun1; type tpdfun2; } } leaf lfunion12 { type tpdfun2; } leaf lfunion13 { type tpdfbit; } leaf lfunion14 { type union { type enumeration { enum "zero"; enum "one"; } type uint16; } } leaf identityref1 { type identityref { base iden; } } } } Logs : display 2016-09-06 17:48:28,439 | INFO | qtp663154802-63 | RestconfWebResource | 181 - org.onosproject.onos-app-restconf-rpp - 1.7.0.SNAPSHOT | handlePostRequest: simple-data-types 2016-09-06 17:48:28,482 | ERROR | qtp663154802-63 | YangApplicationBroker | 176 - org.onosproject.onos-app-yms - 1.7.0.SNAPSHOT | YAB: failed to fetch method object from application object. onos> onos> log:clear onos> java.lang.NoSuchMethodException: org.onosproject.ymstest.module.SimpleDataTypesManager.setSimple-data-types(org.onosproject.yang.gen.v1.urn.simple.data.types.rev20131112.SimpleDataTypesOpParam) at java.lang.Class.getDeclaredMethod(Class.java:2130) at org.onosproject.yms.app.yab.YangApplicationBroker.invokeApplicationsMethod(YangApplicationBroker.java:300) at org.onosproject.yms.app.yab.YangApplicationBroker.processEditOfApplication(YangApplicationBroker.java:398) at org.onosproject.yms.app.yab.YangApplicationBroker.processEdit(YangApplicationBroker.java:130) at org.onosproject.yms.app.ymsm.YmsManager.executeOperation(YmsManager.java:136) at org.onosproject.restconf.restconfmgr.RestconfManager.doPostOperation(RestconfManager.java:106) at org.onosproject.restconf.rpp.RestconfWebResource.handlePostRequest(RestconfWebResource.java:125) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:267) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:745) onos> onos> displ

    JIRA | 3 months ago | Adarsh m
    java.lang.NoSuchMethodException: org.onosproject.ymstest.module.SimpleDataTypesManager.setSimple-data-types(org.onosproject.yang.gen.v1.urn.simple.data.types.rev20131112.SimpleDataTypesOpParam)
  2. 0

    search-guard on ES 1.7

    GitHub | 1 year ago | maoo
    java.lang.NoSuchMethodException: org.elasticsearch.search.SearchService.setCallback(com.floragunn.searchguard.filter.level.SearchContextCallback)
  3. 0

    Cannot Enable searchguard on ES 1.6.2

    GitHub | 1 year ago | sdemircan
    java.lang.NoSuchMethodException: org.elasticsearch.search.SearchService.setCallback(com.floragunn.searchguard.filter.level.SearchContextCallback)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Rest EJB Project not deploying on Wildfly 8.0

    Stack Overflow | 1 year ago | Ashish451
    com.google.common.util.concurrent.ExecutionError: java.lang.ExceptionInInitializerError
  6. 0

    GitHub comment 169#141847488

    GitHub | 1 year ago | brcolow
    java.lang.NoSuchMethodException: org.slf4j.impl.SimpleLogger.setLevel(ch.qos.logback.classic.Level)

  1. gaurav 1 times, last 2 weeks ago
  2. davidvanlaatum 4 times, last 2 weeks ago
  3. franky li 19 times, last 1 month ago
  4. pranavprakash 2 times, last 2 months ago
  5. ank_07 1 times, last 4 months ago
12 more registered users
27 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoSuchMethodException

    org.onosproject.ymstest.module.SimpleDataTypesManager.setSimple-data-types(org.onosproject.yang.gen.v1.urn.simple.data.types.rev20131112.SimpleDataTypesOpParam)

    at java.lang.Class.getDeclaredMethod()
  2. Java RT
    Class.getDeclaredMethod
    1. java.lang.Class.getDeclaredMethod(Class.java:2130)
    1 frame
  3. org.onosproject.yms
    YmsManager.executeOperation
    1. org.onosproject.yms.app.yab.YangApplicationBroker.invokeApplicationsMethod(YangApplicationBroker.java:300)
    2. org.onosproject.yms.app.yab.YangApplicationBroker.processEditOfApplication(YangApplicationBroker.java:398)
    3. org.onosproject.yms.app.yab.YangApplicationBroker.processEdit(YangApplicationBroker.java:130)
    4. org.onosproject.yms.app.ymsm.YmsManager.executeOperation(YmsManager.java:136)
    4 frames
  4. org.onosproject.restconf
    RestconfWebResource.handlePostRequest
    1. org.onosproject.restconf.restconfmgr.RestconfManager.doPostOperation(RestconfManager.java:106)
    2. org.onosproject.restconf.rpp.RestconfWebResource.handlePostRequest(RestconfWebResource.java:125)
    2 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  6. jersey-core-server
    ServerRuntime$2.run
    1. org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
    2. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
    3. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
    4. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
    5. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
    6. org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
    7. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
    8. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
    9. org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)
    9 frames
  7. Jersey Core
    RequestScope.runInScope
    1. org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
    2. org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
    3. org.glassfish.jersey.internal.Errors.process(Errors.java:315)
    4. org.glassfish.jersey.internal.Errors.process(Errors.java:297)
    5. org.glassfish.jersey.internal.Errors.process(Errors.java:267)
    6. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
    6 frames
  8. jersey-core-server
    ApplicationHandler.handle
    1. org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
    2. org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
    2 frames
  9. jersey-container-servlet-core
    ServletContainer.service
    1. org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)
    2. org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
    3. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
    4. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)
    5. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
    5 frames
  10. Jetty
    ServletHandler.doHandle
    1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
    2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
    2 frames
  11. OPS4J Pax Web - Jetty
    HttpServiceServletHandler.doHandle
    1. org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)
    1 frame
  12. Jetty
    ContextHandler.doHandle
    1. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    2. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
    3. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    4. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
    4 frames
  13. OPS4J Pax Web - Jetty
    HttpServiceContext.doHandle
    1. org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)
    1 frame
  14. Jetty
    ScopedHandler.handle
    1. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
    2. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    3. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
    4. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    4 frames
  15. OPS4J Pax Web - Jetty
    JettyServerHandlerCollection.handle
    1. org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)
    1 frame
  16. Jetty
    AsyncHttpConnection.handle
    1. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    2. org.eclipse.jetty.server.Server.handle(Server.java:370)
    3. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
    4. org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
    5. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
    6. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
    7. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
    8. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    8 frames
  17. GWT dev
    SelectChannelEndPoint$1.run
    1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
    2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
    2 frames
  18. Jetty
    QueuedThreadPool$3.run
    1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    2 frames
  19. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame