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)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web28993

  • 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)
  • via GitHub by lprefontaine
    , 7 months ago
    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.
  • "Unparsable namespace form:" [], compiling:(/private/var/folders/p2/_mbs7hfj0fs6q74xqxlp4ykm0000gp/T/form-init6939121690210612328.clj:1:125)
  • Stack trace

    • 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) at clojure.lang.Compiler.load(Compiler.java:7391) at clojure.lang.Compiler.loadFile(Compiler.java:7317) at clojure.main$load_script.invokeStatic(main.clj:275) at clojure.main$init_opt.invokeStatic(main.clj:277) at clojure.main$init_opt.invoke(main.clj:277) at clojure.main$initialize.invokeStatic(main.clj:308) at clojure.main$null_opt.invokeStatic(main.clj:342) at clojure.main$null_opt.invoke(main.clj:339) at clojure.main$main.invokeStatic(main.clj:421) at clojure.main$main.doInvoke(main.clj:384) at clojure.lang.RestFn.invoke(RestFn.java:421) at clojure.lang.Var.invoke(Var.java:383) at clojure.lang.AFn.applyToHelper(AFn.java:156) at clojure.lang.Var.applyTo(Var.java:700) at clojure.main.main(main.java:37) Caused by: 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(platform.cljc:5) at clara.rules.platform$throw_error.invoke(platform.cljc:5) at clara.rules.engine.LocalSession.query(engine.cljc:1174) at clara.rules$query.invokeStatic(rules.cljc:48) at clara.rules$query.doInvoke(rules.cljc:38) at clojure.lang.RestFn.invoke(RestFn.java:425) at claratest.core$run.invokeStatic(core.clj:13) at claratest.core$run.invoke(core.clj:10) at claratest.core$_main.invokeStatic(core.clj:19) at claratest.core$_main.doInvoke(core.clj:15) at clojure.lang.RestFn.invoke(RestFn.java:397) at clojure.lang.Var.invoke(Var.java:375) at user$eval5.invokeStatic(form-init5370267113791774844.clj:1) at user$eval5.invoke(form-init5370267113791774844.clj:1) at clojure.lang.Compiler.eval(Compiler.java:6927) at clojure.lang.Compiler.eval(Compiler.java:6917) at clojure.lang.Compiler.load(Compiler.java:7379) ... 14 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.