Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Terracotta by seyvet, 1 year ago
java.lang.String cannot be cast to org.apache.openjpa.datacache.QueryKey
via Stack Overflow by A. Abouei
, 2 years ago
java.lang.Object cannot be cast to org.apache.openjpa.datacache.QueryKey
java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.openjpa.datacache.QueryKey 	at org.apache.openjpa.datacache.AbstractQueryCache.onTypesChanged(AbstractQueryCache.java:85)	at org.apache.openjpa.datacache.DataCacheStoreManager.updateCaches(DataCacheStoreManager.java:252)	at org.apache.openjpa.datacache.DataCacheStoreManager.commit(DataCacheStoreManager.java:90)	at org.apache.openjpa.kernel.DelegatingStoreManager.commit(DelegatingStoreManager.java:94)	at org.apache.openjpa.kernel.BrokerImpl.endStoreManagerTransaction(BrokerImpl.java:1327)	at org.apache.openjpa.kernel.BrokerImpl.endTransaction(BrokerImpl.java:2201)	at org.apache.openjpa.kernel.BrokerImpl.afterCompletion(BrokerImpl.java:1865)	at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:515)	at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:372)	at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3880)	at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3659)	at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1410)	at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1347)	at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:205)	at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:83)	at undefined.$Proxy72.create(Unknown Source)	at com.ericsson.edible.provisioning.configuration.ConfigurationProvisioning.createNamedList(ConfigurationProvisioning.java:359)	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 com.sun.enterprise.webservice.InstanceResolverImpl$1.invoke(InstanceResolverImpl.java:112)	at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)	at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)	at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)	at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)	at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)	at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)	at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)	at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:112)	at com.sun.enterprise.webservice.MonitoringPipe.process(MonitoringPipe.java:147)	at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)	at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)	at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)	at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)	at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)	at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:112)	at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:222)	at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:133)	at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)	at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)	at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)	at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)	at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)	at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)	at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:471)	at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)	at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)	at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:177)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)	at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)	at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:670)	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:601)	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:875)	at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:365)	at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:285)	at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:221)	at org.jvnet.glassfish.comms.clb.proxy.portunif.ClbProxyPipeline$PUTask.doTask(ClbProxyPipeline.java:544)	at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:269)	at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:111)