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

(reliability) referential integrity loophole for remote references passed as arguments

XMLWordPrintable

    • beta
    • x86
    • linux
    • Verified

      JDK : 5.0 u1 b04 and 5.0 fcs
      VM : default
      switch/Mode : default
      Platform[s] : SLEs 9 AMD64

      How to reproduce:
      ====================

      1) cp /net/cady.sfbay/export/dtf/unified/knight-ws/suites/rmi_reliability/tiger/rmi_reliability.tar to your local dir

      2) install local copy of jdk
      2) cd rmi
      3) launch_reliability.ksh jdk wordir_dir result_dir shell_location ./src 1 -showversion &

         (ex. launch_reliability.ksh `pwd`/j2sdk1.5.0_01 `pwd`/workdir `pwd`/result /usr/bin/ksh `pwd`/.src 1 -showversion)

         There is more detail on README.

      4) It is set to be complete in 1 hour, but about 30 min java.lang.RuntimeException will appear. See $RESULTDIR/log.juicer.appleuser

       
      Note:
      Modify the following file will let you have pass more than one VM flags
      ./launch_reliability.ksh
        From:
           VMOPTS=$7
         To:
           shift 6
           VMOPTS=$*

      ./src/scripts/run_bench.ksh and ./src/scripts/run_juicer.ksh
        From:
           VMOPTS=$6
          To:
           shift 5
           VMOPTS=$*

      Error log
      ----------
      ava version "1.5.0_01-ea"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-ea-b04)
      Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_01-ea-b04, mixed mode)

      Oct 19, 2004 5:02:31 PM AppleUserImpl main
      INFO: Application server must be started in separate process
      Oct 19, 2004 5:02:31 PM AppleUserImpl main
      INFO: Waiting for application server process to start
      Oct 19, 2004 5:02:40 PM AppleUserImpl main
      INFO: Test starting
      Oct 19, 2004 5:02:40 PM AppleUserImpl main
      INFO: Waiting 1 hours for test to complete or exception to be thrown
      Oct 19, 2004 5:27:52 PM AppleUserImpl main
      INFO: TEST FAILED
      java.lang.RuntimeException: TEST FAILED: juicer server reported an exception
              at AppleUserImpl.main(AppleUserImpl.java:326)
      Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
              java.rmi.NoSuchObjectException: no such object in table
              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325)
              at sun.rmi.transport.Transport$1.run(Transport.java:153)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
              at java.lang.Thread.run(Thread.java:595)
              at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
              at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
              at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
              at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:179)
              at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
              at $Proxy2.recurse(Unknown Source)
              at AppleUserImpl$AppleUserThread.run(AppleUserImpl.java:166)
      Caused by: java.rmi.NoSuchObjectException: no such object in table
              at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
              at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
              at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
              at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:179)
              at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
              at $Proxy3.recurse(Unknown Source)
              at OrangeImpl.recurse(OrangeImpl.java:33)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
              at sun.rmi.transport.Transport$1.run(Transport.java:153)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
              at java.lang.Thread.run(Thread.java:595)
      Oct 19, 2004 5:27:52 PM AppleUserImpl main
      INFO: Test finished
      Oct 19, 2004 5:27:52 PM AppleUserImpl main
      INFO: Test duration was 1511 seconds (0 hours)
      ###@###.### 10/20/04 17:08 GMT

            peterjones Peter Jones (Inactive)
            tacheung Tak Wing Cheung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: