com.atlassian.confluence.extra.webdav.servlet.ConfluenceWebdavServlet "Unexpected error" org.apache.jackrabbit.webdav.DavException: Precondition Failed
Asked by Eric Koepfle:

We have been getting a lot of these exceptions lately. I looked at our source code, and it seems to be related to the amount of locks returned by the servlet, although very inexplicit.

Have you seen these from other customers, and do you know the cause? We use office-connector v.1.18

ERROR 31 Oct 2012 08:44:16,080 tomcat-5 com.atlassian.confluence.extra.webdav.servlet.ConfluenceWebdavServlet Unexpected error

Oct 31 08:44:16 10.126.15.221 org.apache.jackrabbit.webdav.DavException: Precondition Failed

Oct 31 08:44:16 10.126.15.221 at org.apache.jackrabbit.webdav.server.AbstractWebdavServlet.doLock(AbstractWebdavServlet.java:682)

Oct 31 08:44:16 10.126.15.221 at org.apache.jackrabbit.webdav.server.AbstractWebdavServlet.execute(AbstractWebdavServlet.java:258)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.confluence.extra.webdav.servlet.ConfluenceWebdavServlet.service(ConfluenceWebdavServlet.java:104)

Oct 31 08:44:16 10.126.15.221 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42)

Oct 31 08:44:16 10.126.15.221 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:52)

Oct 31 08:44:16 10.126.15.221 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Oct 31 08:44:16 10.126.15.221 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

Oct 31 08:44:16 10.126.15.221 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.confluence.extra.webdav.servlet.filter.ReverseProxyCopyAndMoveDestinationFix.doFilter(ReverseProxyCopyAndMoveDestinationFix.java:59)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.confluence.extra.webdav.servlet.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:34)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.confluence.extra.webdav.servlet.filter.MicrosoftMiniRedirectorAuthenticationHeaderFix.doFilter(MicrosoftMiniRedirectorAuthenticationHeaderFix.java:72)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.confluence.extra.webdav.servlet.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:34)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.confluence.extra.webdav.servlet.filter.ClientWriteDenyFilter.doFilter(ClientWriteDenyFilter.java:43)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.confluence.extra.webdav.servlet.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:34)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)

Oct 31 08:44:16 10.126.15.221 at com.bloomberg.confluence.plugin.OrgchartFilter.doFilter(OrgchartFilter.java:55)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)

Oct 31 08:44:16 10.126.15.221 at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)

Oct 31 08:44:16 10.126.15.221 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

Oct 31 08:44:16 10.126.15.221 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)


Answers:
author: Amauri Toscano
body: Same here. We are running Confluence 6.1.0


author: John Price
body: I get these since upgrading to Confluence 5.4.3. The users say they are not getting errors in the UI, but it's making the log totally unreadable.

comments: author: Chris Johnson
body: same here, we started to get these after the upgrade to 5.4.3


author: Philipp Klauser
body: Same issue here - it even crashes our cofluence/tomcat..


author: Jositz, Michael (Allianz SE)
body: We also get a lot of these issues. We had them in Confluence 3.5.13 and also in latest 4.3.3. I do not exactly know what causes this issue but I think it may also be related to some files. To me it seems that not all files are affected but some. The issue we get is:

{code}

2012-11-25 15:17:35,430 ERROR \[TP-Processor18\] \[extra.webdav.servlet.ConfluenceWebdavServlet\] service Unexpected error  
-- url: /confluence/plugins/servlet/confluence/editinword/63569922/attachments/xxx.xlsx \| userName: xxx  
org.apache.jackrabbit.webdav.DavException: Precondition Failed  
at org.apache.jackrabbit.webdav.server.AbstractWebdavServlet.doLock(AbstractWebdavServlet.java:682)  
at org.apache.jackrabbit.webdav.server.AbstractWebdavServlet.execute(AbstractWebdavServlet.java:258)  
at com.atlassian.confluence.extra.webdav.servlet.ConfluenceWebdavServlet.service(ConfluenceWebdavServlet.java:124)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)  
at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)  
at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:52)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)  
.java:42)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)  
at com.atlassian.confluence.extra.webdav.servlet.filter.AbstractHttpFilter.doFilter

...

{code}

Anybody an idea?