Hello Andy,

These are the details

Java Version :- 1.7.0_72

TDB version :-  1.0.1

Jena Version :- 2.12.0

Running on : -Ubuntu Linux

Application server :-  tomcat

The application we created is something similar to fuse, it has TDB wrapped 
with a rest service and has other management functionalities like backing up of 
software metrics etc..

<html><head><title>Apache Tomcat/7.0.52 (Ubuntu) - Error 
report</title><style><!--H1 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
 H2 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
 H3 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
 BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} 
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P 
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
 {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> 
</head><body><h1>HTTP Status 500 - 
com.hp.hpl.jena.tdb.transaction.TDBTransactionException: Can't expel: Active 
transactions for location: location:/ts/data/</h1><HR size="1" 
noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> 
<u>com.hp.hpl.jena.tdb.transaction.TDBTransactionException: Can't expel: Active 
transactions for location: location:/ts/data/</u></p><p><b>description</b> 
<u>The server encountered an internal error that prevented it from fulfilling 
this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: 
com.hp.hpl.jena.tdb.transaction.TDBTransactionException: Can't expel: Active 
transactions for location: location:/ts/data/

        org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:392)
        
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381)
        
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344)
        
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:219)
        
au.com.traleerdf.xmldi.triplestore.filter.RestFilter.doFilter(RestFilter.java:40)
</pre></p><p><b>root cause</b> 
<pre>com.hp.hpl.jena.tdb.transaction.TDBTransactionException: Can't expel: 
Active transactions for location: location:/ts/data/
        com.hp.hpl.jena.tdb.StoreConnection.expel(StoreConnection.java:198)
        com.hp.hpl.jena.tdb.StoreConnection.release(StoreConnection.java:188)
        com.hp.hpl.jena.tdb.sys.TDBMaker.releaseLocation(TDBMaker.java:62)
        com.hp.hpl.jena.tdb.TDBFactory._release(TDBFactory.java:116)
        com.hp.hpl.jena.tdb.TDBFactory.release(TDBFactory.java:84)
        
au.com.traleerdf.xmldi.triplestore.core.impl.TripleStoreImpl.createBrandNewTDB(TripleStoreImpl.java:559)
        
au.com.traleerdf.xmldi.triplestore.web.TripleStoreRs.resetTripleStore(TripleStoreRs.java:320)
        sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        java.lang.reflect.Method.invoke(Method.java:606)
        
org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
        
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151)
        
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
        
org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)
        
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
        
org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:406)
        
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:350)
        
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:106)
        org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:259)
        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:320)
        
org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236)
        
org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028)
        org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:373)
        
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381)
        
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344)
        
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:219)
        
au.com.traleerdf.xmldi.triplestore.filter.RestFilter.doFilter(RestFilter.java:40)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available 
in the Apache Tomcat/7.0.52 (Ubuntu) logs.</u></p><HR size="1" 
noshade="noshade"><h3>Apache Tomcat/7.0.52 (Ubuntu)</h3></body></html>

Thanks
Kamalraj

On 28 Nov 2014, at 8:30 pm, Andy Seaborne 
<[email protected]<mailto:[email protected]>> wrote:

On 28/11/14 05:57, Kamalraj Jairam wrote:
Hello All,

I get this error when i try to reset TDB

com.hp.hpl.jena.tdb.transaction.TDBTransactionException: Can't expel: Active 
transactions for location: location:/ts/data/

        com.hp.hpl.jena.tdb.StoreConnection.expel(StoreConnection.java:198)
        com.hp.hpl.jena.tdb.StoreConnection.release(StoreConnection.java:188)
        com.hp.hpl.jena.tdb.sys.TDBMaker.releaseLocation(TDBMaker.java:62)

there are no active connections from the application

what am i doing wrong?

It not possible to tell from what you've said.  There isn't a common reason why 
this might happen.

Do you have a complete, minimal example?
Did anything happen earlier like an exception?

Does it happen always or occasionally?

What version of Jena is this?
What operation system are you running on?
What version of java? Which JDK?

andy


Thanks
Kamalraj



Reply via email to