Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1351

java.lang.ClassCastException: javax.naming.Reference incompatible with javax.sql.DataSource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M3
    • 2.0.0-beta
    • None
    • None

    Description

      The following exception is thrown when a downlevel jcc driver is used:

      java.lang.ClassCastException: javax.naming.Reference incompatible with javax.sql.DataSource
      at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory2(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.openjpa.lib.conf.ConfigurationImpl.instantiateAll(Unknown Source)
      at org.apache.openjpa.conf.OpenJPAConfigurationImpl.instantiateAll(Unknown Source)
      at org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(Unknown Source)
      at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(Unknown Source)
      at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(Unknown Source)
      at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(Unknown Source)

      Attachments

        1. OPENJPA-1351.patch
          2 kB
          Fay Wang

        Activity

          People

            faywang Fay Wang
            faywang Fay Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: