OpenJPA
  1. OpenJPA
  2. OPENJPA-2236

Trace of connection info can cause class transform/enhancement to fail

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1, 2.3.0
    • Fix Version/s: 1.2.3, 2.2.1, 2.3.0
    • Component/s: jdbc
    • Labels:
      None

      Description

      While transforming persistent classes, if a specific DBDictionary is not provided, OpenJPA attempts to detect and set up a dictionary. Within this process, DBDictionary.connectedConfiguration() is called (to determine the DB type) when a connection is obtained. If trace is enabled, information about the connection is traced. I hit a case where one of the methods that is called on the connection to gather trace data threw an exception, resulting in classes not being enhanced. The simple (but not always possible) workaround is to specify the db dictionary type. Regardless, a trace point should not cause a catastrophic failure.

        Activity

        Jeremy Bauer created issue -
        Jeremy Bauer made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.3.0 [ 12319463 ]
        Fix Version/s 2.2.1 [ 12319943 ]
        Resolution Fixed [ 1 ]
        Albert Lee made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Jeremy Bauer made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Jeremy Bauer made changes -
        Fix Version/s 1.2.3 [ 12314517 ]
        Jeremy Bauer made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mark Struberg made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        7d 16h 35m 1 Jeremy Bauer 27/Jul/12 15:39
        Closed Closed Reopened Reopened
        183d 2h 34m 1 Jeremy Bauer 10/Apr/13 22:13
        Reopened Reopened Resolved Resolved
        20s 1 Jeremy Bauer 10/Apr/13 22:13
        Resolved Resolved Closed Closed
        861d 4h 5m 2 Mark Struberg 06/Jun/15 22:19

          People

          • Assignee:
            Jeremy Bauer
            Reporter:
            Jeremy Bauer
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development