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

OracleDictionary.getEmptyClob uses its classloader instead of the current classloader.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.0.1, 1.0.2
    • Fix Version/s: 1.0.3, 1.1.0
    • Component/s: jdbc
    • Labels:
      None

      Description

      The OracleDictionary class calls Class.forName("oracle.sql.CLOB") and Class.forName("oracle.sql.BLOB") to get the class objects for BLOBs and CLOBs. This approach uses the classloader which loaded OracleDictionary, which might not have access to the Oracle JDBC classes ie if OpenJPA is in a different OSGi bundle from the jdbc driver.

      Instead we should get the current classloader which is more likely to contain the JDBC driver classes.

        Attachments

          Activity

            People

            • Assignee:
              mikedd Michael Dick
              Reporter:
              mikedd Michael Dick
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified