Home : J-Integra for .NET : How to access an array of Java Collections/Dictionaries from .NET
Q138077 - INFO: How to access an array of Java Collections/Dictionaries from .NET

How to access an array of Java Collections/Dictionaries from .NET

 

Contents

  1. SYMPTOMS
  2. CAUSE
  3. 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.

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 6/23/2006.
Last Modified on 7/12/2006.
Last Modified by No Author Name Available!.
Article has been viewed 13789 times.
Rated 8 out of 10 based on 2 votes.
Print Article
Email Article