“lein ring uberwar” throws NPE in asset-minifierleiningen install lein-noir failedlein ritz setup errorlein ring uberwar NullPointerExceptionHeroku Deployment Error w/ Compojure: “Could not locate leiningen/core/classpath__init.class”Lein ring uberjarlein ring uberwar command NoClassDefFoundErrorSchema causing uberimage build failure“lein ring uberwar” just hanging thereInconsistent behaviour between lein run and REPLHow to add META-INF/context.xml in lein-ring uberwar
Writing "hahaha" versus describing the laugh
Why is the Eisenstein ideal paper so great?
Did Game of Thrones end the way that George RR Martin intended?
Can a UK national work as a paid shop assistant in the USA?
Visual Block Mode edit with sequential number
Are there any German nonsense poems (Jabberwocky)?
What is the purpose of the yellow wired panels on the IBM 360 Model 20?
Is it safe to redirect stdout and stderr to the same file without file descriptor copies?
Can attacking players use activated abilities after blockers have been declared?
Count all vowels in string
Can diplomats be allowed on the flight deck of a commercial European airline?
Determine direction of mass transfer
Is superuser the same as root?
"Official wife" or "Formal wife"?
How can I get a refund from a seller who only accepts Zelle?
Are cells guaranteed to get at least one mitochondrion when they divide?
Why is unzipped directory exactly 4.0K (much smaller than zipped file)?
Comparison of bool data types in C++
resolution bandwidth
How would a developer who mostly fixed bugs for years at a company call out their contributions in their CV?
ifconfig shows UP while ip link shows DOWN
Why isn't Tyrion mentioned in 'A song of Ice and Fire'?
Why is this integration method not valid?
Storing voxels for a voxel Engine in C++
“lein ring uberwar” throws NPE in asset-minifier
leiningen install lein-noir failedlein ritz setup errorlein ring uberwar NullPointerExceptionHeroku Deployment Error w/ Compojure: “Could not locate leiningen/core/classpath__init.class”Lein ring uberjarlein ring uberwar command NoClassDefFoundErrorSchema causing uberimage build failure“lein ring uberwar” just hanging thereInconsistent behaviour between lein run and REPLHow to add META-INF/context.xml in lein-ring uberwar
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I created a new Reagent project with lein new reagent
, and then added a bunch of code to it, and it all works fine locally. Then I tried to package it up with lein ring uberwar
for deployment, and that command throws a NullPointerException.
I updated all the libraries in my project.clj to their latest versions.
The issue looks very much like this, but yogthos says it's not an issue with that library, and I can confirm that a new Reagent project (plus [lein-ring "0.12.5"]
) generates an uberwar just fine.
I haven't touched any of the asset-minimizer (or uberwar) parts of the default project.clj file:
:minify-assets
:assets
"resources/public/css/site.min.css" "resources/public/css/site.css"
(where this site.css is an empty file)
and in :profiles
:
:uberjar :hooks [minify-assets.plugin/hooks]
:source-paths ["env/prod/clj"]
:prep-tasks ["compile" ["cljsbuild" "once" "min"]]
:env :production true
:aot :all
:omit-source true})
When I run the uberwar command, I see:
$ lein ring uberwar
minifying assets...
java.lang.NullPointerException: null
at leiningen.minify_assets$normalize_path.invokeStatic (minify_assets.clj:78)
leiningen.minify_assets$normalize_path.invoke (minify_assets.clj:74)
leiningen.minify_assets$normalize_assets$iter__11627__11631$fn__11632.invoke (minify_assets.clj:83)
clojure.lang.LazySeq.sval (LazySeq.java:40)
clojure.lang.LazySeq.seq (LazySeq.java:49)
clojure.lang.RT.seq (RT.java:521)
clojure.core$seq__4357.invokeStatic (core.clj:137)
clojure.core/seq (core.clj:137)
clojure.spec.alpha$every_impl$reify__2751.conform_STAR_ (alpha.clj:1244)
clojure.spec.alpha$valid_QMARK_.invokeStatic (alpha.clj:756)
clojure.spec.alpha$valid_QMARK_.invoke (alpha.clj:752)
asset_minifier.spec$is_valid_config.invokeStatic (spec.clj:17)
asset_minifier.spec$is_valid_config.invoke (spec.clj:16)
asset_minifier.core$minify.invokeStatic (core.clj:214)
asset_minifier.core$minify.invoke (core.clj:208)
leiningen.minify_assets$minify.invokeStatic (minify_assets.clj:18)
leiningen.minify_assets$minify.invoke (minify_assets.clj:16)
leiningen.minify_assets$run_assets_minify.invokeStatic (minify_assets.clj:95)
leiningen.minify_assets$run_assets_minify.invoke (minify_assets.clj:94)
leiningen.minify_assets$minify_assets.invokeStatic (minify_assets.clj:103)
leiningen.minify_assets$minify_assets.doInvoke (minify_assets.clj:97)
clojure.lang.RestFn.invoke (RestFn.java:410)
minify_assets.plugin$add_minify_assets_hook.invokeStatic (plugin.clj:8)
minify_assets.plugin$add_minify_assets_hook.doInvoke (plugin.clj:6)
(and then dozens more lines of generic-looking Clojure call stack that don't mention asset-minifier)
How would I go about tracking down what is causing this NPE?
clojure nullpointerexception leiningen ring reagent
add a comment |
I created a new Reagent project with lein new reagent
, and then added a bunch of code to it, and it all works fine locally. Then I tried to package it up with lein ring uberwar
for deployment, and that command throws a NullPointerException.
I updated all the libraries in my project.clj to their latest versions.
The issue looks very much like this, but yogthos says it's not an issue with that library, and I can confirm that a new Reagent project (plus [lein-ring "0.12.5"]
) generates an uberwar just fine.
I haven't touched any of the asset-minimizer (or uberwar) parts of the default project.clj file:
:minify-assets
:assets
"resources/public/css/site.min.css" "resources/public/css/site.css"
(where this site.css is an empty file)
and in :profiles
:
:uberjar :hooks [minify-assets.plugin/hooks]
:source-paths ["env/prod/clj"]
:prep-tasks ["compile" ["cljsbuild" "once" "min"]]
:env :production true
:aot :all
:omit-source true})
When I run the uberwar command, I see:
$ lein ring uberwar
minifying assets...
java.lang.NullPointerException: null
at leiningen.minify_assets$normalize_path.invokeStatic (minify_assets.clj:78)
leiningen.minify_assets$normalize_path.invoke (minify_assets.clj:74)
leiningen.minify_assets$normalize_assets$iter__11627__11631$fn__11632.invoke (minify_assets.clj:83)
clojure.lang.LazySeq.sval (LazySeq.java:40)
clojure.lang.LazySeq.seq (LazySeq.java:49)
clojure.lang.RT.seq (RT.java:521)
clojure.core$seq__4357.invokeStatic (core.clj:137)
clojure.core/seq (core.clj:137)
clojure.spec.alpha$every_impl$reify__2751.conform_STAR_ (alpha.clj:1244)
clojure.spec.alpha$valid_QMARK_.invokeStatic (alpha.clj:756)
clojure.spec.alpha$valid_QMARK_.invoke (alpha.clj:752)
asset_minifier.spec$is_valid_config.invokeStatic (spec.clj:17)
asset_minifier.spec$is_valid_config.invoke (spec.clj:16)
asset_minifier.core$minify.invokeStatic (core.clj:214)
asset_minifier.core$minify.invoke (core.clj:208)
leiningen.minify_assets$minify.invokeStatic (minify_assets.clj:18)
leiningen.minify_assets$minify.invoke (minify_assets.clj:16)
leiningen.minify_assets$run_assets_minify.invokeStatic (minify_assets.clj:95)
leiningen.minify_assets$run_assets_minify.invoke (minify_assets.clj:94)
leiningen.minify_assets$minify_assets.invokeStatic (minify_assets.clj:103)
leiningen.minify_assets$minify_assets.doInvoke (minify_assets.clj:97)
clojure.lang.RestFn.invoke (RestFn.java:410)
minify_assets.plugin$add_minify_assets_hook.invokeStatic (plugin.clj:8)
minify_assets.plugin$add_minify_assets_hook.doInvoke (plugin.clj:6)
(and then dozens more lines of generic-looking Clojure call stack that don't mention asset-minifier)
How would I go about tracking down what is causing this NPE?
clojure nullpointerexception leiningen ring reagent
add a comment |
I created a new Reagent project with lein new reagent
, and then added a bunch of code to it, and it all works fine locally. Then I tried to package it up with lein ring uberwar
for deployment, and that command throws a NullPointerException.
I updated all the libraries in my project.clj to their latest versions.
The issue looks very much like this, but yogthos says it's not an issue with that library, and I can confirm that a new Reagent project (plus [lein-ring "0.12.5"]
) generates an uberwar just fine.
I haven't touched any of the asset-minimizer (or uberwar) parts of the default project.clj file:
:minify-assets
:assets
"resources/public/css/site.min.css" "resources/public/css/site.css"
(where this site.css is an empty file)
and in :profiles
:
:uberjar :hooks [minify-assets.plugin/hooks]
:source-paths ["env/prod/clj"]
:prep-tasks ["compile" ["cljsbuild" "once" "min"]]
:env :production true
:aot :all
:omit-source true})
When I run the uberwar command, I see:
$ lein ring uberwar
minifying assets...
java.lang.NullPointerException: null
at leiningen.minify_assets$normalize_path.invokeStatic (minify_assets.clj:78)
leiningen.minify_assets$normalize_path.invoke (minify_assets.clj:74)
leiningen.minify_assets$normalize_assets$iter__11627__11631$fn__11632.invoke (minify_assets.clj:83)
clojure.lang.LazySeq.sval (LazySeq.java:40)
clojure.lang.LazySeq.seq (LazySeq.java:49)
clojure.lang.RT.seq (RT.java:521)
clojure.core$seq__4357.invokeStatic (core.clj:137)
clojure.core/seq (core.clj:137)
clojure.spec.alpha$every_impl$reify__2751.conform_STAR_ (alpha.clj:1244)
clojure.spec.alpha$valid_QMARK_.invokeStatic (alpha.clj:756)
clojure.spec.alpha$valid_QMARK_.invoke (alpha.clj:752)
asset_minifier.spec$is_valid_config.invokeStatic (spec.clj:17)
asset_minifier.spec$is_valid_config.invoke (spec.clj:16)
asset_minifier.core$minify.invokeStatic (core.clj:214)
asset_minifier.core$minify.invoke (core.clj:208)
leiningen.minify_assets$minify.invokeStatic (minify_assets.clj:18)
leiningen.minify_assets$minify.invoke (minify_assets.clj:16)
leiningen.minify_assets$run_assets_minify.invokeStatic (minify_assets.clj:95)
leiningen.minify_assets$run_assets_minify.invoke (minify_assets.clj:94)
leiningen.minify_assets$minify_assets.invokeStatic (minify_assets.clj:103)
leiningen.minify_assets$minify_assets.doInvoke (minify_assets.clj:97)
clojure.lang.RestFn.invoke (RestFn.java:410)
minify_assets.plugin$add_minify_assets_hook.invokeStatic (plugin.clj:8)
minify_assets.plugin$add_minify_assets_hook.doInvoke (plugin.clj:6)
(and then dozens more lines of generic-looking Clojure call stack that don't mention asset-minifier)
How would I go about tracking down what is causing this NPE?
clojure nullpointerexception leiningen ring reagent
I created a new Reagent project with lein new reagent
, and then added a bunch of code to it, and it all works fine locally. Then I tried to package it up with lein ring uberwar
for deployment, and that command throws a NullPointerException.
I updated all the libraries in my project.clj to their latest versions.
The issue looks very much like this, but yogthos says it's not an issue with that library, and I can confirm that a new Reagent project (plus [lein-ring "0.12.5"]
) generates an uberwar just fine.
I haven't touched any of the asset-minimizer (or uberwar) parts of the default project.clj file:
:minify-assets
:assets
"resources/public/css/site.min.css" "resources/public/css/site.css"
(where this site.css is an empty file)
and in :profiles
:
:uberjar :hooks [minify-assets.plugin/hooks]
:source-paths ["env/prod/clj"]
:prep-tasks ["compile" ["cljsbuild" "once" "min"]]
:env :production true
:aot :all
:omit-source true})
When I run the uberwar command, I see:
$ lein ring uberwar
minifying assets...
java.lang.NullPointerException: null
at leiningen.minify_assets$normalize_path.invokeStatic (minify_assets.clj:78)
leiningen.minify_assets$normalize_path.invoke (minify_assets.clj:74)
leiningen.minify_assets$normalize_assets$iter__11627__11631$fn__11632.invoke (minify_assets.clj:83)
clojure.lang.LazySeq.sval (LazySeq.java:40)
clojure.lang.LazySeq.seq (LazySeq.java:49)
clojure.lang.RT.seq (RT.java:521)
clojure.core$seq__4357.invokeStatic (core.clj:137)
clojure.core/seq (core.clj:137)
clojure.spec.alpha$every_impl$reify__2751.conform_STAR_ (alpha.clj:1244)
clojure.spec.alpha$valid_QMARK_.invokeStatic (alpha.clj:756)
clojure.spec.alpha$valid_QMARK_.invoke (alpha.clj:752)
asset_minifier.spec$is_valid_config.invokeStatic (spec.clj:17)
asset_minifier.spec$is_valid_config.invoke (spec.clj:16)
asset_minifier.core$minify.invokeStatic (core.clj:214)
asset_minifier.core$minify.invoke (core.clj:208)
leiningen.minify_assets$minify.invokeStatic (minify_assets.clj:18)
leiningen.minify_assets$minify.invoke (minify_assets.clj:16)
leiningen.minify_assets$run_assets_minify.invokeStatic (minify_assets.clj:95)
leiningen.minify_assets$run_assets_minify.invoke (minify_assets.clj:94)
leiningen.minify_assets$minify_assets.invokeStatic (minify_assets.clj:103)
leiningen.minify_assets$minify_assets.doInvoke (minify_assets.clj:97)
clojure.lang.RestFn.invoke (RestFn.java:410)
minify_assets.plugin$add_minify_assets_hook.invokeStatic (plugin.clj:8)
minify_assets.plugin$add_minify_assets_hook.doInvoke (plugin.clj:6)
(and then dozens more lines of generic-looking Clojure call stack that don't mention asset-minifier)
How would I go about tracking down what is causing this NPE?
clojure nullpointerexception leiningen ring reagent
clojure nullpointerexception leiningen ring reagent
asked Mar 23 at 22:05
LeinerLeiner
132
132
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The NPE is thrown because path of the assets, which is specified in :minify-assets ,can not be parsed correctly. (see this).
IMO, :minify-assets is not defined correctly. Due to the Readme the :minify-assets should look like this:
:minify-assets [[:html :source "dev/resource/html" :target "dev/minified/html"]
[:css :source "dev/resources/css" :target "dev/minified/css/styles.min.css"]
[:js :source ["dev/res/js1", "dev/res/js2"] :target "dev/minified/js/script.min.js"]]
Great catch! I've filed a bug to fix the syntax of this template.
– Leiner
Mar 24 at 19:54
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55318823%2flein-ring-uberwar-throws-npe-in-asset-minifier%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The NPE is thrown because path of the assets, which is specified in :minify-assets ,can not be parsed correctly. (see this).
IMO, :minify-assets is not defined correctly. Due to the Readme the :minify-assets should look like this:
:minify-assets [[:html :source "dev/resource/html" :target "dev/minified/html"]
[:css :source "dev/resources/css" :target "dev/minified/css/styles.min.css"]
[:js :source ["dev/res/js1", "dev/res/js2"] :target "dev/minified/js/script.min.js"]]
Great catch! I've filed a bug to fix the syntax of this template.
– Leiner
Mar 24 at 19:54
add a comment |
The NPE is thrown because path of the assets, which is specified in :minify-assets ,can not be parsed correctly. (see this).
IMO, :minify-assets is not defined correctly. Due to the Readme the :minify-assets should look like this:
:minify-assets [[:html :source "dev/resource/html" :target "dev/minified/html"]
[:css :source "dev/resources/css" :target "dev/minified/css/styles.min.css"]
[:js :source ["dev/res/js1", "dev/res/js2"] :target "dev/minified/js/script.min.js"]]
Great catch! I've filed a bug to fix the syntax of this template.
– Leiner
Mar 24 at 19:54
add a comment |
The NPE is thrown because path of the assets, which is specified in :minify-assets ,can not be parsed correctly. (see this).
IMO, :minify-assets is not defined correctly. Due to the Readme the :minify-assets should look like this:
:minify-assets [[:html :source "dev/resource/html" :target "dev/minified/html"]
[:css :source "dev/resources/css" :target "dev/minified/css/styles.min.css"]
[:js :source ["dev/res/js1", "dev/res/js2"] :target "dev/minified/js/script.min.js"]]
The NPE is thrown because path of the assets, which is specified in :minify-assets ,can not be parsed correctly. (see this).
IMO, :minify-assets is not defined correctly. Due to the Readme the :minify-assets should look like this:
:minify-assets [[:html :source "dev/resource/html" :target "dev/minified/html"]
[:css :source "dev/resources/css" :target "dev/minified/css/styles.min.css"]
[:js :source ["dev/res/js1", "dev/res/js2"] :target "dev/minified/js/script.min.js"]]
answered Mar 24 at 17:49
Minh Tuan NguyenMinh Tuan Nguyen
785613
785613
Great catch! I've filed a bug to fix the syntax of this template.
– Leiner
Mar 24 at 19:54
add a comment |
Great catch! I've filed a bug to fix the syntax of this template.
– Leiner
Mar 24 at 19:54
Great catch! I've filed a bug to fix the syntax of this template.
– Leiner
Mar 24 at 19:54
Great catch! I've filed a bug to fix the syntax of this template.
– Leiner
Mar 24 at 19:54
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55318823%2flein-ring-uberwar-throws-npe-in-asset-minifier%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown