Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-4652

Sadis REST api fails with NullPointerException

    XMLWordPrintable

    Details

    • Story Points:
      3
    • Sprint:
      VOLTHA 2.10 - Sprint 5

      Description

      A GET request to http://localhost:8181/onos/sadis/subscriber/BBSM000a0001-1  produces the following exception, and responds with a status code of 500.

      infra/voltha-infra-onos-classic-0[onos-classic]: 15:56:40.536 WARN  [ServerErrorMapper] Unhandled REST exception
      infra/voltha-infra-onos-classic-0[onos-classic]: java.lang.NullPointerException
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.onosproject.codec.CodecContext.encode(CodecContext.java:77)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.opencord.sadis.impl.SubscriberAndDeviceInformationCodec.encode(SubscriberAndDeviceInformationCodec.java:52)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.opencord.sadis.impl.SubscriberAndDeviceInformationCodec.encode(SubscriberAndDeviceInformationCodec.java:30)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.opencord.sadis.rest.SadisWebResource.getSubscriber(SadisWebResource.java:64)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:148)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:200)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:415)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:277)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:272)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:268)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.internal.Errors.process(Errors.java:316)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.internal.Errors.process(Errors.java:298)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.internal.Errors.process(Errors.java:268)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:289)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:256)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:703)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:416)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1626)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:228)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:567)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:298)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:82)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.Server.handle(Server.java:516)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:386)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
      infra/voltha-infra-onos-classic-0[onos-classic]:    at java.base/java.lang.Thread.run(Thread.java:834)
      
      
      

        Attachments

          Activity

            People

            Assignee:
            battistonelia Elia Battiston
            Reporter:
            battistonelia Elia Battiston
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes