This is an FAQ for developers working on the GRAKN.AI platform


General Questions

How can I contribute to GRAKN.AI?

We are happy to receive contributions of platform or test code, example projects, bug reports, support to other community members, or documentation (fixes or translation).

Developer FAQs

This section records technical issues that you may hit upon if you’re working on a bug fix or feature request in the GRAKN.AI codebase (that is, working on the GRAKN.AI platform). Feel free to edit the page (or suggest edits via Slack) if you have a ‘favourite’ issue to share with other contributing developers!

How do I resolve this weird exception?

I used to be able to start GraknEngineServer, but now I get this weird exception when running running the main in GraknEngineServer. Stack Overflow recommends excluding the Java servlet API for Apache spark, but then those classes are not provided from elsewhere.

Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
    at spark.embeddedserver.jetty.EmbeddedJettyFactory.create(
    at spark.embeddedserver.EmbeddedServers.create(
    at spark.Service.lambda$init$1(
    at spark.Service$$Lambda$3/ Source)
Caused by: java.lang.SecurityException: class "javax.servlet.http.HttpSessionIdListener"'s signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts(
    at java.lang.ClassLoader.preDefineClass(
    at java.lang.ClassLoader.defineClass(
    at Method)
    at java.lang.ClassLoader.loadClass(
    at sun.misc.Launcher$AppClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    at org.eclipse.jetty.server.session.SessionHandler.<clinit>(
    ... 5 more

How did I resolve it?

The solution was to include the Janus factory dependency explicitly:

Tags: overview