Still testing, but perhaps this has something to do with Oracle and the READ_COMMITTED paramter. I notice that if I do the versionControl method immediately following the putMethod of the resource, the "no data on stream" error appears. But, if I skip the versionControl method at that point, and do it later when I attempt to do a checkoutMethod, then the method comes back differently, as
http-8080-Processor16, 10-Nov-2004 12:00:47, z4, PROPFIND, 207 "Multi-Status", 15 ms, /files org.apache.slide.content.RevisionNotFoundException: Revision 1.0 of object /files/Z4/aaa/8/Working Files/Tee.TXT not found org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.retrieveRevisionConte nt(StandardRDBMSAdapter.java:739) org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.retrieveRevisionContent (AbstractRDBMSStore.java:806) org.apache.slide.store.AbstractStore.retrieveRevisionContent(AbstractStore.j ava:1290) org.apache.slide.store.ExtendedStore.retrieveRevisionContent(ExtendedStore.j ava:492) org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:352) org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:322) org.apache.slide.webdav.util.VersioningHelper.versionControl(VersioningHelpe r.java:274) Strange! -----Original Message----- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 12:05 PM To: Slide Users Mailing List Subject: Re: I also have trouble doing versionControl in Oracle... 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
