Abimaran Kugathasan
Abimaran Kugathasan

Reputation: 32478

EOF exception while reading clojure file

When I run the web application in the ring jetty server, I got EOF exception, I can't fix this, since there is no clue on which line the error has occurred. I'm using compojure and hiccup on my clojure code. I'm using Emacs 23 as editor.

Here is the part of the exception :

Exception in thread "main" java.lang.Exception: EOF while reading (core.clj:66)
        at clojure.lang.Compiler.load(Compiler.java:5863)
        at clojure.lang.RT.loadResourceScript(RT.java:340)
        at clojure.lang.RT.loadResourceScript(RT.java:331)
.................
............
.........
.....

How can I fix it? Thanks!

Upvotes: 13

Views: 7870

Answers (1)

sanityinc
sanityinc

Reputation: 15232

I guess you've got mismatched parentheses, brackets or braces. In Emacs, try M-x show-paren-mode, then put your cursor on various parentheses in the file (starting with the first) to figure out which ones are unmatched.

Upvotes: 20

Related Questions