Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-1562

MavenUtils.java : NPE when versions are specified using Managed dependencies in parent Maven Module

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide

      To reproduce this problem, please execute the following:

      1) wget https://github.com/gpe-mw-training/camel-labs/archive/v0.4-solution.zip
      2) unzip v0.4-solution.zip
      3) import unzipped maven project into JBDS
      4) in JBDS, navigate to: camel-lab-2/src/main/resources/OSGI-INF/blueprint
      5) right-click and create new Camel XML file
      6) attempt to drag a Timer component onto the camel editor palette.
      7) tail the JBDS error log.

      thanks! jeff

      Show
      To reproduce this problem, please execute the following: 1) wget https://github.com/gpe-mw-training/camel-labs/archive/v0.4-solution.zip 2) unzip v0.4-solution.zip 3) import unzipped maven project into JBDS 4) in JBDS, navigate to: camel-lab-2/src/main/resources/OSGI-INF/blueprint 5) right-click and create new Camel XML file 6) attempt to drag a Timer component onto the camel editor palette. 7) tail the JBDS error log. thanks! jeff

      Description

      When attempting to drag a Timer component onto a blank canvas in the camel-editor, the timer component does not stick.
      Instead, the JBDS error log reveals the following NPE :
      https://gist.github.com/jbride/a226a5c58be01ffffc36

      Upon debugging and stepping through v7.3.2.FINAL of the fuseide source code, MavenUtils throws a NPE on an apparent missing version of the maven dependency: org.apache.camel:camel-core.

      This is odd in that:
      1) the same maven project builds just fine both at the mvn command line and within JBDS.
      2) the effective pom of the project shows the correct version of the org.apache.camel:camel-core dependency.

        Attachments

          Activity

            People

            Assignee:
            aurelien.pupier Aurélien Pupier
            Reporter:
            jbride Jeffrey Bride
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: