# ignite-204 :  delete GridPortableObjectImpl occurance

Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/1d6a442e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/1d6a442e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/1d6a442e

Branch: refs/heads/ignite-204
Commit: 1d6a442e67458bd1defe40ac9ef3cade56d87ba5
Parents: 1179a06
Author: Artem Shutak <ashu...@gridgain.com>
Authored: Tue Feb 10 16:01:45 2015 +0300
Committer: Artem Shutak <ashu...@gridgain.com>
Committed: Tue Feb 10 16:01:45 2015 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/GridCacheStoreManager.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/1d6a442e/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheStoreManager.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheStoreManager.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheStoreManager.java
index e301d84..6fc8589 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheStoreManager.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheStoreManager.java
@@ -784,8 +784,7 @@ public class GridCacheStoreManager<K, V> extends 
GridCacheManagerAdapter<K, V> {
     private void handleClassCastException(ClassCastException e) throws 
IgniteCheckedException {
         assert e != null;
 
-        if (cctx.portableEnabled() && e.getMessage() != null &&
-            
e.getMessage().startsWith("org.gridgain.grid.util.portable.GridPortableObjectImpl"))
 {
+        if (cctx.portableEnabled() && e.getMessage() != null) {
             throw new IgniteCheckedException("Cache store must work with 
portable objects if portables are " +
                 "enabled for cache [cacheName=" + cctx.namex() + ']', e);
         }

Reply via email to