java.io.IOException: mark/reset not supported

Oracle Community | 3004 | 2 decades ago
  1. 0

    How to setup SSL on WebLogic

    Oracle Community | 2 decades ago | 3004
    java.io.IOException: mark/reset not supported
  2. 0

    Error while inserting picture into database?

    Oracle Community | 1 decade ago | 843854
    java.io.IOException: mark/reset not supported
  3. 0

    [Mifos-developer] Error during creating borrower

    Google Groups | 4 years ago | Gela
    java.lang.RuntimeException: java.io.IOException: mark/reset not supported
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    BNF reports problems crawling http://presse.parti-socialiste.fr/ and related sites. Turns out http://presse.parti-socialiste.fr/ is returning 'Transfer-encoding: chunked' (an HTTP/1.1 feature) even though Heritrix's request is HTTP/1.0. This server behavior is counter to the HTTP/1.1 specification; see <http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6>, which says: "A server MUST NOT send transfer-codings to an HTTP/1.0 client.") When the HTTPClient library sees that encoding, it attempts to use mark/reset functionality on the connection's inputstream. That would be fine with the usual buffered inputstream, but our inserted recording functionality doesn't offer mark/reset -- and this is the first time that limitation has bit us. The exception stack is: 2007-03-23T01:30:50.048Z -2 1 http://presse.parti-socialiste.fr/ - - text/html #002 - - - le:IOException@HTTP java.io.IOException: mark/reset not supported at java.io.InputStream.reset(InputStream.java:331) at org.apache.commons.httpclient.HttpConnection.isResponseAvailable(HttpConnection.java:933) at org.apache.commons.httpclient.HttpMethodBase.readResponseBody(HttpMethodBase.java:1719) at org.apache.commons.httpclient.HttpMethodBase.readResponseBody(HttpMethodBase.java:1662) at org.archive.httpclient.HttpRecorderGetMethod.readResponseBody(HttpRecorderGetMethod.java:98) at org.archive.crawler.fetcher.FetchHTTP$2.readResponseBody(FetchHTTP.java:472) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1625) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1002) at org.archive.httpclient.HttpRecorderGetMethod.execute(HttpRecorderGetMethod.java:116) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.archive.crawler.fetcher.FetchHTTP.innerProcess(FetchHTTP.java:489) at org.archive.crawler.framework.Processor.process(Processor.java:109) at org.archive.crawler.framework.ToeThread.processCrawlUri(ToeThread.java:302) at org.archive.crawler.framework.ToeThread.run(ToeThread.java:151) Even though this site violates HTTP/1.1, we want to be able to get it and others like it, and the HTTPClient library can handle chunked encoding if we help it with a suitable stream. It appears enough to rearrange the order of stream-wrapping in HttpConnection.open(), putting our recording-streams inside rather than outside the buffered streams. Then the expected mark/reset functionality is available, there is no IOException, and collection succeeds.

    JIRA | 10 years ago | Gordon Mohr
    java.io.IOException: mark/reset not supported
  6. 0

    After having recompiled CDF sources getting the latest from the repository I'm getting this kind of exception while updating repository cache 22:23:01,639 ERROR [CdfFileInfoGenerator] CdfFileInfoGenerator.ERROR_0001 - Error Parsing XCDF File java.io.IOException: mark/reset not supported at java.io.InputStream.reset(InputStream.java:334) at org.pentaho.platform.repository.solution.SolutionRepositoryServiceImpl$PluginFileInputStream.reset(SolutionRepositoryServiceImpl.java:728) at org.pentaho.platform.util.xml.XmlHelper.readEncodingProcessingInstruction(XmlHelper.java:287) at org.pentaho.platform.util.xml.XmlHelper.getEncoding(XmlHelper.java:218) at org.pentaho.platform.util.xml.dom4j.XmlDom4JHelper.getDocFromStream(XmlDom4JHelper.java:234) at org.pentaho.platform.util.xml.dom4j.XmlDom4JHelper.getDocFromStream(XmlDom4JHelper.java:249) at org.pentaho.cdf.CdfFileInfoGenerator.getFileInfo(CdfFileInfoGenerator.java:32) at org.pentaho.platform.plugin.services.pluginmgr.DefaultPluginManager.getFileInfo(DefaultPluginManager.java:530) at org.pentaho.platform.repository.solution.SolutionRepositoryServiceImpl.processRepositoryFile(SolutionRepositoryServiceImpl.java:356) Looking at the stack trace I noticed that the class org.pentaho.cdf.CdfFileInfoGenerator. That class was lately modified no August 27th so as a try I reverted that class from the latest revision to the previous one (revision 604). After having recompiled everything the error disappeared. I think that something has to be further checked to know what going on there.

    Pentaho BI Platform Tracking | 6 years ago | Sergio Ramazzina
    java.io.IOException: mark/reset not supported

    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

      mark/reset not supported

      at java.io.InputStream.reset()
    2. Java RT
      InputStream.reset
      1. java.io.InputStream.reset(InputStream.java:332)
      1 frame
    3. weblogic.security.SSL
      SSLParams.<init>
      1. weblogic.security.SSL.SSLParams.objectToCertificate(SSLParams.java:307)
      2. weblogic.security.SSL.SSLParams.<init>(SSLParams.java:280)
      2 frames
    4. weblogic.socket
      JVMSocketManager.create
      1. weblogic.socket.JVMSocketT3S.newSocket(JVMSocketT3S.java:28)
      2. weblogic.socket.JVMSocketT3.newSocketWithRetry(JVMSocketT3.java:275)
      3. weblogic.socket.JVMSocketT3.connect(JVMSocketT3.java:59)
      4. weblogic.socket.JVMAbbrevSocket.connect(JVMAbbrevSocket.java:160)
      5. weblogic.socket.JVMSocketManager.create(JVMSocketManager.java:294)
      5 frames
    5. weblogic.rjvm
      ServerURL.findOrCreateRJVM
      1. weblogic.rjvm.ConnectionManager.findOrCreateSocket(ConnectionManager.java:918)
      2. weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:339)
      3. weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:306)
      4. weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:248)
      5. weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:219)
      6. weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:186)
      7. weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
      8. weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
      8 frames