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

poa.servant_to_reference() fails with NPE for an inactive servant

XMLWordPrintable

    • b31
    • sparc
    • solaris_1
    • Not verified

        *******************************************************************************

        ###@###.### 2002-12-06

        Problem description :
           This is a regression with ripint generic build (12/03).
        There are 2 failures here.
        1. For a POA with RETAIN, UNIQUE_ID and NO_IMPLICIT_ACTIVATION policy
        poa.servant_to_reference() fails with NPE for an inactive servant rather than throwing ServantNotActive Exception.

        2. For a POA with RETAIN, UNIQUE_ID and IMPLICIT_ACTIVATION policy poa.servant_to_reference fails with NPE rather than activating the servant and returning a valid reference.

        Test case:
        /java/idl/ws/rip/RIP_TEST_MASTER/tests/api/poa/poa/servanttoreference
        scenario servantToRefTest004 - for failure1
        scenario servantToRefTest006 - for failure2

        Error trace :
        java.lang.NullPointerException
                at com.sun.corba.ee.internal.POA.POAPolicyMediatorBase_R.servantToId(POAPolicyMediatorBase_R.java:146)
                at com.sun.corba.ee.internal.POA.POAImpl.servant_to_reference(POAImpl.java:1075)
                at api.poa.poa.servanttoreference.ServantToRefTest.servantToRefTest006(ServantToRefTest.java:334)
                at api.poa.poa.servanttoreference.ServantToRefTest.<init>(ServantToRefTest.java:44)
                at api.poa.poa.servanttoreference.ServantToRefTest.main(ServantToRefTest.java:345)

        ******************************************************************************

              kcavanauorcl Ken Cavanaugh (Inactive)
              smanuel Sony Manuel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: