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 | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    GitHub | 6 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

    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.

    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