{"action":"created","issue":{"url":"https://api.github.com/repos/hartig/BlazegraphBasedTPFServer/issues/5","repository_url":"https://api.github.com/repos/hartig/BlazegraphBasedTPFServer","labels_url":"https://api.github.com/repos/hartig/BlazegraphBasedTPFServer/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/hartig/BlazegraphBasedTPFServer/issues/5/comments","events_url":"https://api.github.com/repos/hartig/BlazegraphBasedTPFServer/issues/5/events","html_url":"https://github.com/hartig/BlazegraphBasedTPFServer/issues/5","id":163352208,"number":5,"title":"problems running locally","user":{"login":"seralf","id":88188,"avatar_url":"https://avatars.githubusercontent.com/u/88188?v=3","gravatar_id":"","url":"https://api.github.com/users/seralf","html_url":"https://github.com/seralf","followers_url":"https://api.github.com/users/seralf/followers","following_url":"https://api.github.com/users/seralf/following{/other_user}","gists_url":"https://api.github.com/users/seralf/gists{/gist_id}","starred_url":"https://api.github.com/users/seralf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seralf/subscriptions","organizations_url":"https://api.github.com/users/seralf/orgs","repos_url":"https://api.github.com/users/seralf/repos","events_url":"https://api.github.com/users/seralf/events{/privacy}","received_events_url":"https://api.github.com/users/seralf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-01T09:09:04Z","updated_at":"2016-07-01T12:58:31Z","closed_at":null,"body":"Hi I'm trying to test the server locally and had some issues.\r\nafter running:\r\n`$ mvn clean package`\r\n\r\nI've put a `log4j.properties` file and a `config.json` file in the main directory, then run:\r\n```\r\n$ ./tpf_start.sh\r\n10:58:55 INFO  log                  :: Logging initialized @173ms\r\n10:58:55 INFO  Server               :: jetty-9.3.z-SNAPSHOT\r\n10:58:55 INFO  ContextHandler       :: Started o.e.j.s.ServletContextHandler@1c53fd30{/,file:///C:/Users/Al.Serafini/dev_src/Bla      zegraphBasedTPFServer/,AVAILABLE}\r\n10:58:55 INFO  ServerConnector      :: Started ServerConnector@67b64c45{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}\r\n10:58:55 INFO  Server               :: Started @346ms\r\nStarted server, listening at port 8080\r\n10:58:59 WARN  /                    :: unavailable\r\njava.lang.NullPointerException\r\n        at org.linkeddatafragments.config.ConfigReader.<init>(ConfigReader.java:43)\r\n        at org.linkeddatafragments.servlet.LinkedDataFragmentServlet.init(LinkedDataFragmentServlet.java:82)\r\n        at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:626)\r\n        at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:482)\r\n        at org.eclipse.jetty.servlet.ServletHolder.ensureInstance(ServletHolder.java:774)\r\n        at org.eclipse.jetty.servlet.ServletHolder.prepare(ServletHolder.java:759)\r\n        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:578)\r\n        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)\r\n        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158)\r\n        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)\r\n        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\r\n        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090)\r\n        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)\r\n        at org.eclipse.jetty.server.Server.handle(Server.java:517)\r\n        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)\r\n        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)\r\n        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:261)\r\n        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n        at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)\r\n        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)\r\n        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)\r\n        at java.lang.Thread.run(Unknown Source)\r\n10:58:59 WARN  ServletHandler       ::\r\njavax.servlet.ServletException: java.lang.NullPointerException\r\n        at org.linkeddatafragments.servlet.LinkedDataFragmentServlet.init(LinkedDataFragmentServlet.java:102)\r\n        at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:626)\r\n        at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:482)\r\n        at org.eclipse.jetty.servlet.ServletHolder.ensureInstance(ServletHolder.java:774)\r\n        at org.eclipse.jetty.servlet.ServletHolder.prepare(ServletHolder.java:759)\r\n        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:578)\r\n        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)\r\n        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158)\r\n        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)\r\n        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\r\n        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090)\r\n        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)\r\n        at org.eclipse.jetty.server.Server.handle(Server.java:517)\r\n        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)\r\n        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)\r\n        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:261)\r\n        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n        at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)\r\n        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)\r\n        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)\r\n        at java.lang.Thread.run(Unknown Source)\r\nCaused by: java.lang.NullPointerException\r\n        at org.linkeddatafragments.config.ConfigReader.<init>(ConfigReader.java:43)\r\n        at org.linkeddatafragments.servlet.LinkedDataFragmentServlet.init(LinkedDataFragmentServlet.java:82)\r\n        ... 23 more\r\n10:58:59 WARN  ServletHandler       ::\r\norg.eclipse.jetty.servlet.ServletHolder$1: java.lang.NullPointerException\r\n        at org.eclipse.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:580)\r\n        at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:637)\r\n        at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:482)\r\n        at org.eclipse.jetty.servlet.ServletHolder.ensureInstance(ServletHolder.java:774)\r\n        at org.eclipse.jetty.servlet.ServletHolder.prepare(ServletHolder.java:759)\r\n        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:578)\r\n        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)\r\n        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158)\r\n        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)\r\n        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\r\n        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090)\r\n        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)\r\n        at org.eclipse.jetty.server.Server.handle(Server.java:517)\r\n        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)\r\n        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)\r\n        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:261)\r\n        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n        at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)\r\n        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)\r\n        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)\r\n        at java.lang.Thread.run(Unknown Source)\r\nCaused by: java.lang.NullPointerException\r\n        at org.linkeddatafragments.config.ConfigReader.<init>(ConfigReader.java:43)\r\n        at org.linkeddatafragments.servlet.LinkedDataFragmentServlet.init(LinkedDataFragmentServlet.java:82)\r\n        at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:626)\r\n        ... 22 more\r\n```\r\n\r\nI've tried to understand the errors without luck. I attached my configs in case thei could be useful:\r\n\r\n**config.json**\r\n```\r\n{\r\n\t\"title\": \"Example Linked Data Fragments server\",\r\n\r\n\t\"datasourcetypes\": {\r\n\t\t\"HdtDatasource\": \"org.linkeddatafragments.datasource.hdt.HdtDataSourceType\",\r\n\t\t\"JenaTDBDatasource\": \"org.linkeddatafragments.datasource.tdb.JenaTDBDataSourceType\",\r\n\t\t\"BlazegraphDataSource\": \"org.linkeddatafragments.datasource.blazegraph.BlazegraphDataSourceType\"\r\n\t},\r\n\r\n\t\"datasources\": {\r\n\t\t\"watdiv\": {\r\n\t\t\t\"title\": \"WatDiv\",\r\n\t\t\t\"type\": \"BlazegraphDataSource\",\r\n\t\t\t\"description\": \"WatDiv benchmark dataset with a Blazegraph back-end\",\r\n\t\t\t\"settings\": {\r\n\t\t\t\t\"com.bigdata.rdf.sail.truthMaintenance\": \"false\",\r\n\t\t\t\t\"com.bigdata.rdf.store.AbstractTripleStore.triplesMode\": \"true\",\r\n\t\t\t\t\"com.bigdata.rdf.store.AbstractTripleStore.axiomsClass\": \"com.bigdata.rdf.axioms.NoAxioms\",\r\n\t\t\t\t\"com.bigdata.rdf.store.AbstractTripleStore.justify\": \"false\",\r\n\t\t\t\t\"com.bigdata.rdf.store.AbstractTripleStore.statementIdentifiers\": \"false\",\r\n\t\t\t\t\"com.bigdata.rdf.store.AbstractTripleStore.textIndex\": \"false\",\r\n\t\t\t\t\"com.bigdata.journal.AbstractJournal.create\": \"false\",\r\n\t\t\t\t//\"com.bigdata.journal.AbstractJournal.file\": \"../data.jnl\",\r\n\t\t\t\t\"file\": \"src/test/resources/demo.nt\",\r\n\t\t\t\t//\"com.bigdata.journal.AbstractJournal.bufferMode\": \"DiskRW\",\r\n\t\t\t\t\"com.bigdata.journal.AbstractJournal.bufferMode\": \"MemStore\"\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\t\"prefixes\": {\r\n\t\t\t\"rdf\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\r\n\t\t\t\"rdfs\": \"http://www.w3.org/2000/01/rdf-schema#\",\r\n\t\t\t\"xsd\": \"http://www.w3.org/2001/XMLSchema#\",\r\n\t\t\t\"dc\": \"http://purl.org/dc/terms/\",\r\n\t\t\t\"foaf\": \"http://xmlns.com/foaf/0.1/\",\r\n\t\t\t\"dbpedia\": \"http://dbpedia.org/resource/\",\r\n\t\t\t\"dbpedia-owl\": \"http://dbpedia.org/ontology/\",\r\n\t\t\t\"dbpprop\": \"http://dbpedia.org/property/\",\r\n\t\t\t\"hydra\": \"http://www.w3.org/ns/hydra/core#\",\r\n\t\t\t\"void\": \"http://rdfs.org/ns/void#\"\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\n**log4j.properties**\r\n```\r\nlog4j.rootLogger=INFO, stdlog\r\n\r\nlog4j.appender.stdlog=org.apache.log4j.ConsoleAppender\r\nlog4j.appender.stdlog.layout=org.apache.log4j.PatternLayout\r\nlog4j.appender.stdlog.layout.ConversionPattern=%d{HH:mm:ss} %-5p %-20c{1} :: %m%n\r\n\r\nlog4j.logger.com.bigdata=INFO\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hartig/BlazegraphBasedTPFServer/issues/comments/229939961","html_url":"https://github.com/hartig/BlazegraphBasedTPFServer/issues/5#issuecomment-229939961","issue_url":"https://api.github.com/repos/hartig/BlazegraphBasedTPFServer/issues/5","id":229939961,"user":{"login":"serwan","id":5001766,"avatar_url":"https://avatars.githubusercontent.com/u/5001766?v=3","gravatar_id":"","url":"https://api.github.com/users/serwan","html_url":"https://github.com/serwan","followers_url":"https://api.github.com/users/serwan/followers","following_url":"https://api.github.com/users/serwan/following{/other_user}","gists_url":"https://api.github.com/users/serwan/gists{/gist_id}","starred_url":"https://api.github.com/users/serwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serwan/subscriptions","organizations_url":"https://api.github.com/users/serwan/orgs","repos_url":"https://api.github.com/users/serwan/repos","events_url":"https://api.github.com/users/serwan/events{/privacy}","received_events_url":"https://api.github.com/users/serwan/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T12:58:31Z","updated_at":"2016-07-01T12:58:31Z","body":"Not realy syntax problem but structural one. The Json config must have 4 entries (title, datasourcetypes, datasources, and prefixes) with the \"}\" at the wrong place the \"prefixies\" input was inside datasources.\r\n\r\nHere is the one I use (with a Blazegraph jnl file) \r\n```\r\n{\r\n  \"title\": \"My Linked Data Fragments server\",\r\n\r\n  \"datasourcetypes\": {\r\n    \"HdtDatasource\"         : \"org.linkeddatafragments.datasource.hdt.HdtDataSourceType\",\r\n    \"JenaTDBDatasource\"     : \"org.linkeddatafragments.datasource.tdb.JenaTDBDataSourceType\",\r\n    \"BlazegraphDataSource\"  : \"org.linkeddatafragments.datasource.blazegraph.BlazegraphDataSourceType\"\r\n  },\r\n\r\n  \"datasources\": {\r\n    \"watdiv\": {\r\n      \"title\": \"WatDiv\",\r\n      \"type\": \"BlazegraphDataSource\",\r\n      \"description\": \"WatDiv benchmark dataset with a Blazegraph back-end\",\r\n      \"settings\": {\r\n           \"com.bigdata.rdf.sail.truthMaintenance\": \"false\",\r\n           \"com.bigdata.rdf.store.AbstractTripleStore.triplesMode\": \"true\",\r\n           \"com.bigdata.rdf.store.AbstractTripleStore.axiomsClass\": \"com.bigdata.rdf.axioms.NoAxioms\",\r\n           \"com.bigdata.rdf.store.AbstractTripleStore.justify\": \"false\",\r\n           \"com.bigdata.rdf.store.AbstractTripleStore.statementIdentifiers\": \"false\",\r\n           \"com.bigdata.rdf.store.AbstractTripleStore.textIndex\": \"false\",\r\n           \"com.bigdata.journal.AbstractJournal.create\": \"false\",\r\n           \"com.bigdata.journal.AbstractJournal.file\": \"data/bigdata.jnl\",\r\n           \"com.bigdata.journal.AbstractJournal.bufferMode\":\"DiskRW\"\r\n\r\n      }\r\n  }},\r\n\r\n  \"prefixes\": {\r\n    \"rdf\":         \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\r\n    \"rdfs\":        \"http://www.w3.org/2000/01/rdf-schema#\",\r\n    \"xsd\":         \"http://www.w3.org/2001/XMLSchema#\",\r\n    \"dc\":          \"http://purl.org/dc/terms/\",\r\n    \"foaf\":        \"http://xmlns.com/foaf/0.1/\",\r\n    \"dbpedia\":     \"http://dbpedia.org/resource/\",\r\n    \"dbpedia-owl\": \"http://dbpedia.org/ontology/\",\r\n    \"dbpprop\":     \"http://dbpedia.org/property/\",\r\n    \"hydra\":       \"http://www.w3.org/ns/hydra/core#\",\r\n    \"void\":        \"http://rdfs.org/ns/void#\"\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"serwan"}}