• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection Reset Exception with Jdom

 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13073
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Connection reset sounds like your program was trying to read something from the network. Presumably that DTD.
 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13073
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about making a local copy of the DTD so the parser can find it?

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic