GenJava does not Generate any .NET Proxies |
|
Contents
- SYMPTOMS
- CAUSE
- 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.