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     <[EMAIL PROTECTED]>

Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin      


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

Reply via email to