java.lang.IllegalArgumentException: Not a file: jar:file:/opt/puppetlabs/server/apps/puppetdb/puppetdb.jar!/puppetlabs/puppetdb/benchmark/samples/facts

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When attempting to run the load test tool with no specified catalogs, it hits an exception. *To re-create* * Install PE from neptune using beaker. * Installed on Centos 7 VM from the pooler (Monolithic configuration) * ssh onto the VM as root * run puppet agent: "puppet agent -t" * install java "yum install java" * create config.ini file * run load tester "/usr/bin/java -cp /opt/puppetlabs/server/apps/puppetdb/puppetdb.jar clojure.main -m puppetlabs.puppetdcli.benchmark --config config.ini --numhosts 10 --rand-perc 1 -N 2 -t 2" *config.ini:* {code:config.ini} [jetty] host=localhost port=8080 {code} *Build numbers:* PE: 2015.3.0-rc4-5 PuppetDB: 3.2.0-0.1SNAPSHOT.2015.10.16T1334.el7 *Whats seen:* {code:stackTrace} [root@s20p1spqzunzl0f ~]# /usr/bin/java -cp /opt/puppetlabs/server/apps/puppetdb/puppetdb.jar clojure.main -m puppetlabs.puppetdcli.benchmark --config config.ini --numhosts 10 --rand-perc 1 -N 2 -t 2 Exception in thread "main" java.lang.IllegalArgumentException: Not a file: jar:file:/opt/puppetlabs/server/apps/puppetdb/puppetdb.jar!/puppetlabs/puppetdb/benchmark/samples/facts at clojure.java.io$fn__9085.invoke(io.clj:63) at clojure.java.io$fn__9059$G__9041__9064.invoke(io.clj:35) at clojure.java.io$file.invoke(io.clj:414) at puppetlabs.puppetdb.cli.benchmark$load_sample_data.invoke(benchmark.clj:72) at puppetlabs.puppetdb.cli.benchmark$load_data_from_options$fn__27328.invoke(benchmark.clj:327) at puppetlabs.kitchensink.core$mapvals$iter__8294__8298$fn__8299.invoke(core.clj:310) at clojure.lang.LazySeq.sval(LazySeq.java:40) at clojure.lang.LazySeq.seq(LazySeq.java:49) at clojure.lang.RT.seq(RT.java:507) at clojure.core$seq__4128.invoke(core.clj:137) at clojure.core.protocols$seq_reduce.invoke(protocols.clj:30) at clojure.core.protocols$fn__6506.invoke(protocols.clj:101) at clojure.core.protocols$fn__6452$G__6447__6465.invoke(protocols.clj:13) at clojure.core$reduce.invoke(core.clj:6519) at clojure.core$into.invoke(core.clj:6600) at puppetlabs.kitchensink.core$mapvals.invoke(core.clj:310) at puppetlabs.puppetdb.cli.benchmark$load_data_from_options.invoke(benchmark.clj:327) at puppetlabs.puppetdb.cli.benchmark$benchmark_main.doInvoke(benchmark.clj:396) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:630) at puppetlabs.puppetdb.cli.benchmark$_main.doInvoke(benchmark.clj:462) at clojure.lang.RestFn.invoke(RestFn.java:805) at clojure.lang.Var.invoke(Var.java:455) at clojure.lang.AFn.applyToHelper(AFn.java:216) at clojure.lang.Var.applyTo(Var.java:700) at clojure.core$apply.invoke(core.clj:630) at clojure.main$main_opt.invoke(main.clj:316) at clojure.main$main.doInvoke(main.clj:421) at clojure.lang.RestFn.invoke(RestFn.java:1096) at clojure.lang.Var.invoke(Var.java:484) at clojure.lang.AFn.applyToHelper(AFn.java:241) at clojure.lang.Var.applyTo(Var.java:700) at clojure.main.main(main.java:37) {code}
    via by Andrew Hayes,
  • When attempting to run the load test tool with no specified catalogs, it hits an exception. *To re-create* * Install PE from neptune using beaker. * Installed on Centos 7 VM from the pooler (Monolithic configuration) * ssh onto the VM as root * run puppet agent: "puppet agent -t" * install java "yum install java" * create config.ini file * run load tester "/usr/bin/java -cp /opt/puppetlabs/server/apps/puppetdb/puppetdb.jar clojure.main -m puppetlabs.puppetdcli.benchmark --config config.ini --numhosts 10 --rand-perc 1 -N 2 -t 2" *config.ini:* {code:config.ini} [jetty] host=localhost port=8080 {code} *Build numbers:* PE: 2015.3.0-rc4-5 PuppetDB: 3.2.0-0.1SNAPSHOT.2015.10.16T1334.el7 *Whats seen:* {code:stackTrace} [root@s20p1spqzunzl0f ~]# /usr/bin/java -cp /opt/puppetlabs/server/apps/puppetdb/puppetdb.jar clojure.main -m puppetlabs.puppetdcli.benchmark --config config.ini --numhosts 10 --rand-perc 1 -N 2 -t 2 Exception in thread "main" java.lang.IllegalArgumentException: Not a file: jar:file:/opt/puppetlabs/server/apps/puppetdb/puppetdb.jar!/puppetlabs/puppetdb/benchmark/samples/facts at clojure.java.io$fn__9085.invoke(io.clj:63) at clojure.java.io$fn__9059$G__9041__9064.invoke(io.clj:35) at clojure.java.io$file.invoke(io.clj:414) at puppetlabs.puppetdb.cli.benchmark$load_sample_data.invoke(benchmark.clj:72) at puppetlabs.puppetdb.cli.benchmark$load_data_from_options$fn__27328.invoke(benchmark.clj:327) at puppetlabs.kitchensink.core$mapvals$iter__8294__8298$fn__8299.invoke(core.clj:310) at clojure.lang.LazySeq.sval(LazySeq.java:40) at clojure.lang.LazySeq.seq(LazySeq.java:49) at clojure.lang.RT.seq(RT.java:507) at clojure.core$seq__4128.invoke(core.clj:137) at clojure.core.protocols$seq_reduce.invoke(protocols.clj:30) at clojure.core.protocols$fn__6506.invoke(protocols.clj:101) at clojure.core.protocols$fn__6452$G__6447__6465.invoke(protocols.clj:13) at clojure.core$reduce.invoke(core.clj:6519) at clojure.core$into.invoke(core.clj:6600) at puppetlabs.kitchensink.core$mapvals.invoke(core.clj:310) at puppetlabs.puppetdb.cli.benchmark$load_data_from_options.invoke(benchmark.clj:327) at puppetlabs.puppetdb.cli.benchmark$benchmark_main.doInvoke(benchmark.clj:396) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:630) at puppetlabs.puppetdb.cli.benchmark$_main.doInvoke(benchmark.clj:462) at clojure.lang.RestFn.invoke(RestFn.java:805) at clojure.lang.Var.invoke(Var.java:455) at clojure.lang.AFn.applyToHelper(AFn.java:216) at clojure.lang.Var.applyTo(Var.java:700) at clojure.core$apply.invoke(core.clj:630) at clojure.main$main_opt.invoke(main.clj:316) at clojure.main$main.doInvoke(main.clj:421) at clojure.lang.RestFn.invoke(RestFn.java:1096) at clojure.lang.Var.invoke(Var.java:484) at clojure.lang.AFn.applyToHelper(AFn.java:241) at clojure.lang.Var.applyTo(Var.java:700) at clojure.main.main(main.java:37) {code}
    via by Andrew Hayes,
  • lein2 on windows does not function
    via GitHub by vladp
    ,
  • Testing in leiningen
    via Stack Overflow by Ralph
    ,
  • lein cljsbuild once gives error.
    via GitHub by gzmask
    ,
  • Resources don't work in uberjar
    via by Dan Harbin,
    • java.lang.IllegalArgumentException: Not a file: jar:file:/opt/puppetlabs/server/apps/puppetdb/puppetdb.jar!/puppetlabs/puppetdb/benchmark/samples/facts at clojure.java.io$fn__9085.invoke(io.clj:63) at clojure.java.io$fn__9059$G__9041__9064.invoke(io.clj:35) at clojure.java.io$file.invoke(io.clj:414) at puppetlabs.puppetdb.cli.benchmark$load_sample_data.invoke(benchmark.clj:72) at puppetlabs.puppetdb.cli.benchmark$load_data_from_options$fn__27328.invoke(benchmark.clj:327) at puppetlabs.kitchensink.core$mapvals$iter__8294__8298$fn__8299.invoke(core.clj:310) at clojure.lang.LazySeq.sval(LazySeq.java:40) at clojure.lang.LazySeq.seq(LazySeq.java:49) at clojure.lang.RT.seq(RT.java:507) at clojure.core$seq__4128.invoke(core.clj:137) at clojure.core.protocols$seq_reduce.invoke(protocols.clj:30) at clojure.core.protocols$fn__6506.invoke(protocols.clj:101) at clojure.core.protocols$fn__6452$G__6447__6465.invoke(protocols.clj:13) at clojure.core$reduce.invoke(core.clj:6519) at clojure.core$into.invoke(core.clj:6600) at puppetlabs.kitchensink.core$mapvals.invoke(core.clj:310) at puppetlabs.puppetdb.cli.benchmark$load_data_from_options.invoke(benchmark.clj:327) at puppetlabs.puppetdb.cli.benchmark$benchmark_main.doInvoke(benchmark.clj:396) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:630) at puppetlabs.puppetdb.cli.benchmark$_main.doInvoke(benchmark.clj:462) at clojure.lang.RestFn.invoke(RestFn.java:805) at clojure.lang.Var.invoke(Var.java:455) at clojure.lang.AFn.applyToHelper(AFn.java:216) at clojure.lang.Var.applyTo(Var.java:700) at clojure.core$apply.invoke(core.clj:630) at clojure.main$main_opt.invoke(main.clj:316) at clojure.main$main.doInvoke(main.clj:421) at clojure.lang.RestFn.invoke(RestFn.java:1096) at clojure.lang.Var.invoke(Var.java:484) at clojure.lang.AFn.applyToHelper(AFn.java:241) at clojure.lang.Var.applyTo(Var.java:700) at clojure.main.main(main.java:37)
    No Bugmate found.