Author: rareddy
Date: 2009-04-03 18:19:05 -0400 (Fri, 03 Apr 2009)
New Revision: 711
Modified:
trunk/server/src/main/java/com/metamatrix/platform/service/controller/AbstractService.java
Log:
TEIID-457: During the initialization the state was not correctly set, if the
initialization went wrong
Modified:
trunk/server/src/main/java/com/metamatrix/platform/service/controller/AbstractService.java
===================================================================
---
trunk/server/src/main/java/com/metamatrix/platform/service/controller/AbstractService.java 2009-04-03
21:09:58 UTC (rev 710)
+++
trunk/server/src/main/java/com/metamatrix/platform/service/controller/AbstractService.java 2009-04-03
22:19:05 UTC (rev 711)
@@ -587,6 +587,9 @@
* */
public void setInitException(Throwable error) {
this.initException = error;
+ if (error != null) {
+ state = ServiceState.STATE_INIT_FAILED;
+ }
}
public Throwable getInitException() {
Show replies by date