I thought available() on an input stream does not tell you too much as it makes no statement about how many bytes you will be able to read before EOS is reached.
Oliver On Wed, 10 Nov 2004 09:31:40 -0800, Richard Emberson <[EMAIL PROTECTED]> wrote: > Right before calling: > > content.create(slideToken, resourcePath, revisionDescriptor, > revisionContent); > > in org.apache.slide.webdav.method.PutMethod.executeRequest > > I printout the contentLength (which in my test case is 14594) and > req.getInputStream().available() which is "0". > > So the HttpServletRequest inputstream has nothing available. > The InputStream might not be closed, but it seems to have been > already emptied. > > RME > > > > Oliver Zeigermann wrote: > > Without really having looked into this the error seems to say that the > > stream to read from has already been closed. This may mean there is a > > bug in the Slide core or (more likely) in the Oracle store. > > > > Oliver > > > > > > On Wed, 10 Nov 2004 10:47:21 -0500, Nick Longinow > > <[EMAIL PROTECTED]> wrote: > > > >>I get this error when I do a versionControlMethod, using classes12.jar and > >>Oracle 10g. > >> > >>Looking through the stores code, the storeContent method is the same here as > >>when I do a putMethod (which works fine). The difference must come from up > >>the line somewhere, in the creation of the RevisionContent object. Is it > >>possibly some error in retrieving it, a permissions violation perhaps, that > >>is not being flagged, and so the stream sent to storeContent is empty ? It > >>must be something like this, since put works. > >> > >>Nick > >> > >>http-8080-Processor24, 10-Nov-2004 10:19:43, root, PUT, 201 "Created", 250 > >>ms, /files/Z2/AAA/cc/Working Files/g.doc > >> > >>http-8080-Processor24, 10-Nov-2004 10:19:44, root, PROPPATCH, 207 > >>"Multi-Status", 109 ms, /files/Z2/AAA/cc/Working Files/g.doc > >> > >>10 Nov 2004 10:19:45 - > >>org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - SQL error > >>17002 on /history/1: Io exception: No more data to > >> > >>read from socket > >> > >>java.sql.SQLException: Io exception: No more data to read from socket > >> > >> at > >>oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125) > >> > >> at > >>oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162) > >> > >> at > >>oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274) > >> > >> at > >>oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatemen > >>t.java:559) > >> > >> at > >>oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java > >>:1028) > >> > >> at > >>oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedSta > >>tement.java:2888) > >> > >> at > >>oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedState > >>ment.java:2960) > >> > >> at > >>org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(Delegating > >>PreparedStatement.java:101) > >> > >> at > >>org.apache.slide.store.impl.rdbms.CommonRDBMSAdapter.storeContent(CommonRDBM > >>SAdapter.java:344) > >> > >> at > >>org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.storeRevisionContent( > >>StandardRDBMSAdapter.java:1101) > >> > >> at > >>org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.createRevisionContent > >>(StandardRDBMSAdapter.java:1054) > >> > >> at > >>org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.createRevisionContent(A > >>bstractRDBMSStore.java:823) > >> > >> at > >>org.apache.slide.store.AbstractStore.createRevisionContent(AbstractStore.jav > >>a:1347) > >> > >> at > >>org.apache.slide.store.ExtendedStore.createRevisionContent(ExtendedStore.jav > >>a:508) > >> > >> at org.apache.slide.content.ContentImpl.create(ContentImpl.java:515) > >> > >> at > >>org.apache.slide.webdav.util.VersioningHelper.versionControl(VersioningHelpe > >>r.java:306) > >> > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > This email message is for the sole use of the intended recipient(s) and > may contain confidential information. Any unauthorized review, use, > disclosure or distribution is prohibited. If you are not the intended > recipient, please contact the sender by reply email and destroy all > copies of the original message. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
