Re: Clojure 1.10 "Illegal Reflective Access Operation"

2020-03-22 Thread Matching Socks
Alan, consider JSoup too, if you can... Enlive offers both options, and, if memory serves, JSoup seemed the more capable with HTML5. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note

Re: Clojure 1.10 "Illegal Reflective Access Operation"

2020-03-22 Thread Alan Thompson
I have included easy-to-use parsers of 3 types in the Tupelo library for 3 formats: - HTML: tupelo.parse.tagsoup - XML: tupelo.parse.xml - YAML:

Re: Clojure 1.10 "Illegal Reflective Access Operation"

2020-02-19 Thread Alex Miller
I believe this has already been discussed in this same thread, but to rehash. More info on what this warning means: https://clojure.org/guides/faq#illegal_access To diagnose the cause, you can use --illegal-access=debug to get better info about the cause. Here I assume it's in xml/parse, but

Re: Clojure 1.10 "Illegal Reflective Access Operation"

2020-02-19 Thread Vitex Software
Todays warning: (defn fix-fields "Only Fields branch" [] (:content (-> (clojure.zip/xml-zip (xml/parse "specs/RHUB_v2.8_QuickFIX.xml")) zip/down zip/right zip/right zip/right zip/right

Re: Clojure 1.10 "Illegal Reflective Access Operation"

2019-03-03 Thread Alan Thompson
After further investigation, I modified my copy of the xml parsing code to wrap either an InputStream or a Reader with an org.xml.sax.InputSource (and changed the type hint): (defn ^:private sax-parse-fn [xml-input content-handler] (let [input-source (cond (or

Re: Clojure 1.10 "Illegal Reflective Access Operation"

2019-03-02 Thread Matching Socks
Does this need adjusting in clojure.xml too? The code looks pretty similar: (defn startparse-sax [s ch] (.. SAXParserFactory (newInstance) (newSAXParser) (parse s ch))) The reflection on "parse" is convenient. There are multiple SaxParser.parse methods with unique capabilities. The String

Re: Clojure 1.10 "Illegal Reflective Access Operation"

2019-03-02 Thread Alan Thompson
I was deceived by the error message. Since I had only changed the Clojure version 1.9 => 1.10, and since the warning mentioned only Clojure code: WARNING: Illegal reflective access by clojure.lang.InjectedInvoker/0x000800231c40

Re: Clojure 1.10 "Illegal Reflective Access Operation"

2019-02-24 Thread Andy Fingerhut
I believe this FAQ entry covers what is known about this issue, which many others have also seen: https://clojure.org/guides/faq#illegal_access Andy On Sun, Feb 24, 2019 at 4:48 PM Alan Thompson wrote: > Upgrading from Clojure 1.9 to 1.10, I am getting a new warning: > > WARNING: An illegal

Clojure 1.10 "Illegal Reflective Access Operation"

2019-02-24 Thread Alan Thompson
Upgrading from Clojure 1.9 to 1.10, I am getting a new warning: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by clojure.lang.InjectedInvoker/0x000800231c40 (file:/home/alan/.m2/repository/org/clojure/clojure/1.10.0/clojure-1.10.0.jar) to