Hello,
I am trying to create a PDF using generatePDFOutput Folder and I keep getting error
[10/5/09 11:00:02:695 EDT] 0000002a PivotHandlerW E org.apache.commons.logging.impl.Jdk14Logger error
WSWS3400I
: Info: unexpected exception.
lava.lang.NullPointerException
Can any body suggest me where I am going wrong
SOAP RESPONSE
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv :Server.userException</faultcode><faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</faultstring><detail><faultData><ns1:exception xsi:nil="true" xmlns:ns1="http://adobe.com/idp/services"/><ns2:message xmlns:ns2="http://adobe.com/idp/services">SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</ns2:message></faultData><ns3:hostname xmlns:ns3="http://xml.apache.org/axis/">server</ns3:hostname></detail></soapenv:Fault></soapenv:Body> </soapenv:Envelope>
My Code
String XMLPath=root +
OutputServiceServiceLocator ol =
new OutputServiceServiceLocator(); OutputService port = ol.getOutputService(
new URL(
"http://localhost:80/soap/services/FormsService")); ((javax.xml.rpc.Stub) port)._setProperty( javax.xml.rpc.Stub.
USERNAME_PROPERTY, AdobeConstants.
NGPS_USERNAME); ((javax.xml.rpc.Stub) port)._setProperty( javax.xml.rpc.Stub.
PASSWORD_PROPERTY, AdobeConstants.
NGPS_PASSWORD); BLOB inDataDoc =
new BLOB();
if (null != XML && XML.length() > 0) {
File XMLFileNameMap =
new File(root + "/WEB-INF/XML/" + XML);
int XMLFileNameMapLength = new Long(XMLFileNameMap.length()) .intValue(); FileInputStream XMLFileNameMapIn =
new FileInputStream( XMLFileNameMap);
byte[] XMLFileNameMapArray = newbyte[XMLFileNameMapLength]; System.
out.println("LENGTH---------->"+XMLFileNameMapArray.length); inDataDoc.setBinaryData(XMLFileNameMapArray); } PDFOutputOptionsSpec pdfOptions =
new PDFOutputOptionsSpec();
pdfOptions.setLookAhead(500);
pdfOptions.setRecordLevel(1);
RenderOptionsSpec renderOptions =
new RenderOptionsSpec();
renderOptions.setCacheEnabled(true);
BLOBHolder generatePDFOutputPDFDoc =
new BLOBHolder(); BLOBHolder generatePDFOutputMetaDataDoc =
new BLOBHolder(); BLOBHolder generatePDFOutputResultDoc =
new BLOBHolder(); OutputResultHolder outResultHolder =
new OutputResultHolder(); String XDPPath = AdobeConstants.
NGPS_ROOT_REPOSITORY
+ AdobeConstants.
NGPS_FORMS_PATH; System.
out.println("XDPPath---------->" + XDPPath);
port.generatePDFOutput(TransformationFormat.
PDF, templateNm, XDPPath, pdfOptions, renderOptions, inDataDoc, generatePDFOutputPDFDoc, generatePDFOutputMetaDataDoc, generatePDFOutputResultDoc, outResultHolder);