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

fabric:export --path returns a confusing error message when running example

XMLWordPrintable

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

      code
      fabric:export --path /fabric/configs /tmp/zk
      code

      Show
      code fabric:export --path /fabric/configs /tmp/zk code

      While running an example taken from fabric8 documentation:

      fabric:export --path /fabric/configs /path/to/my/export/location

      from here:

      http://fabric8.io/#/site/book/doc/index.md?chapter=profiles_md

      (adpted to use the extended flag --path instead of -p)

      fabric returns an odd error and i cannot tell if it's a proper bug or just a confusing message:

      JBossFuse:admin@root> fabric:export --path /fabric/configs /tmp/zk
      Error executing command: Path must not end with / character
      

      No output file has been created.

      JBossFuse:admin@root> lde
      java.lang.IllegalArgumentException: Path must not end with / character
      	at org.apache.zookeeper.common.PathUtils.validatePath(PathUtils.java:58)
      	at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1568)
      	at org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:214)
      	at org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:203)
      	at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107)
      	at org.apache.curator.framework.imps.GetChildrenBuilderImpl.pathInForeground(GetChildrenBuilderImpl.java:199)
      	at org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:191)
      	at org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:38)
      	at io.fabric8.zookeeper.utils.ZooKeeperUtils.getChildren(ZooKeeperUtils.java:125)
      	at io.fabric8.zookeeper.utils.ZooKeeperUtils.getAllChildren(ZooKeeperUtils.java:143)
      	at io.fabric8.commands.Export.export(Export.java:104)
      	at io.fabric8.commands.Export.doExecute(Export.java:77)
      	at io.fabric8.commands.Export.doExecute(Export.java:210)
      	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      	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)
      	at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)
      	at java.lang.Thread.run(Thread.java:744)[:1.7.0_51]
      	at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.doRun(ShellFactoryImpl.java:158)[49:org.apache.karaf.shell.ssh:2.3.0.redhat-610379]
      	at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4$1.run(ShellFactoryImpl.java:149)
      	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_51]
      	at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[27:org.apache.karaf.jaas.modules:2.3.0.redhat-610379]
      	at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.run(ShellFactoryImpl.java:147)[49:org.apache.karaf.shell.ssh:2.3.0.redhat-610379]
      

            janstey@redhat.com Jonathan Anstey
            pantinor@redhat.com Paolo Antinori
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: