0 Replies Latest reply on Oct 4, 2004 9:03 AM by George Taylor

    Server shutsdown.

    George Taylor Newbie

      I am having a problem that my jboss server (3.2.3 on redhat 9) will shut down every so often while running code it has run hundreds of other times.


      It seems to be a problem with either jboss, or xerces as it is always while processing xml.

      the piece of code loads the xml from another server and processes it, and it gets the following error.

      Sep 30 19:36:11 10.1.230.84 19:36:12,731 ERROR [STDERR] java.lang.ClassCastException
      Sep 30 19:36:11 10.1.230.84 19:36:12,733 ERROR [STDERR] at org.apache.xerces.dom.DeferredDocumentImpl.setChunkValue(DeferredDocumentImpl.java:1810)
      Sep 30 19:36:11 10.1.230.84 19:36:12,734 ERROR [STDERR] at org.apache.xerces.dom.DeferredDocumentImpl.createDeferredElement(DeferredDocumentImpl.java:348)
      Sep 30 19:36:11 10.1.230.84 19:36:12,734 ERROR [STDERR] at org.apache.xerces.parsers.AbstractDOMParser.startElement(AbstractDOMParser.java:748)
      Sep 30 19:36:11 10.1.230.84 19:36:12,734 ERROR [STDERR] at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:571)
      Sep 30 19:36:11 10.1.230.84 19:36:12,734 ERROR [STDERR] at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:796)
      Sep 30 19:36:11 10.1.230.84 19:36:12,734 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
      Sep 30 19:36:11 10.1.230.84 19:36:12,734 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:927)
      Sep 30 19:36:11 10.1.230.84 19:36:12,734 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1519)
      Sep 30 19:36:11 10.1.230.84 19:36:12,734 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
      Sep 30 19:36:11 10.1.230.84 19:36:12,734 ERROR [STDERR] at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
      Sep 30 19:36:11 10.1.230.84 19:36:12,734 ERROR [STDERR] at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
      Sep 30 19:36:11 10.1.230.84 19:36:12,734 ERROR [STDERR] at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
      Sep 30 19:36:11 10.1.230.84 19:36:12,735 ERROR [STDERR] at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:221)
      Sep 30 19:36:11 10.1.230.84 19:36:12,735 ERROR [STDERR] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
      Sep 30 19:36:11 10.1.230.84 19:36:12,735 ERROR [STDERR] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:76)
      Sep 30 19:36:11 10.1.230.84 19:36:12,735 ERROR [STDERR] at com.afl.commons.util.xml.XMLUtil.newDocument(XMLUtil.java:64)


      After that jboss shuts down, not straight away, but after getting this exception a couple of times it dies.

      I have all the log settings at debug, and the last lines in the debug before it restarts are normal application debug messages, the next thing the server is restarting. (done via a cron job)


      I have read in some forums that this could be a problem with jaxp being in the classpath, but i have checked and we don't use it anywhere.

      Help would be much apreciated with this one.