You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Martin Holz <ho...@fiz-chemie.de> on 2003/05/28 17:22:22 UTC
Bug in .NodeRevisionDescriptor.getContentLength?
Hi,
when switching to versioned WebDAV server, I found a NumberFormatException,
when I do a PUT:
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Long.parseLong(Long.java:344)
at java.lang.Long.<init>(Long.java:559)
at org.apache.slide.content.NodeRevisionDescriptor.getContentLength(NodeRevisionDescriptor.java:943)
at de.vs_c.slide.interceptors.SizeInterceptor.preStoreContent(SizeInterceptor.java:45)
at org.apache.slide.content.ContentImpl.invokeInterceptors(ContentImpl.java:1353)
at org.apache.slide.content.ContentImpl.create(ContentImpl.java:1298)
at org.apache.slide.content.ContentImpl.create(ContentImpl.java:686)
at org.apache.slide.webdav.util.VersioningHelper.versionControl(VersioningHelper.java:332)
at org.apache.slide.webdav.method.PutMethod.executeRequest(PutMethod.java:406)
Catching the Exception and setting the content length to -1 seems to cure the
problem for now. I did not (yet) find the reason, why the string is empty in
the first place.
--
Martin Holz <ho...@fiz-chemie.de>
Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org