java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAXBContext

Atlassian JIRA | Stefan Saasen [Atlassian] | 6 years ago
  1. 0

    [CONF-20985] The default template packages are not available - Atlassian JIRA

    atlassian.com | 1 year ago
    java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAXBContext
  2. 0

    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. {code} 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) {code} It gets interesting further down: {code} 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) {code}

    Atlassian JIRA | 6 years ago | Stefan Saasen
    java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAXBContext
  3. 0

    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. {code} 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) {code} It gets interesting further down: {code} 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) {code}

    Atlassian JIRA | 6 years ago | Stefan Saasen [Atlassian]
    java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAXBContext
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Netbeans & Woodstox: ClassCastException: JAXBContextImpl Cannot Be Cast to JAXBContext - Ruben Laguna’s blog

    rubenlaguna.com | 1 year ago
    java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAXBContext
  6. 0

    Netbeans & Woodstox: ClassCastException: JAXBContextImpl Cannot Be Cast to JAXBContext - Ruben Laguna’s blog

    rubenlaguna.com | 4 months ago
    java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAXBContext

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to javax.xml.bind.JAXBContext

      at javax.xml.bind.ContextFinder.newInstance()
    2. Java RT
      JAXBContext.newInstance
      1. javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:150)
      2. javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
      3. javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
      4. javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
      4 frames
    3. com.atlassian.confluence
      DefaultTemplatesPackage.getAvailableTemplates
      1. com.atlassian.confluence.plugin.templates.packages.DefaultTemplatesPackage.getAvailableTemplates(DefaultTemplatesPackage.java:26)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    5. Spring AOP
      AopUtils.invokeJoinpointUsingReflection
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      1 frame
    6. Spring OSGi Core
      ServiceInvoker.invoke
      1. org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
      2. org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
      2 frames