Hi all.

I'm running into an odd error that occasionally pops up. Here is the
ugly script and the two functions, one for which it does, and one for
which it does not pop up. Anyone has a clue?

(defn death
  [host]
  (dosync
   (if (not (empty? @host))
     nil)))

(defn death
  [host]
  (dosync
     nil))

(do
  (def myagent (agent (ref nil)))
  (println "errors?" (agent-errors myagent))
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
  (send myagent death)
)


The error:
java.lang.RuntimeException: Agent has errors (NO_SOURCE_FILE:0)(agent-
errors myagent)
(agent-errors myagent)
(#<NullPointerException java.lang.NullPointerException>
#<NullPointerException java.lang.NullPointerException>
#<NullPointerException java.lang.NullPointerE\
xception> #<NullPointerException java.lang.NullPointerException>
#<NullPointerException java.lang.NullPointerException>
#<NullPointerException java.lang.Nul\
lPointerException> #<NullPointerException
java.lang.NullPointerException> #<NullPointerException
java.lang.NullPointerException> #<NullPointerException java\
.lang.NullPointerException> #<NullPointerException
java.lang.NullPointerException> #<NullPointerException
java.lang.NullPointerException> #<NullPointerExcep\
tion java.lang.NullPointerException> #<NullPointerException
java.lang.NullPointerException> #<NullPointerException
java.lang.NullPointerException> #<NullPoi\
nterException java.lang.NullPointerException> #<NullPointerException
java.lang.NullPointerException> #<NullPointerException
java.lang.NullPointerException> \
#<NullPointerException java.lang.NullPointerException>
#<NullPointerException java.lang.NullPointerException>
#<NullPointerException java.lang.NullPointerEx\
ception> #<NullPointerException java.lang.NullPointerException>
#<NullPointerException java.lang.NullPointerException>
#<NullPointerException java.lang.Null\
PointerException> #<NullPointerException
java.lang.NullPointerException> #<NullPointerException
java.lang.NullPointerException> #<NullPointerException java.\
lang.NullPointerException>)


--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to