Home : J-Integra for .NET : INFO : GenJava does not Generate any .NET Proxies
Q48885 - INFO: GenJava does not Generate any .NET Proxies

GenJava does not Generate any .NET Proxies

 

Contents

  1. SYMPTOMS
  2. CAUSE
  3. RESOLUTION

SYMPTOMS

You have specified a valid assembly in GenJava, but no Java class is generated for the corresponding .NET class that GenJava has encountered in the assembly. There are no error messages logged.

CAUSE

When you specify an assembly for GenJava to generate Java proxies from, there should be a corresponding .java file generated for each .NET class encountered. If there isn't, check to make sure that the class is declared public AND it is either Serializable or derives from MarshalByRefObject. Otherwise, GenJava will not generate Java code for the class.

According to the .NET Remoting protocol, in order for a given object to be accessible remotely, it must either be "pass by value" (implements Serializable) or "pass by reference" (extends MarshalByRefObject).

RESOLUTION

Make sure the .NET class is public AND it is either Serializable or derives from MarshalByRefObject.

Status

As of J-Integra for .NET 2.1, the following warning message is displayed in GenJava's output window for .NET classes that do not have the above requirements for Java source code generation.

**Factory ignored: non-public or not MarshalByRefObject/Serializable
where "Factory" is the .NET class name.

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/10/2006.
Last Modified by No Author Name Available!.
Article has been viewed 9028 times.
Rated 7 out of 10 based on 2 votes.
Print Article
Email Article