Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Assembler
Viewing all articles
Browse latest Browse all 10743

Premature End of File Exception

$
0
0
When I invoke the Assembler Service via Web Service in Java 1.4 environment I get the following exception:<br /><br />org.xml.sax.SAXParseException: Premature end of file.<br />     at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)<br />     at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)<br />     at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)<br />     at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) <br />     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)<br />     at org.apache.axis.client.Call.invokeEngine(Call.java:2784)<br />     at org.apache.axis.client.Call.invoke(Call.java:2767)<br />     at org.apache.axis.client.Call.invoke(Call.java:2443)<br />     at org.apache.axis.client.Call.invoke(Call.java:2366)<br />     at org.apache.axis.client.Call.invoke(Call.java:1812)<br />     at com.adobe.idp.services.AssemblerServiceSoapBindingStub.invoke(AssemblerServiceSoapBinding Stub.java:264)<br /><br />I am using the DDX given in the SDK Documentation.<br /><br />File DDXFile = new File("C:\\DDX.xml");<br />               FileInputStream fis = new FileInputStream(DDXFile);<br />               byte[] ddxBytes = new byte[new Long(DDXFile.length()).intValue()];<br />               fis.read(ddxBytes); fis.close();<br /><br />               ddxDoc.setBinaryData(ddxBytes);               <br />               <br />               CfLogWriter.debug("The DDX Sent to Assembler:\n" + DDX);<br />               // Execute the Assembler Service<br />               AssemblerService assemblerService = getAssemblerService();<br />               AssemblerResult jobResult = assemblerService.invoke(ddxDoc,inputMap,assemblerSpec);<br /><br />DDX File:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><DDX xmlns="http://ns.adobe.com/DDX/1.0/"><br /><PDF result="out.pdf"><br /><PDF source="map.pdf" /><br /><PDF source="directions.pdf" /><br /></PDF><br /></DDX><br /><br /> Any ideas?

Viewing all articles
Browse latest Browse all 10743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>