Author: manik.surtani(a)jboss.com
Date: 2008-04-25 11:11:04 -0400 (Fri, 25 Apr 2008)
New Revision: 5696
Modified:
core/trunk/src/main/java/org/jboss/cache/loader/TcpDelegatingCacheLoader.java
Log:
Fixed intermittent issue with TcpCacheLoader calls before proper startup
Modified: core/trunk/src/main/java/org/jboss/cache/loader/TcpDelegatingCacheLoader.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/loader/TcpDelegatingCacheLoader.java 2008-04-25
15:04:34 UTC (rev 5695)
+++
core/trunk/src/main/java/org/jboss/cache/loader/TcpDelegatingCacheLoader.java 2008-04-25
15:11:04 UTC (rev 5696)
@@ -13,7 +13,6 @@
import org.jboss.cache.Modification;
import org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig;
import org.jboss.cache.loader.tcp.TcpCacheOperations;
-import sun.plugin.dom.exception.InvalidStateException;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
@@ -426,7 +425,7 @@
// do nothing
}
}
- if (state != State.STARTED) throw new InvalidStateException("Not
started!");
+ if (state != State.STARTED) throw new CacheException("Cache Loader not
started!");
}
protected void restart() throws IOException
Show replies by date