Last active
March 8, 2018 00:32
-
-
Save bjonnh/d01c862e95056bc8bf9fb8cf010dfd1c to your computer and use it in GitHub Desktop.
error jena kotlin with gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running https://github.com/bjonnh/kotlin_jena from Idea works. | |
But trying a: | |
$ gradle clean build | |
:clean | |
:compileKotlin | |
:compileJava NO-SOURCE | |
:processResources NO-SOURCE | |
:classes UP-TO-DATE | |
:jar | |
:assemble | |
:compileTestKotlin NO-SOURCE | |
:compileTestJava NO-SOURCE | |
:processTestResources NO-SOURCE | |
:testClasses UP-TO-DATE | |
:test NO-SOURCE | |
:check UP-TO-DATE | |
:build | |
BUILD SUCCESSFUL in 3s | |
3 actionable tasks: 3 executed | |
$ java -jar build/libs/querier.jar | |
Hello ! | |
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". | |
SLF4J: Defaulting to no-operation (NOP) logger implementation | |
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. | |
Exception in thread "main" java.lang.NullPointerException | |
at org.apache.jena.query.ARQ.isTrue(ARQ.java:640) | |
at org.apache.jena.sparql.lang.ParserBase.<init>(ParserBase.java:291) | |
at org.apache.jena.sparql.lang.SPARQLParserBase.<init>(SPARQLParserBase.java:43) | |
at org.apache.jena.sparql.lang.sparql_11.SPARQLParser11Base.<init>(SPARQLParser11Base.java:22) | |
at org.apache.jena.sparql.lang.sparql_11.SPARQLParser11.<init>(SPARQLParser11.java:4974) | |
at org.apache.jena.sparql.lang.ParserSPARQL11.perform(ParserSPARQL11.java:91) | |
at org.apache.jena.sparql.lang.ParserSPARQL11.parse$(ParserSPARQL11.java:52) | |
at org.apache.jena.sparql.lang.SPARQLParser.parse(SPARQLParser.java:34) | |
at org.apache.jena.query.QueryFactory.parse(QueryFactory.java:147) | |
at org.apache.jena.query.QueryFactory.create(QueryFactory.java:79) | |
at org.apache.jena.query.QueryFactory.create(QueryFactory.java:52) | |
at org.apache.jena.query.QueryFactory.create(QueryFactory.java:40) | |
at demo.MainKt.main(Main.kt:13) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment