Closed kulminaator closed 5 years ago
Thanks for this report. We're using an older version of jetty (transitive dep), so this may just be a matter of upgrading.
Can confirm, on openjdk11 updating the jetty dependencies resolves this issue. It did bring up another illegal access at https://github.com/cognitect-labs/aws-api/blob/master/src/cognitect/aws/util.clj#L137, but could be unrelated.
d4d987038c80a83cd1477f937a77f23a5140e1c7 resolves the xml parse warning, but now seeing the following with jetty 9.4.18.v20190429 and java 11.0.2.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by mranderson049.orchard.v0v4v0.dynapath.v0v2v5.dynapath.defaults$eval2067$fn__2068 to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of mranderson049.orchard.v0v4v0.dynapath.v0v2v5.dynapath.defaults$eval2067$fn__2068
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
This new illegal reflective access issue is coming from cider-nrepl's dependency on mranderson and is not related to jetty, xml, or aws-api. The next release will, however, fix the issues related to jetty and xml.
Fixed in 0.8.335.
Can confirm, on openjdk11 updating the jetty dependencies resolves this issue. It did bring up another illegal access at https://github.com/cognitect-labs/aws-api/blob/master/src/cognitect/aws/util.clj#L137, but could be unrelated.
How does one "update ... jetty dependencies"?
How does one "update ... jetty dependencies"?
If you're using tools.deps, use :override-deps
(see https://clojure.org/reference/deps_and_cli#_resolve_deps). AFAIK, Leiningen and Boot each offer ways to override transitive dependencies as well.
Environment Ubuntu 18.10 box:
Steps followed : Creating a new app with leiningen
lein new app aws-api-testbed
Modifying only the dependencies in project file to contain the latest versions, after edit looks like this
Now executing with lein repl:
Just maybe the final error has some reason for the illegal reflective access ?