Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-2194

Terrible error message for DTD not found when reading *.xml config file

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.0.0.CR3
    • Fix Version/s: 2.1.0.A1
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Eclipse 3.3
      JBoss 4.2.2

      Description

      Problem experienced when application was reading login.page.xml file, but it could potentially happen
      anywhere when reading an XML file where DTD is not found.

      Seeing debug page with:
      Exception during request processing:
      Caused by java.lang.RuntimeException with message: "org.dom4j.DocumentException: jboss.com Nested exception: jboss.com"

      Stacktrace snippet:
      org.dom4j.DocumentException: jboss.com Nested exception: jboss.com
      at org.dom4j.io.SAXReader.read(SAXReader.java:484)
      at org.dom4j.io.SAXReader.read(SAXReader.java:343)
      at org.jboss.seam.util.XML.getRootElement(XML.java:21)
      at org.jboss.seam.navigation.Pages.getDocumentRoot(Pages.java:950)
      ...
      Nested exception:
      java.net.UnknownHostException: jboss.com
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
      at java.net.Socket.connect(Socket.java:519)

      Recommend added error handling in org.jboss.seam.util.XML.getRootElement
      method or better yet org.jboss.seam.navigation.Pages.getDocumentRoot method
      and log the problem there.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                norman.richards Norman Richards
                Reporter:
                dsbader Scott Bader
              • Votes:
                3 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: