Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on lein run #1

Open
maacl opened this issue Oct 8, 2016 · 5 comments
Open

Error on lein run #1

maacl opened this issue Oct 8, 2016 · 5 comments

Comments

@maacl
Copy link

maacl commented Oct 8, 2016

On lein run I get:

Exception in thread "main" java.lang.IllegalArgumentException: Cannot open <nil> as an InputStream., compiling:(/tmp/form-init6108651101597402474.clj:1:73)
    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: Cannot open <nil> as an InputStream.
    at clojure.java.io$fn__9498.invokeStatic(io.clj:167)
    at clojure.java.io$fn__9498.invoke(io.clj:167)
    at clojure.java.io$fn__9433$G__9426__9440.invoke(io.clj:69)
    at clojure.java.io$input_stream.invokeStatic(io.clj:136)
    at clojure.java.io$input_stream.doInvoke(io.clj:121)
    at clojure.lang.RestFn.invoke(RestFn.java:410)
    at immutant_keycloak.core$wrap_security.invokeStatic(core.clj:41)
    at immutant_keycloak.core$wrap_security.invoke(core.clj:39)
    at immutant_keycloak.core$_main.invokeStatic(core.clj:90)
    at immutant_keycloak.core$_main.invoke(core.clj:89)
    at clojure.lang.Var.invoke(Var.java:375)
    at user$eval5.invokeStatic(form-init6108651101597402474.clj:1)
    at user$eval5.invoke(form-init6108651101597402474.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
@iperdomo
Copy link
Owner

@maacl not sure how i missed the email about your issue. Did you managed to get it working?

@maacl
Copy link
Author

maacl commented Jan 20, 2017

Nope.

@iperdomo
Copy link
Owner

Do you have a running Keycloak with a client configured and the keycloak.json configuration of the client is in your resources folder? See: https://github.com/iperdomo/immutant-keycloak#usage

@maacl
Copy link
Author

maacl commented Jan 20, 2017

Not at the moment. I moved on :-) Is there a simple example somewhere? What is keycloak.json suppose to contain and how does it relate to the app (routes I suppose).

@twoe-hub
Copy link

twoe-hub commented Mar 4, 2020

An example of keycloak.json, with a very minimal content,

{
    "realm": "my-realm",
    "auth-server-url": "http://localhost:8080/auth/",
    "ssl-required": "none",
    "resource": "my-app",
    "public-client": true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants