> I get a 'ClassCastException: $Proxy1'.
> Here's a code snippet:
>
> Collection clct = home.findByPersonsName( "Bob" );
> for( Iterator itr=clct.iterator(); itr.hasNext; )
> {
> // This is where I get a class cast exception...??
> AccountPK pk = (AccountPK) itr.next();
> }
>
I think you need:
Object o = itr.next() ;
AccountPK pk = (AccountPK)PortableRemoteObject.narrow( o,
AccountPK.class ) ;
Good luck!!
Tim.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
- [jBoss-User] Is it Me? BMP casting problem. Peter Braswell
- Re: [jBoss-User] Is it Me? BMP casting problem. Rickard �berg
- [jBoss-User] Stupid, stupid, stupid! was Is it Me? BM... Peter Braswell
- Re: [jBoss-User] Is it Me? BMP casting problem. Chris Winters
- Re: [jBoss-User] Is it Me? BMP casting problem. Luke Taylor
- Re: [jBoss-User] Is it Me? BMP casting problem. Vincent Harcq
- Re: [jBoss-User] Is it Me? BMP casting problem. Rafizan Baharum
- Re: [jBoss-User] Is it Me? BMP casting problem. Tim Yates
- Re: [jBoss-User] Is it Me? BMP casting problem. Ole Husgaard
- Re: [jBoss-User] Is it Me? BMP casting problem. Toby Allsopp
- Re: [jBoss-User] Is it Me? BMP casting problem. Alexander Kogan
- RE: [jBoss-User] Is it Me? BMP casting problem. Castro, David
- [jBoss-User] testing 1 2 3 David Rothman
- RE: [jBoss-User] Is it Me? BMP casting problem. Bordet, Simone
