java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Stefan Saasen,
    • java.lang.ClassCastException: com.ibm.xml.xlxp2.jaxb.JAXBContextImpl incompatible with javax.xml.bind.JAXBContext at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:156) at javax.xml.bind.ContextFinder.find(ContextFinder.java:288) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:383) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:348) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:255) at com.ibm.tscc.rtss.config.impl.JAXBPreferencesService.backupConfiguration(JAXBPreferencesService.java:1268) at com.ibm.tscc.rtss.config.impl.JAXBPreferencesService.loadConfiguration(JAXBPreferencesService.java:213) at com.ibm.tscc.rtss.config.impl.JAXBPreferencesService.<init>(JAXBPreferencesService.java:130) at com.ibm.tscc.rtss.config.PreferencesServiceFactory.getPreferencesService(PreferencesServiceFactory.java:69) at com.ibm.tscc.rtss.prefs.spif.PreferencesRuntimeServiceImpl.<init>(PreferencesRuntimeServiceImpl.java:75) at com.ibm.tscc.rtss.prefs.spif.PreferencesSecurityServiceImpl.initialize(PreferencesSecurityServiceImpl.java:91) at com.ibm.tscc.rtss.spif.SecurityServiceFactory.startupServices(SecurityServiceFactory.java:88) at com.ibm.tscc.rtss.spif.SecurityServiceFactory.initialize(SecurityServiceFactory.java:166) at com.ibm.tscc.pep.common.RTSSEmbedded.initialize(RTSSEmbedded.java:71) at com.ibm.tscc.rtss.agent.startup.servlet.AgentStartupServlet.init(AgentStartupServlet.java:56) at javax.servlet.GenericServlet.init(GenericServlet.java:161) at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:320) at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCheck(ServletWrapper.java:1356) at com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(WebApp.java:1025) at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:993) at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:905) at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:5940) at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApp(DynamicVirtualHost.java:421) at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.createRunnableHandler(DynamicVirtualHost.java:241) at com.ibm.ws.http.internal.VirtualHostImpl.discriminate(VirtualHostImpl.java:181) at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready(HttpDispatcherLink.java:169) at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:448) at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleNewRequest(HttpInboundLink.java:382) at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.processRequest(HttpInboundLink.java:282) at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.ready(HttpInboundLink.java:253) at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:174) at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:83) at com.ibm.ws.tcpchannel.internal.WorkQueueManager.requestComplete(WorkQueueManager.java:502) at com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO(WorkQueueManager.java:550) at com.ibm.ws.tcpchannel.internal.WorkQueueManager.workerRun(WorkQueueManager.java:899) at com.ibm.ws.tcpchannel.internal.WorkQueueManager$Worker.run(WorkQueueManager.java:981) at com.ibm.ws.threading.internal.Worker.executeWork(Worker.java:439) at com.ibm.ws.threading.internal.Worker.run(Worker.java:421) at java.lang.Thread.run(Thread.java:736)
    No Bugmate found.