> 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]

Reply via email to