Hi,
I'm getting this exception:
java.lang.ClassCastException: com.pcl.mobility.database.entity.ProductChosen
at
com.sun.corba.ee.internal.javax.rmi.CORBA.Util.mapSystemException(Util.java:
101)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
at
com.pcl.mobility.session.invoice._InvoicingProducts_Stub.getProductsChosen(U
nknown Source)
at test.TestClient.testInvoicingProducts(TestClient.java:413)
at test.TestClient.<init>(TestClient.java:43)
at test.TestClient.main(TestClient.java:48)
ProductsChosen is an ordinary class extending Object and is included in my
library jar. It has getter, setter and other public methods and protected
data members.
this is a getter method in my session bean:
public Vector getProductsChosen ()
{ return productsChosen;
}
productsChosen is a vector of the ProductChosen objects. ProductChosen
objects are added like so - productsChosen.addElement (new ProductChosen
(....));
Now, when running this piece of client code, i get the above exception (NB.
productsChosen already contains some ProductChosen objects at this point):
try {
v = rem.getProductsChosen();
}
catch (Exception e)
{ e.printStackTrace();
}
I can't seem to solve this. Any ideas?
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".