XML Not well formed, Mapping error

Hi All,
I'm trying a simple file to file scenario..
Following is the structure of source and target file..
Source structure
===============
<?xml version="1.0" encoding="UTF-8"?>
<ns:SourceMT xmlns:ns="urn:tmp:workshop:file2file">
  <Src1>1</Src1>
  <Src2>2</Src2>
</ns:SourceMT>
Target Structure
===============
<?xml version="1.0" encoding="UTF-8"?>
<ns:TargetMT xmlns:ns="urn:tmp:workshop:file2file">
  <Tgt1>1</Tgt1>
  <Tgt2>2</Tgt2>
</ns:TargetMT>
I did a one to one mapping for the two fields and tested the same using the test tool in IR and it works fine..
However when I put the same source xml structure in the Input file it gives me the below error..
Also when I copy the payload from the sxmb_moni and paste the same in the test tool in IR it throws an error saying
"XML not well-formed"
Error
=====
<SAP:Stack>During the application mapping com/sap/xi/tf/_FileMM_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
  <SAP:Retry>M</SAP:Retry>
  </SAP:Error>
Payload
=======
  <?xml version="1.0" encoding="UTF-8" ?>
- <ns:SourceMT xmlns:ns="urn:tmp:workshop:file2file">
  <Src1>1</Src1>
  <Src2>2</Src2>
  </ns:SourceMT>
Any inputs are greatly appreciated..
Thanks and Regards,
Nazim

Hi ,
<i>During the application mapping com/sap/xi/tf/_FileMM_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</i>
It is clearly saying that exception in mapping....Check your mapping correcly with one to one mapping.Dont do any mapping to the root node and check it...
And also check this...
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Sekhar

Similar Messages

  • "XML not well-formed" error while testing Interface mapping.

    Hello Experts,
      I have a simple Interface mapping test, where a single input field of type string is mapped to a target Interface.
    The content of a string actually will be a XML. I am using a XSLT mapping to convert string XML to XML. The XSLT mapping used by me is as :
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:output omit-xml-declaration="yes" />
    <xsl:template match="@*|node()">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()" />
      </xsl:copy>
      </xsl:template>
    <xsl:template match="/">
      <xsl:value-of select="//string" disable-output-escaping="yes" />
      </xsl:template>
      </xsl:stylesheet>
    Test data to be used is :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <string>
    <catalog>
         <cd>
              <title>Empire Burlesque</title>
              <artist>Bob Dylan</artist>
              <country>USA</country>
              <company>Columbia</company>
              <price>10.90</price>
              <year>1985</year>
         </cd>
         <cd>
              <title>Unchain my heart</title>
              <artist>Joe Cocker</artist>
              <country>USA</country>
              <company>EMI</company>
              <price>8.20</price>
              <year>1987</year>
         </cd>
    </catalog>
    </string>
    My Target structure is like:
    catalog
      CD
        title
        artist
        country
        company
        price
        year
    No matter what I input as a test data , I get the error as "XML not well-formed" while testing Interface mapping.  
    Please suggest what could be the reason for this error?
    Regards,
    Abhi.

    Hi check your XSLT mapping in XMLY spy with test data,the out of the XSLT Mapping should be valid XML , then only you can see output in interface mapping.
    Regards,
    Raj

  • XML not well formed in - XSLT mapping

    Hi,
    I am doing a simple xslt mapping wherein my Source data structure is
    MT
    |__ details
            |__ Records
                      |_emp_no
                      |_ emp_name
                      |_emp_dno
    In XSL file i hv specified <xsl:template match="MT">
    and I am using <for-each select="details/Records">
    when I m testing it in Interface mapping, it is giving me error "XML not well formed"
    can anybody please suggest whats the problem in the code??
    Thank you,
    Anu Singhal

    Hi Anu,
        I think in the select query in xslt mapping u have to mention the expression "//"  so that for each iteration it can go according the path.
      < for-each select = " //details/records">
      I have some sample code of same type...just check it..
    <xsl:template match="/">
    <MT_EMP_TARGET>
         <xsl:for-each select="//EMP_DATA">
              <EMP_DATA>
                            <xsl:variable name="fname" select="//EMP_DATA/First_Name"/>
                            <xsl:variable name="lname" select="//EMP_DATA/Last_Name"/>     
                   <Emp_Code><xsl:value-of select="//EMP_DATA/Emp_Code"/></Emp_Code>
                   <Name><xsl:value-of select="concat($fname,' ',$lname)"/></Name>
                   <Join_Dt><xsl:value-of select="//EMP_DATA/Join_Dt"/></Join_Dt>
                   <Designation><xsl:value-of select="//EMP_DATA/Level"/></Designation>
                   <Dept><xsl:value-of select="//EMP_DATA/Dept"/></Dept>
              </EMP_DATA>
         </xsl:for-each>
    </MT_EMP_TARGET>
    </xsl:template>
    For more info:
    http://www.w3schools.com/xsl/el_for-each.asp
    Cheers,
    Prasanthi.
    Reward marks  if helpful.

  • XML not well formed - Java Mapping, Webservice to RFC Scenario

    Hello All Experts,
    I have facing a strange type of error. I have written a Java Mapping which implements a DOM parser to take a request from a Webservice and validate it on the basis of some prerequisites. i.e. If data in the incoming request is valid, it creates a message of the same structure type as the input. If the incoming data is incorrect or incomplete; It generates an Error response structure.
    When I run and test the same mapping program using Editplus Java editor for the error scenario; it executes perfectly and creates the correct error XML structure. (I checked it by importing the structure in the XI Message mapping test tab). But when I create jar of my java mapping program and test it in my interface mapping, it gives me "XML not well formed error" (Problem while building the tree).
    Any idea as to why is it behaving in such a way? There are 2 reasons which come to my mind as of now:
    1. The initilization of my input and output streams in the public static void main:
                InputStream in = new FileInputStream(new File("Input.xml"));
               OutputStream out = new FileOutputStream(new File("Output.xml"));
               validateXML myMapping = new ValidateXML();
                myMapping.execute(in, out);
    The Output.xml has the xml structure for the correct case, do I have to initialize my outputstream for the error file? say error.xml
    2. My Webservice interface is a sychronous interface (Request / Response) and output of the Java mapping program are two asynchronous interface. (I'll use a synch-asynch bridge when this works) - Is that causing a problem?
    Please help.
    Best regards,
    Varun

    Hello Varun,
    it gives me "XML not well formed error" (Problem while building the tree).
    I have come across the same error message while testing in interface mapping. My problem was when an exception occured in java mapping, the execution terminates with the messages XML not well formed error". In order to solve this issue what i did was catch the exception type TransformerException and in that catch block throw StreamTransformationException exception in main methos of mapping program i.e execute().
    eg:-                                                                               
    catch (TransformerException e) {
                   throw new StreamTransformationException("Can not write XML.", e);
    By doing this you will see the exception raised , because some times when you execute your mapping with mail() method, though it create the file, when you try to open it will give error if any exceptions occured in mapping. By using the above notation you can handle those in java mapping.
    Hope you have gone through this blog.
    [Handling and Tracing Exceptions in java mapping|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID1055371050DB01666765031379427182End?blog=/pub/wlg/15061]
    Regards,
    Prasanna

  • Error using XML Loader: XML not well-formed

    Hi all,
    I am facing a problem using the XML loader in xMII 12.0 when trying to load the following XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <Users>
      <User>
        <UserID>IMXOO</UserID>
        <CWID>IMXOO</CWID>
        <Prename>Michael</Prename>
        <Surname>Otto</Surname>
        <CreatedOn>2001-12-31T12:00:00</CreatedOn>
        <CreatedBy>IMXOO</CreatedBy>
      </User>
    </Users>
    I also tried a most basic XML file which shows the same error:
    <?xml version="1.0"?>
    <ausgabe>
      <anzeige>Testausgabe</ausgabe>
    </ausgabe>
    To my understanding both files are well-formed, however xMII shows the error:
    "The markup in the document following the root element must be well-formed."
    Do I break any rules concerning the markup? IE loads the files without showing any errors.
    Best Regards
    Michael

    Jeremy,
    again you gave the key to the solution. When the error occured, I have set up the following path within the xMII workbench:
    "Catalog-Tab"
    <server>
      > Sandbox
            > XML
                myFile.xml
    When I tried to load the mxFile.xml with the XML Loader, I got the error described above (XML not well-formed). I also cannot drag the file into a transaction in the workbench. I have manually configured the XML Loader with "http://<server:port>/XMII/CM/Sandbox/XML/mxFile".
    Now using your hint I have changed to the "Web-Tab":
    "Web-Tab"
    <server>
        > Sandbox
            > WEB
                > XML
                    myFile.xml
    Then all works fine, when I now drag the file into the transaction. As you described, an XML Loader action is created with configuration "db://Sandbox/WEB/XML/myFile.xml" and the XML is loaded correctly.
    Thanks for your help!
    Best regards
    Michael

  • Re: XML NOT WELL FORMED??

    Hi all I have the 8520 curve. All was well till today And now I'm also getting XML NOT WELL FORMED Its not on all sites as yet But its so annoying. I've also done all that's been Sujested here and still have the Problem. The only thing I have done Today is update the blackberry Messenger as I was fed up with the Update message. oh how I wished I hadn't. But maybe this would Have happened anyway by seeing how Many are having the same problem. Anyone got any other ideas or know Of a number in the uk I could call For advice. Or should I call o2 Can anyone help us all. Bless you all for trying. Thanks. Ps please go easy on tec stuff as I'm New to blackberry and feel like A right dummy, which I feel like Spitting out every time the xml message appears lol
    Solved!
    Go to Solution.

    Hello,
    In this case we can try to reload the software on the BlackBerry smartphone to make sure it is running the latest version and there are no issues with the OS.
    To do this we would need to back up the BlackBerry smartphone. Please open the BlackBerry Desktop Manager and connect your BlackBerry smartphone. Click on the Backup and Restore button and select Back Up. Please note the location where the backup is being saved as we will need to access it later to restore the BlackBerry smartphone.
    Once you have backed up your BlackBerry smartphone please follow the link below to complete a clean reload of the BlackBerry smartphone software.
    Link: http://www.blackberry.com/btsc/KB11320
    Please test the BlackBerry smartphone prior to restoring your data.
    Thank you
    -DrP
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • XML Not well formed

    I have an XSLT mapping as described below:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/biztalk_1">
    <ns0:biztalk_1 xmlns:ns0="urn:biztalk-org:biztalk:biztalk_1">
    <ns0:header>
    <ns0:delivery>
    <ns0:message>
    <ns0:messageID><xsl:value-of select="header/delivery/message/messageID"/></ns0:messageID>
    </ns0:message>
    </ns0:delivery>
    </ns0:header>
    <ns0:body>
    <ns0:FinancialTransaction.CreateFromData>
    <ns0:CompanyCode><xsl:value-of select="body/FinancialTransaction.CreateFromData/CompanyCode"/></ns0:CompanyCode>
    </ns0:FinancialTransaction.CreateFromData>
    </ns0:body>
    </ns0:biztalk_1>
    </xsl:template>
    </xsl:stylesheet>
    however when I execute this mapping I keep getting the error saying that the XML is not well formed...
    I have looked at it but really cant see where I am going wrong.. Could someone take a look at the above xslt and let me know where this error could be coming from....

    ok this is the xslt again
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/biztalk_1">
    <ns0:biztalk_1 xmlns:ns0="urn:biztalk-org:biztalk:biztalk_1">
      <ns0:header>
          <ns0:delivery>
             <ns0:message>
                <ns0:messageID><xsl:value-of select="header/delivery/message/messageID"/></ns0:messageID>
             </ns0:message> 
          </ns0:delivery>
       </ns0:header>
       <ns0:body>
          <ns0:FinancialTransaction.CreateFromData>
             <ns0:CompanyCode><xsl:value-of select="body/FinancialTransaction.CreateFromData/CompanyCode"/></ns0:CompanyCode>
          </ns0:FinancialTransaction.CreateFromData>
       </ns0:body>
    </ns0:biztalk_1>
    </xsl:template>
    </xsl:stylesheet>
    and the source will look something like this
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:biztalk_1 xmlns:ns0="urn:biztalk-org:biztalk:biztalk_1">
       <ns0:header>
          <ns0:delivery>
             <ns0:message>
                <ns0:messageID/>
                <ns0:sent/>
             </ns0:message>
          </ns0:delivery>
       </ns0:header>
       <ns0:body>
          <ns0:FinancialTransaction.CreateFromData>
             <ns0:CompanyCode/>
          </ns0:FinancialTransaction.CreateFromData>
       </ns0:body>
    </ns0:biztalk_1>
    There are actually more fields but this is a toned down version...

  • How is DW-generated XML not well-formed?

    <ASP:Repeater DataMember="<%#
    DataSetScheduleByDate.FieldValue("", Container) %>"
    DataSource='<%# DataSetScheduleByDate.DefaultView %>'
    runat="server">
    This was generated by DW. When I run the page, its telling me
    that line 116 is not well formed. Since this was generated, I'm
    curious what's wrong? This is part of a datagrid and perhaps I'm
    just not assigning things correctly?

    What does the xml page around line 116 look like?
    Dave
    "dl0haus" <[email protected]> wrote in
    message
    news:fqkebl$mf9$[email protected]..
    > <ASP:Repeater DataMember="<%#
    DataSetScheduleByDate.FieldValue("",
    Container)
    > %>" DataSource='<%#
    DataSetScheduleByDate.DefaultView %>' runat="server">
    >
    > This was generated by DW. When I run the page, its
    telling me that line
    116
    > is not well formed. Since this was generated, I'm
    curious what's wrong?
    This
    > is part of a datagrid and perhaps I'm just not assigning
    things correctly?
    >

  • XML - writing file #1088 (xml not well formed)

    Hi,
    What could cause the IO Error #1088 within the code below? All I can think of is white space issue. It prints to the screen AND saves to the xml file correctly, just keeps throwing up the code.
    Also, writing it this way wont' allow me to add <?xml version='1.0' encoding='utf-8'?> is it required?
    Thanks for any help.
    var authors:XML;
    authors =<authors>
                    <author>
                    <firstname>Rich</firstname>
                    <lastname>Shupe</lastname>
                    </author>
                    <author>
                    <firstname>Zevan</firstname>
                    <lastname>Rosser</lastname>
                    </author>
                    </authors>;
    var xml =authors;
    var book:XML = new XML(xml);
    var xmlResponse:XML;
    var xmlURLReq:URLRequest = new URLRequest("saveXML.php");
    xmlURLReq.data = book;
    xmlURLReq.contentType = "text/xml";
    xmlURLReq.method = URLRequestMethod.POST;
    var xmlSendLoad:URLLoader = new URLLoader();
    xmlSendLoad.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
    xmlSendLoad.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
    xmlSendLoad.load(xmlURLReq);
    function onComplete(evt:Event):void {
        try {
            xmlResponse = new XML(evt.target.data);
            respTxt.text = xmlResponse;
            removeEventListener(Event.COMPLETE, onComplete);
            removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
        } catch (err:TypeError) {
            respTxt.text = "An error occured when communicating with server:\n" + err.message+" "+xml;
    function onIOError(evt:IOErrorEvent):void {
        respTxt.text = "An error occurred when attempting to load the XML.\n" + evt.text;

    Answered it myself....
    The PHP script was adding additional<tags></tags> so the file I was outputing read:
    <root>
    <teams>
    <team1></team1>
    <team2></team2>
    </teams>
    </root>
    <phpaddedInfo></phpaddedInfo>
    so just a good idea to look in both places when you get an IO error #1088

  • Since installing the latest update, Firefox will not load; it gives me the following error -- XML Parsing Error: not well formed.

    since installing the latest update, Firefox first operated with some errors but now will not load at all; it gives me the following error --
    XML Parsing Error: not well formed
    locations chrome://browser/content/browser.xml
    Line Number 1191, column 20:
    utton id="back-forward-dropmarker" type="menu" chromedir="&locale.dir;"-------------------
    please note that the words "utton ID" are exactly as the error message gives it; and at the end of the message there are exactly 19 hyphens.
    I don't know why this faulty code is referencing things to do with "chrome"... the Chrome browser is not installed on this PC or anywhere on our network.
    Also, this is not the first problem I had after clicking Firefox's prompt for the latest update. Before Firefox retreated into this error message, it was loading but running with some faults...
    1. the bookmark symbol was not appearing on the right hand side of the URL line, so I had always to click on "bookmark this page", after which the bookmark symbol did appear; however I don't know if the bookmarking function worked properly.
    2. the back and forward buttons were not highlighted, as if I had not come from a previous page; so once I clicked on a link to a new page I could not go back to where I came from because Fiefox thought I hadn't come from anywhere.
    3. there may have been other errors, but I did not find them.
    How do I reinstate my Firefox program to work properly please? do I have to download the latest version and reinstal? if so, do I have to remove the old version first? or is there a fix?
    Even to write this message I have been forced to use (yuk -- I don't like to say this!!!) Internet Explorer. So please -- I need help urgently.
    Thanks,
    NOEL

    Some how I solved my problem by opening a user account and downloading Firefox 4.0 beta and installing it, I did try it, worked fine, so I did close the user account and did go back to my own account(switched user), the main page that I had problem with Firefox which would not open, I dabble click on Firefox it start working again!! I hope that solves your problem too.
    firefox will not open, it gives me this cod and would not turn off, Error on switching in renew: NS_ERROR_UNEXPECTED, Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] id: none

  • Firefox crashes continually. Now I'm getting this error and cannot open firefox at all: XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

    SInce the latest update Firefox has crashed continually for about two weeks now. Continually means at least 10 times a day. Now it does not open at all and I get this message when launching Firefox:
    XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

    SInce the latest update Firefox has crashed continually for about two weeks now. Continually means at least 10 times a day. Now it does not open at all and I get this message when launching Firefox:
    XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

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

    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.j ava:76)
    at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1 504)
    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(AdobeAxis BeanSerializer.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(AdobeAxis BeanSerializer.java:326)
    at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1 504)
    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(AdobeAxis BeanSerializer.java:326)
    at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1 504)
    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.ja va: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.jav a: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.j ava:76)
    at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1 504)
    at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
    at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:707)

    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);

  • WHAT IS THE FIX TO THIS ERROR:  XML Parsing error: not well-formed (invalid token) (error code 4)

    Hello, looking to see if there's anyone out there who knows how to resolve this error from popping up when I open a previously saved adobe file with data populated inside (tax form). 
    The error states: 
    XML Parsing error: not well-formed (invalid token) (error code 4), line 16028, column 2 of file. 
    So when I go to open this file, THAT ERROR appears.  But then allows me to view the content inside the PDF (tax form) - however it will not allow further editing - this is an issue. 
    This began after working and populating certain files, then transferring to a hosting site.  Now when I open any PDF file from the hosting site, the error appears.  Could just be coincidental however throwing that out there in case it's useful.
    What causes this error & what is the fix?
    Cheers! 

    Unfortunately No.  This was a tax form downloaded from IRS.gov.  The PDF file has been populated and saved off.  I believe the file has somehow become corrupt.  Curious how to cleanse the file so it opens without issue (that error message).
    Thanks for your response

  • XML Parsing error: not well-formed (invalid token) (error code 4) --- Urgent Help Needed!

    Hi all, what im doing now is im trying to create a database connection my my MS SQL 2005 database. I created a data source and went to my Adobe Lifecycle Designer 7.1, i created a new data connection, selected OLEDB and created the connection string using the build function.
    Ok, now the problem is, after creating the new data connection and i click on the preview tab, i will receive the error stated above.
    'XML Parsing error: not well-formed (invalid token) (error code 4), line 444, column 1 of file'
    Does anyone know why am i receiving this error and how do i go about solving this?
    I need this database connection to pre-fill my form when the user downloads the form =(

    I have a vital form that clients fill out, which is passed to many people in the company along the workflow. The form is a Planner and we have in the following PDF, Word Doc..
    Well before, the Planner.pdf was originally created in Word, since most people have access to Word.. but evolved to a PDF form created from the Word Doc via Adobe LiveCycle Designer 8.0 w/ User Rights enabled so that the form could be filled out and saved using Adobe Reader.. which was a step better than Word.. being that it is free. But this needed to be easier and more to the point b/c some clients don't particularly like installing the latest version of Reader, even if you provide them the link. Nor do they like saving the form, filling the form, and attaching the form to send back.
    My goal is to have the client fill an HTML version of the form, submit and be done with it, but everyone in the workflow be able to easily receive the filled Planner as a PDF form.
    So some months ago I ran into this post Chris Trip, "Populate Livecycle PDF from mySQL database using PHP" #8, 22 Sep 2007 4:37 pm
    which uses the command line Win32 pdftk.exe to merge an FDF file into an existing PDF on the remote server, and serve this to whoever.
    My problem was with shared hosting and having the ability to use the Win32 pdftk.exe along with PHP which is predominantly used on Linux boxes. And we used a Linux box.
    so i created the following unorthodox method, which a client fills the HTML version of the Planner, all field values are INSERTED into a table in MySQL DB, I and all filled planners that have been filled by clients to date can be viewed from a repository page where an XML file is served up of the corresponding client, but someone would have to have Acrobat Professional, to import the form data from the XML file into a blank form.. altoughh this is simple for me.. I have the PHP file already created so that when a Planner is filled and client submits. >> the an email is sent to me with a table row from the repository of the client name, #, email, and a link to d-load the XML file,
    But I also have the PHP files created so that the Planner can be sent to by email to various people in the workflow with certain fileds ommitted they they do not need to see, but instead of the XML file beiong served up i need the filled PDF Planner to be served.
    I can do this locally with ease on a testing server, but I am currently trying to use another host that uses cross-platform compatibility so i can use PHP and the pdftk.exe to achieve this, as that is why I am having to serve up an XML file b/c we use a Linux server for our website, and cant execute the exe.
    Now that I am testing the other server (cross-platform host), just to use them to do the PDF handling (and it's only $5 per month) I am having problems with getting READ, WRITE, EXECUTE permissions..
    Si guess a good question to ask is can PHP do the same procedure as the pdftk.exe, and i can eleminate it.
    or how in the heck can i get this data from the DB into a blank PDF form, like i have described??
    here are some link to reference
    Populating a LiveCycle PDF with PHP and MySQL
    http://www.andrewheiss.com/Tutorials?page=LiveCycle_PDFs_and_MySQL
    HTML form that passed data into a PDF
    http://www.mactech.com/articles/mactech/Vol.20/20.11/FillOnlinePDFFormsUsingHTML/index.htm l
    and an example
    http://accesspdf.com/html_pdf_form/

  • XML-error: Not well-formed (invalid token)

    Hello,
    I want a new XML structure in the Script from my InDesign CS6 (MAC 10.7.4) document. Here ist my little testscript:
         var doc = app.documents.item(0);
         var allStories = doc.stories;
        newXML = new XML('<root></root>');
        for(var i = 0; i < allStories.length; i++) {
            var curStory = allStories[i];
             for(var j = 0; j < curStory.textStyleRanges.length; j++) {
                var textStyleRange = curStory.textStyleRanges[j];
                alert(textStyleRange.contents);
                t = new XML('<content>' +textStyleRange.contents + '</content>');
                newXML.appendChild(t);
        alert(newXML);
    The document has a text frame with the text, such as "C & A". When the script starts, it shows me the error message "XML-error: Not well-formed (invalid token)" on.
    The problem with the "&" is. Probably also other Characters.
    I think InDesign can automatically convert this into "&amp;" or other entities, but how?

    I solved the Problem.
    The line with
    t = new XML('<content>' +textStyleRange.contents + '</content>');
    is the Problem. textStyleRange.contents is not converted. The right way is here for the line:
    t = new XML('<content></content>');
    t.appendChild(textStyleRange.contents);

Maybe you are looking for

  • Open Captivate 6 projects with Captivate 7 error - loading video

    Hi! I have several projects created by Captivate 6 and now we upgrade to captivate 7. When I tried to open it with Captivate 7 a Loading video window appears several times, the project is opened but I cannot to do anything because these loading video

  • BAPI_SHIPMENT_CREATE  Stages

    How to create stages for BAPI shipment  when there are multiple stages to same ship to location for multiple deliveries. eg. del             ship to 100001         10044 100002         10044 100003        100056 100005        100056 It should create

  • G5 will not take (grab & load) CD.

    It was working fine a few days ago. Would there be a reset, of is the drive shot? It will not grab, and load CD. Thanks!!

  • Upgrade to ECC6 - FICO standard transactions affected

    Dear All I am currently testing the upgraded SAP system (4.6 to ECC6). It would be great if you can share your experiences with the upgrade, with regards to affected SAP standard transactions. Example -> TCode                    OSS Note KKRV        

  • Is there a way to disable the new VIP mail folder?

    It's of no use to me and I do not wish to see it amongst my email accounts