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

ServantActivator.incarnate() being invoked more than once.

    XMLWordPrintable

    Details

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

      Description


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

      ###@###.### 2002-01-08

      With build : j2sdk-1_4_0-rc-bin-b91-solsparc-05_jan_2002

      Problem Description :
      When multiple clients try to invoke an operation on a Servant under a POA with RETAIN and USE_SERVANT_MANAGER policy and the Servant does not exist in AOM, in some cases ServantActivator.incarnate() is invoked more than once for the same Servant.

      In some cases the client threads get a OBJ_ADAPTER exception with a minor code of 1005 if we introduce some delay in incarnate().

      /java/re/jdk/1.4/promoted/latest/binaries/solsparc/bin/java -Dorg.omg.CORBA.ORBInitia
      lPort=9999 -Dorg.omg.CORBA.ORBInitialHost=sony -classpath . test.Server 50
      Set servant manager
      Servant registered
      /java/re/jdk/1.4/promoted/latest/binaries/solsparc/bin/java -Dorg.omg.CORBA.ORBInitia
      lPort=9999 -Dorg.omg.CORBA.ORBInitialHost=sony -classpath . test.Client 5
      Creating client - 1
      Creating client - 2
      Creating client - 3
      Creating client - 4
      Creating client - 5
      Incarnating Object - ABCRef in POA - Child
      Sleeping for 50msecs
      Incarnating Object - ABCRef in POA - Child
      Sleeping for 50msecs
      Client - 1 : Hello
      Client - 2 : Hello

      ClientNo - 3
      org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 1005 completed: No
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcc
      essorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstr
      uctorAccessorImpl.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.getSystemExceptio
      n(ReplyMessage_1_2.java:90)
              at com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(Clien
      tResponseImpl.java:105)
              at com.sun.corba.se.internal.POA.GenericPOAClientSC.invoke(GenericPOAClientSC
      .java:129)
              at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
              at test._HelloStub.sayHello(_HelloStub.java:19)
              at test.Client.run(Client.java:27)
      Client - 5 : Hello
      Client - 4 : Hello
      Client - 3 : Hello
      Client - 1 : Hello
      Client - 2 : Hello
      Client - 4 : Hello
      Client - 5 : Hello
      Client - 3 : Hello
      Client - 1 : Hello
      Client - 2 : Hello
      Client - 4 : Hello
      Client - 5 : Hello

      Test source code :
      Attached with the bug

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

      ###@###.### 2002-08-05

      Fix verified OK
      with build - j2sdk-1_4_1-rc-bin-b18-solaris-sparc-24_jul_2002
      with test - tests/scalability/poa

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: