java.io.IOException: The handl e is invalid

Coderanch | dan odacre | 7 years ago
  1. 0

    Digester: Invalid handle exception

    Oracle Community | 7 years ago | 843834
    java.io.IOException: The handl e is invalid
  2. 0

    Invalid handle exception

    Coderanch | 7 years ago | dan odacre
    java.io.IOException: The handl e is invalid
  3. 0

    What I was doing: Using the findbugs plugin to display the contents of findbugs.xml as generated by our project. What I expected to happen: It should parse findbugs.xml just fine, and display it and appear beautiful and horrifying at the same time, because of all the findbugs bugs in our code. Ideally, the findbugs plugin would configure xerces to use an XMLCatalogResolver to use a local copy of the dtd referenced in the findbugs.xml. More can be found at http://blog.sweetxml.org/2009/08/resolving-xhtml1-dtd-locally-avoiding.html Since this DTD is static, we could probably install it locally with the plugin. What happened instead: It failed with an exception because the www.w3.org is starting to return 503's due to massive traffic. [FINDBUGS] Parsing of file D:\hudson_home\jobs\trunk_quality\workspace\di.main\findbugs\findbugs.xml failed due to an exception: java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1666) at hudson.plugins.findbugs.parser.NativeFindBugsParser.createHashToMessageMapping(NativeFindBugsParser.java:100) at hudson.plugins.findbugs.parser.NativeFindBugsParser.parse(NativeFindBugsParser.java:68) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:74) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:152) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:131) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:87) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:28) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:105) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:207) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:600) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1264) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) If I can give you more info, let me know. I tried adding this to "plugins" project but could not because "components" was required but not populated or editable.

    Jenkins JIRA | 7 years ago | csuehsdi
    java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    What I was doing: Using the findbugs plugin to display the contents of findbugs.xml as generated by our project. What I expected to happen: It should parse findbugs.xml just fine, and display it and appear beautiful and horrifying at the same time, because of all the findbugs bugs in our code. Ideally, the findbugs plugin would configure xerces to use an XMLCatalogResolver to use a local copy of the dtd referenced in the findbugs.xml. More can be found at http://blog.sweetxml.org/2009/08/resolving-xhtml1-dtd-locally-avoiding.html Since this DTD is static, we could probably install it locally with the plugin. What happened instead: It failed with an exception because the www.w3.org is starting to return 503's due to massive traffic. [FINDBUGS] Parsing of file D:\hudson_home\jobs\trunk_quality\workspace\di.main\findbugs\findbugs.xml failed due to an exception: java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1666) at hudson.plugins.findbugs.parser.NativeFindBugsParser.createHashToMessageMapping(NativeFindBugsParser.java:100) at hudson.plugins.findbugs.parser.NativeFindBugsParser.parse(NativeFindBugsParser.java:68) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:74) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:152) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:131) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:87) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:28) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:105) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:207) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:600) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1264) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) If I can give you more info, let me know. I tried adding this to "plugins" project but could not because "components" was required but not populated or editable.

    Jenkins JIRA | 7 years ago | csuehsdi
    java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
  6. 0

    GitHub comment 97#48477620

    GitHub | 2 years ago | sebplorenz
    java.io.IOException: Stream closed]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      The handl e is invalid

      at java.io.FileInputStream.available()
    2. Java RT
      SAXParserImpl$JAXPSAXParser.parse
      1. java.io.FileInputStream.available(Native Method)
      2. java.io.BufferedInputStream.read(BufferedInputStream.java:325)
      3. com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2939)
      4. com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:292)
      5. com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)
      6. com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416)
      7. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
      8. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
      9. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
      10. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
      11. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
      12. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
      13. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
      14. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
      14 frames
    3. Commons Digester
      Digester.parse
      1. org.apache.commons.digester.Digester.parse(Digester.java:1935)
      1 frame
    4. Unknown
      WebsiteChecks$ProductChecks.test_ProductChecks
      1. WebsiteChecks$General$Scenario.digest(WebsiteChecks.java:2555)
      2. WebsiteChecks$ProductChecks.test_ProductChecks(WebsiteChecks.java:5667)
      2 frames
    5. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    6. selenium-java
      SeleneseTestCase.runBare
      1. com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
      1 frame
    7. Unknown
      WebsiteChecks.main
      1. WebsiteChecks.main(WebsiteChecks.java:104)
      1 frame