XML Parsing Error (that works in Eclipse)

I have been working on an application using JIDE this afternoon.
I have been using some of the examples that are provided.
To start with I did the usual copy and paste action on one of their examples into JDeveloper so I could run it and walkthrough the code.
Unfortunately it did not run properly and it was throwing the error below (in italics) at this line of code;
InputStream layoutFileInputStream = (getClass().getClassLoader().getResourceAsStream(nameOfLayoutFile));
Exception in thread "main" java.lang.IllegalArgumentException: InputStream cannot be null
     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:94)
     at com.jidesoft.swing.AbstractLayoutPersistence.loadInitialLayout(Unknown Source)
     at project.dev.workbench.view.frame.WorkbenchFrame.loadInitialLayout(WorkbenchFrame.java:77)
     at project.dev.workbench.view.frame.WorkbenchFrame.buildWorkbenchFrame(WorkbenchFrame.java:65)
     at project.dev.workbench.view.DevWorkbench.main(DevWorkbench.java:34)
I am presuming that it is a conflict with something in JDeveloper, a colleague of mine tried to run the same code in Eclipse and it worked fine.
I managed to get it to work in JDeveloper by removing the following piece of code
.getClassLoader()
Any thoughts would be appreciated.
Thanks
David

Use
InputStream layoutFileInputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(nameOfLayoutFile);

Similar Messages

  • I am recieving an xml parsing error message on a website I use for work. It used to work on firefox but now it has stopped. It works with other browsers though.

    XML Parsing Error: XML or text declaration not at start of entity
    Location: https://evalue.internationaldelivers.com/service/SVCDOCS/Navistar/isisxsl.xsl
    Line Number 2, Column 1:<?xml version='1.0'?>
    ^
    That is the error I receive the page loads and half the content appears but the other half is blank and I receive that instead. I can attach a screenshot if needed.

    May be cookies issue try this
    Reload the webpage while bypassing the cache
    *Hold down the ''Shift'' key and click the ''Reload'' button with a left click.
    *Press ''Ctrl'' + ''F5'' or ''Ctrl'' + ''Shift'' + ''R'' (Windows and Linux)
    *Press ''Command'' + ''Shift'' + ''R'' (Mac)
    Clear the cache and the cookies from sites that cause problems.
    '''Clear the Cache''': Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    '''Remove Cookies''' from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    *https://support.mozilla.org/en-US/kb/websites-say-cookies-are-blocked-unblock-them

  • 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

  • XML Parsing Error: no element found Location:Line Number 1, Column 1:

    Hi,
    i have a servlet code in which i am using bouncy castle encryption algorithm , if i tried to run that servlet on embeded weblogic server than my servlet works fine without error.
    but if i deploy same Servlet code on SOA domain console than i get following error.
    XML Parsing Error: no element found
    Location: http://localhost:7001/Encryption-PGPEncrypt-context-root/pgpservlet
    Line Number 1, Column 1:
    Please help me friends...

    Hi Chandra,
    Based on my research, the error message is only generated by FireFox when the render page is blank in Internet. For some reason, .NET generates a response type of "application/xml" when it creates an empty page. Firefox parses the file as XML and finding
    no root element, spits out the error message.
    Also, based on your description, the other sites are opened correctly, the issue only happened in Central Administration(CA). This means the SharePoint services are working fine.
    Since this issue only occurred in the CA, it might be due the application pool for the CA is corrupted. Please try to restart the application pool for the CA to resove the issue:
    1. Open Internet Information Service(IIS)
    2. List the application pools
    3. Select the application pool used for the CA
    4. Stop it, and then start it again.
    Note, if the application pool is running in Classic mode, please change it to be Integrated mode.
    Additionally, I found a similar thread, which may help you too:
    http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/824d7dda-db03-452b-99c4-531c5c576396
    If you have any more questions, please feel free to ask.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • Can anyone help me fix an XML Parsing Error?

    Hi I have been working with a form in a PDF and suddenly it won't let me open it. The following error pops up: "Xml parsing error: not well-formed (invalid token) (error code 4), line 71537, column 695 of file" and I haven't been able to come up with a solution. A lot of data has been entered into this file for a grant that my clinic is applying for, so if anyone can help me I would be greatly appreciative.

    Hm, now I get:
    JPVNCManager.java:211: warning: [unchecked] unchecked cast
    found : java.lang.Object
    required: java.util.Vector<java.lang.String>
    Vector<String> v1 = (Vector<String>)o1;
    ^
    JPVNCManager.java:212: warning: [unchecked] unchecked cast
    found : java.lang.Object
    required: java.util.Vector<java.lang.String>
    Vector<String> v2 = (Vector<String>)o2;
    ^
    JPVNCManager.java:207: warning: [unchecked] unchecked conversion
    found : java.util.Vector
    required: java.util.List<T>
    Collections.sort(main, new Comparator()
    ^
    JPVNCManager.java:207: warning: [unchecked] unchecked conversion
    found : <anonymous java.util.Comparator>
    required: java.util.Comparator<? super T>
    Collections.sort(main, new Comparator()
    ^
    JPVNCManager.java:207: warning: [unchecked] unchecked method invocation: <T>sort(java.util.List<T>,java.util.Comparator<? super T>) in java.util.Collections is applied to (java.util.Vector,<anonymous java.util.Comparator>)
    Collections.sort(main, new Comparator()
    ^
    Thanks,
    James

  • URL in epub results in XML parsing error

    Hi
    I am using inDesign to create epub ebooks,  but stumbling over inserting hyperlinks. Regular hyperlinks to  straightforward URLs work OK, but if I add a link to Google maps, like  this one...
    http://maps.google.co.uk/maps?q=[email protected],0.394&ll=51.443, 0.394&z=17&iwloc=A
    ... I get problems.
    Some ebook readers refuse to load the book, reporting  XML parsing error: not well-formed. The red underline points to the  second equals symbol. Adobe Digital Editions loads the book, but the  hyperlink and everything following it are not displayed.
    I have searched for help about this, and gather that  XML does not like equals signs. I have tried using percent encoding  (%3D) for  the second equals sign, but iD appears to insert "25" after  the % sign. I even tried using percent encoding for all the reserved  characers in the URL (ie :/=@,) but nothing I do seems to fix the  problem.
    I would really appreciate some help  with this. I've run out of ideas.

    In fact, I don't use XML DB and what I want to do is just to load XML file into the relational table and some parts of whole XML file will be inserted into the CLOB in the table.Why wouldn't you want to use XML DB in 10gR2 to handle XML? I didn't know there was another way. Anyway, you might want to ask this question in this forum.
    XML DB

  • XML parsing error, whitespace expected

    I'm seeing this "XML parsing" error in the SSRS Logs once in a while and I don't know what is causing it. The weird thing is that the report doesn't get this error everytime, most of the time it will work. I originally thought that
    it might be the data that is being returned but I don't know if this is the case. Usually when a user gets an error, they'll just run it again later and it'll work the 2nd time. I looked at the report parameters in the ExecutionLogStorage table and the same
    parameters are passed in each time.
    Does anyone have any ideas of where I can look to get to the bottom of this one? Any help is appreciated.
    The actual error from the logs is below:
    processing!ReportServer_0-26!fdc!05/08/2014-13:33:12:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'DataSet1'. ---> System.Data.SqlClient.SqlException: XML parsing: line 1, character 121, whitespace expected
    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
    at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
    at System.Data.SqlClient.SqlDataReader.get_MetaData()
    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
    at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
    at Microsoft.ReportingServices.DataExtensions.SqlCommandWrapperExtension.ExecuteReader(CommandBehavior behavior)
    at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues)
     Thanks,
    -Song

    Hi Song,
    Sorry for the delay.
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Calling Web Service - XML Parse Error

    Hello,
    I have created Client proxy to call a Web Service. This service requires WS Header. This is my code to create the header:
    concatenate
    '<soap:Header>'
    '  <wsse:Security mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">'
      '  <wsse:UsernameToken Id="uuid-90128b0b">  '
         '  <wsse:Username>User123</wsse:Username>  '
         '  <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-token-profile-1.0#PasswordText">Pass123</wsse:Password>  '
      '  </wsse:UsernameToken>  '
    '  </wsse:Security> '
    ' </soap:Header> ' into l_string.
    When I make the call, I receive the following error:
    CODE                                        SoapFaultCode:4
    ERRORTEXT                           #XML parse error.#
    If I comment out UsernameToken element, the errors says that UsernameToken is missing, once I added it, I get XML parse error.
    Here is the info from trace file:
    XRFC>                                                                     <
    XRFC>                                                                     <
    XRFC> INFO 09:40:16: SOAP SESSION Protocol CL_SOAP_SESSION_PROTOCOL       <
    XRFC> ->IF_SOAP_PROTOCOL~PRE_PROCESS() SOAP Session Protocol              <
    XRFC> preprocessed                                                        <
    XRFC>                                                                     <
    XRFC> INFO 09:40:16: SOAP Transport Binding CL_SOAP_HTTP_TPBND_ROOT       <
    XRFC> ->IF_SOAP_TRANSPORT_BINDING~SEND() Try to send message ( DEST =     <
    XRFC> CCTEST_AUC ,PATH = ,URL = ,SOAP Action = "runTransaction" )         <
    XRFC>                                                                     <
    XRFC> INFO 09:40:16: SOAP Transport Binding CL_SOAP_HTTP_TPBND_ROOT       <
    XRFC> ->IF_SOAP_TRANSPORT_BINDING~SEND() Message sent                     <
    XRFC>                                                                     <
    XRFC> INFO 09:40:16: SOAP Transport binding CL_SOAP_HTTP_TPBND_ROOT       <
    XRFC> ->IF_SOAP_TRANSPORT_BINDING~RECEIVE() Try to receive message        <
    XRFC>                                                                     <
    XRFC> INFO 09:40:16: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->HANDLE    <
    XRFC> STATUSCODE() Received return code 500 ( Internal Server Error )   <
    XRFC>                                                                     <
    XRFC> ERROR 09:40:16: SOAP Message CL_SOAP_MESSAGE->IF_SOAP_MESSAGE       <
    XRFC> PART~INITFOR_DESERIALIZE() SOAP Fault Exception caught: :          
    XML    <                                                                   
    XRFC> parse error.                                                                               
    <                   
    XRFC>                                                                     <
    Does anyone know what could be the problem?
    Thanks,
    Alex

    I was able to fix the issue last night, it was caused by preparing WS header incorrectly. Originally, I did not use wsse prefix, and this was issue number 1. Once I added the prefix, I thought that the following code is incorrect because it was only retreiving 1 elements - UsernameToken.
    xml_root = xml_document->get_root_element( ).
    xml_element ?= xml_root->get_first_child( ).
    * add header element by element to SOAP header
    while not xml_element is initial.
    name = xml_element->get_name( ).
    namespace = xml_element->get_namespace_uri( ).
    ws_header->set_request_header(
    name = name
    namespace = namespace
    dom = xml_element ).
    xml_element ?= xml_element->get_next( ).
    endwhile.
    So, I added to logic to get and then set all childeren, and this was the mistake. This is what caused "XML Parse Error". UsernameToken had already all info with user name and password. Once I removed the extra logic to get all 4 elements, the client proxy began working.
    Regards,
    Alex

  • 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 - iTunes will not run config.xml missing

    I have a new error code that I cannot find an answer to on any forum. Here is the error message:
    XML Parsing error
    XML Parsing error inside file 'C:\Documents and Settings\lmorrison\Application Data\iTunesControl\config.xml
    Error: First Tag not found
    At line 0, column 0.
    First Tag should be 'itc'.
    This error message pops up when attempting to run iTunes. The only way I've been able to get it to run is to take the library.xml file, rename it as config.xml and paste it into the iTunesControl folder. That's good for one run only. Then I have to copy and paste it again every time I want to run iTunes.
    My issue is... I have no config.xml file. It's gone missing. No idea why. I have uninstalled iTunes and reinstalled. Same error. I wiped every single spec of iTunes off my computer down to removing all instances in the computer registry. Same error. I have installed and uninstalled versions of iTunes back to iTunes 6. Same error. I have wiped and installed from iTunes installation disc. Same error. Help! The only thing I can think of is to locate someone with a working iTunes and copy their config.xml file to my computer. Apple was no help at all and merely suggested installing the latest version of iTunes... yeah... thanx.
    Any ideas are appreciated.

    I don't even have this iTunesControl folder!
    C:\Documents and Settings\ username \Application Data\ iTunesControl
    Did you ever install this itunesControl program? Maybe that's why you have that folder and I don't. I just googled on iTunesControl.
    http://itunescontrol.com/
    edit - the only thing Apple installs is here:
    C:\Documents and Settings\ username \Application Data\Apple Computer
    Message was edited by: Katrina S.

  • Why am I getting an Error #1090 xml parser error in IE only?

    Hi,
    I've got a Flex 3 website and I'm setting up an OpenX adServer. Everything works fine if I view my site in Firefox or Safari. The ads are served. But, if I view the site using Internet Explorer, I get error #1090, which is an xml parser error.
    I haven't posted any code as it is long. But, has anyone run into a similar problem, where the error #1090 only occurred in IE? Any general ideas as to why this would happen? Any suggestions or possible fixes?
    Thank you.
    -Laxmidi

    Hi Gregor,
    Thank you for the message.
    I've set-up OpenX on my production server only. I don't have OpenX running on my localhost. (So, if I ran it in Flash 9 debug version on my localhost, it is possible that I could get an error then, as well).
    When I view the production site in a standard IE8 browser, running the usual Flash 9, I get the error. If I view the production site in another browser (Safari or Firefox) I don't get the error. It's weird that the other browsers, don't have a problem.
    -Chris

  • Deserialization error: XML parsing error: Illegal XML character

    Hi All,
    Anybody knows what caused this? This error occured at the client side when the server returned an object that contains other objects to client during a jaxrpc call. It worked before, something is definitely changed, I reversed my changes but still the same.
    Please help, thanx a lot.
    [java] java.rmi.RemoteException: Runtime exception; nested exception is:
    [java] deserialization error: deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:234)
    [java] at com.ummq.ME_Stub.getMsg(MsgExpertIF_Stub.java:1333)
    [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
    [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerforme
    d(AbstractButton.java:1817)
    [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    [java] at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mous
    eReleased(BasicMenuItemUI.java:943)
    [java] at java.awt.Component.processMouseEvent(Component.java:5093)
    [java] at java.awt.Component.processEvent(Component.java:4890)
    [java] at java.awt.Container.processEvent(Container.java:1566)
    [java] at java.awt.Component.dispatchEventImpl(Component.java:3598)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1623)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
    [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1609)
    [java] at java.awt.Window.dispatchEventImpl(Window.java:1585)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    [java] Caused by: deserialization error: deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.encoding.SOAPDeserializationContext.deseriali
    zeMultiRefObjects(SOAPDeserializationContext.java:65)
    [java] before getMsg
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:175)
    [java] ... 30 more
    [java] java.rmi.RemoteException: Runtime exception; nested exception is:
    [java] deserialization error: deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:234)
    [java] at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1161)
    [java] at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1218)
    [java] at javax.swing.JComboBox.contentsChanged(JComboBox.java:1265)
    [java] at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    [java] at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88)
    [java] at javax.swing.JComboBox.setSelectedItem(JComboBox.java:551)
    [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
    [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerforme
    d(AbstractButton.java:1817)
    [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    [java] at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mous
    eReleased(BasicMenuItemUI.java:943)
    [java] at java.awt.Component.processMouseEvent(Component.java:5093)
    [java] at java.awt.Component.processEvent(Component.java:4890)
    [java] at java.awt.Container.processEvent(Container.java:1566)
    [java] at java.awt.Component.dispatchEventImpl(Component.java:3598)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1623)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
    [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1609)
    [java] at java.awt.Window.dispatchEventImpl(Window.java:1585)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    [java] Caused by: deserialization error: deserialization error: deserializa
    tion error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.encoding.SOAPDeserializationContext.deseriali
    zeMultiRefObjects(SOAPDeserializationContext.java:65)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:175)
    [java] ... 39 more

    What type of encoding are you using? Do you transform a string in an array of bytes or viceversa?
    Marco

  • XML Parsing Error: not well-formed Help!

    Hello Everyone,
    I followed this link "http://quest4apps.wordpress.com/2010/07/31/xmlp_report/" to create data template and RTF to generate a report. I have done exactly the same. But when i run the concurrent program i get "Completed" with "Warning" and on View Log i see ".....One or more post-processing actions failed...". And when i view XML i get
    XML Parsing Error: not well-formed
    Location: ********
    Line Number 3, Column 2:
    &lt;&gt;
    -^This is my data template:
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
        <dataTemplate description="Invoice Data" Version="1.0">
            <parameters>
                <parameter name="p_OrgId" dataType="number" />
                <parameter name="p_VendorId" dataType="number" />
            </parameters>
            <dataQuery>
                <sqlStatement name="Q1">
                    <![CDATA[
                        SELECT invoice_num,invoice_currency_code,invoice_amount
                        FROM ap_invoices_all
                        WHERE org_id = :p_OrgId
                        AND vendor_id = :p_VendorId
                    ]]>
                </sqlStatement>
            </dataQuery>
            <dataStructure>
                <group name="G_INV" source="Q1">
                    <element name="INV_NUMBER" value="invoice_num" />
                    <element name="INV_CUR_CODE" value="invoice_currency_code" />
                    <element name="AMOUNT" value="invoice_amount"/>
                </group>
            </dataStructure>
        </dataTemplate>And also when i run run other RDF reports it works fine. Please help me on this..
    Thanks & Regards
    John.

    Are you sure the parameters are passed correctly to data template?
    Can you try hardcoding the org and vendor details in query and try running the conc pgm again?
    Also validate if that query return records...

  • XML Parsing Error: not well-formed (C# Visual Studio 2013)

    I am working on a project in visual studio that imports a csv, and exports an xml file. I'd like to be able to get the code to work as xml and html, and view it in a browser. I am getting this error when I load the xml file into a browser:
    Firefox
    XML Parsing Error: not well-formed Location: file:///C:/Users/fenwky/XmlDoc.xml Line Number 2, Column 6:?> -----^
    Chrome
    This page contains the following errors: error on line 2 at column 16: colon are forbidden from PI names 'xsl:transform'
    This is what my c# code looks like in visual studio 2013:
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Stylesheet
    String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    newPI = doc.CreateProcessingInstruction("abc:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Save document
    doc.Save(xmlfilename);

    Hi
    Kylee Fenwick,
    Could you show us your CSV file? And the code how do you imports a csv and exports an xml file?
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.
    Hi Kristen,
    Thank you in advance for your healp. Here is my CSV file:
    Item Code;Item Description;Current Count;On Order
    A0001;"Wheels, Horse on";5;No
    A0002;"Wheels, Elephant on";2;No
    A0003;"Wheels, Dog on";0;Yes
    A0004;"Wheels, Seal on";3;No
    A0005;"Wheels, Bear on";7;No
    A0006;"Bear, Teddy";2;Yes
    A0007;"Clown,";5;No
    A0008;"Puppy(crouch),";3;No
    A0009;"Puppy(stand),";2;No
    A0010;"Puppy(jump),";2;Yes
    A0011;"Pupp(lying),";1;Yes
    A0012;"(50), Cart with Blocks";0;Yes
    A0013;"(100), Cart with Blocks";5;No
    A0014;"(200), Cart with Blocks";4;No
    A0015;"Carriage, Train with 0";12;No
    A0016;"Carriage, Train with 1";10;No
    A0017;"Carriage, Train with 2";5;Yes
    A0018;"Carriage, Train with 3";4;Yes
    A0019;"Carriage, Train with 4";5;No
    A0020;"Carriage, Train with 5";2;No
    A0021;"(20), Building Blocks";15;No
    A0022;"(30), Building Blocks";13;No
    A0023;"(40), Building Blocks";16;No
    A0024;"(50), Building Blocks";5;Yes
    A0025;"(100), Building Blocks";2;Yes
    A0026;"(200), Building Blocks";8;No
    A0027;"Windmill,";5;No
    A0028;"Farmhouse,";6;Yes
    A0029;"Fencing,";22;Yes
    A0030;"Barn,";12;Yes
    A0031;"Tractor,";6;Yes
    A0032;"Animals,";3;Yes
    A0033;"House,";9;No
    A0034;"Car,";12;No
    A0035;"(small), Building";4;No
    A0036;"(medium), Building";3;No
    A0037;"(tall), Building";4;No
    A0038;"Shop,";7;No
    A0039;"Lights, Traffic";5;Yes
    A0040;"Station, Petrol";4;Yes
    And here is my code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    using System.Data.OleDb;
    using System.Xml;
    using System.Xml.Xsl;
    using System.Xml.XPath;
    namespace CSVImporter
    public partial class CSVImporter : Form
    //const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml"; - file name and location of xml file
    const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml";
    // New code
    //const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml"; - file name and location of xsl file
    const string stylesheetsimple = @"C:\Users\fenwky\style1.xsl";
    //const string xmlfilecomplex = @"C:\Users\fenwky\XmlDoc2.xml";
    const string xmlfilecomplex = @"C:\Users\fenwky\XmlDoc2.xml";
    DataSet ds = null;
    public CSVImporter()
    InitializeComponent();
    // Create a Open File Dialog Object.
    openFileDialog1.Filter = "csv files (*.csv)|*.csv|All files (*.*)|*.*";
    openFileDialog1.ShowDialog();
    string fileName = openFileDialog1.FileName;
    //doc.InsertBefore(xDeclare, root);
    // Create a CSV Reader object.
    CSVReader reader = new CSVReader();
    ds = reader.ReadCSVFile(fileName, true);
    dataGridView1.DataSource = ds.Tables["Table1"];
    private void WXML_Click(object sender, EventArgs e)
    WriteXML();
    public void WriteXML()
    StringWriter stringWriter = new StringWriter();
    ds.WriteXml(new XmlTextWriter(stringWriter), XmlWriteMode.WriteSchema);
    string xmlStr = stringWriter.ToString();
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(xmlStr);
    XmlDeclaration xDeclare = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    doc.InsertBefore(xDeclare, doc.FirstChild);
    // Test code //
    // Load the style sheet.
    XslCompiledTransform xslt = new XslCompiledTransform();
    xslt.Load("style1.xsl");
    // Test code //
    // Transform the file and output an HTML string.
    string HTMLoutput;
    StringWriter writer = new StringWriter();
    xslt.Transform("XmlDoc.xml", null, writer);
    HTMLoutput = writer.ToString();
    writer.Close();
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Stylesheet
    // String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    String PItext = "<xsl:stylesheet xmlns:xls=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    // newPI = doc.CreateProcessingInstruction("abc:stylesheet", PItext);
    newPI = doc.CreateProcessingInstruction("xls:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Save document
    doc.Save(xmlfilename);
    private void btExportComplexXML_Click(object sender, EventArgs e)
    WriteXMLComplex();
    public void WriteXMLComplex()
    // Creates stringwriter
    StringWriter stringWriter = new StringWriter();
    ds.WriteXml(new XmlTextWriter(stringWriter), XmlWriteMode.WriteSchema);
    string xmlStr = stringWriter.ToString();
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(xmlStr);
    XmlDeclaration xDeclare = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    doc.InsertBefore(xDeclare, doc.FirstChild);
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Uses XML transformation.
    String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    newPI = doc.CreateProcessingInstruction("xsl:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Saves document.
    doc.Save(xmlfilecomplex);
    //Creates a CSVReader Class
    public class CSVReader
    public DataSet ReadCSVFile(string fullPath, bool headerRow)
    string path = fullPath.Substring(0, fullPath.LastIndexOf("\\") + 1);
    string filename = fullPath.Substring(fullPath.LastIndexOf("\\") + 1);
    DataSet ds = new DataSet();
    try
    if (File.Exists(fullPath))
    string ConStr = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0}" + ";Extended Properties=\"Text;HDR={1};FMT=Delimited\\\"", path, headerRow ? "Yes" : "No");
    string SQL = string.Format("SELECT * FROM {0}", filename);
    OleDbDataAdapter adapter = new OleDbDataAdapter(SQL, ConStr);
    adapter.Fill(ds, "TextFile");
    ds.Tables[0].TableName = "Table1";
    foreach (DataColumn col in ds.Tables["Table1"].Columns)
    col.ColumnName = col.ColumnName.Replace(" ", "_");
    catch (Exception ex)
    MessageBox.Show(ex.Message);
    return ds;

  • XML parsing error: not well formed Location:file///c:users/

    I have been trying to download tax info from the I.R.S site. When I try to open the downloads I get this error message:
    XML parsing error: not well formed
    Location: file///c:/Users/John/Downloads/available Transcripts.xhtml
    line number 1, Column 9

    Are you sure that this is an XML file and not some other file type like PDF that got saved with the wrong file extension?
    You can try to rename the file and change the file extension to .pdf to see if that works.

Maybe you are looking for

  • Label display issue in Tree component when it is having vertical scrollbar

    I am using tree component as dropdown factory for combo box. When i open dropdown, it doesn't have vertical scrollbar and all the root nodes are getting displayed correctly(in closed mode). Now if i try to open any node, i am getting vertical scrollb

  • Blog page no longer works, mp3 now mov

    I recently changed computers to a new iMac. After updating my podcast/blog using iWeb 2.0.4, at least three problems have occurred: 1. some (not all) of my .mp3 files appear .mov files at iTunes 2. the archive of the podcast page no longer works 3. t

  • Error when activate the transfer ruels

    Hi, When we activate the transfer rules for InfoSource / InfoObject 0MATL_TYPE, we get the following error message: Error while creating table 'EDISEGMENT' entry '/BIC/CIHB0MATL_TYPE_TEXT' Thx for answer.

  • Printer prints but no ink comes out

    have all in one printer 8500. my  printer prints but no ink comes out. put new ink in and cleaned printer heads. did printer head cleaning 3 levels and still not printing, no error messages. running xp on main computer. hooked in network through rout

  • Firefox Home only shows my open tabs but not my bookmarks

    Since you last updated the firefox home application for iphone. My bookmarks have disappeared and it only shows my open tabs from other computers. I try to refresh but after some "thinking time, the application crashes. Thanks