EOF exception while reading clojure file

When I run the web application on the ring top box server, I have an EOF exception, I can’t fix it, since there is no clue as to which line occurred. I use compojure and hiccup in my clojure code. I am using Emacs 23 as an editor.

Here is 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 this? Thanks!

+7
source share
1 answer

I assume that you have mismatched brackets, brackets or curly braces. In Emacs, try Mx show-paren-mode , then place the cursor in the various parentheses in the file (starting with the first) to find out which ones are unmatched.

+16
source

All Articles