Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4592953

POA not raising OBJ_ADAPTER exception when ServantManger returns null Servant

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      hopper
    • CPU:
      sparc
    • OS:
      solaris_1
    • Verification:
      Verified

      Description

      ###@###.### 2001-12-11

      As per the spec formal/99-10-07 Section 11.3.4.1 : If a ServantManager returns null Servant(or the equivalent in a language mapping) as the result of an incarnate() or preinvoke() operation, the POA will return OBJ_ADAPTER system exception as the result of the request.

      The current implementation raises an OBJECT_NOT_EXIST exception.

      bash-2.04$ java -version
      java version "1.4.0-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b89)
      Java HotSpot(TM) Client VM (build 1.4.0-rc-b89, mixed mode)
      bash-2.04$ idlj -fall hello.idl
      bash-2.04$ javac ServantManagerTest.java
      bash-2.04$ java ServantManagerTest
      Set servant manager
      Incarnating Object
      org.omg.CORBA.OBJECT_NOT_EXIST: vmcid: SUN minor code: 1004 completed: No
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
              at java.lang.Class.newInstance0(Class.java:296)
              at java.lang.Class.newInstance(Class.java:249)
              at com.sun.corba.se.internal.iiop.messages.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:90)
              at com.sun.corba.se.internal.iiop.LocalClientResponseImpl.getSystemException(LocalClientResponseImpl.java:122)
              at com.sun.corba.se.internal.POA.GenericPOAClientSC.invoke(GenericPOAClientSC.java:129)
              at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
              at _helloStub.sayHello(_helloStub.java:17)
              at ServantManagerTest.main(ServantManagerTest.java:33)

      Run the attached test to reproduce the problem.

      ********************************************************************************
      ###@###.### 2002-02-28

      - Fix verified ok
        1) with build: j2sdk-1_4_1-beta-bin-b03-solsparc-28_feb_2002
        2) with sqe test: tests/api/poa/poa/setservantmanager:Test08
      ********************************************************************************

        Attachments

          Activity

            People

            Assignee:
            hputtaswsunw Hemanth Puttaswamy (Inactive)
            Reporter:
            smanuel Sony Manuel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: