[jboss-user] [EJB 3.0] - Re: Help on java.lang.ClassCastException: java.lang.String
scout1lacno
do-not-reply at jboss.com
Thu Oct 19 06:14:42 EDT 2006
Hi Jaikiran,
Have tried your advice on:
String country = (String) myList.get(i);
I have changed my code to:
for (int i = 0; i < length; i++) {
| //TblCountry region = (TblCountry) myList.get(i) ;
| String country = (String) myList.get(i);
| System.out.println(country);
| }
But it return an error. The error is:
java.lang.ClassCastException: [Ljava.lang.Object;
| crm.ui.servlets.CountryBean.processRequest(CountryBean.java:46)
| crm.ui.servlets.CountryBean.doGet(CountryBean.java:70)
|
Thankz in advance :)
Keith
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979309#3979309
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979309
More information about the jboss-user
mailing list