How to access an array of Java Collections/Dictionaries from .NET |
|
Contents
- SYMPTOMS
- CAUSE
- RESOLUTION
SYMPTOMS
This article shows you how to access an array of Java Collections/Dictionaries from .NET. For an explanation of access Java Collections/Dictionaries from .NET, see the related documentation: HERE.
When access an array of java HashMap from .NET, the following exception occurs:
From the janet.log file:
1109891125779 *** J-Integra for .NET server threw an Exception: java.lang.RuntimeException com.intrinsyc.janet.RemoteException occurred: Type is not resolved for member java.util.HashMap, assemblyname, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
CAUSE
J-Integra for .NET currently doesn't support passing array's of Collections/Dictionaries.
RESOLUTION
There are two workarounds to this issue:
1. Instead of using an Array, pass an ArrayList of Collections/Dictionaries.
2. Deselect, "Map Collections/Dictionaries" and generate a proxy for java.util.HashMap by selecting java.util.Hashmap in the "Filter"ed classes.
This method is not recommend as it generates a lot of network overhead as every method call to HashMap in .NET would result in a .NET remoting call.