Thanks a ton for building this tool. Its totally awesome. I need your
help .I have a C# program that sends a ArrayList containing a c sharp
class objects ( say a list of Test objects).
The Java program on the receiving end calls this method and receives
the Object. But i can not typecast the Object return type to a List or
ArrayList type in java..
See below my code. and the error message.
Bridge.init();
File file = new File("C:\\PI-WTJavaWorkSpace1.0\\JavaPIWTInterface\\lib
\\PiToWTJNI.j4n.dll");
Bridge.LoadAndRegisterAssemblyFrom(file);
List arrayList = new ArrayList();
IPiToWTJNI db = new PiToWTJNI();
arrayList = db.getPIData("MV90.PLV.MWHDEL");
System.out.printf("This is the object retured"+arrayList.size());
When i execute i get the following error....
java.lang.ClassCastException: system.collections.__IList cannot be
cast to java.util.List
at
com.iberdrola.piwtreconn.jininterface.PIJNIInterface.main(PIJNIInterface.java:
33)
Can you help ?
Thanks
Akila.
system.collections.IList list = db.getPIData("MV90.PLV.MWHDEL");
System.out.printf("This is the object retured"+list.getCount());
I didn't compiled/tested that ;-)
> --
> You received this message because you are subscribed to jni...@googlegroups.com
> http://groups.google.com/group/jni4net?hl=en-GB?hl=en-GB
> http://jni4net.sf.net/
>
> To unsubscribe, reply using "remove me" as the subject.
>
--
--
You received this message because you are subscribed to jni...@googlegroups.com
http://groups.google.com/group/jni4net?hl=en-GB?hl=en-GB
http://jni4net.sf.net/
---
You received this message because you are subscribed to the Google Groups "jni4net" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jni4net+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to jni4net+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jni4net+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jni4net+unsubscribe@googlegroups.com.