OpenJPA
  1. OpenJPA
  2. OPENJPA-2010

Duplicate meta data warning logged due to parsing the same location twice

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1, 2.1.0
    • Fix Version/s: 2.0.2, 2.1.2, 2.2.0
    • Component/s: kernel
    • Labels:
      None

      Description

      I've only seen this when entities are defined in an XML mapping file, and then only in some difficult to replicate classloader environments.

      The same XML mapping file may be parsed more than one time, resulting in a misleading warning message about duplicate metadata. The metadata is in fact identical, and does not indicate a problem.

      To detect this condition we can store the source file and line number where the meta data was defined, and only issue the warning if the metadata is defined in a different location.

        Activity

        Michael Dick created issue -
        Michael Dick made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Michael Dick made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Michael Dick made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Michael Dick made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Michael Dick made changes -
        Fix Version/s 2.1.2 [ 12317142 ]
        Fix Version/s 2.1.1 [ 12316191 ]
        Michael Dick made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Michael Dick made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        1h 1 Michael Dick 08/Jun/11 21:11
        In Progress In Progress Resolved Resolved
        20d 2h 25m 1 Michael Dick 28/Jun/11 23:36
        Closed Closed Reopened Reopened
        12d 15h 50m 1 Michael Dick 11/Jul/11 15:27
        Reopened Reopened Resolved Resolved
        16d 3h 42m 1 Michael Dick 27/Jul/11 19:09
        Resolved Resolved Closed Closed
        14s 2 Michael Dick 27/Jul/11 19:09

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development