Skip to content

Instantly share code, notes, and snippets.

Ian Eslick eslick

Block or report user

Report or block eslick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
eslick / datomic-schema.clj
Last active May 6, 2016
One solution to integrating Schema and Datomic
View datomic-schema.clj
(in-ns test
[schema.macros :as macros]
[schema.utils :as sutils]))
;; Wrapper type needed because Entity values do not implement
;; IPersistentMap interface
(defrecord EntitySchema
eslick / gist:0e1f7696de8b55a1f81c
Created Aug 13, 2014
Immutant exceptions after restarting queue on Immutant 1.1.3
View gist:0e1f7696de8b55a1f81c
22:34:03,045 WARN [org.hornetq.core.client] (MSC service thread 1-2) HQ212002: Timed out waiting for handler to complete processing
22:34:03,056 ERROR [stderr] (Thread-13638 (HornetQ-client-global-threads-396177756)) java.lang.NullPointerException
22:34:03,056 ERROR [stderr] (Thread-13638 (HornetQ-client-global-threads-396177756)) at org.projectodd.shimdandy.impl.ClojureRuntimeShimImpl.invoke(
22:34:03,057 ERROR [stderr] (Thread-13638 (HornetQ-client-global-threads-396177756)) at org.immutant.messaging.MessageProcessor.onMessage(
22:34:03,058 ERROR [stderr] (Thread-13638 (HornetQ-client-global-threads-396177756)) at org.projectodd.polyglot.messaging.BaseMessageProcessor.onMessage(
22:34:03,058 ERROR [stderr] (Thread-13638 (HornetQ-client-global-threads-396177756)) at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(
22:34:03,059 ERROR [stderr] (Thread-13638 (HornetQ-client-globa
eslick / project.clj
Created Mar 30, 2014
project.clj snippet for working around XML expansion bug
View project.clj
:profiles {;; PRODUCTION
:prod {:jvm-opts ["-Xms512M" "-Xmx2G" "-server" "-Djdk.xml.entityExpansionLimit=0"
"-XX:+UseConcMarkSweepGC" "-XX:+CMSIncrementalMode"]}}
eslick / out.log
Created Mar 30, 2014
Datomic + DDB Interaction stack trace; caused by JDK limitation in XML expansion
View out.log
16:57:27.147 ERROR com.amazonaws.http.AmazonHttpClient - Unable to unmarshall response (ParseError at [row,col]:[1,1]
Message: JAXP00010001: The parser has encountered more than "64000" entity expansions in this document; this is the limit imposed by the JDK.) ParseError at [row,col]:[1,1]
Message: JAXP00010001: The parser has encountered more than "64000" entity expansions in this document; this is the limit imposed by the JDK.
at ~[na:1.6.0_27]
at<init>( ~[na:1.6.0_27]
at ~[na:1.6.0_27]
at ~[na:1.6.0_27]
View gist:9760163
:node "ip-10-226-117-71",
:ns "switchboard.api.synchronize",
:thread-id 397,
:app 1
:mtx 3292,
:atx 2154,
:dts 1395756593391,
:date #inst "2014-03-25T14:09:53.390-00:00",
:auth #uuid "532cb9c1-39cc-486e-9e34-62d154d0fb84",
View gist:9758268
(p/subscribe [:test] :printer)
(p/subscribe #{:test} :printer
(async/map> #(select-keys % [:ts :value]) (async/chan)))
eslick / gist:8447415
Created Jan 16, 2014
Output from running upstart script
View gist:8447415
JBoss Bootstrap Environment
JBOSS_HOME: /var/lib/immutant/current/jboss
JAVA: java
JAVA_OPTS: -server -XX:+UseCompressedOops -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djboss.modules.system.pkgs=
org.jboss.byteman -Djava.awt.headless=true
eslick / gist:8420061
Created Jan 14, 2014
Interesting stack trace from my CI server from lein immutant test AFTER a successful test run (0 failures, etc).
View gist:8420061
Stopping JBoss Premature EOF
eslick / gist:7087091
Created Oct 21, 2013
Switchboard project.clj
View gist:7087091
(defproject switchboard "0.8.0-SNAPSHOT"
:description "Real-Time Healthcare"
:url ""
:license {:name "To Be Determined"}
:min-lein-version "2.0.0"
:main ^{:skip-aot true} switchboard.server
:resource-paths ["config", "resources"]
:aliases {"cas-dev" ["trampoline" "run" "-m" "switchboard.db.cassandra-test/start-embedded-server"]}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/core.async ""]
eslick / gist:7086897
Created Oct 21, 2013
Lein deps tree for pedestal-based immutant app
View gist:7086897
Bacon:switchboard eslick$ lein deps :tree
WARNING!!! possible confusing dependencies found:
[io.pedestal/pedestal.service "0.2.1"] -> [org.slf4j/slf4j-api "1.7.2"]
[com.datomic/datomic-pro "0.8.4143"] -> [org.slf4j/jul-to-slf4j "1.7.5"] -> [org.slf4j/slf4j-api "1.7.5"]
[com.datomic/datomic-pro "0.8.4143"] -> [org.slf4j/log4j-over-slf4j "1.7.5"] -> [org.slf4j/slf4j-api "1.7.5"]
[com.datomic/datomic-pro "0.8.4143"] -> [org.slf4j/jcl-over-slf4j "1.7.5"] -> [org.slf4j/slf4j-api "1.7.5"]
You can’t perform that action at this time.