[prev in list] [next in list] [prev in thread] [next in thread]
List: slide-dev
Subject: Bug in .NodeRevisionDescriptor.getContentLength?
From: Martin Holz <holz () fiz-chemie ! de>
Date: 2003-05-28 15:22:22
[Download RAW message or body]
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 <holz@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic