java.lang.ClassCastException: kodo.persistence.jdbc.JPAConnectionFactory

Oracle Community | 666705 | 1 decade ago
  1. 0

    deploy on weblogic server 9.1 with kodo 4.0 GA

    Oracle Community | 1 decade ago | 666705
    java.lang.ClassCastException: kodo.persistence.jdbc.JPAConnectionFactory
  2. 0

    JCA config ConnectionFactoryName and JNDI

    Oracle Community | 1 decade ago | 666705
    java.lang.ClassCastException: kodo.persistence.jdbc.JPAConnectionFactory
  3. 0
    samebug tip
    When you have no build parameters, uncheck 'This build is parameterized'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      kodo.persistence.jdbc.JPAConnectionFactory

      at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory()
    2. OpenJPA Aggregate Jar
      OracleDictionary.ensureDriverVendor
      1. org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:791)
      2. org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:703)
      3. org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDataSource(JDBCConfigurationImpl.java:803)
      4. org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDataSource2(JDBCConfigurationImpl.java:810)
      5. org.apache.openjpa.jdbc.sql.OracleDictionary.ensureDriverVendor(OracleDictionary.java:231)
      5 frames
    3. kodo.jdbc.sql
      OracleAdvancedSQL.getBatchLimit
      1. kodo.jdbc.sql.OracleAdvancedSQL.setDriverVendorDefaults(OracleAdvancedSQL.java:50)
      2. kodo.jdbc.sql.OracleAdvancedSQL.getBatchLimit(OracleAdvancedSQL.java:28)
      2 frames
    4. kodo.jdbc.kernel
      AutoOrderUpdateManager.setConfiguration
      1. kodo.jdbc.kernel.AutoOrderUpdateManager.setConfiguration(AutoOrderUpdateManager.java:56)
      1 frame
    5. OpenJPA Aggregate Jar
      JDBCConfigurationImpl.getUpdateManagerInstance
      1. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:328)
      2. org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:285)
      3. org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:99)
      4. org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:70)
      5. org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getUpdateManagerInstance(JDBCConfigurationImpl.java:589)
      5 frames
    6. 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:585)
      4 frames
    7. OpenJPA Aggregate Jar
      JDBCBrokerFactory.getInstance
      1. org.apache.openjpa.lib.conf.ConfigurationImpl.instantiateAll(ConfigurationImpl.java:264)
      2. org.apache.openjpa.conf.OpenJPAConfigurationImpl.instantiateAll(OpenJPAConfigurationImpl.java:1405)
      3. org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:534)
      4. org.apache.openjpa.kernel.AbstractBrokerFactory.pool(AbstractBrokerFactory.java:484)
      5. org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.getInstance(JDBCBrokerFactory.java:86)
      5 frames
    8. kodo.persistence.jdbc
      JPAConnectionFactory.createEntityManager
      1. kodo.persistence.jdbc.JPAConnectionFactory.getFactory(JPAConnectionFactory.java:55)
      2. kodo.persistence.jdbc.JPAConnectionFactory.createEntityManager(JPAConnectionFactory.java:144)
      2 frames
    9. ACME.model.project
      ProjectFactory.getMiscProjects
      1. ACME.model.project.ProjectFactory.getMiscProjects(ProjectFactory.java:77)
      1 frame
    10. ACME.ui.beans
      ManagerBean.getProjectModel
      1. ACME.ui.beans.ManagerBean.reload(ManagerBean.java:104)
      2. ACME.ui.beans.ManagerBean.getProjectModel(ManagerBean.java:80)
      2 frames
    11. 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:585)
      4 frames
    12. JSF
      PropertyResolverImpl.getValue
      1. com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:79)
      1 frame
    13. com.sun.faces
      ExpressionEvaluatorImpl.evaluate
      1. com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
      2. com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)
      3. com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
      3 frames
    14. JSF
      ValueBindingImpl.getValue
      1. com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
      2. com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
      2 frames
    15. JavaEE 7
      UIData.setRowIndex
      1. javax.faces.component.UIData.getValue(UIData.java:527)
      2. javax.faces.component.UIData.getDataModel(UIData.java:848)
      3. javax.faces.component.UIData.setRowIndex(UIData.java:379)
      3 frames
    16. JSF
      TableRenderer.encodeBegin
      1. com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(TableRenderer.java:65)
      1 frame
    17. JavaEE 7
      UIData.encodeBegin
      1. javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:675)
      2. javax.faces.component.UIData.encodeBegin(UIData.java:681)
      2 frames
    18. com.xavax.jsf
      AbstractRenderer.encodeChildren
      1. com.xavax.jsf.renderer.AbstractRenderer.encodeRecursive(Unknown Source)
      2. com.xavax.jsf.renderer.AbstractRenderer.encodeChildren(Unknown Source)
      2 frames
    19. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:693)
      1 frame
    20. com.xavax.jsf
      AbstractRenderer.encodeChildren
      1. com.xavax.jsf.renderer.AbstractRenderer.encodeRecursive(Unknown Source)
      2. com.xavax.jsf.renderer.AbstractRenderer.encodeChildren(Unknown Source)
      2 frames
    21. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:693)
      1 frame
    22. com.xavax.jsf
      AbstractRenderer.encodeChildren
      1. com.xavax.jsf.renderer.AbstractRenderer.encodeRecursive(Unknown Source)
      2. com.xavax.jsf.renderer.AbstractRenderer.encodeChildren(Unknown Source)
      2 frames
    23. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:693)
      1 frame
    24. com.xavax.jsf
      AbstractRenderer.encodeChildren
      1. com.xavax.jsf.renderer.AbstractRenderer.encodeRecursive(Unknown Source)
      2. com.xavax.jsf.renderer.AbstractRenderer.encodeChildren(Unknown Source)
      2 frames
    25. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:693)
      1 frame
    26. com.xavax.jsf
      AbstractRenderer.encodeChildren
      1. com.xavax.jsf.renderer.AbstractRenderer.encodeRecursive(Unknown Source)
      2. com.xavax.jsf.renderer.AbstractRenderer.encodeChildren(Unknown Source)
      2 frames
    27. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:693)
      1 frame
    28. com.xavax.jsf
      AbstractRenderer.encodeChildren
      1. com.xavax.jsf.renderer.AbstractRenderer.encodeRecursive(Unknown Source)
      2. com.xavax.jsf.renderer.AbstractRenderer.encodeChildren(Unknown Source)
      2 frames
    29. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:693)
      1 frame
    30. com.xavax.jsf
      AbstractRenderer.encodeChildren
      1. com.xavax.jsf.renderer.AbstractRenderer.encodeRecursive(Unknown Source)
      2. com.xavax.jsf.renderer.AbstractRenderer.encodeChildren(Unknown Source)
      2 frames
    31. JavaEE 7
      UIComponentTag.doEndTag
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:693)
      2. javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:600)
      3. javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:537)
      3 frames
    32. jsp_servlet
      __browseprojects._jspService
      1. jsp_servlet.__browseprojects._jsp__tag2(__browseprojects.java:254)
      2. jsp_servlet.__browseprojects._jsp__tag1(__browseprojects.java:216)
      3. jsp_servlet.__browseprojects._jsp__tag0(__browseprojects.java:178)
      4. jsp_servlet.__browseprojects._jspService(__browseprojects.java:141)
      4 frames
    33. weblogic.servlet.jsp
      JspBase.service
      1. weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
      1 frame
    34. Atmosphere weblogic
      RequestDispatcherImpl.forward
      1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
      2. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
      3. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
      4. weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:391)
      5. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
      6. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
      7. weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
      8. weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
      8 frames
    35. JSF
      LifecycleImpl.render
      1. com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
      2. com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
      3. com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
      4. com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
      5. com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
      5 frames
    36. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
      1 frame
    37. Atmosphere weblogic
      WebAppServletContext$ServletInvocationAction.run
      1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
      2. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
      3. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
      4. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
      5. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
      5 frames
    38. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      1 frame
    39. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      1 frame
    40. Atmosphere weblogic
      ServletRequestImpl.run
      1. weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
      2. weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
      3. weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
      3 frames
    41. weblogic.work
      ExecuteThread.run
      1. weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      2. weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
      2 frames