Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-1434

profile-create throws NPE when passing not existing parent reference

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • M1, jboss-fuse-6.2
    • jboss-fuse-6.1
    • None
    • None
    • % %
    • Hide

      Fresh JBoss Fuse 6.1

      1) start JBoss Fuse
      2) create a new fabric with `fabric:create`
      3) try to create a new profile with an explicit parent `fabric:profile-create --parents camel my_profile`

      Show
      Fresh JBoss Fuse 6.1 1) start JBoss Fuse 2) create a new fabric with `fabric:create` 3) try to create a new profile with an explicit parent `fabric:profile-create --parents camel my_profile`

      --parents camel flag throws a NPE.

      It should probably present a meaningful error message

      2014-04-28 10:16:04,100 | INFO  | l Console Thread | Console                          | araf.shell.console.jline.Console  220 | 17 - org.apache.karaf.shell.console - 2.3.0.redhat-610379 | Exception caught while executing command
      java.lang.NullPointerException
      	at io.fabric8.internal.ProfileImpl.setParents(ProfileImpl.java:212)[65:io.fabric8.fabric-core:1.0.0.redhat-379]
      	at io.fabric8.commands.ProfileCreate.doExecute(ProfileCreate.java:47)[66:io.fabric8.fabric-commands:1.0.0.redhat-379]
      	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[17:org.apache.karaf.shell.console:2.3.0.redhat-610379]
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[17:org.apache.karaf.shell.console:2.3.0.redhat-610379]
      	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
      	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
      	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
      	at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[17:org.apache.karaf.shell.console:2.3.0.redhat-610379]
      

              ggrzybek Grzegorz Grzybek
              pantinor@redhat.com Paolo Antinori
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: