Error - Clojure

2013-10-21 Thread ingy abbas
Exception in thread main java.lang.IllegalArgumentException: No value 
supplied for key: 1.7.1 (project.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5441)
at clojure.lang.Compiler.load(Compiler.java:5858)
at clojure.lang.Compiler.loadFile(Compiler.java:5821)
at clojure.lang.RT$3.invoke(RT.java:296)
at leiningen.core$read_project$fn__2128.invoke(core.clj:127)
at leiningen.core$read_project.invoke(core.clj:126)
at leiningen.core$read_project.invoke(core.clj:130)
at leiningen.core$_main.doInvoke(core.clj:320)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:542)
at leiningen.core$_main.invoke(core.clj:332)
at user$eval42.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5425)
at clojure.lang.Compiler.eval(Compiler.java:5392)
at clojure.core$eval.invoke(core.clj:2382)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$script_opt.invoke(main.clj:270)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:457)
at clojure.lang.Var.invoke(Var.java:377)
at clojure.lang.AFn.applyToHelper(AFn.java:172)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
Caused by: java.lang.IllegalArgumentException: No value supplied for key: 
1.7.1
at 
clojure.lang.PersistentHashMap.createWithCheck(PersistentHashMap.java:89)
at clojure.core$hash_map.doInvoke(core.clj:327)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:540)
at leiningen.core$eval44.invoke(project.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5425)
... 25 more


Above is Error i get while running  lein run  please i need help 

-- 
-- 
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 that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


project.clj
Description: Binary data


Re: Error - Clojure

2013-10-21 Thread Ben Mabey

On 10/21/13 4:57 PM, ingy abbas wrote:
Exception in thread main java.lang.IllegalArgumentException: No 
value supplied for key: 1.7.1 (project.clj:1)

at clojure.lang.Compiler.eval(Compiler.java:5441)
at clojure.lang.Compiler.load(Compiler.java:5858)
at clojure.lang.Compiler.loadFile(Compiler.java:5821)
at clojure.lang.RT$3.invoke(RT.java:296)
at leiningen.core$read_project$fn__2128.invoke(core.clj:127)
at leiningen.core$read_project.invoke(core.clj:126)
at leiningen.core$read_project.invoke(core.clj:130)
at leiningen.core$_main.doInvoke(core.clj:320)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:542)
at leiningen.core$_main.invoke(core.clj:332)
at user$eval42.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5425)
at clojure.lang.Compiler.eval(Compiler.java:5392)
at clojure.core$eval.invoke(core.clj:2382)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$script_opt.invoke(main.clj:270)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:457)
at clojure.lang.Var.invoke(Var.java:377)
at clojure.lang.AFn.applyToHelper(AFn.java:172)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
Caused by: java.lang.IllegalArgumentException: No value supplied for 
key: 1.7.1
at 
clojure.lang.PersistentHashMap.createWithCheck(PersistentHashMap.java:89)

at clojure.core$hash_map.doInvoke(core.clj:327)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:540)
at leiningen.core$eval44.invoke(project.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5425)
... 25 more


Above is Error i get while running  lein run  please i need help



Looks like you have an invalid project.clj file.  You'll need to post 
that if you want any further help diagnosing it.  Otherwise create a new 
lein project (with `lein new foo-bar`) and try to see what is wrong with 
your current project.clj.


-Ben

--
--
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 that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups Clojure group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Error - Clojure

2013-10-21 Thread Bruce Adams
Your project.clj file contains



(defn -main
  ([] (-main ))
  ([port] (run-jetty app {:port (Integer. port)})))



near the end of the defproject form. That's not right.



I'm not quite sure what question to ask here. The (defn -main ...)
belongs in a source file, not in the project.clj.



Can you try setting up a new project, with lein new storm-starter?
Then you can put your project.clj in there, well, after removing the
(defn ...) part from project.clj.



It looks like you are starting with something from Storm. Can you
double check the documentation for what ever you started with?



On Mon, Oct 21, 2013, at 06:57 PM, ingy abbas wrote:

Exception in thread main java.lang.IllegalArgumentException: No value
supplied for key: 1.7.1 (project.clj:1)

at clojure.lang.Compiler.eval(Compiler.java:5441)

at clojure.lang.Compiler.load(Compiler.java:5858)

at clojure.lang.Compiler.loadFile(Compiler.java:5821)

at clojure.lang.RT$3.invoke(RT.java:296)

at leiningen.core$read_project$fn__2128.invoke(core.clj:127)

at leiningen.core$read_project.invoke(core.clj:126)

at leiningen.core$read_project.invoke(core.clj:130)

at leiningen.core$_main.doInvoke(core.clj:320)

at clojure.lang.RestFn.invoke(RestFn.java:410)

at clojure.lang.AFn.applyToHelper(AFn.java:161)

at clojure.lang.RestFn.applyTo(RestFn.java:132)

at clojure.core$apply.invoke(core.clj:542)

at leiningen.core$_main.invoke(core.clj:332)

at user$eval42.invoke(NO_SOURCE_FILE:1)

at clojure.lang.Compiler.eval(Compiler.java:5425)

at clojure.lang.Compiler.eval(Compiler.java:5392)

at clojure.core$eval.invoke(core.clj:2382)

at clojure.main$eval_opt.invoke(main.clj:235)

at clojure.main$initialize.invoke(main.clj:254)

at clojure.main$script_opt.invoke(main.clj:270)

at clojure.main$main.doInvoke(main.clj:354)

at clojure.lang.RestFn.invoke(RestFn.java:457)

at clojure.lang.Var.invoke(Var.java:377)

at clojure.lang.AFn.applyToHelper(AFn.java:172)

at clojure.lang.Var.applyTo(Var.java:482)

at clojure.main.main(main.java:37)

Caused by: java.lang.IllegalArgumentException: No value supplied for
key: 1.7.1

at
clojure.lang.PersistentHashMap.createWithCheck(PersistentHashMap.java:8
9)

at clojure.core$hash_map.doInvoke(core.clj:327)

at clojure.lang.RestFn.applyTo(RestFn.java:137)

at clojure.core$apply.invoke(core.clj:540)

at leiningen.core$eval44.invoke(project.clj:1)

at clojure.lang.Compiler.eval(Compiler.java:5425)

... 25 more





Above is Error i get while running  lein run  please i need help

--

--

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 that posts from new members are moderated - please be patient with
your first post.

To unsubscribe from this group, send email to

clojure+unsubscr...@googlegroups.com

For more options, visit this group at

[1]http://groups.google.com/group/clojure?hl=en

---

You received this message because you are subscribed to the Google
Groups Clojure group.

To unsubscribe from this group and stop receiving emails from it, send
an email to clojure+unsubscr...@googlegroups.com.

For more options, visit [2]https://groups.google.com/groups/opt_out.



  Email had 1 attachment:
  * project.clj
  *   1k (application/octet-stream)

References

1. http://groups.google.com/group/clojure?hl=en
2. https://groups.google.com/groups/opt_out

-- 
-- 
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 that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.