Hi
I have the below snippet in sample.proxygen.xml and upon execution of proxygen.exe to generate jni4net jar and DLL for sample.jar getting error as shown here.
Tried by giving all the classes of sample.jar using <JavaClass> as below, still facing same error.
<JavaClass TypeName="com.sample.JavaClassName"/>
instead of
<ClassPath Path="..\sample.jar" Generate="true" />
Note: com.sample.JavaClassName is part of sample.jar
Please suggest if sample.proxygen.xml needs any corrections, as I am not sure whether the xml content is correct here.
Error is not pointing out the specific java class in which the failure is.
Please help in this regard. Thanks.
=======================================
sample.proxygen.xml
<TargetDirJvm>target2\jvm</TargetDirJvm>
<TargetDirClr>target2\clr</TargetDirClr>
<ClassPath Path="..\dom4j.jar"/>
<ClassPath Path="..\sample.jar" Generate="true" />
</jni4net-proxygen>
=======================================
Error:
System.NullReferenceException: Object reference not set to an instance of an object.
at net.sf.jni4net.proxygen.generator.CLRGenerator.CreateMethodSignature(CodeTypeDeclaration tgtType, GMethod method, Boolean isProxy, Boolean fieldSetter)
at net.sf.jni4net.proxygen.generator.CLRGenerator.CreateMethodC2J(GMethod method, CodeTypeDeclaration tgtType, String uName, Boolean isProxy, Boolean fieldSetter)
at net.sf.jni4net.proxygen.generator.CLRGenerator.CreateMethodC2J(GMethod method, CodeTypeDeclaration tgtType, String uName, Boolean isProxy)
at net.sf.jni4net.proxygen.generator.CLRGenerator.GenerateStatic(CodeNamespace nameSpace)
at net.sf.jni4net.proxygen.generator.CLRInterfaceGenerator.Generate(CodeNamespace nameSpace)
at net.sf.jni4net.proxygen.generator.CLRGenerator.GenerateNamespace()
at net.sf.jni4net.proxygen.generator.CLRGenerator.Generate()
at net.sf.jni4net.proxygen.generator.Generator.GenerateAll()
at net.sf.jni4net.proxygen.Program.Main(String[] args)
Regards,
Murali