Been really frustrated with the following problem. Help would be really appreciated. In local mode it works fine. In remote mode it appears to successfully export from the server and the client seems to find it. When the combo box info comes over I get the following error Corba Unkown Exception 0 Maybe; nested exception is: org.omg.CORBA.portable.UnknownException: minor code: 0 completed Maybe (this shows up on my display) On the server the trace says Exception in thread "Thread-3" org.omg.CORBA.BAD_PARAM: minor code: 1398079494 completed: Maybe at com.sun.corba.se.internal.javax.rmi.CORBA.Util.Utility.throwNotSerializableForCorba(Unknown Source) com.sun.corba.se.internal.iiop.CDRoutputStream.write_abstractObject(Unkown Source) com.suncorba.se.internal.io.IIOPOutputStream.writeObjectDelegate(Unknown Source) com.sun.corba.se.internal.io.IIOPOutputStream.writeOBjectOverride(Unknown Source) java.io.ObjectOutputStream.writeObject(Unkown Source) java.util.TreeSet.writeObject(Unknown Source) Any guidance would be much appreciated Jeff PS I am using a Treeset. (which seems to be serializable) but from all the Unkown Source that shows up on the dos screen maybe it is not finding the remote class correctly even though it gets that far?
Gentlemen, I am using the TreeSet collection type for the origin and destination String values used for the combobox. The reson is that it gives me a Sorted Set and so it seems convinient. Comments?? Regards Suchak Jani
Doesn't a combobox take an array? I don't think I sorted the values, and I got 24/24 on the GUI. Well at least I didn't have any code to specifically sort the data. And I only used arrays to fill the combobox. Try HashSet if you want to stay with the collections classes. Just my opinion too. Mark
Doesn't a combobox take an array? Yes it does. So when you have the TreeSet which implements the Collection interface i have done the following. Collection c = new TreeSet(); //populate c with destinations and origins String  destinationsandorigins = new String[c.size()]; c.toArray(destinationsandorigins); Thus one get's a sorted array. I could remove this code if it is not advisable to do it this way. Regards Suchak Jani
posted 18 years ago
The Treeset is good for sorting. I am just using RMI IIOP so that is why I have the corba message. Just a slighly differently implementation. Found my problem. In the Treeset I was using my own defined comparator. Not realizing that the comparator itself also had to be serializable to go over the net. I guess I keeps some kind of record that goes over the network?
posted 18 years ago
I will look into the Hash Set to see if I should use that. But now that it works I dont want to change. It is kind of cool using something different. I think Treeset is sort of a replacement for Vector if you don't care that the information will not by synchronized. So it is faster. Thanks for the comments.
To do a great right, do a little wrong - shakepeare. twisted little ad:
Devious Experiments for a Truly Passive Greenhouse!