datomic-java-examples's People
Forkers
clebertsuconic sleyzerzon nikitad jbwilmoth andersschuller dfbernal alincc databrecht abhi18av clojure-land ianrogers iniyanpdatomic-java-examples's Issues
datomic.samples.TxFunctions#main does not work for java 11
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
IO.java does not compile with addition of ".get()" on line 19
The transactAll() method in IO.java needs to either wrap exceptions thrown by the get() call with RuntimeException or declare thrown exceptions in its signature, and if it does the latter then callers also have to change to declare thrown exceptions or add a try/catch block.
Compilation fails trying to interpret source as 1.3 compatible
While trying to compile on a pairhost I encountered the following error:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.581s
[INFO] Finished at: Fri Dec 07 09:58:28 EST 2012
[INFO] Final Memory: 5M/140M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project datomic-java-examples: Compilation failure: Compilation failure:
[ERROR] /home/pair/opensource/datomic-java-examples/src/java/datomic/samples/QueryAsData.java:[14,7] static import declarations are not supported in -source 1.3
[ERROR] (use -source 5 or higher to enable static import declarations)
[ERROR] import static datomic.Peer.q;
[ERROR]
[ERROR] /home/pair/opensource/datomic-java-examples/src/java/datomic/samples/IO.java:[14,12] generics are not supported in -source 1.3
[ERROR] (use -source 5 or higher to enable generics)
[ERROR] List<List> txes = Util.readAll(reader);
[ERROR]
[ERROR] /home/pair/opensource/datomic-java-examples/src/java/datomic/samples/Schema.java:[5,7] static import declarations are not supported in -source 1.3
[ERROR] (use -source 5 or higher to enable static import declarations)
[ERROR] import static datomic.Peer.q;
[ERROR]
[ERROR] /home/pair/opensource/datomic-java-examples/src/java/datomic/samples/Query.java:[8,7] static import declarations are not supported in -source 1.3
[ERROR] (use -source 5 or higher to enable static import declarations)
[ERROR] import static datomic.Peer.*;
[ERROR]
[ERROR] /home/pair/opensource/datomic-java-examples/src/java/datomic/samples/Query.java:[44,18] generics are not supported in -source 1.3
[ERROR] (use -source 5 or higher to enable generics)
[ERROR] Collection<List<Object>> result = q("[:find ?v " +
[ERROR]
[ERROR] /home/pair/opensource/datomic-java-examples/src/java/datomic/samples/CompareAndSwap.java:[4,7] static import declarations are not supported in -source 1.3
[ERROR] (use -source 5 or higher to enable static import declarations)
[ERROR] import static datomic.Connection.*;
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Some googling suggests that the newest version of the maven compiler plugin eagerly expects Java 5 sources, not Java 1.3. (http://stackoverflow.com/questions/2451268/maven-use-source-5-or-higher-to-enable-static-import-declarations)
If we use the maven compiler plugin version 3, this issue is resolved on pairhosts.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.