java.lang.IllegalArgumentException: The query {:lhs [{:type claratest.core.Fact, :constraints [], :fact-binding :?facts}], :params #{}, :name "claratest.core/get-facts"} is invalid or not included in the rule base., compiling:(/private/var/folders/th/f2ks7qjn0g52279rdfnmjcsr0000gn/T/form-init5370267113791774844.clj:1:125)

GitHub | olivermg | 4 months ago
  1. 0

    IllegalArgumentException during "lein run" while working fine in "lein repl"

    GitHub | 4 months ago | olivermg
    java.lang.IllegalArgumentException: The query {:lhs [{:type claratest.core.Fact, :constraints [], :fact-binding :?facts}], :params #{}, :name "claratest.core/get-facts"} is invalid or not included in the rule base., compiling:(/private/var/folders/th/f2ks7qjn0g52279rdfnmjcsr0000gn/T/form-init5370267113791774844.clj:1:125)
  2. 0

    IllegalArgumentException during "lein run" while working fine in "lein repl"

    GitHub | 4 months ago | olivermg
    java.lang.IllegalArgumentException: The query {:lhs [{:type claratest.core.Fact, :constraints [], :fact-binding :?facts}], :params #{}, :name "claratest.core/get-facts"} is invalid or not included in the rule base., compiling:(/private/var/folders/th/f2ks7qjn0g52279rdfnmjcsr0000gn/T/form-init5370267113791774844.clj:1:125)
  3. 0

    Effect of cache...

    GitHub | 2 years ago | lprefontaine
    java.lang.IllegalArgumentException: The query {:name "maskatel.cerbere.rules.merge/merged-facts", :lhs [{:fact-binding :?new-facts, :type maskatel.cerbere.rules.merge.MergedFact, :constraints []}], :params #{}} is invalid or not included in the rule base.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Effect of cache...

    GitHub | 2 years ago | lprefontaine
    java.lang.IllegalArgumentException: The query {:name "maskatel.cerbere.rules.merge/merged-facts", :lhs [{:fact-binding :?new-facts, :type maskatel.cerbere.rules.merge.MergedFact, :constraints []}], :params #{}} is invalid or not included in the rule base.
  6. 0

    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}

    JIRA | 1 year ago | Andrew Hayes
    java.lang.IllegalArgumentException: Not a file: jar:file:/opt/puppetlabs/server/apps/puppetdb/puppetdb.jar!/puppetlabs/puppetdb/benchmark/samples/facts

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      The query {:lhs [{:type claratest.core.Fact, :constraints [], :fact-binding :?facts}], :params #{}, :name "claratest.core/get-facts"} is invalid or not included in the rule base.

      at clara.rules.platform$throw_error.invokeStatic()
    2. clara.rules
      platform$throw_error.invoke
      1. clara.rules.platform$throw_error.invokeStatic(platform.cljc:5)
      2. clara.rules.platform$throw_error.invoke(platform.cljc:5)
      2 frames
    3. clara.rules.engine
      LocalSession.query
      1. clara.rules.engine.LocalSession.query(engine.cljc:1174)
      1 frame
    4. clara
      rules$query.doInvoke
      1. clara.rules$query.invokeStatic(rules.cljc:48)
      2. clara.rules$query.doInvoke(rules.cljc:38)
      2 frames
    5. Clojure
      RestFn.invoke
      1. clojure.lang.RestFn.invoke(RestFn.java:425)
      1 frame
    6. claratest
      core$_main.doInvoke
      1. claratest.core$run.invokeStatic(core.clj:13)
      2. claratest.core$run.invoke(core.clj:10)
      3. claratest.core$_main.invokeStatic(core.clj:19)
      4. claratest.core$_main.doInvoke(core.clj:15)
      4 frames
    7. Clojure
      Var.invoke
      1. clojure.lang.RestFn.invoke(RestFn.java:397)
      2. clojure.lang.Var.invoke(Var.java:375)
      2 frames
    8. Unknown
      user$eval5.invoke
      1. user$eval5.invokeStatic(form-init5370267113791774844.clj:1)
      2. user$eval5.invoke(form-init5370267113791774844.clj:1)
      2 frames
    9. Clojure
      main.main
      1. clojure.lang.Compiler.eval(Compiler.java:6927)
      2. clojure.lang.Compiler.eval(Compiler.java:6917)
      3. clojure.lang.Compiler.load(Compiler.java:7379)
      4. clojure.lang.Compiler.loadFile(Compiler.java:7317)
      5. clojure.main$load_script.invokeStatic(main.clj:275)
      6. clojure.main$init_opt.invokeStatic(main.clj:277)
      7. clojure.main$init_opt.invoke(main.clj:277)
      8. clojure.main$initialize.invokeStatic(main.clj:308)
      9. clojure.main$null_opt.invokeStatic(main.clj:342)
      10. clojure.main$null_opt.invoke(main.clj:339)
      11. clojure.main$main.invokeStatic(main.clj:421)
      12. clojure.main$main.doInvoke(main.clj:384)
      13. clojure.lang.RestFn.invoke(RestFn.java:421)
      14. clojure.lang.Var.invoke(Var.java:383)
      15. clojure.lang.AFn.applyToHelper(AFn.java:156)
      16. clojure.lang.Var.applyTo(Var.java:700)
      17. clojure.main.main(main.java:37)
      17 frames