I am using JBoss-2.4.4.  When I return a collection from an entity bean 1.1
spec,  I get a Class Cast Exception whenever I try to cast it from an Object
to an Integer. using the following code.

Collection returnedlist = usersyshome.findByUsername(this.Username);
UserSysMatch usersys = null;

Iterator syss = returnedlist.iterator();
int sysarr[] = new int[returnedlist.size()];
int x = 0;
while(syss.hasNext()){
          Object key = syss.next();

   /********************* The following line is where I get a Class Cast
Exception ********************************8     
          usersys = (UserSysMatch) PortableRemoteObject.narrow(key,
UserSysMatch.class);
          System.out.println("SysID" + key.intValue());
          UserSysMatch usersys = usersyshome.findByPrimaryKey(key);
          sysarr[x] = usersys.getSysId();
          x++;
}


Any ideas I would Appreciate it.

Thanks,

Ryan Conover
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.pitt.edu/~rscst25/




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to