-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
beta2
-
sparc
-
solaris_2.6
-
Not verified
Name: aaR10142 Date: 06/29/2001
ORB.shutdown() throws unexpected CORBA.BAD_OPERATION exception.
See example:
------------- Test.java ---------------------
import org.omg.CORBA.*;
import javax.rmi.CORBA.*;
import javax.rmi.*;
import java.rmi.*;
public class Test {
public static void main(String args[])
{
ORB myORB = null;
try {
myORB = ORB.init(new String[0], null);
TestInterface obj = new TestImpl();
} catch (Exception e ) {
System.out.println("SS" + e);
} finally {
if(myORB!=null) {
myORB.shutdown(true);
}
}
}
}
interface TestInterface extends Remote
{
}
class TestImpl extends PortableRemoteObject implements TestInterface
{
public TestImpl() throws RemoteException {}
}
------------------- start --------------------
#> javac Test.java
#>rmic -iiop TestImpl
#>java Test
----------------- jdk1.4 output -----------------
Exception in thread "main" org.omg.CORBA.BAD_OPERATION: The delegate has not been set! vmcid: 0x0 minor code: 0 completed: No
at org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImpl.java:56)
at org.omg.CORBA.portable.ObjectImpl._orb(ObjectImpl.java:298)
at _TestImpl_Tie.orb(Unknown Source)
at com.sun.corba.se.internal.javax.rmi.CORBA.Util.unregisterTargetsForORB(Util.java:323)
at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.unregisterTargetsForORB(ShutdownUtilDelegate.java:25)
at com.sun.corba.se.internal.iiop.ORB.shutdownServants(ORB.java:419)
at com.sun.corba.se.internal.POA.POAORB.shutdownServants(POAORB.java:567)
at com.sun.corba.se.internal.corba.ORB.shutdown(ORB.java:2394)
at Test.main(Test.java:20)
======================================================================
*******************************************************************************
###@###.### 2001-10-24
Fix verified OK:
-using build: j2sdk-1_4_0-beta3-bin-b84-solsparc-20_oct_2001
- using tests: tests/api/poa/adapteractivator
*******************************************************************************