I get an error that the ConcurrentArrayQueue class of jetty-util cannot be found. An earlier ClassNotFoundException about org.eclipse.jetty.http.BadMessageException I could fix by adding:
[org.eclipse.jetty/jetty-http "9.4.17.v20190418"]
to dev profiles.clj. But adding the dependency for this missing class from jetty-util to dev profiles.clj:
[org.eclipse.jetty/jetty-util "9.4.17.v20190418"]
does not help.
Output of lein fig and lein deps :tree:
$ lein fig
[Figwheel] Validating figwheel-main.edn
[Figwheel] figwheel-main.edn is valid \(ツ)/
Warning: environ value 30 for key :retention-days has been cast to string
Warning: environ value true for key :is-dev has been cast to string
Warning: environ value 587 for key :smtp-port has been cast to string
Warning: environ value 240000000 for key :max-upload-size has been cast to string
Warning: environ value 600 for key :auth-token-expiry-seconds has been cast to string
Warning: environ value 3600 for key :refresh-token-expiry-seconds has been cast to string
WARNING: bytes? already refers to: #'clojure.core/bytes? in namespace: buddy.core.bytes, being replaced by: #'buddy.core.bytes/bytes?
WARNING: update already refers to: #'clojure.core/update in namespace: app.db.access.util, being replaced by: #'honeysql.helpers/update
WARNING: update already refers to: #'clojure.core/update in namespace: app.db.access.mailqueue, being replaced by: #'honeysql.helpers/update
WARNING: format already refers to: #'clojure.core/format in namespace: app.db.access.candidates, being replaced by: #'honeysql.core/format
WARNING: update already refers to: #'clojure.core/update in namespace: app.db.access.candidates, being replaced by: #'honeysql.helpers/update
WARNING: update already refers to: #'clojure.core/update in namespace: app.db.access.elasticsearch, being replaced by: #'honeysql.helpers/update
WARNING: update already refers to: #'clojure.core/update in namespace: app.db.access.mailtemplates, being replaced by: #'honeysql.helpers/update
WARNING: update already refers to: #'clojure.core/update in namespace: app.db.access.departments, being replaced by: #'honeysql.helpers/update
WARNING: update already refers to: #'clojure.core/update in namespace: app.db.access.preselection-questions, being replaced by: #'honeysql.helpers/update
WARNING: update already refers to: #'clojure.core/update in namespace: app.db.access.free-questions, being replaced by: #'honeysql.helpers/update
WARNING: update already refers to: #'clojure.core/update in namespace: app.db.access.jobs, being replaced by: #'honeysql.helpers/update
WARNING: update already refers to: #'clojure.core/update in namespace: app.db.access.tags, being replaced by: #'honeysql.helpers/update
WARNING: format already refers to: #'clojure.core/format in namespace: app.services.jobsite, being replaced by: #'clojurewerkz.money.format/format
WARNING: format already refers to: #'clojure.core/format in namespace: app.cron.jobs.monthly-usage-report, being replaced by: #'clojurewerkz.money.format/format
WARNING: update already refers to: #'clojure.core/update in namespace: app.db.access.sources, being replaced by: #'honeysql.helpers/update
WARNING: update already refers to: #'clojure.core/update in namespace: app.db.access.reports, being replaced by: #'honeysql.helpers/update
WARNING: format already refers to: #'clojure.core/format in namespace: app.services.legal, being replaced by: #'clojurewerkz.money.format/format
11:29:40.594 DEBUG [main] app.handler - Development mode? true
[Figwheel:WARNING] Attempting to dynamically add "target" to classpath!
[Figwheel:WARNING] Target directory "target" is not on the classpath
[Figwheel:WARNING] Please fix this by adding "target" to your classpath
I.E.
For Clojure CLI Tools in your deps.edn file:
ensure "target" is in your :paths key
For Leiningen in your project.clj:
add it to the :resource-paths key
[Figwheel] Compiling build figwheel-default-repl-build to "target/public/cljs-out/figwheel-default-repl-build-main.js"
[Figwheel] Successfully compiled build figwheel-default-repl-build to "target/public/cljs-out/figwheel-default-repl-build-main.js" in 2.5 seconds.
[Figwheel] Watching paths: ("src/cljs") to compile build - figwheel-default-repl-build
[Figwheel:FINE] Build Inputs: ["src/cljs"]
[Figwheel] Starting Server at http://spar.app.local:3449
[Figwheel] Starting REPL
[Figwheel] Redirecting log ouput to file: figwheel-main.log
Prompt will show when REPL connects to evaluation environment (i.e. a REPL hosting webpage)
Figwheel Main Controls:
(figwheel.main/stop-builds id ...) ;; stops Figwheel autobuilder for ids
(figwheel.main/start-builds id ...) ;; starts autobuilder focused on ids
(figwheel.main/reset) ;; stops, cleans, reloads config, and starts autobuilder
(figwheel.main/build-once id ...) ;; builds source one time
(figwheel.main/clean id ...) ;; deletes compiled cljs target files
(figwheel.main/status) ;; displays current state of system
Figwheel REPL Controls:
(figwheel.repl/conns) ;; displays the current connections
(figwheel.repl/focus session-name) ;; choose which session name to focus on
In the cljs.user ns, controls can be called without ns ie. (conns) instead of (figwheel.repl/conns)
Docs: (doc function-name-here)
Exit: :cljs/quit
Results: Stored in vars *1, *2, *3, *e holds last exception object
[Rebel readline] Type :repl/help for online help info
Exception in thread "main" Syntax error compiling at (/private/var/folders/r1/p666jp017bqb9lvbjw86zjj40000gn/T/form-init9554757837994838.clj:1:122).
at clojure.lang.Compiler.load(Compiler.java:7647)
at clojure.lang.Compiler.loadFile(Compiler.java:7573)
at clojure.main$load_script.invokeStatic(main.clj:452)
at clojure.main$init_opt.invokeStatic(main.clj:454)
at clojure.main$init_opt.invoke(main.clj:454)
at clojure.main$initialize.invokeStatic(main.clj:485)
at clojure.main$null_opt.invokeStatic(main.clj:519)
at clojure.main$null_opt.invoke(main.clj:516)
at clojure.main$main.invokeStatic(main.clj:598)
at clojure.main$main.doInvoke(main.clj:561)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.Var.applyTo(Var.java:705)
at clojure.main.main(main.java:37)
Caused by: java.util.ServiceConfigurationError: org.eclipse.jetty.websocket.api.extensions.Extension: Provider org.eclipse.jetty.websocket.common.extensions.fragment.FragmentExtension could not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:232)
at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at org.eclipse.jetty.websocket.api.extensions.ExtensionFactory.<init>(ExtensionFactory.java:35)
at org.eclipse.jetty.websocket.common.extensions.WebSocketExtensionFactory.<init>(WebSocketExtensionFactory.java:36)
at org.eclipse.jetty.websocket.server.WebSocketServerFactory.<init>(WebSocketServerFactory.java:120)
at org.eclipse.jetty.websocket.server.WebSocketHandler.<init>(WebSocketHandler.java:68)
at org.eclipse.jetty.websocket.server.WebSocketHandler.<init>(WebSocketHandler.java:61)
at figwheel.server.jetty_websocket.proxy$org.eclipse.jetty.websocket.server.WebSocketHandler$ff19274a.<init>(Unknown Source)
at figwheel.server.jetty_websocket$proxy_ws_handler.invokeStatic(jetty_websocket.clj:61)
at figwheel.server.jetty_websocket$proxy_ws_handler.invoke(jetty_websocket.clj:61)
at figwheel.server.jetty_websocket$async_websocket_configurator$fn__3488$fn__3490.invoke(jetty_websocket.clj:103)
at clojure.core$map$fn__5851.invoke(core.clj:2755)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:51)
at clojure.lang.RT.seq(RT.java:531)
at clojure.core$seq__5387.invokeStatic(core.clj:137)
at clojure.core$concat$fn__5478.invoke(core.clj:725)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:51)
at clojure.lang.RT.seq(RT.java:531)
at clojure.core$seq__5387.invokeStatic(core.clj:137)
at clojure.core$concat$cat__5480$fn__5481.invoke(core.clj:734)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:51)
at clojure.lang.RT.seq(RT.java:531)
at clojure.core$seq__5387.invokeStatic(core.clj:137)
at clojure.core$into_array.invokeStatic(core.clj:3443)
at clojure.core$into_array.invoke(core.clj:3443)
at figwheel.server.jetty_websocket$async_websocket_configurator$fn__3488.invoke(jetty_websocket.clj:117)
at figwheel.server.jetty_websocket$run_jetty$fn__3509.invoke(jetty_websocket.clj:132)
at ring.adapter.jetty$run_jetty.invokeStatic(jetty.clj:169)
at ring.adapter.jetty$run_jetty.invoke(jetty.clj:127)
at figwheel.server.jetty_websocket$run_jetty.invokeStatic(jetty_websocket.clj:126)
at figwheel.server.jetty_websocket$run_jetty.invoke(jetty_websocket.clj:125)
at figwheel.server.jetty_websocket$run_server.invokeStatic(jetty_websocket.clj:179)
at figwheel.server.jetty_websocket$run_server.invoke(jetty_websocket.clj:178)
at figwheel.repl$run_default_server_STAR_.invokeStatic(repl.cljc:1098)
at figwheel.repl$run_default_server_STAR_.invoke(repl.cljc:1091)
at figwheel.repl$run_default_server.invokeStatic(repl.cljc:1133)
at figwheel.repl$run_default_server.invoke(repl.cljc:1132)
at figwheel.repl$setup.invokeStatic(repl.cljc:1202)
at figwheel.repl$setup.invoke(repl.cljc:1197)
at figwheel.repl.FigwheelReplEnv._setup(repl.cljc:1304)
at cljs.repl$repl_STAR_$fn__6906.invoke(repl.cljc:1121)
at cljs.compiler$with_core_cljs.invokeStatic(compiler.cljc:1417)
at cljs.compiler$with_core_cljs.invoke(compiler.cljc:1406)
at cljs.repl$repl_STAR_.invokeStatic(repl.cljc:1119)
at cljs.repl$repl_STAR_.invoke(repl.cljc:1031)
at rebel_readline.cljs.repl$eval51284$repl_STAR___51285.invoke(repl.clj:77)
at clojure.lang.Var.invoke(Var.java:388)
at figwheel.main$repl.invokeStatic(main.cljc:1592)
at figwheel.main$repl.invoke(main.cljc:1549)
at figwheel.main$repl_action.invokeStatic(main.cljc:1604)
at figwheel.main$repl_action.invoke(main.cljc:1599)
at figwheel.main$default_compile.invokeStatic(main.cljc:1884)
at figwheel.main$default_compile.invoke(main.cljc:1839)
at figwheel.main$repl_main_opt.invokeStatic(main.cljc:585)
at figwheel.main$repl_main_opt.invoke(main.cljc:576)
at cljs.cli$main.invokeStatic(cli.clj:651)
at cljs.cli$main.doInvoke(cli.clj:640)
at clojure.lang.RestFn.applyTo(RestFn.java:139)
at clojure.core$apply.invokeStatic(core.clj:667)
at clojure.core$apply.invoke(core.clj:660)
at cljs.main$_main.invokeStatic(main.clj:61)
at cljs.main$_main.doInvoke(main.clj:52)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:665)
at clojure.core$apply.invoke(core.clj:660)
at figwheel.main$_main$fn__8201.invoke(main.cljc:2197)
at clojure.core$with_redefs_fn.invokeStatic(core.clj:7514)
at clojure.core$with_redefs_fn.invoke(core.clj:7498)
at figwheel.main$_main.invokeStatic(main.cljc:2195)
at figwheel.main$_main.doInvoke(main.cljc:2174)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at clojure.lang.Var.invoke(Var.java:380)
at user$eval140.invokeStatic(form-init9554757837994838.clj:1)
at user$eval140.invoke(form-init9554757837994838.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:7176)
at clojure.lang.Compiler.eval(Compiler.java:7166)
at clojure.lang.Compiler.load(Compiler.java:7635)
... 12 more
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/ConcurrentArrayQueue
at org.eclipse.jetty.websocket.common.extensions.fragment.FragmentExtension.<init>(FragmentExtension.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
... 92 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.ConcurrentArrayQueue
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 99 more
I get an error that the
ConcurrentArrayQueue
class ofjetty-util
cannot be found. An earlierClassNotFoundException
aboutorg.eclipse.jetty.http.BadMessageException
I could fix by adding:[org.eclipse.jetty/jetty-http "9.4.17.v20190418"]
to dev
profiles.clj
. But adding the dependency for this missing class fromjetty-util
to devprofiles.clj
:[org.eclipse.jetty/jetty-util "9.4.17.v20190418"]
does not help.
Output of
lein fig
andlein deps :tree
:Output of
lein deps :tree
:Any idea how to fix?