Details
-
Bug
-
Resolution: Fixed
-
Highest
-
5.0.3, 5.1, 5.1.2
-
None
Description
If you are using Java 1.7.x (only java supported from Confluece 5.x), you receive the following error when saving the WebDAV configuration:
com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Invalid final field com.atlassian.confluence.extra.webdav.WebdavSettings.excludedClientUserAgentRegexes at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.validateFieldAccess(PureJavaReflectionProvider.java:150) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:105) at com.thoughtworks.xstream.converters.reflection.ReflectionConverter.marshal(ReflectionConverter.java:44) at com.thoughtworks.xstream.core.ReferenceByXPathMarshaller.convertAnother(ReferenceByXPathMarshaller.java:36) at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:46) at com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.marshal(ReferenceByXPathMarshallingStrategy.java:17) at com.thoughtworks.xstream.XStream.marshal(XStream.java:489) at com.thoughtworks.xstream.XStream.marshal(XStream.java:479) at com.thoughtworks.xstream.XStream.toXML(XStream.java:464) at com.atlassian.confluence.extra.webdav.DefaultWebdavSettingsManager.save(DefaultWebdavSettingsManager.java:74) at com.atlassian.confluence.extra.webdav.actions.WebdavConfigAction.execute(WebdavConfigAction.java:105) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) ...
This error may also happen when trying to see the configuration if you had previously saved one.
It works fine if your are using Java 1.6.x, but this JVM is not officially supported in Confluence 5.x