DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005
    Posts
    2

    org.xml.sax.SAXParseException--

    Friends,

    I have just got an annoying issue, which is really irritating. The issue is

    I working with a application, when i try to do any operation, i have end up with this exception . The Comlpete exception trace are

    org.xml.sax.SAXParseException: Document root element is missing.
    at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
    at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
    at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
    at org.apache.crimson.parser.Parser2.parse(Unknown Source)
    at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
    at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at Com.adventnet.security.common.SecurityXMLParser.getDataForAddOperGroup(SecurityXMLParser.
    java:1090)

    Another information is , this is occuring only when i'm using jdk1.5.0_01 and thre is no problem when using jdk1.4.2, no exception.

    I'm using jdk1.5.0_01, using an applet client, please help me to solve this problem.

    Expecting a positive reply from you guys,

    Regards
    Sam

  2. #2
    Join Date
    Oct 2005
    Posts
    107
    Is the xml well formed? Also there could be invisible ASCII characters before the <?XML ...> tag. Some text editors (Notepad) have been known to do this.
    Last edited by Joe Beam; 12-12-2005 at 01:51 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links