I have not been able to solve this. I have restarted mongodb, on a remote server, with auth set to true. Now I connect to MongoDb like this:
This seems to work. I can see data coming out of the remote database.
"Exception in the main function: " #<ClassCastException java.lang.ClassCastException: java.lang.Boolean cannot be cast to clojure.lang.Named>
java.lang.ClassCastException: java.lang.Boolean cannot be cast to clojure.lang.Named
at clojure.core$name.invoke (core.clj:1505)
monger.collection$update.doInvoke (collection.clj:392)
clojure.lang.RestFn.invoke (RestFn.java:494)
calculate_user_profile_aggregates.mongo$persist_document_to_database.invoke (mongo.clj:68)
calculate_user_profile_aggregates.core$add_this_record_to_mongo.invoke (core.clj:38)
calculate_user_profile_aggregates.core$add_record_to_mongo$fn__17$fn__18.invoke (core.clj:48)
clojure.java.jdbc$with_query_results_STAR_.invoke (jdbc.clj:673)
calculate_user_profile_aggregates.core$add_record_to_mongo$fn__17.invoke (core.clj:45)
clojure.java.jdbc$with_connection_STAR_.invoke (jdbc.clj:302)
calculate_user_profile_aggregates.core$add_record_to_mongo.invoke (core.clj:44)
calculate_user_profile_aggregates.core$each_site_update.invoke (core.clj:51)
calculate_user_profile_aggregates.core$iterate_through_all_of_the_sites.invoke (core.clj:92)
calculate_user_profile_aggregates.core$calculate_user_profile_aggregates.invoke (core.clj:99)
calculate_user_profile_aggregates.core$_main.doInvoke (core.clj:141)
clojure.lang.RestFn.invoke (RestFn.java:397)
clojure.lang.AFn.applyToHelper (AFn.java:159)
clojure.lang.RestFn.applyTo (RestFn.java:132)
calculate_user_profile_aggregates.core.main (:-1)
{:item-name "wpquestions-affiliates-1",
:community "wpquestions",
:item-type "affiliates",
:updated_at #inst "2010-01-19T14:47:17.000000000-00:00",
:created_at #inst "2010-01-19T14:47:17.000000000-00:00",
:new_user_id 418,
:owning_user_id 4,
:id 1}