Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-29309

WebDAV Configuration cannot be saved using Java 7

    XMLWordPrintable

Details

    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

      Attachments

        Issue Links

          Activity

            People

              fakraemer fabs
              aconde Alejandro Conde Carrillo (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: