Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-1513

Unable to onboard Tosca model having simple nodeType

XMLWordPrintable

    • SDC Sprint 20, SDC Sprint 21

      I am currently attempting to import the onboarded Tosca (using Import VSP) in SDC – Official Beijing Release. (not master)
      I keep on getting following error - "An error has occurred: null" 

      here are the error.log 

      2018-07-10T12:01:35.264Z        [qtp1208736537-5962]    ERROR   o.o.s.errors.DefaultExceptionMapper     RequestId=933cd1b4-1bc5-4630-93a4-ac40f9820409  Server=beijing-sdc-sdc-onboarding-be-cf567c7fd-j6cn5       InstanceId=392029f5-f608-48aa-90a8-b78d5a257f72 PartnerName=cs0008      ServerIpAddress=10.42.230.182   ServiceName=org.openecomp.sdcrests.vsp.rest.OrchestrationTemplateCandidate#process An error has occurred: null

      java.lang.NullPointerException: null

              at org.openecomp.sdc.vendorsoftwareproduct.services.impl.composition.CompositionDataExtractorImpl.extractComponent(CompositionDataExtractorImpl.java:363) ~[openecomp-sdc-vendor-software-product-core-1.2.0.jar:na]

              at org.openecomp.sdc.vendorsoftwareproduct.services.impl.composition.CompositionDataExtractorImpl.lambda$extractComponents$3(CompositionDataExtractorImpl.java:260) ~[openecomp-sdc-vendor-software-product-core-1.2.0.jar:na]

              at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[na:1.8.0_151]

              at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[na:1.8.0_151]

              at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1553) ~[na:1.8.0_151]

              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_151]

              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_151]

              at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[na:1.8.0_151]

              at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[na:1.8.0_151]

              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_151]

              at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[na:1.8.0_151]

              at org.openecomp.sdc.vendorsoftwareproduct.services.impl.composition.CompositionDataExtractorImpl.extractComponents(CompositionDataExtractorImpl.java:260) ~[openecomp-sdc-vendor-software-product-core-1.2.0.jar:na]

              at org.openecomp.sdc.vendorsoftwareproduct.services.impl.composition.CompositionDataExtractorImpl.extractServiceCompositionData(CompositionDataExtractorImpl.java:101) ~[openecomp-sdc-vendor-software-product-core-1.2.0.jar:na]

              at org.openecomp.sdc.vendorsoftwareproduct.services.impl.composition.CompositionDataExtractorImpl.extractServiceCompositionData(CompositionDataExtractorImpl.java:84) ~[openecomp-sdc-vendor-software-product-core-1.2.0.jar:na]

              at org.openecomp.sdc.vendorsoftwareproduct.impl.orchestration.OrchestrationUtil.saveServiceModel(OrchestrationUtil.java:338) ~[openecomp-sdc-vendor-software-product-manager-1.2.0.jar:na]

              at org.openecomp.sdc.vendorsoftwareproduct.impl.orchestration.process.OrchestrationTemplateProcessCsarHandler.processCsar(OrchestrationTemplateProcessCsarHandler.java:129) ~[openecomp-sdc-vendor-software-product-manager-1.2.0.jar:na]

              at org.openecomp.sdc.vendorsoftwareproduct.impl.orchestration.process.OrchestrationTemplateProcessCsarHandler.process(OrchestrationTemplateProcessCsarHandler.java:74) ~[openecomp-sdc-vendor-software-product-manager-1.2.0.jar:na]

              at org.openecomp.sdc.vendorsoftwareproduct.impl.OrchestrationTemplateCandidateManagerImpl.lambda$process$1(OrchestrationTemplateCandidateManagerImpl.java:86) ~[openecomp-sdc-vendor-software-product-manager-1.2.0.jar:na]

              at java.util.Optional.map(Optional.java:215) ~[na:1.8.0_151]

              at org.openecomp.sdc.vendorsoftwareproduct.impl.OrchestrationTemplateCandidateManagerImpl.process(OrchestrationTemplateCandidateManagerImpl.java:86) ~[openecomp-sdc-vendor-software-product-manager-1.2.0.jar:na]

              at org.openecomp.sdcrests.vsp.rest.services.OrchestrationTemplateCandidateImpl.process(OrchestrationTemplateCandidateImpl.java:125) ~[vendor-software-products-rest-services-1.2.0.jar:na]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_151]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_151]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_151]

              at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_151]

              at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) ~[spring-aop-4.3.15.RELEASE.jar:4.3.15.RELEASE]

              at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.3.15.RELEASE.jar:4.3.15.RELEASE]

              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.3.15.RELEASE.jar:4.3.15.RELEASE]

              at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:150) ~[spring-context-4.3.15.RELEASE.jar:4.3.15.RELEASE]

              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.15.RELEASE.jar:4.3.15.RELEASE]

              at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) ~[spring-aop-4.3.15.RELEASE.jar:4.3.15.RELEASE]

              at com.sun.proxy.$Proxy99.process(Unknown Source) ~[na:na]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_151]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_151]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_151]

              at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_151]

              at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180) ~[cxf-core-3.1.8.jar:3.1.8]

              at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) ~[cxf-core-3.1.8.jar:3.1.8]

              at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:189) [cxf-rt-frontend-jaxrs-3.1.8.jar:3.1.8]

              at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99) [cxf-rt-frontend-jaxrs-3.1.8.jar:3.1.8]

              at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) [cxf-core-3.1.8.jar:3.1.8]

              at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96) [cxf-core-3.1.8.jar:3.1.8]

              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) [cxf-core-3.1.8.jar:3.1.8]

              at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-core-3.1.8.jar:3.1.8]

              at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:252) [cxf-rt-transports-http-3.1.8.jar:3.1.8]

              at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) [cxf-rt-transports-http-3.1.8.jar:3.1.8]

              at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) [cxf-rt-transports-http-3.1.8.jar:3.1.8]

              at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) [cxf-rt-transports-http-3.1.8.jar:3.1.8]

              at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180) [cxf-rt-transports-http-3.1.8.jar:3.1.8]

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:299) [cxf-rt-transports-http-3.1.8.jar:3.1.8]

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPut(AbstractHTTPServlet.java:235) [cxf-rt-transports-http-3.1.8.jar:3.1.8]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) [servlet-api-3.1.jar:3.1.0]

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:274) [cxf-rt-transports-http-3.1.8.jar:3.1.8]

              at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) [jetty-servlet-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1772) [jetty-servlet-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:205) [websocket-server-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759) [jetty-servlet-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.togglz.servlet.TogglzFilter.doFilter(TogglzFilter.java:100) [togglz-servlet-2.4.1.Final.jar:na]

              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759) [jetty-servlet-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.openecomp.sdcrests.filters.SessionContextFilter.doFilter(SessionContextFilter.java:33) [openecomp-sdc-common-rest-1.2.0.jar:na]

              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759) [jetty-servlet-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:248) [jetty-servlets-9.0.6.v20130930.jar:9.0.6.v20130930]

              at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:211) [jetty-servlets-9.0.6.v20130930.jar:9.0.6.v20130930]

              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759) [jetty-servlet-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.openecomp.sdc.itempermissions.servlet.PermissionsFilter.doFilter(PermissionsFilter.java:60) [openecomp-item-permissions-core-1.2.0.jar:na]

              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1751) [jetty-servlet-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582) [jetty-servlet-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [jetty-server-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [jetty-security-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [jetty-server-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) [jetty-server-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) [jetty-servlet-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [jetty-server-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) [jetty-server-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213) [jetty-server-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119) [jetty-server-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [jetty-server-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.server.Server.handle(Server.java:539) [jetty-server-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333) [jetty-server-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [jetty-server-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283) [jetty-io-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) [jetty-io-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [jetty-io-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [jetty-util-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [jetty-util-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [jetty-util-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [jetty-util-9.3.23.v20180228.jar:9.3.23.v20180228]

              at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [jetty-util-9.3.23.v20180228.jar:9.3.23.v20180228]

              at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]

      2018-07-10T12:01:35.265Z        [qtp1208736537-5962]    INFO    o.o.s.l.s.j.LoggingResponseFilter       ResponseCode=500        RequestId=933cd1b4-1bc5-4630-93a4-ac40f9820409  Server=beijing-sdc-sdc-onboarding-be-cf567c7fd-j6cn5       InstanceId=392029f5-f608-48aa-90a8-b78d5a257f72 ElapsedTime=1138        EndTimestamp=2018-07-10T12:01:35.265Z   PartnerName=cs0008 StatusCode=ERROR        ServerIpAddress=10.42.230.182   ServiceName=org.openecomp.sdcrests.vsp.rest.OrchestrationTemplateCandidate#process      ClientIpAddress=10.42.191.132      ResponseDescription=Internal Server Error       BeginTimestamp=2018-07-10T12:01:34.127Z

       

      I am also attaching tosca which I am attempting to onboard.

      simple_vPG.csar

       

            tanmayn tanmayn
            tanmayn tanmayn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: