GridGain 6.0.3 GridCacheProjection不工作?

时间:2014-04-22 17:23:41

标签: gridgain

这几行在先前版本中起作用

final GridCacheProjection<UUID, Simobject> o_cache = g.cache("local").projection(UUID.class, Simobject.class);
final GridCacheProjection<UUID, Simevent> evt_cache = g.cache("local").projection(UUID.class, Simevent.class);

o_cache.removeAll(new P1<GridCacheEntry<UUID, Simobject>> () {
                    @Override
                    public boolean apply(GridCacheEntry<UUID, Simobject> e) {
                        Simobject obj = e.peek();
                        if (obj.getId_sim() == sim_id) {
                            return true;
                        } else {
                            return false;
                        }
                    }
                });

但是,现在在GridGain 6.0.3中,我得到了:

class org.gridgain.grid.GridException: uniagro.simugant.db.grid.Simevent cannot be cast to uniagro.simugant.db.grid.Simobject 

这个异常抛出了peek()的行。我应该考虑在gridgain中有什么新东西吗?

0 个答案:

没有答案