From: Gustav B. <Gus...@eo...> - 2002-02-25 12:57:30
|
I did some further testing and found out that this problem only occurs = when "Reload test-classes" is enabled. This might explain the difference = between the SwingUI/TextUI and 3.2 which did not feature reloading of = testclasses. I'm still wondering how reloading testclasses could cause this problem = though. /Gustav > -----Original Message----- > From: Gustav Bostrom =20 > Sent: Monday, February 25, 2002 12:06 PM > To: 'jun...@li...' > Subject: Problem calling EJBs(JBoss) from JUnit 3.7 SwingUI, works in = 3.2 and 3.7 TextUI >=20 > Hi! >=20 > I'm aware that this is not really a development question, but I'm not = sure where else to turn. >=20 > I'm experiencing an extremely weird problem when running JUnit 3.7 = Swing UI when I'm testing EJBs running in JBoss. > I get this error: >=20 > java.lang.ClassCastException =09 > at = com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableR= emoteObject.java:296) =09 > at = javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137) =09 > at = com.eonworx.appl.tumgmt.ao.ejb.test.TestCreateTenantUser.setUp(TestCreate= TenantUser.java:68) >=20 > Admittedly this is not an error in the JUnit code, however what = really puzzles me is that I do not get this error when running JUnit 3.7 = TextUI! > The error is not present in JUnit 3.2 either in the TextUI or the = SwingUI. So, I'm absolutely positive that this is not a problem in the = test setUp() code. > If anyone can tell me what is wrong here I would be very thankful! >=20 > Any hint on how to get this to work would be great. For now we are = forced to use JUnit 3.2 instead of 3.7 which is of course not what we = want especially since we want to move to JDK 1.4 >=20 > Best regards, >=20 >=20 > gustav bostr=F6m >=20 > the eon company > www.eoncompany.com >=20 > o +46-8-54528800 > m +46-70-9575154 > e gus...@eo... >=20 >=20 |