Fork me on GitHub
#datomic
<
2020-05-11
>
pvillegas1213:05:23

I’m getting

in thread "async-dispatch-3" java.lang.NoSuchMethodError: com.cognitect.transit.TransitFactory.writer(Lcom/cognitect/transit/TransitFactory$Format;Ljava/io/OutputStream;Ljava/util/Map;Lcom/cognitect/transit/WriteHandler;Ljava/util/function/Function;)Lcom/cognitect/transit/Writer;
	at cognitect.transit$writer.invokeStatic(transit.clj:157)
	at cognitect.transit$writer.invoke(transit.clj:139)
	at $marshal.invokeStatic

pvillegas1213:05:41

When I connect to the bastion

pvillegas1213:05:56

(d/pull (d/db (cloud-conn)) '[* {:company/creator [*]}] [:company/id company-id])
Exception in thread "async-dispatch-2" java.lang.NoSuchMethodError: com.cognitect.transit.TransitFactory.writer(Lcom/cognitect/transit/TransitFactory$Format;Ljava/io/OutputStream;Ljava/util/Map;Lcom/cognitect/transit/WriteHandler;Ljava/util/function/Function;)Lcom/cognitect/transit/Writer;
	at cognitect.transit$writer.invokeStatic(transit.clj:157)
	at cognitect.transit$writer.invoke(transit.clj:139)
	at $marshal.invokeStatic(io.clj:48)
	at $marshal.invoke(io.clj:38)
	at $client_req__GT_http_req.invokeStatic(io.clj:76)
	at $client_req__GT_http_req.invoke(io.clj:73)
	at datomic.client.impl.shared.Client._async_op(shared.clj:380)
	at datomic.client.impl.shared.Client$fn__112135$state_machine__8973__auto____112150$fn__112152.invoke(shared.clj:404)
	at datomic.client.impl.shared.Client$fn__112135$state_machine__8973__auto____112150.invoke(shared.clj:403)
	at clojure.core.async.impl.ioc_macros$run_state_machine.invokeStatic(ioc_macros.clj:973)
	at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:972)
	at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invokeStatic(ioc_macros.clj:977)
	at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:975)
	at datomic.client.impl.shared.Client$fn__112135.invoke(shared.clj:403)
	at clojure.lang.AFn.run(AFn.java:22)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

pvillegas1213:05:06

Regular pulls are also showing this exception

ghadi13:05:00

NSMError is usually a tools/compilation problem

ghadi13:05:27

check for things accidentally compiled in $PROJECT/target or wherever your classfiles go

pvillegas1216:05:02

@U050ECB92 not very fluent with these target stuff, will removing the target directory get rid of this problem?

Yuriy Zaytsev18:05:52

Hi there! Can you share your best practice for testing with datomic/ions?

Drew Verlee22:05:28

For a call do the datomic.api/datoms https://docs.datomic.com/on-prem/clojure/index.html#datomic.api/datoms 1. if you leave any of the parts of a component "entity attribute value tx added" then do they have defaults? I assume transaction is the lastest, added is true. 2. If you provide two components e.g for avet something like (datoms db avet <a> <v> <e> <t> <added> <a1> <v1> ...) what does that actually do? The database isn't keeping 2nd order indexes for everything is it?

favila00:05:38

1. This is a pattern match. Omitted parts are “match any”

favila00:05:09

2. Behavior is undefined, I suspect the extra arguments are just ignored

Drew Verlee14:05:13

ah. I'm not sure what function signature would be better, but it feels ambiguous.