Hi again Claudio, On Wed, 3 Apr 2002, Vesco Claudio wrote:
> When I run the testsuite I have this exceptions with helloiiop (client > side): > > java.lang.ClassCastException > at > com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemo > teObject.java:293) > at > javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134) > at > org.jboss.test.helloiiop.test.HelloTimingStressTestCase.testData(HelloTiming > StressTestCase.java:74) Yes! I reproduced this on Linux. Was not getting this exception before because I had a .java.policy file granting AllPermission to anyone. Once I deleted the .java.policy file I got the same exception as you. PortableRemoteObject.narrow must instantiate an stub of the appropriate type. It attempts to download the bytecodes for the stub class (from a codebase URL embedded within the IOR), but was not granted network access rights. So it throws ClassCastException. I am changing testsuite/build.xml to fix this. Target iiop-test will run a client with a suitable client.policy file, so that you won't need a .java.policy file in you home dir. Will commit the change in a few minutes. BTW: This is not a jdk 1.4 issue. The same problem should be happening with jdk 1.3... (The .java.policy file in my home dir was hiding it from me.) And the fix should also work for jdk 1.3. Thanks for reporting the problem! Cheers, Francisco _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
