Hi tal



      It is an nullpoint error.  

      two ways:




      First,  change the file in the csar with attachment




      Second, I contribute  codes  to the JTOSCA to make the program stronger 
to avoid the null point error. 

                           JIRA: https://jira.onap.org/browse/SDC-261

                           gerrit: https://gerrit.onap.org/r/#/c/9375   please 
review it.






BR


Maopeng




原始邮件



发件人: <[email protected]>
收件人:张茂鹏10030173 <[email protected]>
抄送人: <[email protected]> <[email protected]> <[email protected]> 
<[email protected]>
日 期 :2017年08月30日 14:51
主 题 :RE: [onap-discuss] 答复: RE: [SDC] Failes to parse ZTE csar







Thank you very much


 


We try some of the CSAR and its work. Thank you for the quick response


 


We have problem currently only with one CSAR: vMME.csar


I am attaching the CSAR to the mail


 


We are checking if it’s a parser issue or CSAR/Tosca problem. I will like to 
get your inputs


 


The exception that we get is


 


java.lang.NullPointerException


                at 
org.openecomp.sdc.toscaparser.api.utils.ValidateUtils.validateString(ValidateUtils.java:66)


                at 
org.openecomp.sdc.toscaparser.api.DataEntity.validateDatatype(DataEntity.java:178)


                at 
org.openecomp.sdc.toscaparser.api.DataEntity.validate(DataEntity.java:126)


                at 
org.openecomp.sdc.toscaparser.api.DataEntity.validateDatatype(DataEntity.java:232)


                at 
org.openecomp.sdc.toscaparser.api.Property.validate(Property.java:88)


                at 
org.openecomp.sdc.toscaparser.api.NodeTemplate.validate(NodeTemplate.java:242)


                at 
org.openecomp.sdc.toscaparser.api.TopologyTemplate._nodeTemplates(TopologyTemplate.java:130)


                at 
org.openecomp.sdc.toscaparser.api.TopologyTemplate.<init>(TopologyTemplate.java:69)


                at 
org.openecomp.sdc.toscaparser.api.ToscaTemplate._topologyTemplate(ToscaTemplate.java:222)


                at 
org.openecomp.sdc.toscaparser.api.ToscaTemplate.init(ToscaTemplate.java:191)


                at 
org.openecomp.sdc.toscaparser.api.ToscaTemplate.<init>(ToscaTemplate.java:97)


                at 
org.openecomp.sdc.toscaparser.JToscaMetadataParse.testSPGWcsar(JToscaMetadataParse.java:32)


                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


                at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)


                at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


                at java.lang.reflect.Method.invoke(Method.java:498)


                at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)


                at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)


                at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)


                at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)


                at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)


                at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)


                at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)


                at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)


                at 
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)


                at 
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)


                at 
org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)


                at 
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)


                at org.junit.runners.ParentRunner.run(ParentRunner.java:363)


                at org.junit.runner.JUnitCore.run(JUnitCore.java:137)


                at 
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)


                at 
com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)


                at 
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)


                at 
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)


 


 


 


 


 


 


Best regards


Tal Halfon


 


Development Manager @ Amdocs     


 


P. +972 54 2213763


 


        


 


From: [email protected] 
[mailto:[email protected]] On Behalf Of 
[email protected]
 Sent: Wednesday, August 30, 2017 5:38 AM
 To: Halfon Tal <[email protected]>
 Cc: Marina Vinokurov <[email protected]> Oren Kleks <[email protected]> 
Tali Orenbach <[email protected]> [email protected]
 Subject: [onap-discuss] 答复: RE: Failes to parse ZTE csar


 

hi tal

 

          csar.meta  is used to identify the package type, etc.   The file can 
be ignored for  the SDC parser.

          

Thanks

Maopeng



原始邮件



发件人: <[email protected]>



收件人: <[email protected]> <[email protected]>张茂鹏10030173赵化冰10201488



抄送人: <[email protected]> <[email protected]>  <[email protected]>



日 期 :2017年08月29日 15:48



主 题 :RE: Failes to parse ZTE csar




 


Hi


 


We are trying to parse the CSAR supply by ZTE for the VoLTE usecase


The CSAR are located @ 
https://wiki.onap.org/display/DW/SDC+2017-07-31+Meeting+notes


 


We are using a valid tosca parser


 


We are getting this exception for all the CSAR there, All the CSAR have a file 
call csar.meta and the parses can parse it because it does not contain  valid 
YAML content.


I need help to understand what is this file and why do I need it on the root. 
If needed I need this file to be fixed


For exmple SPGW.csar


 


org.openecomp.sdc.toscaparser.api.common.JToscaException: The file "csar.meta" 
in the CSAR 
"C:\onap\workspace\tosca\jtosca\target\test-classes\csars\SPGW.csar"  does not 
contain valid YAML content


 


                at 
org.openecomp.sdc.toscaparser.api..prereq.CSAR._parseAndValidateMetaProperties(CSAR.java:167)


                at 
org.openecomp.sdc.toscaparser.api..prereq.CSAR.validate(CSAR.java:93)


                at 
org.openecomp.sdc.toscaparser.api..ToscaTemplate._getPath(ToscaTemplate.java:508)


                at 
org.openecomp.sdc.toscaparser.api..ToscaTemplate.init(ToscaTemplate.java:140)


                at 
org.openecomp.sdc.toscaparser.api..ToscaTemplate.<init>(ToscaTemplate.java:97)


                at 
org.openecomp.sdc.toscaparser.JToscaMetadataParse.testSPGWcsar(JToscaMetadataParse.java:32)


                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


                at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)


                at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


                at java.lang.reflect.Method.invoke(Method.java:498)


                at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)


                at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)


                at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)


                at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)


                at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)


                at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)


                at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)


                at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)


                at 
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)


                at 
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)


                at 
org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)


                at 
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)


                at org.junit.runners.ParentRunner.run(ParentRunner.java:363)


                at org.junit.runner.JUnitCore.run(JUnitCore.java:137)


                at 
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)


                at 
com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)


                at 
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)


                at 
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)


 


Disconnected from the target VM, address: '127.0.0.1:57744', transport: 'socket'


 


 


 


Best regards


Tal Halfon


 


Development Manager @ Amdocs     


 


P. +972 54 2213763


 


        




This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,


you may review at https://www.amdocs.com/about/email-disclaimer




 





 



This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,you may review at 
https://www.amdocs.com/about/email-disclaimer

Attachment: openovnf__vSPGW.yaml
Description: Binary data

_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to