If you're running this at the REPL, in recent versions only the name of the exception is printed. If you want the full backtrace, do: (.printStackTrace *e)
-Stuart Sierra On Nov 24, 2:39 am, Timothy Pratley <[EMAIL PROTECTED]> wrote: > If you put the following into a file and run it: > > (defn new-listener [port] > (try (java.net.ServerSocket. port) > (println "Listening on " port) > (catch Exception e > (println "Failed to listen on port " port ": > " (.getMessage e))))) > > (println "Server started") > (let [listener (new-listener 8888)] > (.accept listener)) > > Exception in thread "main" java.lang.NullPointerException (test.clj:0) > > The problem is obviously my user code: new-listener should have > returned the socket it created. I'm just bringing it up because the > resulting exception doesn't have enough info to diagnose the problem. > Usually when there is an error the it displays the line number where > the problem occurred in the source. Is this a special case? I only > report it in the hope that such reports can help identify improvements > to error reporting. > > Regards, > Tim. --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---