Revision: 18702
http://sourceforge.net/p/gate/code/18702
Author: markagreenwood
Date: 2015-05-21 15:36:20 +0000 (Thu, 21 May 2015)
Log Message:
-----------
applying the fix supplied with sourceforge bug #192 to ensure that if an
exception is thrown while creating the ontology but after starting the service
that we shut the service down so that we don't end up with zombie threads that
stop the JVM from cleanly exiting
Modified Paths:
--------------
gate/trunk/plugins/Ontology/src/gate/creole/ontology/impl/sesame/OWLIMOntology.java
Modified:
gate/trunk/plugins/Ontology/src/gate/creole/ontology/impl/sesame/OWLIMOntology.java
===================================================================
---
gate/trunk/plugins/Ontology/src/gate/creole/ontology/impl/sesame/OWLIMOntology.java
2015-05-21 15:28:46 UTC (rev 18701)
+++
gate/trunk/plugins/Ontology/src/gate/creole/ontology/impl/sesame/OWLIMOntology.java
2015-05-21 15:36:20 UTC (rev 18702)
@@ -370,6 +370,17 @@
logger.info("Default name space is "+getDefaultNameSpace());
} catch(Exception ioe) {
+
+ if(ontologyService != null) {
+ // if we started a service but are going to throw an exception that
shut
+ // the service down first otherwise we end up with threads that never
+ // die that stop the JVM from exiting cleanly
+
+ // Thanks to Steve Wartik for spotting this issue
+ ontologyService.shutdown();
+ ontologyService = null;
+ }
+
throw new ResourceInstantiationException(ioe);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs