Uploaded image for project: 'External API Framework'
  1. External API Framework
  2. EXTAPI-354

NBI ServiceSpecification GET fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: High High
    • El Alto Release, Frankfurt Release
    • NBI
    • None

      I send servicespecification GET request to NBI El-Alto release but it fails with the below message. 

      Request:
      _http://Elalto_LB:30274/nbi/api/v4/serviceSpecification/66a66cc3-178c-45fd-82c2-494336cb3665
      _

      Response:
      {
          "timestamp": 1573482985288,
          "status": 500,
          "error": "Internal Server Error",
          "message": "No message available",
          "path": "/nbi/api/v4/serviceSpecification/66a66cc3-178c-45fd-82c2-494336cb3665"
      }_

      I checked the log of NBI and coule see these logs. 
       
      2019-11-08 02:26:57.848 INFO 6 — [io-8080-exec-10] o.o.nbi.apis.servicecatalog.SdcClient : response status : 200
       
      11/7/2019 9:37:25 PM 2019-11-08 02:37:25.148 INFO 6 — [nio-8080-exec-4] o.o.nbi.apis.servicecatalog.SdcClient : response status : 200
       
      11/7/2019 9:37:26 PM 2019-11-08 02:37:26.049 INFO 6 — [nio-8080-exec-4] o.o.nbi.apis.servicecatalog.SdcClient : response status : 200
       
      11/7/2019 9:37:26 PM Log warning: The required parameter "mscmsubscriberunia_subscriberuni_uniIdentifier" is not provided
       
      11/7/2019 9:37:26 PM Log warning: The required parameter "mscmsubscriberuniz_subscriberuni_uniIdentifier" is not provided
       
      11/7/2019 9:37:26 PM Log warning: The required parameter "mscmevcendpointz_evcendpoint_endPointId" is not provided
       
      11/7/2019 9:37:26 PM Log warning: The required parameter "mscmevcendpointa_evcendpoint_endPointId" is not provided
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : ####################################################################################################
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : CSAR Warnings found! CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : ToscaTemplate - verifyTemplate - 20 Parsing Warnings occurred...
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE003]: MissingRequiredFieldError: properties of template "MSCM-EvcEndPoint-Z" are missing field(s): [nf_naming_code, nf_function, sdnc_artifact_name, max_instances, nf_type, sdnc_model_version, nf_role, min_instances, sdnc_model_name]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE004]: MissingRequiredFieldError2: properties of template "MCMService 0" are missing field(s): [mcmCommonName]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE004]: MissingRequiredFieldError2: properties of template "MCMServiceDecorator 0" are missing field(s): [mcmCommonName]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE004]: MissingRequiredFieldError2: properties of template "MCMLogicalResourceAtomic 0" are missing field(s): [mcmCommonName]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE004]: MissingRequiredFieldError2: properties of template "MCMServiceInterface 0" are missing field(s): [mcmCommonName]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE004]: MissingRequiredFieldError2: properties of template "MCMServiceAtomic 0" are missing field(s): [mcmCommonName]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE003]: MissingRequiredFieldError: properties of template "MSCM-EVC 0" are missing field(s): [nf_naming_code, nf_function, sdnc_artifact_name, max_instances, nf_type, sdnc_model_version, nf_role, min_instances, sdnc_model_name]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE003]: MissingRequiredFieldError: properties of template "MSCM-EvcEndPoint-A" are missing field(s): [nf_naming_code, nf_function, sdnc_artifact_name, max_instances, nf_type, sdnc_model_version, nf_role, min_instances, sdnc_model_name]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE004]: MissingRequiredFieldError2: properties of template "MCMRootEntity 0" are missing field(s): [mcmCommonName]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE003]: MissingRequiredFieldError: properties of template "EVC" are missing field(s): [mcmCommonName, evdendpoint]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.863 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE004]: MissingRequiredFieldError2: properties of template "MCMManagedEntity 0" are missing field(s): [mcmCommonName]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.864 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE003]: MissingRequiredFieldError: properties of template "MSCM-SubscriberUni-A" are missing field(s): [nf_naming_code, nf_function, sdnc_artifact_name, max_instances, nf_type, sdnc_model_version, nf_role, min_instances, sdnc_model_name]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.864 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE004]: MissingRequiredFieldError2: properties of template "MCMLogicalResource 0" are missing field(s): [mcmCommonName]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.864 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE003]: MissingRequiredFieldError: properties of template "SubscriberUni" are missing field(s): [mcmCommonName]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.864 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE004]: MissingRequiredFieldError2: properties of template "MCMServiceEndpoint 0" are missing field(s): [mcmCommonName]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.864 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE003]: MissingRequiredFieldError: Data value of type "org.openecomp.datatypes.Naming" is missing required field(s) "[supplemental_data]". CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.864 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE003]: MissingRequiredFieldError: properties of template "EvcEndPoint" are missing field(s): [mcmCommonName]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.864 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE004]: MissingRequiredFieldError2: properties of template "MCMResource 0" are missing field(s): [mcmCommonName]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.864 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE004]: MissingRequiredFieldError2: properties of template "MCMEntity 0" are missing field(s): [mcmCommonName]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.864 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : JTosca Exception [JE003]: MissingRequiredFieldError: properties of template "MSCM-SubscriberUni-Z" are missing field(s): [nf_naming_code, nf_function, sdnc_artifact_name, max_instances, nf_type, sdnc_model_version, nf_role, min_instances, sdnc_model_name]. CSAR name - /temptoscafile/1573180645154tosca.csar
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.864 WARN 6 — [nio-8080-exec-4] o.o.s.t.p.impl.SdcToscaParserFactory : ####################################################################################################
       
      11/7/2019 9:37:27 PM 2019-11-08 02:37:27.865 ERROR 6 — [nio-8080-exec-4] o.a.c.c.C.[.[.[.[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [/nbi/api/v4] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
       
      11/7/2019 9:37:27 PM
       
      11/7/2019 9:37:27 PM java.lang.NullPointerException: null
       
      11/7/2019 9:37:27 PM at org.onap.nbi.apis.servicecatalog.ToscaInfosProcessor.buildAndSaveResponseWithSdcToscaParser(ToscaInfosProcessor.java:124) ~[classes!/:na]
       
      11/7/2019 9:37:27 PM at org.onap.nbi.apis.servicecatalog.ServiceSpecificationService.get(ServiceSpecificationService.java:70) ~[classes!/:na]
       
      11/7/2019 9:37:27 PM at org.onap.nbi.apis.servicecatalog.ServiceSpecificationResource.getServiceSpecification(ServiceSpecificationResource.java:45) ~[classes!/:na]
       
      11/7/2019 9:37:27 PM at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
       
      11/7/2019 9:37:27 PM at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
       
      11/7/2019 9:37:27 PM at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
       
      11/7/2019 9:37:27 PM at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[na:na]
       
      11/7/2019 9:37:27 PM at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
       
      11/7/2019 9:37:27 PM at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
       
      11/7/2019 9:37:27 PM at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
       
      11/7/2019 9:37:27 PM at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
       
      11/7/2019 9:37:27 PM at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
       
      11/7/2019 9:37:27 PM at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
       
      11/7/2019 9:37:27 PM at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
       
      11/7/2019 9:37:27 PM at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
       
      11/7/2019 9:37:27 PM at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
       
      11/7/2019 9:37:27 PM at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
       
      11/7/2019 9:37:27 PM at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) ~[spring-webmvc-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
       
      11/7/2019 9:37:27 PM at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.22.jar!/:9.0.22]
       
      11/7/2019 9:37:27 PM at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) ~[spring-web-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
       
      11/7/2019 9:37:27 PM at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) ~[spring-web-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
       
      11/7/2019 9:37:27 PM at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       
      11/7/2019 9:37:27 PM at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       11/7/2019 9:37:27 PM at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       11/7/2019 9:37:27 PM at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       11/7/2019 9:37:27 PM at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
       11/7/2019 9:37:27 PM at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
       11/7/2019 9:37:27 PM at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
       11/7/2019 9:37:27 PM at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]

       
      Since ServiceSpecification GET request fails, ServiceOrder request fails also with the same reason.

            aosull01 aosull01
            msyoon msyoon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: