semperos/clj-webdriver — Issue #11: Nullpointerexception error
Author: chlai88
Created: 2011-11-03 00:02:03+00:00
State: open

Executing from lein run for the simple example script gives NPE at the line that creates the browser :

(def b (start :firefox "https://github.com"))

Exception in thread "main" java.lang.NullPointerException
at clojure.core$reset_BANG_.invoke(core.clj:2124)
at clj_webdriver.cache$fn__646.invoke(cache.clj:118)
at clj_webdriver.cache$fn__505$G__484__514.invoke(cache.clj:58)
at clj_webdriver.core$fn__1569.invoke(core_driver.clj:9)
at clj_webdriver.core$fn__932$G__913__939.invoke(core.clj:58)
at clj_webdriver.core$start.invoke(core.clj:111)
at clj_webdriver.core$start.invoke(core.clj:106)
at crawlz.clj_wb_test$_main.doInvoke(clj_wb_test.clj:7)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at clojure.lang.Var.invoke(Var.java:397)
at user$eval310.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:6465)
at clojure.lang.Compiler.eval(Compiler.java:6455)
at clojure.lang.Compiler.eval(Compiler.java:6431)
at clojure.core$eval.invoke(core.clj:2795)
at clojure.main$eval_opt.invoke(main.clj:296)
at clojure.main$initialize.invoke(main.clj:315)
at clojure.main$null_opt.invoke(main.clj:348)
at clojure.main$main.doInvoke(main.clj:426)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:405)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.main.main(main.java:37)

clj-webdriver version is 0.4.1.