Posted By:
Anson_Lin
Posted On:
Friday, March 28, 2003 11:27 PM
I have to run "rmic -idl Manager.java" to generate a Manager.idl, and I succeede in convert the previous interface file using RMI into an IDL file. But I met a problem when I tried to use two function parameters, which were defined in Manager.java and their types are both ArrayList. The .java files generated by "idlj -fall Manager.idl", cannot be compileb by javac. The error is as follow: -------------------------------------------------------- C:javacode>javac *.java _ManagerStub.java:157: cannot resolve symbol symbol : class ArrayListHelper location: package util java.util.ArrayListHelper.write ($out, it); ^ _ManagerStub.java:158: cannot resolve symbol symbol
More>>
I have to run "rmic -idl Manager.java" to generate a Manager.idl, and I succeede in convert the previous interface file using RMI into an IDL file. But I met a problem when I tried to use two function parameters, which were defined in Manager.java and their types are both ArrayList. The .java files generated by "idlj -fall Manager.idl", cannot be compileb by javac. The error is as follow:
--------------------------------------------------------
C:javacode>javac *.java
_ManagerStub.java:157: cannot resolve symbol
symbol : class ArrayListHelper
location: package util
java.util.ArrayListHelper.write ($out, it);
^
_ManagerStub.java:158: cannot resolve symbol
symbol : class ArrayListHelper
location: package util
java.util.ArrayListHelper.write ($out, deqt);
^
ManagerPOA.java:111: cannot resolve symbol
symbol : class ArrayListHelper
location: package util
java.util.ArrayList it = java.util.ArrayListHelper.read (in);
^
ManagerPOA.java:112: cannot resolve symbol
symbol : class ArrayListHelper
location: package util
java.util.ArrayList deqt = java.util.ArrayListHelper.read (in);
^
4 errors
-----------------------------------------------------------
I know there is no directing mapping of ArrayList in IDL. Someone used "typedef sequence
<>". But my problem is the types of items in the ArrayList are Integer and String, which are still java integrated types. So what can I write between
<>?
Or you know other ways to solve it? I would very appreciate it.
<<Less