OpenJPA
  1. OpenJPA
  2. OPENJPA-372

PCEnhancer throws away its classloader

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Duplicate
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: kernel
    • Labels:
      None

      Description

      PCEnhancer does not work at all in our build environment, as it is throwing away its classloader, and can't find anything. Patch:

      — openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java (revision 575761)
      +++ openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java (working copy)
      @@ -4338,7 +4338,7 @@
      log.trace(_loc.get("enhance-running", o));

      if (o instanceof String)

      • bc = project.loadClass((String) o);
        + bc = project.loadClass((String) o, loader);
        else
        bc = project.loadClass((Class) o);
        enhancer = new PCEnhancer(conf, bc, repos, loader);

        Issue Links

          Activity

          Jonathan Feinberg created issue -
          Jonathan Feinberg made changes -
          Field Original Value New Value
          Priority Major [ 3 ] Blocker [ 1 ]
          Albert Lee made changes -
          Link This issue duplicates OPENJPA-367 [ OPENJPA-367 ]
          Hide
          Albert Lee added a comment -

          The fix for these 2 reported problems are the same.

          Show
          Albert Lee added a comment - The fix for these 2 reported problems are the same.
          Hide
          Kevin Sutter added a comment -

          Resolved via OPENJPA-367.

          Show
          Kevin Sutter added a comment - Resolved via OPENJPA-367 .
          Kevin Sutter made changes -
          Fix Version/s 1.0.1 [ 12312687 ]
          Resolution Duplicate [ 3 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.1.0 [ 12312344 ]
          Andy Schlaikjer made changes -
          Link This issue relates to OPENJPA-482 [ OPENJPA-482 ]
          Hide
          Andy Schlaikjer added a comment -

          these must be related...

          Show
          Andy Schlaikjer added a comment - these must be related...
          Hide
          Andy Schlaikjer added a comment -

          hmm.. perhaps i was too quick to link this issue with OPENJPA-482. The latter may only relate to the Ant task supporting the enhancer. At first glance it did seem as though anything affecting the classloader might play into OPENJPA-482.

          Show
          Andy Schlaikjer added a comment - hmm.. perhaps i was too quick to link this issue with OPENJPA-482 . The latter may only relate to the Ant task supporting the enhancer. At first glance it did seem as though anything affecting the classloader might play into OPENJPA-482 .
          Andy Schlaikjer made changes -
          Link This issue relates to OPENJPA-482 [ OPENJPA-482 ]
          Donald Woods made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          3d 1h 59m 1 Kevin Sutter 17/Sep/07 20:53
          Resolved Resolved Closed Closed
          903d 22h 38m 1 Donald Woods 09/Mar/10 18:32

            People

            • Assignee:
              Unassigned
              Reporter:
              Jonathan Feinberg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development