Hi All,
I am getting an exception while creating a cache. Here is the piece of code
boolean check = true;
String cacheName = id + "XXX";
try {
IgniteCache<AggregationContext, OptionalDouble> igniteCache =
ignite.cache(cacheName);
if (igniteCache == null) {
CacheConfiguration<AggregationContext, OptionalDouble> cfg = new
CacheConfiguration<AggregationContext, OptionalDouble>(cacheName);
cfg.setCacheMode(CacheMode.LOCAL);
igniteCache = ignite.getOrCreateCache(cfg);
}
igniteCache.put(context, value);
} catch (Exception e) {
}
The following error has popped up
org.apache.ignite.internal.pagemem.impl.PageMemoryNoStoreImpl cannot be cast
to
org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryEx
The configuration is
<bean id="ignite.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="peerClassLoadingEnabled" value="true" />
<property name="gridName" value="#{
T(java.util.UUID).randomUUID().toString() }" />
<property name="WorkDirectory"
value="${IGNITE_WORKING_DIRECTORY}"></property>
<property name="failureDetectionTimeout" value="60000" />
<property name="persistentStoreConfiguration">
<bean
class="org.apache.ignite.configuration.PersistentStoreConfiguration">
<property name="persistentStorePath"
value="${IGNITE_PERSISTENT_STORE_PATH}"></property>
<property name="walStorePath"
value="${WAL_STORE_PATH}"></property>
<property name="walArchivePath"
value="${WAL_ARCHIVE_PATH}"></property>
<property name="metricsEnabled" value="true" />
</bean>
</property>
<property name="memoryConfiguration">
<bean
class="org.apache.ignite.configuration.MemoryConfiguration">
<property name="pageSize" value="2048" />
<property name="defaultMemoryPolicySize"
value="#{5L * 1024 * 1024 *
1024}" />
</bean>
</property>
<property name="gridLogger">
<bean
class="org.apache.ignite.logger.log4j2.Log4J2Logger">
<constructor-arg type="java.lang.String"
value="etc/config/ignite-log4j2.xml" />
</bean>
</property>
<property name="discoverySpi">
<bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
<property name="localPort" value="47500" />
<property name="ipFinder">
<bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
<property name="addresses">
<list>
<value>XXXXXX:47500</value>
</list>
</property>
</bean>
</property>
</bean>
</property>
<property name="communicationSpi">
<bean
class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
<property name="localPort" value="47100" />
</bean>
</property>
</bean>
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/