Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 402
Abimaran Kugathasan Avatar asked Jul 17 '11 06:07

Abimaran Kugathasan


1 Answers

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.

like image 175
sanityinc Avatar answered Oct 23 '22 19:10

sanityinc