SAXException while parsing a well formed XML

Hi all,
I am getting SAXException while parsing even though my XML is well formed.
It is written in the API that SAXException can be thrown for both error and warning. Is there any way to ignore the warnings coming while parsing and hence no SAXException is thrown.
One more weird behavior I am getting is that when I catch the SAXException, it executes the catch block and after that control goes to the next line from where the exception was thrown, and that line is in try block itself. I'll show this with code example:
1.     Try {
2.        DocumentBuilder docBuild = DocumentBuilderFactory.newInstance().newDocumentBuilder();
3.        Document document = docBuild.parse( inputSrc );      //SAXException is thrown on this line
4.        //Some code�
5.     �
6.     } catch (Exception e) {
7.        System.out.println(�Exception while parsing: �+e.getMessage);
8.     }
9.     //Some Code�Ideally when SAXException is thrown on line 3, control should go to the line 7 and the to line 9 after the catch block. But in current senario control is going to line 4 after line 7. It is something very strange happening. My guess is, is it because of some property of SAXException, when thrown for warning?
Any suggetion/advice in this regard will be helpful.
Thanks in advance

First: if an exception is happening, then your XML isn't well-formed. Look at the exception text and see what it's complaining about.
As for why you're not catching the exception: a DocumentBuilder uses an ErrorHandler to handle the different warnings and errors. You can set your own ErrorHandler when parsing. The default (as documented in the link above) simply writes warnings and non-fatal errors to the console, and throws an exception only for fatal errors.

Similar Messages

  • SAXException while parsing 'ejb-jar.xml'.

    Hi
    My machine is behind a proxy. When I try to compile an EJB using ANT 1.3 I am getting the following Exception.
    D:\src\tools\ant\build.xml:1267: SAXException while parsing 'ejb-jar.xml'. This probably indicates badly-formed XML. Details: External entity not found: "http://java.sun.com/dtd/ejb-jar_1_1.dtd".
    --- Nested Exception ---
    java.net.SocketException: no further information (code=10071)
    at com.sun.xml.parser.Parser.fatal(Parser.java:2817)
    I read inone of the news groups that I need to have weblogic.jar in the classpath.
    I am using webligic 6.1 and I have also set weblogic.jar in the classpath.
    Please help me
    Thanks
    Seshadri.

    It's http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd. Also, check your doctype -
    it publicid is correct (-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN),
    local DTD will be used.
    Seshadri <[email protected]> wrote:
    Hi
    My machine is behind a proxy. When I try to compile an EJB using ANT 1.3 I am getting the following Exception.
    D:\src\tools\ant\build.xml:1267: SAXException while parsing 'ejb-jar.xml'. This probably indicates badly-formed XML. Details: External entity not found: "http://java.sun.com/dtd/ejb-jar_1_1.dtd".
    --- Nested Exception ---
    java.net.SocketException: no further information (code=10071)
    at com.sun.xml.parser.Parser.fatal(Parser.java:2817)
    I read inone of the news groups that I need to have weblogic.jar in the classpath.
    I am using webligic 6.1 and I have also set weblogic.jar in the classpath.
    Please help me
    Thanks
    Seshadri.--
    Dimitri

  • SAXException in well formed XML

    OK this is driving me nuts. I am getting a NullPointerException error in the XmlReader.parse() method. This happens on well formed xml documents of any kind and none of my XML will parse.I dont know what I am doing wrong in the code:
    DefaultHandler handler=new MyCalendarHandler(); //my default handler class defined elsewhere
         XMLReader xmlreader;
         SAXParserFactory spfactory = SAXParserFactory.newInstance();
         try{
         SAXParser saxparser=spfactory.newSAXParser();
         spfactory.setValidating(false);
         xmlreader=saxparser.getXMLReader();
         xmlreader.setContentHandler(handler);
         InputSource inputsource=new InputSource("cal.xml");
         xmlreader.parse(inputsource);
    }catch(ParserConfigurationException pce){
         //pce.printStackTrace();
         System.out.println("Parser Configuration Exception:"+pce.getMessage());
         }catch (SAXParseException spe){
         System.out.println("\nSAXParseException " + ", line " +
         spe.getLineNumber() + "column "+spe.getColumnNumber()+", uri " + spe.getSystemId());
         System.out.println(" " + spe.getMessage());
         }catch(SAXException se){
         System.out.println("SAXException:"+se.getMessage());
         se.printStackTrace();
         }catch(IOException ioe){
         System.out.println("IOException:"+ioe.getMessage());
    It throws a SAXParseException:
    SAXParseException, line 3 column -1, uri file:/home/ron/myprojects/cal.xml
    java.lang.NullPointerException
    My xml is as below.However it does this on all xml files, only the line number is different in each case.
    <?xml version="1.0" encoding="UTF-8"?>
    <iCalendar>
    <iCal version="2.0" prodid="-//iPlanet/Calendar Hosting Server//EN">
    <X-NSCP-WCAP-SESSION-ID>br78wbhh2mbv9t6</X-NSCP-WCAP-SESSION-ID>
    <X-NSCP-WCAP-USER-ID>ron</X-NSCP-WCAP-USER-ID>
    <X-NSCP-WCAP-CALENDAR-ID>ron</X-NSCP-WCAP-CALENDAR-ID>
    <X-NSCP-WCAP-ERRNO>0</X-NSCP-WCAP-ERRNO>
    </iCal>
    </iCalendar>
    My relevant import libraries are:
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.SAXParser;
    Thank you for any help
    ronjon

    cal.xml is in the current working directory. In fact I had also tried with the full path but get the same error.
    I am wondering if this is a java version problem.
    ronjon

  • Not well formed  XML data in XI

    HELLO !!
    Can XI handle a non welll formed XMl messages as an input  ?
    THANKS
    ~Peeru

    Hey
    >>we can use java mapping to make it well formed XMl.
    What exactly you mean by "not well formed XML" ?
    >>Does it mean that java mapping can take the value as a stream of data and then at the next step the XML parser is va;idating the msg ?
    Yeah thats the way Java mapping works,it takes input in the form of Input stream and gives output as an output stream.
    Bottom line is XML structure should be valid,you can't handle a invalid XML structure with any mapping,once you get the message  then you can use graphical message mapping for simple structures or use Java for complex ones(i guess by non-well formed you mean the ones which can be handled only by Java mapping)
    Thanx
    Aamir

  • Javascript request on non well-formed xml file in Safari

    Hi,
    I make an AJAX request to get a non well-formed xml file. On Internet Explorer (domNode is empty) and Firefox (domNode is not empty but a tag "parsererror" is present), I can know if the document is non well-formed but on Safari the request seems to be ok, I get a part of the non well-formed file (until the error).
    I would like to say if I can make the difference between a well-formed xml file and a non well-formed xml file (with an AJAX request) on Safari.
    Thanks
    Julien

    I have built a desktop application that can use these
    calls to check if the xml contained in the document
    called "file" is well formed.
    Ok. So, the application works fine then?
    DocumentBuilderFactory domFactory =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder domBuilder =
    lder domBuilder = domFactory.newDocumentBuilder();
         domBuilder.parse(file);
    They are part of the javax.xml.parsers.*; package.
    Problem is that to serve this I need to put it in an
    applet but since I have to write the xml string to a
    file local to the server the applet is not working.
    Huh? You lost me there. Are you getting security exceptions from the applet? If yes, you need to sign the applet. Otherwise, what is not 'working' in the applet compared to the application? Also, why do you need to first write it to a file?
    My question is if anyone knows of some classes in the
    API that will allow me to check if a String of XML is
    well formed or not.
    If the document is not well-formed, the parse() call will throw an exception. Catch this and process as needed.
    I basically need to get a string from a field in a
    data base in XML format and be able to test it
    without first writing it to a document so I can get
    the applet to work.
    If you want to access an external database from an applet, you will need to sign the applet. You should not need to first write it to a file before parsing. Rather, simply use a stream (either InputStream or Reader) and wrap it in a StreamSource object.
    If anyone knows something on this or has an
    alternative suggestion please do tell.
    Thanks.- Saish

  • This seems to be well formed XML. Why?

    Hello,
    I can't find an answer to the question why this xml seems to be "well formed". (According to: http://www.xml.com/pub/a/tools/ruwf/check.html.)
    <?xml version="1.0" encoding="UTF-8"?>
    <example>
        <myelement category="<MyCategory>">MyContent</myelement>
    </example>Watch out for the > in the "category" attribute value.
    As far as I know this is not valid XML. But the validator I used says its OK. I used JDOM to parse this data and it works without any error. Why?
    Thanks for your time.
    Peer

    I can't find an answer to the question why this xml seems to be "well formed". Because it obeys all the syntactic conventions of well formed xml?That's obviously the only correct answer to my question. :-)
    But you have to admit that it's a little bit strange to escape the left angle bracket and not the other one. I cannot see the benefit of it. But probably there is none....
    Thanks again, Pete!
    Peer

  • How to format a not well formed xml into well formed

    Hi,
    Here's what I'm trying to do: I have a build a report based on query results. In the query result, one field is a CLOB (which contains XML. The XML contains two tags - "description" and "count"). I want to read (&parse) the XML and store the "description" and "count" in a hashmap. But when I try to parse it, I end up in an error. I'm currently  using XmlParse but I got an error "The markup following the root element should be well formed."  I immediately used IsXml() to find out if the XML I am reading is well formed.  And the answer is "NO".
    Could someone help me in converting it into a "well formed" one?
    (This is what I've tried: I appended "<?xml version="1.0" encoding="UTF-8"?>" to the XML I'm reading coz it was missing this.  I later used XmlFormat to convert the XML into a string format.  But IsXML tells me that even this is not well formed.)
    Thanks much for your help!

    XML encodes information is a specific way. Well-formedness determines whether or not a string is an XML document in the first place.
    However, as well-formedness can be broken by any arbitrary number of factors, it is in general impossible to automate the repair process to recover a well-formed XML document. You have to do it manually, using an XML or a text editor.

  • XML Custom Panels: Samples With Doc are Not Well Formed XML

    The custom panel samples in the XMP Custom Panels document (and the accompanying sample file) is not well formed XML (which means that CS3 can't be parsing the file as XML, which would explain how this error made it publication). In particular, the XML declaration is missing the closing "?".
    <br />
    <br />As published it is:
    <br />
    <br /><?xml version="1.0"?>
    <br />
    <br />It should be:
    <br />
    <br /><?xml version="1.0"?>
    <br />
    <br />Note the "?&gt;" rather than "&gt;".
    <br />
    <br />This is in addition to the DOCTYPE SYSTEM URL not resolving to an actual DTD declaration set (which would be:
    <br />
    <br />
    <br /> title CDATA #REQUIRED
    <br /> type NMTOKEN #REQUIRED
    <br />&gt;
    <br />
    <br />Cheers,
    <br />
    <br />Eliot

    You'll have to do something to prevent your logger from appending to old logs that have been closed. Sorry if that is not very helpful, but I'm not familiar with the logging features in SDK 1.4. For your interest, though, Log4J (which you can get from Apache) also features XML logging, and it solved that rather obvious problem thus:
    "The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd. It does not output a complete well-formed XML file. The output is designed to be included as an external entity in a separate file to form a correct XML file."
    In other words, you would have to wrap the output in an XML header and a root node to be able to use it, which is not difficult to do.

  • Not well-formed XML

    Hi guys,
    I need to parse an XML file which is not well formed.
    For example, the value of an element named 'topic' contains html tags which are not ended properly etc..
    e.g. <topic>Some text <BR></topic>
    Why do I need this? Because some idiots on their web site publish XML data (not well formed) which indeed is very valuable to me, and I want to use it. I tried contacting them on the "not-well-formed-XML" issue but haven't managed to get a reply yet. Hence I have been struggling with this using the SAX API and so on...
    I think there should be a way to ignore some elements' content when parsing the XML data but I haven't been able to do it...I am not experienced on SAX or DOM API's...
    For example if the problem is caused only by the BR tags then when I encounter it, either startTag or endTag, I should be able to ignore it. When I say "ignore", I mean "not change the state of the parser", or undo the last state change or whatever...Well at least I think I would write an XML parser like this if I were to do that...
    Any help is appreciated...

    Sorry to be the bearer of bad news.
    There is no such thing as an "XML file which is not
    well formed." There are files that look like they
    might be XML files but are not valid. I think that is
    what you have. One of the key differences between XML
    and HTML is that HTML has allowed sloppy habits to
    become routine. XML prohibits them from getting past
    the hurdle of validation.
    Dave PattersonI'm not sure about the comments that you have made about the validity and well-formedness about XML documents. As I said I'm not experienced in XML but as far as I understand, a document is called "valid" when it conforms to all the constraints imposed by a DTD. However, there is no DTD in my case and the XML document I have is not "well-formed" as defined below:
    A well-formed XML document is syntactically correct. It does not have any angle brackets that are not part of tags. (The entity references < and > are used to embed angle brackets in an XML document.) In addition, all tags have an ending tag or are themselves self-ending (<slide>..</slide> or <slide/>). In addition, in a well-formed document, all tags are fully nested. They never overlap, so this arrangement would produce an error: <slide><image>..</slide></image>. Knowing that a document is well formed makes it possible to process it. A well-formed document may not be valid however. To determine that, you need a validating parser and a DTD.
    According to the above definition the XML document I have violates the constraints and not well formed. But you can argue that the XML document I got is not an XML document but it is just some document :) Then anyway, I am not sure about all this terminology...
    The technique you suggested seems reasonable but as far as I know the SAX parser stops parsing when a fatal error is encountered. So I don't know how I will trap/ignore the error and continue...
    As for the JTidy suggestion:
    I have tried using HttpUnit which uses JTidy and couldn't get it right. I think when a DOM is created using JTidy the document must also be well formed (XHTML or whatever)...Am I wrong here?
    Thanks a lot...

  • Appended log files are not well formed XML?

    I'm working on a retrofit of our home grown logging class to use the new java.util.logging classes. It works beautifully with one exception. If I need to instantiate the logger in the same day, appending to an existing log file, I get a second (or third, or fourth) <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE log SYSTEM "logger.dtd"> tag inserted at the beginning of the new log entries. This causes the log file to not be well formed and therefore cannot be parsed.
    I've looked and looked, but can't find a method to suppress these extra tags. Anybody know a way? We want to use this on a development server that will be restarted several times a day. If I don't append, it wipes out my previous logs for the day.

    You'll have to do something to prevent your logger from appending to old logs that have been closed. Sorry if that is not very helpful, but I'm not familiar with the logging features in SDK 1.4. For your interest, though, Log4J (which you can get from Apache) also features XML logging, and it solved that rather obvious problem thus:
    "The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd. It does not output a complete well-formed XML file. The output is designed to be included as an external entity in a separate file to form a correct XML file."
    In other words, you would have to wrap the output in an XML header and a root node to be able to use it, which is not difficult to do.

  • SBL-ODU-01008 The HTTP request did not contain well-formed XML.

    I am trying to invoke the activity webservice using Msxml2.XMLHTTP.4.0 through PowerBuilder...
    I receive the following error when executing the code below: SBL-ODU-01008 The HTTP request did not contain well-formed XML.
    ls_post_url = "https://secure-ausomxxxx.crmondemand.com/Services/Integration/Activity;"
    ls_response_text = "jsessionid=" + sesId + ";"
    ls_post_url = ls_post_url + ls_response_text
         loo_xmlhttp.open ("POST",ls_post_url, false)
    // loo_xmlhttp.setRequestHeader("Content-Length", 200 )      
    // loo_xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8" )      
    // loo_xmlhttp.setRequestHeader("Accept", "text/xml" )           
    // loo_xmlhttp.setRequestHeader("COOKIE", left(cookie,pos(cookie,";",1)-1) )
    //     loo_xmlhttp.setRequestHeader("COOKIE", left(cookie,pos(cookie,";",1)-1) )
         ls_post_url2 = "document/urn:crmondemand/ws/ecbs/activity/10/2004:ActivityQueryPage"
         loo_xmlhttp.setRequestHeader("SOAPAction", ls_post_url2)     
         loo_xmlhttp.send()
    If I uncomment the setRequestHeader info, then I get a different error:
    ls_post_url = "https://secure-ausomxxxx.crmondemand.com/Services/Integration/Activity;"
    ls_response_text = "jsessionid=" + sesId + ";"
    ls_post_url = ls_post_url + ls_response_text
         loo_xmlhttp.open ("POST",ls_post_url, false)
    loo_xmlhttp.setRequestHeader("Content-Length", 200 )      
    loo_xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8" )      
    loo_xmlhttp.setRequestHeader("Accept", "text/xml" )           
    loo_xmlhttp.setRequestHeader("COOKIE", left(cookie,pos(cookie,";",1)-1) )
         loo_xmlhttp.setRequestHeader("COOKIE", left(cookie,pos(cookie,";",1)-1) )
         ls_post_url2 = "document/urn:crmondemand/ws/ecbs/activity/10/2004:ActivityQueryPage"
         loo_xmlhttp.setRequestHeader("SOAPAction", ls_post_url2)     
         loo_xmlhttp.send()
    SBL-ODU-01007 The HTTP request did not contain a valid SOAPAction header. The value of the header was
    I am unsure what I am missing in order to invoke the web service. If anyone can help I would truly appreciate it.
    Thanks

    Hi,
    I tried the SOAP request you provided and got a different error response:
    <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Client</faultstring><detail><ErrorCode>SBL-ODU-01008</ErrorCode><ErrorMessage>The HTTP request did not contain well-formed XML. An attempt to parse it produced the following error: Unsupported wsse:Password Type. Valid Value: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText</ErrorMessage></detail></soap:Fault></soap:Body></soap:Envelope>
    After changing the Password Type from:
    Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-token-profile-1.0#PasswordText">hijklmno</wsse:Password>
    to:
    Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">hijklmno</wsse:Password>
    The request was successful.
    Please let me know if this resolves your issue.
    Thanks,
    Sean
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header>
    <wsse:Security
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    soapenv:mustUnderstand="1">
    <wsse:UsernameToken>
    <wsse:Username>abcdefg</wsse:Username>
    <wsse:Password
    Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">hijklmno</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </soapenv:Header>
    <soapenv:Body>
    <q0:ContactWS_ContactQueryPage_Input
    xmlns:q0="urn:crmondemand/ws/contact/">
    <q1:ListOfContact xmlns:q1="urn:crmondemand/xml/Contact/Query">
    <Contact>
    <ContactType>='Customer'</ContactType>
    <ContactFirstName>='Fred'</ContactFirstName>
    <IntegrationId />
    </Contact>
    </q1:ListOfContact>
    </q0:ContactWS_ContactQueryPage_Input>
    </soapenv:Body>
    </soapenv:Envelope>
    Edited by: Sean Duffy on Jun 4, 2010 9:38 AM

  • Generate Query in PLSQL to return Well Formed XML with Multiple records

    Hi there
    This is very urgent. I am trying to create a PLSQL query that should retrieve all records from oracle database table "tbl_Emp" in a well formed xml format. The format is given below
    *<Employees xmlns="http://App.Schemas.Employees" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">*
    *<Employee>*
    *<First_Name></First_Name>*
    *<Last_Name></Last_Name>*
    *</Employee>*
    *<Employee>*
    *<First_Name></First_Name>*
    *<Last_Name></Last_Name>*
    *</Employee>*
    *</Employees>*
    To retrieve data in above format, I have been trying to create a query for long time as below
    SELECT XMLElement("Employees",
    XMLAttributes('http://App.Schemas.Employees' AS "xmlns",
    *'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi"),*
    XMLElement("Employee", XMLForest(First_Name, Last_Name)))
    AS "RESULT"
    FROM tbl_Emp;
    But it does not give me the required output. It creates <Employees> tag with each individual record which I don't need. I need <Employees> tag to be the root tag and <Employee> tag to repeat and wrap each individual record. Please help me in this as this is very urgent. Thanks.

    Hi,
    Please remember that nothing is "urgent" here, and repeating that it is will likely produce the opposite effect.
    If you need a quick answer, provide all necessary details in the first place :
    - db version
    - test case with sample data and DDL
    That being said, this one's easy, you have to aggregate using XMLAgg :
    SELECT XMLElement("Employees"
           , XMLAttributes(
               'http://App.Schemas.Employees' AS "xmlns"
             , 'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi"
           , XMLAgg(
               XMLElement("Employee"
               , XMLForest(
                   e.first_name as "First_Name"
                 , e.last_name  as "Last_Name"
           ) AS "RESULT"
    FROM hr.employees e
    ;

  • How to make an XML in form of String to well-formed XML document

    Hi Folks,
         Thanks for all you support in Advance, i have a requirement, where i have an XML in one line string form and i wondering how to convert into well formed XML?
    Input XML sample:
    <root> <one><link1></link1></one><two></two> </root>
    to well-formed XML
    <root>
          <one>
              <link1></link1>
         </one>
         <two>
         </two>
    </root>
    I was trying to create a well-formed document using DOM or SAX parsers in ExcuteScript activity, but it is leading to some complicated exceptions. And i am looking for the simplest way for transformation.
    Please let me know
    thanks,
    Rajesh

    Rajesh,
    I don't understand. There is no difference between the two XML instances other than whitespace. They are both well-formed XML.
    <root> <one><link1></link1></one><two></two> </root>
    <root>
          <one>
              <link1></link1>
         </one>
         <two>
         </two>
    </root>
    Steve

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

  • Assembler Service API Quick Starts Web service API, Response is not well-formed XML

    Hi,
    I am trying to get the "Assembler Service API Quick Start" webservice api example to work in a asp.net application.
    The following line produces the exception below.
    // Send the request to the Assembler Service
    AssemblerResult result = asOb.invoke( ddxDoc, inputMap, assemblerSpec );
    "Response is not well-formed XML. at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at AssemblerServiceService.AssemblerServiceService.invoke(BLOB inDDXDoc, mapItem[] inputs, AssemblerOptionSpec environment)"
    Any help would be greatly appreciated.
    Thanks
    cheeves
    (the code is exactly as it is in the example, except for adding "?blob=base64" to the url of the AssemblerServiceService obeject, and I have the 3 files in the root of my c drive)

    after looking at the example more closely I discovered that there is a key name called "optionsLink.pdf" that doesn't match the source in the DDX file.

Maybe you are looking for

  • Best target format to use for importing less-than-cinema-quality video?

    I shot 4.5 hours of conference video on an AVCHD consumer camera. The original footage uses about 14.5 GB on the camera's SD card. The video was shot at 1440 x 1080, 16 x 9. When I do a log and transfer, the files balloon to 250 GB and are saved as A

  • Writing waveforms to file

    I'm having problems writing waveforms to a file. I have a very simple VI in which I've used the DAQ assistant to acquire two voltage signals. I would like to read that data to a file, but it seems to only write the amount of data that I specify in th

  • Flash player 11.3 garbage?!?!?!

    I'm having problems with my flash player. I watch video and it crashes time after time as well as locks up.  Sometimes things won't even load.  I get the message that Adobe Flash Player has crashed.  Send a crash report. It also comes up that Flash p

  • "What U Hear" Missing in Win7

    '"What U Hear" Missing in Win7? I have two separate Sound Blaster X-FI Extreme Audio soundcards (though of different makes) and the same issue with both? - ever since upgrading to Windows 7 neither card, after properly installed and with latest drive

  • MT doesn't recognize my AppleID for installed applications through AppStore (i own just one AppleID)

    Dear Apple, i own just one AppleID! And it sounds like i'm not the only one who is facing this issue.