Subject:X12 to XML Adapter Author:Chris Goodwin Date:05 Sep 2006 05:35 PM
I'm trying to convert an XML document to an EDI document. If I use the default adapter settings then it works fine, which uses a "+" as the element separator. If I specify an "*" as the element separator then I receive the following error:
java.io.IOException: Unable to determine type of EDI file {close}
java.lang.RuntimeException: java.io.IOException: Unable to determine type of EDI file {close}
at com.stylusstudio.adapter.fs.AdapterFile.close(AdapterFile.java:570)
Caused by: java.io.IOException: Unable to determine type of EDI file {close}
at com.stylusstudio.adapter.fs.AdapterFile.checkException(AdapterFile.java:412)
at com.stylusstudio.adapter.fs.AdapterFile.close(AdapterFile.java:568)
Caused by: com.stylusstudio.adapter.InvalidFormatException: Unable to determine type of EDI file
at com.stylusstudio.adapter.edi.Parser.readSegment(Parser.java:215)
at com.stylusstudio.adapter.edi.EDI.toXML(EDI.java:398)
at com.stylusstudio.adapter.AdapterBase.toXML(AdapterBase.java:181)
at com.stylusstudio.adapter.fs.AdapterRunner.run(AdapterRunner.java:56)
at com.stylusstudio.adapter.fs.AdapterFile.getInputStream(AdapterFile.java:306)