Details
-
Bug
-
Status: Closed
-
Medium
-
Resolution: Done
-
Dublin Release
Description
When SDNC context builder sends a POMBA audit request (http://sdnc.onap:8282/restconf/config/GENERIC-RESOURCE-API:services/service/PombaDemoCust_001-ServiceInst-001) to SDNC but received an empty Json response and then dump the exception.
2019-02-19T16:21:50.319Z qtp302977067-4499 INFO apiMapperRoute InstanceUUID=c82e0fbe-1491-49a5-995d-f0800c7d661a, RequestId=8888888, ServiceName=SdncContextBuilder, ServiceInstanceId=PombaDemoCust_001-ServiceInst-001, StartTime=2019-02-19T16:21:50.002Z, ClientAddress=10.42.22.163, InvocationID=07c59470-ff86-4ab0-a89d-c3bf70a6b041, PartnerName=context-aggregator, ServerFQDN=pomba-pomba-sdncctxbuilder-c64ddc8f9-45qmc Processing GENERIC-RESOURCE-API by Camel Routing Context
2019-02-19T16:21:50.321Z qtp302977067-4499 INFO org.onap.pomba.contextbuilder.sdnc.handlers.GenericResourceApiHandler InstanceUUID=c82e0fbe-1491-49a5-995d-f0800c7d661a, RequestId=8888888, ServiceName=SdncContextBuilder, ServiceInstanceId=PombaDemoCust_001-ServiceInst-001, StartTime=2019-02-19T16:21:50.002Z, ClientAddress=10.42.22.163, InvocationID=07c59470-ff86-4ab0-a89d-c3bf70a6b041, PartnerName=context-aggregator, ServerFQDN=pomba-pomba-sdncctxbuilder-c64ddc8f9-45qmc in GENERIC-RESOURCE-API HANDLER:
2019-02-19T16:21:50.321Z qtp302977067-4499 INFO org.onap.pomba.contextbuilder.sdnc.service.rs.RestService InstanceUUID=c82e0fbe-1491-49a5-995d-f0800c7d661a, RequestId=8888888, ServiceName=SdncContextBuilder, ServiceInstanceId=PombaDemoCust_001-ServiceInst-001, StartTime=2019-02-19T16:21:50.002Z, ClientAddress=10.42.22.163, InvocationID=07c59470-ff86-4ab0-a89d-c3bf70a6b041, PartnerName=context-aggregator, ServerFQDN=pomba-pomba-sdncctxbuilder-c64ddc8f9-45qmc SDNC GET request at url = http://sdnc.onap:8282/restconf/config/GENERIC-RESOURCE-API:services/service/PombaDemoCust_001-ServiceInst-001
2019-02-19T16:21:50.331Z qtp302977067-4499 INFO org.onap.pomba.contextbuilder.sdnc.service.rs.RestService InstanceUUID=c82e0fbe-1491-49a5-995d-f0800c7d661a, RequestId=8888888, ServiceName=SdncContextBuilder, ServiceInstanceId=PombaDemoCust_001-ServiceInst-001, StartTime=2019-02-19T16:21:50.002Z, ClientAddress=10.42.22.163, InvocationID=07c59470-ff86-4ab0-a89d-c3bf70a6b041, PartnerName=context-aggregator, ServerFQDN=pomba-pomba-sdncctxbuilder-c64ddc8f9-45qmc Return empty Json. Resource not found:
2019-02-19T16:21:50.342Z qtp302977067-4499 ERROR org.apache.camel.processor.DefaultErrorHandler InstanceUUID=c82e0fbe-1491-49a5-995d-f0800c7d661a, RequestId=8888888, ServiceName=SdncContextBuilder, ServiceInstanceId=PombaDemoCust_001-ServiceInst-001, StartTime=2019-02-19T16:21:50.002Z, ClientAddress=10.42.22.163, InvocationID=07c59470-ff86-4ab0-a89d-c3bf70a6b041, PartnerName=context-aggregator, ServerFQDN=pomba-pomba-sdncctxbuilder-c64ddc8f9-45qmc Failed delivery for (MessageId: ID-pomba-pomba-sdncctxbuilder-c64ddc8f9-45qmc-1550266250197-0-8 on ExchangeId: ID-pomba-pomba-sdncctxbuilder-c64ddc8f9-45qmc-1550266250197-0-7). Exhausted after delivery attempt: 1 caught: org.onap.pomba.contextbuilder.sdnc.exception.AuditException\n\nMessage History\n--------------------------------------------------------------------------------------------------------------------------------------\nRouteId ProcessorId Processor Elapsed (ms)\n[apiMapperRoute ] [apiMapperRoute ] [direct://startRoutingProcess ] [ 33]\n[apiMapperRoute ] [choice1 ] [when[simple\{${in.body.apiName} == 'VNF-API'}]choice[when[simple{$\{in.body.apiN] [ 0]\n[apiMapperRoute ] [log2 ] [log ] [ 1]\n[apiMapperRoute ] [to2 ] [bean:genericResourceApiHandler?method=process ] [ 21]\n\nStacktrace\n-------------------------------------------------------------------------------------------------------------------------------------- org.onap.pomba.contextbuilder.sdnc.exception.AuditException: null\n\tat org.onap.pomba.contextbuilder.sdnc.handlers.GenericResourceApiHandler.process(GenericResourceApiHandler.java:63)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:481)\n\tat org.apache.camel.component.bean.MethodInfo$1.doProceed(MethodInfo.java:300)\n\tat org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:273)\n\tat org.apache.camel.component.bean.AbstractBeanProcessor.process(AbstractBeanProcessor.java:187)\n\tat org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:53)\n\tat org.apache.camel.component.bean.BeanProducer.process(BeanProducer.java:41)\n\tat org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)\n\tat org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:138)\n\tat org.apache.camel.processor.Pipeline.process(Pipeline.java:101)\n\tat org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:117)\n\tat org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)\n\tat org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)\n\tat org.apache.camel.component.direct.DirectBlockingProducer.process(DirectBlockingProducer.java:53)\n\tat org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:186)\n\tat org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:86)\n\tat org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:541)\n\tat org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:506)\n\tat org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:369)\n\tat org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:506)\n\tat org.apache.camel.impl.ProducerCache.send(ProducerCache.java:264)\n\tat org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:337)\n\tat org.onap.pomba.contextbuilder.sdnc.service.SpringServiceImpl.getContext(SpringServiceImpl.java:104)\n\tat org.onap.pomba.contextbuilder.sdnc.service.rs.RestServiceImpl.getContext(RestServiceImpl.java:62)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)\n\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)\n\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)\n\tat org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)\n\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)\n\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)\n\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)\n\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)\n\tat org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)\n\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)\n\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:315)\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:297)\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:267)\n\tat org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)\n\tat org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)\n\tat org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)\n\tat org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)\n\tat org.glassfish.jersey.servlet.ServletContainer.serviceImpl(ServletContainer.java:408)\n\tat org.glassfish.jersey.servlet.ServletContainer.doFilter(ServletContainer.java:583)\n\tat org.glassfish.jersey.servlet.ServletContainer.doFilter(ServletContainer.java:524)\n\tat org.glassfish.jersey.servlet.ServletContainer.doFilter(ServletContainer.java:461)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\tat org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\tat org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\tat org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\tat org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\tat org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:103)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:503)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)\n\tat org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)\n\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)\n\tat java.lang.Thread.run(Thread.java:745)\n
If we send the same request (http://sdnc.onap:8282/restconf/config/GENERIC-RESOURCE-API:services/service/PombaDemoCust_001-ServiceInst-001) thru Postman, the response is 200 OK with correct data.
Attachments
Issue Links
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
78853,1 | FIX: NPE | master | logging-analytics/pomba/pomba-sdnc-context-builder | Status: MERGED | +2 | +1 |