Masaki Yamakawa created GEODE-5410:
--------------------------------------
Summary: Throw KeyNotFoundException occurs when using MSTest with
NativeClient
Key: GEODE-5410
URL: https://issues.apache.org/jira/browse/GEODE-5410
Project: Geode
Issue Type: Bug
Components: native client
Reporter: Masaki Yamakawa
I am migrating from GemFire NativeClient 7.x to Geode. After migration, an
error occurred in existing MSTest.
The error is as follows:
{code:java}
Exception while receiving subscription event for endpoint
{host}:40404::apache::geode::client::Exception:GFCLI_EXCEPTION:System.Collections.Generic.KeyNotFoundException:
指定されたキーはディレクトリ内に存在しませんでした。
場所 System.ThrowHelper.ThrowKeyNotFoundException()
場所 System.Collections.Generic.Dictionary`2.get_Item(TKey key)
場所
apache.geode.client.ManagedCacheableKeyBytesGeneric.fromData(ManagedCacheableKeyBytesGeneric*
, DataInput* input){code}
NOTE: appdomain-enabled is set to true.
NOTE: In NUnit, this error is solved by setting appdomain-enabled to true.
I created a simple application to confirm this issue.
It exists in the following:
[https://github.com/masaki-yamakawa/GeodeNativeSample]
# Build with java and create a jar file.
# Start Locator with gfsh.
# Start CacheServer with gfsh. (start server -name=\{Name}
--classpath=\{Path}/GeodeNativeSample-1.0.jar)
# Build C#.
# Execute C# UnitTestProject1 with VSTest.Console.exe. (VSTest.Console.exe
UnitTestProject1.dll)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)