Skip to content

Instantly share code, notes, and snippets.

@zdavatz
Created May 19, 2020 19:22
Show Gist options
  • Save zdavatz/1ac5b4fafe5bb83b1d502ed3b5cd1615 to your computer and use it in GitHub Desktop.
Save zdavatz/1ac5b4fafe5bb83b1d502ed3b5cd1615 to your computer and use it in GitHub Desktop.
edifact to xml
~/.software/edifactconverter> java -cp openedifact-converter/target/openedifact-converter-2.2-SNAPSHOT.jar:openedifact-xsd-libs-96A/target/openedifact-xsd-libs-96A-1.1-SNAPSHOT.jar com.sapstern.openedifact.run.ConverterRunner -process xml -fileIn /tmp/SND_PLICA_ORDERS_134747_58408847
ERROR: 'Can not find UNB segment for:
'
javax.xml.transform.TransformerException: org.xml.sax.SAXException: Can not find UNB segment for:
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:749)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:351)
at com.sapstern.openedifact.sax.EdifactSaxParserToXML.parseEdifact(EdifactSaxParserToXML.java:1097)
at com.sapstern.openedifact.sax.EdifactSaxParserToXML.parseEdifact(EdifactSaxParserToXML.java:1073)
at com.sapstern.openedifact.run.ConverterRunner.main(ConverterRunner.java:53)
Caused by: org.xml.sax.SAXException: Can not find UNB segment for:
at com.sapstern.openedifact.sax.EdifactSaxParserToXML.parse(EdifactSaxParserToXML.java:384)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:668)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:737)
... 4 more
---------
org.xml.sax.SAXException: Can not find UNB segment for:
at com.sapstern.openedifact.sax.EdifactSaxParserToXML.parse(EdifactSaxParserToXML.java:384)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:668)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:737)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:351)
at com.sapstern.openedifact.sax.EdifactSaxParserToXML.parseEdifact(EdifactSaxParserToXML.java:1097)
at com.sapstern.openedifact.sax.EdifactSaxParserToXML.parseEdifact(EdifactSaxParserToXML.java:1073)
at com.sapstern.openedifact.run.ConverterRunner.main(ConverterRunner.java:53)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment