473,598 Members | 3,266 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.SAX ParseException: 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>108637985 0</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>
<CallPhoneNumbe r><![CDATA[NULL_VALUE]]></CallPhoneNumber >
<SubRecord_A>
<LineNum>1</LineNum>
<Quantity>1</Quantity>
<PartNum><![CDATA[123-456-789]]></PartNum>
<ShipDesignatio n><![CDATA[NULL_VALUE]]></ShipDesignation >
<Price>NULL_VAL UE</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 1398

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

Similar topics

2
3134
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 or 30. How can I limit the amount of titles, descriptions, and links output to be no more than 10? Thanks, Steve.
2
2303
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 different tags that have to be converted to a HTML expression. E.g. "<pic#>" ( # is an integer number) has to be converted to <img src="..."> where the image data comes also from a database table. Since strings are immutable, is there an...
9
2909
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 part ). I have had a look at htmllib but I need more info. Can anyone point me in the right direction , a tutorial or something would be great. Many thanks
2
3941
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 Canonicalpath-Directory4: \\wkdis3\ROOT\home\bwe\ You selected the file named AAA.XML getXmlAlgorithmDocument(): IOException Not logged in
2
362
by: AT | last post by:
I have the ASP page <%@ Language=VBScript %> <% Option Explicit Response.End A = b %>
9
4052
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" portions of Babe Ruth page (http://www.baseballprospectus.com/dt/ruthba01.shtml) and store that info in a CSV file. Also, I would like to do this for numerous players whose IDs I have stored in a text file (e.g.: cobbty01, ruthba01, speaktr01, etc.)....
0
1420
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 email. It would appear to be a simple exercise (writing a parser against a select few RFCs), but having someone write this component NIH (doing it by hand, instead of using a 3rd party component) has caused endless problems. We are hoping to right...
3
4233
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 csv. I've got the results coming back fine, but since I have *no* experience with python I'm wondering what would be the preferred "pythonic" way of parsing the whois string into a csv record. Tips/thoughts/examples more than welcome!
1
2728
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 by a Web Farm or cluster, ensure that <machineKeyconfiguration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster”. Here is the scenario when I got the error.
0
7987
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
7899
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8264
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6718
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5850
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5438
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3939
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2412
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 we have to send another system
0
1250
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.