Hmm,

OK, yet further investigation has shown the problem to be with the properties table, the column type for the property_value column is varchar(255), so when the history-set is getting longer than this it is truncated and becomes invalid.

Can anyone suggest any solutions to this? one alternative is to increase the field length, however that doesn't really solve the problem, it just means it'll take longer for it to occur. Any other solutions?


Cheers

Luke.
-----


Luke Noel-Storr wrote:

OK, I've done a bit more investigation, and by adding some logging to the VersionTreeReport class where the error was happening and it seems the problem is that the XML is being cut off at 256 characters, as shown below:

<D:href xmlns:D="DAV:">/history/9/1.0</D:href><D:href xmlns:D="DAV:">/history/9/1.1</D:href><D:href xmlns:D="DAV:">/history/9/1.2</D:href><D:href xmlns:D="DAV:">/history/9/1.3</D:href><D:href xmlns:D="DAV:">/history/9/1.4</D:href><D:href xmlns:D="DAV:">/h

Anyone have any idea what may be causing this?


Cheers

Luke.
-----

Luke Noel-Storr wrote:

Hi,

I'm running a slide server using a MySQL database but with a file store to store the actual content.

I've discovered I have a problem with slide losing the version history after a certain point.

I've done a little investigating and it seems that the problem occurs after a file has gone through 10 changes or more (though it could be sooner) and I then restart Tomcat. Before restarting Tomcat it works fine, but after restating it I get the following exception in the logs:

org.apache.slide.common.SlideException: Could not parse DAV:version-set: /history/9
at org.apache.slide.webdav.method.report.VersionTreeReport.writeReport(VersionTreeReport.java:176)


at org.apache.slide.webdav.method.report.VersionTreeReport.writeReport(VersionTreeReport.java:159)

at org.apache.slide.webdav.method.report.VersionTreeReport.execute(VersionTreeReport.java:131)

at org.apache.slide.webdav.method.ReportMethod.executeRequest(ReportMethod.java:219)

at org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:343)

at org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)


at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)

at org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:139)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)


at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)

at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:587)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)


at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)

at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)

   at java.lang.Thread.run(Thread.java:534)


My diagnosis may not be exact, but it seems to be a consistent way of recreating the error.


Any ideas?


Cheers

Luke.
-----



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to