Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datomic.samples.TxFunctions#main does not work for java 11 #4

Open
nikolayandr opened this issue Aug 1, 2020 · 1 comment
Open

Comments

@nikolayandr
Copy link

nikolayandr commented Aug 1, 2020

In this case

Exception in thread "main" java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.NullPointerException
	at datomic.promise$throw_executionexception_if_throwable.invoke(promise.clj:10)
	at datomic.promise$settable_future$reify__6471.deref(promise.clj:54)
	at clojure.core$deref.invoke(core.clj:2206)
	at datomic.promise$settable_future$reify__6471.get(promise.clj:45)

is thrown on attempting transact data which contains call to :examples/ensure-composite

See more details https://forum.datomic.com/t/transaction-functions-written-in-java-do-not-work-for-datomic-mem-protocol-when-application-is-run-in-java-11/1546

@toddbrawn-1
Copy link

In this call:
results = Peer.query("[:find [?artist-name ...] " +
" :in $ ?country [?reference ...] " +
" :where [(datomic.api/entid $ ?country) ?country-id] " +
" [?artist :artist/name ?artist-name] " +
" [?artist ?reference ?country-id]]",
db, Util.read(":country/BE"), Util.list(Util.read(":artist/country")));

I am getting the following error: java.lang.ClassNotFoundException: datomic.api, compiling:(NO_SOURCE_PATH:0:0)

Can you tell me what configuration I am missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants