aspose file tools*
The moose likes XML and Related Technologies and the fly likes Connection Reset Exception with Jdom Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Connection Reset Exception with Jdom" Watch "Connection Reset Exception with Jdom" New topic
Author

Connection Reset Exception with Jdom

Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 639
Hi,

I have following lines of code that throws
org.jdom.JDOMException: Error in building: Connection reset
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:373)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:772)

when i pass struts-config.xml as args[0], but if i remove


<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

from struts-config file then there is no exception, can some one explain whats going on here?


All desirable things in life are either illegal, banned, expensive or married to someone else !!!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
Connection reset sounds like your program was trying to read something from the network. Presumably that DTD.
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 639
yes i thought the same, but wondering if it is common behavior of method to do so? is there a way to avoid this ?

-P
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
How about making a local copy of the DTD so the parser can find it?

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection Reset Exception with Jdom