tomcat7 - JENA TDBException: Root blocks must be at position zero -
tomcat7 - JENA TDBException: Root blocks must be at position zero -
i'm new jena , triplestore, when deployed application in tomcat 7, i'm getting next exception.
appreciate help give thanks you.
exception
jun 20, 2014 1:23:23 pm org.apache.catalina.core.standardwrappervalve invoke severe: servlet.service() servlet [servletadaptor] in context path [/triplestore] threw exception [a multiexception has 2 exceptions. are: 1. com.hp.hpl.jena.tdb.tdbexception: root blocks must @ position 0 2. java.lang.illegalstateexception: unable perform operation: create on au.com.rdf.triplestore.web.triplestoreservlet ] root cause com.hp.hpl.jena.tdb.tdbexception: root blocks must @ position 0 @ com.hp.hpl.jena.tdb.index.bplustree.bptreenodemgr.createemptybpt(bptreenodemgr.java:55) @ com.hp.hpl.jena.tdb.index.bplustree.bplustree.createifabsent(bplustree.java:215) @ com.hp.hpl.jena.tdb.index.bplustree.bplustree.create(bplustree.java:141) @ com.hp.hpl.jena.tdb.setup.builder$rangeindexbuilderstd.createbptree(builder.java:167) @ com.hp.hpl.jena.tdb.setup.builder$rangeindexbuilderstd.buildrangeindex(builder.java:134) @ com.hp.hpl.jena.tdb.setup.builder$tupleindexbuilderstd.buildtupleindex(builder.java:64) @ com.hp.hpl.jena.tdb.setup.datasetbuilderstd.maketupleindex(datasetbuilderstd.java:283) @ com.hp.hpl.jena.tdb.setup.datasetbuilderstd.maketupleindexes(datasetbuilderstd.java:272) @ com.hp.hpl.jena.tdb.setup.datasetbuilderstd.maketupleindexes(datasetbuilderstd.java:261) @ com.hp.hpl.jena.tdb.setup.datasetbuilderstd.maketripletable(datasetbuilderstd.java:193) @ com.hp.hpl.jena.tdb.setup.datasetbuilderstd._build(datasetbuilderstd.java:163) @ com.hp.hpl.jena.tdb.setup.datasetbuilderstd.build(datasetbuilderstd.java:149) @ com.hp.hpl.jena.tdb.setup.datasetbuilderstd.build(datasetbuilderstd.java:64) @ com.hp.hpl.jena.tdb.storeconnection.make(storeconnection.java:217) @ com.hp.hpl.jena.tdb.transaction.datasetgraphtransaction.<init> (datasetgraphtransaction.java:75) @ com.hp.hpl.jena.tdb.sys.tdbmaker._create(tdbmaker.java:57) @ com.hp.hpl.jena.tdb.sys.tdbmaker.createdatasetgraphtransaction(tdbmaker.java:45) @ com.hp.hpl.jena.tdb.tdbfactory._createdatasetgraph(tdbfactory.java:104) @ com.hp.hpl.jena.tdb.tdbfactory.createdatasetgraph(tdbfactory.java:73) @ com.hp.hpl.jena.tdb.tdbfactory.createdataset(tdbfactory.java:52) @ com.hp.hpl.jena.tdb.tdbfactory.createdataset(tdbfactory.java:48) @ au.com.traleerdf.xmldi.triplestore.core.impl.triplestoreimpl.<init>(triplestoreimpl.java:159) @ au.com.traleerdf.xmldi.triplestore.web.triplestorers.<init>(triplestorers.java:44) @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:57) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:526) @ org.glassfish.hk2.utilities.reflection.reflectionhelper.makeme(reflectionhelper.java:1117) @ org.jvnet.hk2.internal.clazzcreator.createme(clazzcreator.java:261) @ org.jvnet.hk2.internal.clazzcreator.create(clazzcreator.java:337) @ org.jvnet.hk2.internal.systemdescriptor.create(systemdescriptor.java:456) @ org.glassfish.jersey.process.internal.requestscope.findorcreate(requestscope.java:158) @ org.jvnet.hk2.internal.utilities.createservice(utilities.java:2350) @ org.jvnet.hk2.internal.servicelocatorimpl.getservice(servicelocatorimpl.java:612) @ org.jvnet.hk2.internal.servicelocatorimpl.getservice(servicelocatorimpl.java:597) @ org.glassfish.jersey.internal.inject.injections.getorcreate(injections.java:173) @ org.glassfish.jersey.server.model.methodhandler$classbasedmethodhandler.getinstance(methodhandler.java:185) @ org.glassfish.jersey.server.internal.routing.pushmethodhandlerrouter.apply(pushmethodhandlerrouter.java:103) @ org.glassfish.jersey.server.internal.routing.routingstage._apply(routingstage.java:128) @ org.glassfish.jersey.server.internal.routing.routingstage._apply(routingstage.java:131) @ org.glassfish.jersey.server.internal.routing.routingstage._apply(routingstage.java:131) @ org.glassfish.jersey.server.internal.routing.routingstage._apply(routingstage.java:131) @ org.glassfish.jersey.server.internal.routing.routingstage._apply(routingstage.java:131) @ org.glassfish.jersey.server.internal.routing.routingstage.apply(routingstage.java:110) @ org.glassfish.jersey.server.internal.routing.routingstage.apply(routingstage.java:65) @ org.glassfish.jersey.process.internal.stages.process(stages.java:197) @ org.glassfish.jersey.server.serverruntime$1.run(serverruntime.java:250) @ org.glassfish.jersey.internal.errors$1.call(errors.java:271) @ org.glassfish.jersey.internal.errors$1.call(errors.java:267) @ org.glassfish.jersey.internal.errors.process(errors.java:315) @ org.glassfish.jersey.internal.errors.process(errors.java:297) @ org.glassfish.jersey.internal.errors.process(errors.java:267) @ org.glassfish.jersey.process.internal.requestscope.runinscope(requestscope.java:318) @ org.glassfish.jersey.server.serverruntime.process(serverruntime.java:236) @ org.glassfish.jersey.server.applicationhandler.handle(applicationhandler.java:1010) @ org.glassfish.jersey.servlet.webcomponent.service(webcomponent.java:373) @ org.glassfish.jersey.servlet.servletcontainer.service(servletcontainer.java:382) @ org.glassfish.jersey.servlet.servletcontainer.service(servletcontainer.java:345) @ org.glassfish.jersey.servlet.servletcontainer.service(servletcontainer.java:220) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:303) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:208) @ org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:52) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:241) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:208) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:220) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:122) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:501) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:170) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:98) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:950) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:116) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:408) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1040) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:607) @ org.apache.tomcat.util.net.aprendpoint$socketprocessor.dorun(aprendpoint.java:2441) @ org.apache.tomcat.util.net.aprendpoint$socketprocessor.run(aprendpoint.java:2430) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:744)
and code failing is
tdbfactory.createdataset(datasetpath);
you have been updating dataset non-transactionally , not sync'ed it. database has become corrupted , you'll need rebuild it.
using transactions mean database on disk robust against server exit.
tomcat7 jena triplestore
Comments
Post a Comment