Expand my Community achievements bar.

Got "Reponse is not well-formed XML" error when calling FormDataIntegration web service

Avatar

Former Community Member

Hi,

I'm using Windows Server 2008 + LiveCycle Server ES2 (Reader Extensions) + ASP.NET

This problem only happened when I run the ASP.NET program with the licensed version of the server, (which i installed form the CD provided)

However, there is no problem in my development environment with the trial version downloaded from Adobe website, the import data was successful and a correct PDF form can be returned.

My question is that whether there is a problem within the LiveCycle services? or there is missing component that needs to be installed?? Thanks

After call the importData of FormDataIntegration, I got below error

Response is not well-formed XML.
System.InvalidOperationException: Response is not well-formed XML. ---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.MoveToContent()
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
--- End of inner exception stack trace ---

I checked in LiveCycle's jboss log, I found below errors:

2011-02-17 14:16:37,086 ERROR [org.apache.axis.encoding.ser.BeanSerializer] Exception:

java.lang.NullPointerException

at com.adobe.idp.dsc.provider.impl.soap.axis.ser.ArraySerializer.serialize(ArraySerializer.java:76)

at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504)

at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)

at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:707)

at com.adobe.idp.dsc.provider.impl.soap.axis.ser.AdobeAxisBeanSerializer.serialize(AdobeAxisBeanSerializer.java:281)

:

:

at java.lang.Thread.run(Thread.java:619)

2011-02-17 14:16:37,087 ERROR [org.apache.axis.encoding.ser.BeanSerializer] Exception:

java.io.IOException: java.lang.NullPointerException

at com.adobe.idp.dsc.provider.impl.soap.axis.ser.AdobeAxisBeanSerializer.serialize(AdobeAxisBeanSerializer.java:326)

at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504)

at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)

:

: at java.lang.Thread.run(Thread.java:619)

2011-02-17 14:16:37,088 ERROR [org.apache.axis.SOAPPart] Exception:

java.io.IOException: java.io.IOException: java.lang.NullPointerException

at com.adobe.idp.dsc.provider.impl.soap.axis.ser.AdobeAxisBeanSerializer.serialize(AdobeAxisBeanSerializer.java:326)

at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504)

:

:

at java.lang.Thread.run(Thread.java:619)

2011-02-17 14:16:37,088 WARN  [org.apache.axis.attachments.AttachmentsImpl] Exception:

AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

faultSubcode:

faultString: ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.

faultActor:

faultNode:

faultDetail:

{http://xml.apache.org/axis/}hostname: XXXX

ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.

at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333)

at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

:

:

at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)

at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)

... 33 more

Caused by: java.lang.NoClassDefFoundError: com/adobe/formServer/utils/LogUtils

at com.adobe.formServer.utils.CommonGibsonUtils.PDFDocumentFromDocument(CommonGibsonUtils.java:122)

at com.adobe.livecycle.formdataintegration.server.FormData.importData(FormData.java:64)

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

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

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

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

at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.java:118)

... 74 more

2011-02-17 14:16:37,090 ERROR [org.apache.axis.encoding.ser.BeanSerializer] Exception:

java.lang.NullPointerException

at com.adobe.idp.dsc.provider.impl.soap.axis.ser.ArraySerializer.serialize(ArraySerializer.java:76)

at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504)

at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)

at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:707)

3 Replies

Avatar

Level 8

At first glance, it looks like the document is not making it to the LiveCycle server.  How are you attaching the document to the request (base64, MTOM, File URL)?

http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/help.htm?content=003896.html

Avatar

Former Community Member

it's base64, here's the codes i called, any hints?

            FormDataIntegration.FormDataIntegrationService dataIntClient = new FormDataIntegration.FormDataIntegrationService();

            dataIntClient.Url += "?blob=base64";

            dataIntClient.Credentials = new System.Net.NetworkCredential(account, password);

            FormDataIntegration.BLOB inXMLData = new FormDataIntegration.BLOB();

            inXMLData.binaryData = xmlData;

            FormDataIntegration.BLOB inPDFForm = new FormDataIntegration.BLOB();

            string pathPDF = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin\\ReplySlipByEmail.pdf");

            FileStream fsPDF = new FileStream(pathPDF, FileMode.Open);

            int lenPDF = (int)fsPDF.Length;

            byte[] bytePDF = new byte[lenPDF];

            fsPDF.Read(bytePDF, 0, lenPDF);

            inPDFForm.binaryData = bytePDF;

            FormDataIntegration.BLOB result = dataIntClient.importData(inPDFForm, inXMLData);

            return ApplyUsageRightsToPDF(result.binaryData, account, password, LCCertName);

Avatar

Former Community Member

Finally fixed by installing service pack 2, actually the issue was addressed in SP1, which fixed this bug:

- The Forms Data Integration service returns a ClassDefNotFoundException when it is not

used in conjunction with the Forms or Output service.