From: Marius K. <ma...@bo...> - 2002-05-31 16:53:39
|
This is not my case. I lookup a home interface, and then I suppose I just get that one, not a list. This code worked some days ago. On Fri, 2002-05-31 at 18:42, Deepa Annamalai wrote: > Hello, >=20 > The problem is like this, >=20 > If the remote interface is something like this, >=20 > HelloHome home =3D ................................ > Enumeration enum =3D (Enumeration) > PortableRemoteObject.narrow(home.findByID(id), HelloBean.class); >=20 >=20 > Here the finder method returns enumeration, but narrow is trying to cast > that to HelloBean. >=20 > so change the code as, >=20 > Enumeration enum =3D (Enumeration) home.findById(Id) ); > while(enum.hasNextElement()) > { > HelloBean hello =3D > PortableRemoteObject.narrow(enum.nextElement() , HelloBean.class); > } >=20 >=20 > Warm Regards, > Deepa Annamalai > Virtusa (Pvt) Ltd., > 3rd Floor, My Home Tycoon,=20 > Begumpet, > Hyderabad, AP=20 > India - 500 016. > +91-40-3414200 ext 135/136 > de...@vi... >=20 >=20 > -----Original Message----- > From: wonder sonic [mailto:won...@ya...] > Sent: Friday, May 31, 2002 10:06 PM > To: jbo...@li... > Subject: Re: [JBoss-user] ClassCastException at > PortableRemoteObject.narrow >=20 >=20 > Well I can't login and go to the url at the same time > (problem with my Internet Explorer version)...=20 > Could you do that? >=20 > --- Marius Kotsbak <ma...@bo...> a =E9crit : > > You need an account at sourceforge.net. > >=20 > > Then go to sourceforge.net/projects/jboss and select > > bugs > >=20 > > On Fri, 2002-05-31 at 17:22, wonder sonic wrote: > > > Well, if someone want to tell me how I can do > > that, > > > I'll do it... > > >=20 > > > I really don't understand where does it come... :( > > > And with local interfaces? > > >=20 > > > --- Marius Kotsbak <ma...@bo...> a =E9crit : > > > I > > > also join :-( > > > >=20 > > > > Is it reported as a bug with top priority? > > > >=20 > > > > On Fri, 2002-05-31 at 17:00, wonder sonic wrote: > > > > > Welcome to the club :) > > > > > If you look to old mails, we have discussint > > about > > > > > this problem, search the subject "[JBoss-user] > > > > [HELP] > > > > > Is there someone to help me?" > > > > >=20 > > > > > If you find a solution, tell me :) > > > > >=20 > > > > > Wonder Sonic > > > > >=20 > > > > > --- Steve Knight <sck...@ho...> a > > =E9crit > > > > : > > > > > > Hello, > > > > > > I just updated my JBoss from 3.0 beta2 to=20 > > RC3 > > > > and > > > > > > now I am getting this > > > > > > error: > > > > > >=20 > > > > > > java.lang.ClassCastException > > > > > > at > > > > > > > > > > > > > > > > > > > > > com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableR= emo > > > > > > teObject.java:296) > > > > > >=20 > > > > > > Here is the line that is giving me problems: > > > > > >=20 > > > > > > PersonnelManagerHome pmHome =3D > > > > > > > > > > > > (PersonnelManagerHome)PortableRemoteObject.narrow( > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > >=20 > > > > > > ic.lookup( > > PersonnelManagerHome.JNDI_NAME > > > > > > ),PersonnelManagerHome.class); > > > > > >=20 > > > > > > Where PersonnelManagerHome.JNDI_NAME =3D > > > > > > "PersonnelManager" as generated by > > > > > > XDoclet. > > > > > > The very same code worked fine on beta2.=20 > > > > Everything > > > > > > in my ear appears to > > > > > > have deployed properly. > > > > > > Am I missing something obvious? > > > > > >=20 > > > > > > Thanks! > > > > > >=20 > > > > > > Steve > > > > > >=20 > > > > > > > > > > > > > > > > > > > > > _______________________________________________________________ > > > > > >=20 > > > > > > Don't miss the 2002 Sprint PCS Application > > > > > > Developer's Conference > > > > > > August 25-28 in Las Vegas -- > > > > > > http://devcon.sprintpcs.com/adp/index.cfm > > > > > >=20 > > > > > > > > _______________________________________________ > > > > > > JBoss-user mailing list > > > > > > JBo...@li... > > > > > > > > > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > >=20 > > > > >=20 > > > > > > > > > > > > > > > ___________________________________________________________ > > > > > Do You Yahoo!? -- Une adresse @yahoo.fr > > gratuite > > > > et en fran=E7ais ! > > > > > Yahoo! Mail : http://fr.mail.yahoo.com > > > > >=20 > > > > > > > > > > > > > > > _______________________________________________________________ > > > > >=20 > > > > > Don't miss the 2002 Sprint PCS Application > > > > Developer's Conference > > > > > August 25-28 in Las Vegas -- > > > > http://devcon.sprintpcs.com/adp/index.cfm > > > > >=20 > > > > > > > _______________________________________________ > > > > > JBoss-user mailing list > > > > > JBo...@li... > > > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > >=20 > > > >=20 > > > >=20 > > > > > > > > > > _______________________________________________________________ > > > >=20 > > > > Don't miss the 2002 Sprint PCS Application > > > > Developer's Conference > > > > August 25-28 in Las Vegas -- > > > > http://devcon.sprintpcs.com/adp/index.cfm > > > >=20 > > > > _______________________________________________ > > > > JBoss-user mailing list > > > > JBo...@li... > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > >=20 > > >=20 > > > > > > ___________________________________________________________ > > > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite > > et en fran=E7ais ! > > > Yahoo! Mail : http://fr.mail.yahoo.com > > >=20 > > > > > > _______________________________________________________________ > > >=20 > > > Don't miss the 2002 Sprint PCS Application > > Developer's Conference > > > August 25-28 in Las Vegas -- > > http://devcon.sprintpcs.com/adp/index.cfm > > >=20 > > > _______________________________________________ > > > JBoss-user mailing list > > > JBo...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > >=20 > >=20 > >=20 > > > _______________________________________________________________ > >=20 > > Don't miss the 2002 Sprint PCS Application > > Developer's Conference > > August 25-28 in Las Vegas -- > > http://devcon.sprintpcs.com/adp/index.cfm > >=20 > > _______________________________________________ > > JBoss-user mailing list > > JBo...@li... > > > https://lists.sourceforge.net/lists/listinfo/jboss-user=20 >=20 > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran=E7ais ! > Yahoo! Mail : http://fr.mail.yahoo.com >=20 > _______________________________________________________________ >=20 > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm >=20 > _______________________________________________ > JBoss-user mailing list > JBo...@li... > https://lists.sourceforge.net/lists/listinfo/jboss-user >=20 > _______________________________________________________________ >=20 > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm >=20 > _______________________________________________ > JBoss-user mailing list > JBo...@li... > https://lists.sourceforge.net/lists/listinfo/jboss-user |