org.apache.openjpa.persistence.PersistenceException: java.lang.String cannot be cast to org.apache.openjpa.datacache.QueryKey

Terracotta | seyvet | 6 years ago
  1. 0

    ehcache + Openjpa + Terracotta -&gt query cache problem

    Terracotta | 6 years ago | seyvet
    org.apache.openjpa.persistence.PersistenceException: java.lang.String cannot be cast to org.apache.openjpa.datacache.QueryKey
  2. 0

    problem with openjpa query cache in glassfish + class cast exception form QueryKey

    Stack Overflow | 6 years ago | A. Abouei
    org.apache.openjpa.persistence.PersistenceException: java.lang.Object cannot be cast to org.apache.openjpa.datacache.QueryKey
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Bug ID: JDK-6499662 "java.lang.ClassCastException: cannot be cast to java.lang.String" happens from time to time

    sun.com | 4 months ago
    java.lang.ClassCastException: cannot be cast to java.lang.String
  5. 0

    Bug ID: JDK-6499662 "java.lang.ClassCastException: cannot be cast to java.lang.String" happens from time to time

    sun.com | 4 months ago
    java.lang.ClassCastException: cannot be cast to java.lang.String

    1 unregistered visitors
    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

      java.lang.String cannot be cast to org.apache.openjpa.datacache.QueryKey

      at org.apache.openjpa.datacache.AbstractQueryCache.onTypesChanged()
    2. OpenJPA Aggregate Jar
      BrokerImpl.afterCompletion
      1. org.apache.openjpa.datacache.AbstractQueryCache.onTypesChanged(AbstractQueryCache.java:85)
      2. org.apache.openjpa.datacache.DataCacheStoreManager.updateCaches(DataCacheStoreManager.java:252)
      3. org.apache.openjpa.datacache.DataCacheStoreManager.commit(DataCacheStoreManager.java:90)
      4. org.apache.openjpa.kernel.DelegatingStoreManager.commit(DelegatingStoreManager.java:94)
      5. org.apache.openjpa.kernel.BrokerImpl.endStoreManagerTransaction(BrokerImpl.java:1327)
      6. org.apache.openjpa.kernel.BrokerImpl.endTransaction(BrokerImpl.java:2201)
      7. org.apache.openjpa.kernel.BrokerImpl.afterCompletion(BrokerImpl.java:1865)
      7 frames
    3. com.sun.enterprise
      J2EETransactionManagerOpt.commit
      1. com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:515)
      2. com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:372)
      2 frames
    4. Embedded GlassFish Web
      EJBLocalObjectInvocationHandlerDelegate.invoke
      1. com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3880)
      2. com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3659)
      3. com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1410)
      4. com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1347)
      5. com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:205)
      6. com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:83)
      6 frames
    5. Unknown
      $Proxy72.create
      1. $Proxy72.create(Unknown Source)
      1 frame
    6. com.ericsson.edible
      ConfigurationProvisioning.createNamedList
      1. com.ericsson.edible.provisioning.configuration.ConfigurationProvisioning.createNamedList(ConfigurationProvisioning.java:359)
      1 frame
    7. 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
    8. com.sun.enterprise
      InstanceResolverImpl$1.invoke
      1. com.sun.enterprise.webservice.InstanceResolverImpl$1.invoke(InstanceResolverImpl.java:112)
      1 frame
    9. JAX-WS RI Runtime Bundle
      AbstractTubeImpl.process
      1. com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
      2. com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
      3. com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
      4. com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
      5. com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
      6. com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
      7. com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
      8. com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:112)
      8 frames
    10. com.sun.enterprise
      MonitoringPipe.process
      1. com.sun.enterprise.webservice.MonitoringPipe.process(MonitoringPipe.java:147)
      1 frame
    11. JAX-WS RI Runtime Bundle
      AbstractTubeImpl.process
      1. com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
      2. com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
      3. com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
      4. com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
      5. com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
      6. com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:112)
      6 frames
    12. com.sun.enterprise
      CommonServerSecurityPipe.process
      1. com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:222)
      2. com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:133)
      2 frames
    13. JAX-WS RI Runtime Bundle
      ServletAdapter.handle
      1. com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
      2. com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
      3. com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
      4. com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
      5. com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
      6. com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
      7. com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:471)
      8. com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
      9. com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
      9 frames
    14. com.sun.enterprise
      JAXWSServlet.doPost
      1. com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:177)
      1 frame
    15. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      2 frames
    16. Glassfish Core
      StandardPipeline.doInvoke
      1. org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
      2. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
      3. org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
      5. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      6. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      6 frames
    17. Glassfish
      PESessionLockingStandardPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
      2. com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
      2 frames
    18. Glassfish Core
      ContainerBase.invoke
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
      2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      3. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      4. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      5. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
      6. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
      7. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      8. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      9. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      10. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
      10 frames
    19. org.apache.coyote
      CoyoteAdapter.service
      1. org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
      1 frame
    20. Glassfish Core
      DefaultReadTask.doTask
      1. com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:670)
      2. com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:601)
      3. com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:875)
      4. com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:365)
      5. com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:285)
      6. com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:221)
      6 frames
    21. org.jvnet.glassfish
      ClbProxyPipeline$PUTask.doTask
      1. org.jvnet.glassfish.comms.clb.proxy.portunif.ClbProxyPipeline$PUTask.doTask(ClbProxyPipeline.java:544)
      1 frame
    22. Glassfish Core
      TaskBase.run
      1. com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:269)
      1 frame
    23. Grizzly HTTP
      SSLWorkerThread.run
      1. com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:111)
      1 frame