Ho,

This is a known issue which will be fixed in upcoming 1.6 release -
https://issues.apache.org/jira/browse/IGNITE-2564
For now you can do one of the following things:
1) Build Ignite from current master branch.
2) Patch you Ignite version manually using the following Pull Request:
https://github.com/apache/ignite/pull/460/files
3) Or the most straightforward, but not absolutely correct workaround:
change "1024" to some larger number in
modules/platforms/cpp/core/src/impl/ignite_environment.cpp, method
IgniteEnvironment::AllocateMemory.

Vladimir.

On Tue, Apr 19, 2016 at 10:17 AM, rajs123 <[email protected]> wrote:

> Hi,
>
> I tried to cache the contents of file using c++ cache, I get the following
> error:
> An error occurred: Java exception occurred
>
> [cls=org.apache.ignite.internal.processors.platform.PlatformNoCallbackException,
> msg=Callback handler is not set in native platform.]
>
> I think it might have to do with large size of file content. So I tried
> this
> as a value, which gives same error.
>
>
> string val = "";
> for (int i = 0; i < 1000; i++)
>         val = val + "aaaaa\n";
>
>
> When I use i till 100, the code works.
>
> Current configuration of nodes:
> 2 nodes stated with following commands on  the same machine.
> ./modules/platforms/cpp/ignite/ignite -springConfigUrl=config/config2.xml
> ./modules/platforms/cpp/ignite/ignite -springConfigUrl=config/config2.xml
> -jvmMaxMemoryMB=4096
>
> config2.xml:
> <beans xmlns="http://www.springframework.org/schema/beans";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xsi:schemaLocation="http://www.springframework.org/schema/beans
>
> http://www.springframework.org/schema/beans/spring-beans.xsd";>
>     <bean class="org.apache.ignite.configuration.IgniteConfiguration">
>         <property name="peerClassLoadingEnabled" value="true"/>
>         <property name="cacheConfiguration">
>             <list>
>
>                 <bean
> class="org.apache.ignite.configuration.CacheConfiguration">
>                     <property name="atomicityMode" value="ATOMIC"/>
>                     <property name="backups" value="1"/>
>                 </bean>
>             </list>
>         </property>
>         <property name="discoverySpi">
>             <bean
> class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>                 <property name="ipFinder">
>
>
>
>                     <bean
>
> class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">
>                         <property name="addresses">
>                             <list>
>
>                                 <value>10.0.1.48</value>
>                             </list>
>                         </property>
>                     </bean>
>                 </property>
>             </bean>
>         </property>
>     </bean>
> </beans>
>
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/C-Distributed-cache-for-caching-files-tp4158p4312.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Reply via email to