473,499 Members | 1,659 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SAX Parsing Error only on some servers

I send an XML character stream to a Java servlet with an HTTPRequest and
get the following error on both of our web servers hosting the servlet.

org.xml.sax.SAXParseException: The root element is required in a
well-formed document.

If I send the exact same request to my local instance of the servlet
running in JBuilder's IDE it parses just fine which is making this a real
bitch to troubleshoot. (JBuilder 7)

I have my WAR file including ALL classes and resources that pertain to XML
and it makes no difference.

Here is the XML I am sending...

<?xml version="1.0"?>
<MBO>
<Record>
<ID>1086379850</ID>
<OrderDate><![CDATA[2004-06-04 15:10:50]]></OrderDate>
<MemoBillType>5</MemoBillType>
<AccountNum><![CDATA[xxxx]]></AccountNum>
<BillToAddress><![CDATA[sample company name[LINE]blah blah
blah[LINE]123 main street[LINE]Anytown MO 63366]]></BillToAddress>
<ShipToAddress><![CDATA[Same as Bill To Address]]></ShipToAddress>
<RegMgr><![CDATA[Joe Blow / RD]]></RegMgr>
<SecCode><![CDATA[999999-999999]]></SecCode>
<Notes><![CDATA[NULL_VALUE]]></Notes>
<RequireDate><![CDATA[Whenever ready]]></RequireDate>
<RackInfo><![CDATA[NULL_VALUE]]></RackInfo>
<CallPhoneNumber><![CDATA[NULL_VALUE]]></CallPhoneNumber>
<SubRecord_A>
<LineNum>1</LineNum>
<Quantity>1</Quantity>
<PartNum><![CDATA[123-456-789]]></PartNum>
<ShipDesignation><![CDATA[NULL_VALUE]]></ShipDesignation>
<Price>NULL_VALUE</Price>
<Discount><![CDATA[NULL_VALUE]]></Discount>
<Notes><![CDATA[HDT frame off set measuring tool. This is ordered to
replace broken tool. Old tool will be returned upon receipt of
replacement.]]></Notes>
</SubRecord_A>
</Record>
</MBO>

If the text in the last <Notes> node is shortened to less than 32
characters it will submit on my servers. I can't understand what is
happening unless the XML that is being received is somehow altered compared
to the XML being sent. I have similar operations where the text in a node
is much longer than this and have never had any problems.

Any idea what I should be looking for? This program has been in use for a
couple of years without this complaint. I have one user that reported the
problem which I was able to duplicate using the same data sending from a
client on my PC, but I have similar records that submit just fine. I can
also copy the XML into a local file and my web browser sees no problems
with it.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

Jul 20 '05 #1
0 1382

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3122
by: Noyb | last post by:
I've set up a news links section using the RSS parsing tutorial found here: http://www.sitepoint.com/article/560 Everything works great but depending on the feed source there may be 3 news links...
2
2292
by: Peter Sprenger | last post by:
Hello, I hope somebody can help me with my problem. I am writing Zope python scripts that will do parsing on text for dynamic webpages: I am getting a text from an oracle database that contains...
9
2902
by: RiGGa | last post by:
Hi, I want to parse a web page in Python and have it write certain values out to a mysql database. I really dont know where to start with parsing the html code ( I can work out the database...
2
3913
by: Cigdem | last post by:
Hello, I am trying to parse the XML files that the user selects(XML files are on anoher OS400 system called "wkdis3"). But i am permenantly getting that error: Directory0: \\wkdis3\ROOT\home...
2
362
by: AT | last post by:
I have the ASP page <%@ Language=VBScript %> <% Option Explicit Response.End A = b %>
9
4041
by: ankitdesai | last post by:
I would like to parse a couple of tables within an individual player's SHTML page. For example, I would like to get the "Actual Pitching Statistics" and the "Translated Pitching Statistics"...
0
1409
by: Li-fan Chen | last post by:
Hi, We work with email in a large CRM solution and one of the email-related tasks that has plagued us is our decision to make use of a 3rd-party local-sourcer to work on the parsing of inbound...
3
4220
by: Phillip B Oldham | last post by:
Hi. I'm stretching my boundaries in programming with a little python shell-script which is going to loop through a list of domain names, grab the whois record, parse it, and put the results into a...
1
2722
by: =?Utf-8?B?VmlqYXkgQ2hpa3Rl?= | last post by:
Hi Experts, With Session Affinity and Web Server Farm on ISA Server 2006 accessing 2 backend IIS servers, I’m getting error “Validation of ViewState MAC failed. If this application is hosted...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7229
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.