I am using .net core client and server Apache Ignite v2.7.6.
After started thick client node,from thick client trying to get cache
client code:
-------------
public IIgnite StartIgniteClient()
{
try
{
if (_IGNITE_CLIENT == null)
{
Ignition.ClientMode = true;
_IGNITE_CLIENT = Ignition.Start(GetIgniteConfiguration());
}
}
catch (Exception ex)
{
throw;
}
return _IGNITE_CLIENT;
}
public IgniteConfiguration GetIgniteConfiguration()
{
IgniteConfiguration config = null;
try
{
config = new IgniteConfiguration
{
IgniteInstanceName = "EntityActorIgniteClientNode",
DiscoverySpi = new TcpDiscoverySpi
{
IpFinder = new TcpDiscoveryStaticIpFinder
{
Endpoints = _endPoints//new[] { "localhost"
}//127.0.0.1 or ip
},
SocketTimeout = TimeSpan.FromSeconds(3000)
},
DataStorageConfiguration = new
DataStorageConfiguration()
{
DefaultDataRegionConfiguration = new
DataRegionConfiguration()
{
Name = "IgniteDataRegion",
PersistenceEnabled = true
},
StoragePath = "C:\\client\\storage",
WalPath = "C:\\client\\wal",
WalArchivePath = "C:\\client\\walArchive"
},
WorkDirectory = "C:\\client\\work",
// Explicitly configure TCP communication SPI by
changing local port number for
// the nodes from the first cluster.
CommunicationSpi = new TcpCommunicationSpi()
{
LocalPort = 47100
},
PeerAssemblyLoadingMode =
Apache.Ignite.Core.Deployment.PeerAssemblyLoadingMode.CurrentAppDomain
};
}
catch (Exception ex)
{
throw;
}
return config;
}
*var cache = _IGNITE_CLIENT.GetCache<object, object>(cacheName);*//throwing
exception
*Exception*:
-----------
javax.cache.CacheException: class org.apache.ignite.IgniteCheckedException:
Could not create .NET CacheStore
at
org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1337)
at org.apache.ignite.internal.IgniteKernal.cache(IgniteKernal.java:2905)
at
org.apache.ignite.internal.processors.platform.PlatformProcessorImpl.processInStreamOutObject(PlatformProcessorImpl.java:526)
at
org.apache.ignite.internal.processors.platform.PlatformTargetProxyImpl.inStreamOutObject(PlatformTargetProxyImpl.java:79)
Caused by: class org.apache.ignite.IgniteCheckedException: Could not create
.NET CacheStore
at
org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetCacheStore.initialize(PlatformDotNetCacheStore.java:409)
at
org.apache.ignite.internal.processors.platform.PlatformProcessorImpl.registerStore0(PlatformProcessorImpl.java:746)
at
org.apache.ignite.internal.processors.platform.PlatformProcessorImpl.registerStore(PlatformProcessorImpl.java:324)
at
org.apache.ignite.internal.processors.cache.store.CacheOsStoreManager.start0(CacheOsStoreManager.java:60)
at
org.apache.ignite.internal.processors.cache.GridCacheManagerAdapter.start(GridCacheManagerAdapter.java:50)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCache(GridCacheProcessor.java:1313)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:2172)
at
org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.processClientCacheStartRequests(CacheAffinitySharedManager.java:438)
at
org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.processClientCachesChanges(CacheAffinitySharedManager.java:637)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.processCustomExchangeTask(GridCacheProcessor.java:391)
at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.processCustomTask(GridCachePartitionExchangeManager.java:2489)
at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2634)
at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2553)
at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
at java.lang.Thread.run(Thread.java:748)
Caused by: class org.apache.ignite.IgniteException: Could not resolve
unregistered type
IgnitePersistenceApp.CacheStoreFactory.TenantCacheStoreFactory
at
org.apache.ignite.internal.processors.platform.callback.PlatformCallbackUtils.inLongOutLong(Native
Method)
at
org.apache.ignite.internal.processors.platform.callback.PlatformCallbackGateway.cacheStoreCreate(PlatformCallbackGateway.java:65)
at
org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetCacheStore.initialize(PlatformDotNetCacheStore.java:404)
... 14 more
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/