-
Bug
-
Resolution: Done
-
Medium
-
Beijing Release
-
None
-
None
in sb07 the latest sdc code produsec an error 500 wen submiting for testig.
2018-04-26T10:58:14.410Z|||assettoscatemplate|4db60d4a-a64e-4860-abb1-c62a2605e518|qtp710239027-373388||TOSCA_TEMPLATE|SDC-BE|SDC Catalog|||COMPLETE|||SDC_INSTANCE_UUID|DEBUG||172.17.0.5||10.0.3.1|172.17.0.1|o.o.s.be.servlets.LifecycleServlet||ActivityType=<changeResourceState_aroundBody0>, Desc=<change lifecycle state failed with exception>
java.lang.ClassCastException: org.openecomp.sdc.be.model.Service cannot be cast to org.openecomp.sdc.be.model.Resource
at org.openecomp.sdc.be.tosca.CsarUtils.writeOperationsArtifactsToCsar(CsarUtils.java:1173)
at org.openecomp.sdc.be.tosca.CsarUtils.writeAllFilesToCsar(CsarUtils.java:1163)
at org.openecomp.sdc.be.tosca.CsarUtils.populateZip(CsarUtils.java:403)
at org.openecomp.sdc.be.tosca.CsarUtils.generateCsarZip(CsarUtils.java:227)
at org.openecomp.sdc.be.tosca.CsarUtils.createCsar(CsarUtils.java:209)
at org.openecomp.sdc.be.tosca.CsarUtils.createCsar(CsarUtils.java:191)
at org.openecomp.sdc.be.components.impl.ArtifactsBusinessLogic.generateToscaArtifact(ArtifactsBusinessLogic.java:391)
at org.openecomp.sdc.be.components.impl.ArtifactsBusinessLogic.generateAndSaveToscaArtifact(ArtifactsBusinessLogic.java:375)
at org.openecomp.sdc.be.components.impl.ComponentBusinessLogic.saveToscaArtifactPayload(ComponentBusinessLogic.java:671)
at org.openecomp.sdc.be.components.impl.ComponentBusinessLogic.populateToscaArtifacts(ComponentBusinessLogic.java:654)
at org.openecomp.sdc.be.components.impl.ComponentBusinessLogic.populateToscaArtifacts(ComponentBusinessLogic.java:629)
at org.openecomp.sdc.be.components.lifecycle.CertificationRequestTransition.changeState(CertificationRequestTransition.java:172)
at org.openecomp.sdc.be.components.lifecycle.LifecycleBusinessLogic.changeState(LifecycleBusinessLogic.java:314)
at org.openecomp.sdc.be.components.lifecycle.LifecycleBusinessLogic.changeComponentState(LifecycleBusinessLogic.java:241)
at org.openecomp.sdc.be.servlets.LifecycleServlet.changeResourceState_aroundBody0(LifecycleServlet.java:116)
at org.openecomp.sdc.be.servlets.LifecycleServlet$AjcClosure1.run(LifecycleServlet.java:1)
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at com.jcabi.aspects.aj.MethodLogger.wrap(MethodLogger.java:212)
at com.jcabi.aspects.aj.MethodLogger.ajc$inlineAccessMethod$com_jcabi_aspects_aj_MethodLogger$com_jcabi_aspects_aj_MethodLogger$wrap(MethodLogger.java:1)
at com.jcabi.aspects.aj.MethodLogger.wrapClass(MethodLogger.java:136)
at org.openecomp.sdc.be.servlets.LifecycleServlet.changeResourceState(LifecycleServlet.java:73)
at sun.reflect.GeneratedMethodAccessor707.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
Processed_2018-03-26_14-15.zip the heat the at caused the issue.
onboard this import vf -> place in service -> try to certify service