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

The default template packages are not available

    XMLWordPrintable

Details

    Description

      The default template bundles (see http://confluence.atlassian.com/display/DOC/Confluence+3.2+Release+Notes#Confluence3.2ReleaseNotes-TemplateBundles) are not available and an exception is logged to the log file.

      How to reproduce:

      Log in as an admin > Go to the admin console (/confluence/admin/console.action) and click on "Import Templates". The exception will be written to the log file and the default templates are not available.

      2010-10-07 13:00:52,280 WARN [http-8080-6] [opensymphony.xwork.util.OgnlValueStack] findValue Caught an exception while evaluating expression 'availableTemplates' against value stack
       -- referer: http://tuatara.sydney.atlassian.com:8080/confluence/pages/templates/listpagetemplates.action | url: /confluence/admin/plugins/templatePackage/configurePlugin.action | userName: admin | action: configurePlugin
      java.lang.RuntimeException: Caught an Ognl exception while getting property availableTemplates
      	at com.opensymphony.xwork.util.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:112)
      	at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1603)
      	at ognl.ASTProperty.getValueBody(ASTProperty.java:96)
      	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)
      	at ognl.SimpleNode.getValue(SimpleNode.java:193)
      	at ognl.Ognl.getValue(Ognl.java:333)
      	at ognl.Ognl.getValue(Ognl.java:310)
      	at com.opensymphony.xwork.util.OgnlValueStack.findValue(OgnlValueStack.java:141)
      	at com.opensymphony.webwork.views.velocity.WebWorkVelocityContext.internalGet(WebWorkVelocityContext.java:72)
      	at org.apache.velocity.context.AbstractContext.get(AbstractContext.java:193)
      	at org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:286)
      	at org.apache.velocity.runtime.parser.node.ASTReference.getVariableValue(ASTReference.java:823)
      	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:212)
      	at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:487)
      	at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:280)
      	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
      	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
      	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
      	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
      

      It gets interesting further down:

      java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAXBContext
      	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:150)
      	at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
      	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
      	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
      	at com.atlassian.confluence.plugin.templates.packages.DefaultTemplatesPackage.getAvailableTemplates(DefaultTemplatesPackage.java:26)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
      	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
      

      Attachments

        Issue Links

          Activity

            People

              ssaasen Stefan Saasen (Inactive)
              ssaasen Stefan Saasen (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              21 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 12h
                  12h
                  Remaining:
                  Remaining Estimate - 12h
                  12h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified