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

Regression-test .../mandatory/connection/BrokenConnectionTest.java fails

    Details

    • Subcomponent:
    • Resolved In Build:
      b42
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Description



      Name: vsR10238 Date: 12/25/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b32
      Testbase : Regression-test (for JDK1.5.0-b32)
      Platform[s] : Mercury, Suse Linux 8.2
      switch/Mode : -client, -server
      Falling test[s]:
               javax/management/remote/mandatory/connection/BrokenConnectionTest.java

      Regression-test javax/management/remote/mandatory/connection/BrokenConnectionTest.java test fails
      on Mercury, Suse Linux 8.2 using JDK1.5.0-b32:

      When the test fails it mentions the following exception in the jtr file:

      SEVERE: Failed to fetch notification, stopping thread. Error is: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
      java.io.EOFException
      java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
      java.io.EOFException
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:203)
      ...



      The test passes using JDK1.5.0-b32 on other platforms.

      The test was excluded from testing till b32 due to 4956080.
      The test fails using JDK1.5.0-b31 on a wider set of platforms probably due to 4956080.
      For example, the test passes on RH Linux 7.3 using JDK1.5.0-b32 and fails using JDK1.5.0-b31.

      The test cannot be compiled and run using JDK1.4.2.

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/management/remote/mandatory/connection/BrokenConnectionTest.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/management/remote/mandatory/connection/BrokenConnectionTest.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)

      --- script start ---
      #!/bin/sh
      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir

      #Paths in Java Software:
      JT_HOME="/java/re/jct-tools/3.1.2/archive/fcs/binaries"
      JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
      JAVA_HOME="/java/re/jdk/1.5.0/promoted/all/b32/binaries/linux-i586"
      TEST_BASE_PATH="/java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test"

      #Alternative paths outside Java Software:
      #JT_HOME="/net/koori.sfbay/onestop/jct-tools/3.1.2/archive/fcs/binaries"
      #JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
      #JAVA_HOME="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b32/binaries/linux-i586"
      #TEST_BASE_PATH="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b32/ws/j2se/test"

      #Alternative paths for the NSK site:
      #JT_HOME="/net/linux-15/export/home/java/jct"
      #JEMMY_JAR="$JT_HOME/jemmy/jemmy.jar"
      #JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/linux"
      #TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/test"


      TESTVMOPTS="-client"
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"

      TEST="javax/management/remote/mandatory/connection/BrokenConnectionTest.java"

      mkdir -p $WORK_DIR/scratch 2>&1
      mkdir -p $WORK_DIR/jtData 2>&1
      mkdir -p $REPORT_DIR 2>&1

      #rm $WORK_DIR/jtData/ResultCache.jtw 2>&1

      cd $WORK_DIR/scratch

      $JAVA_HOME/bin/java -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-17" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/$TEST"

      --- script end ---


      Test output (jtr part, some content is skipped):
      ================================================
      ----------System.out:(291/16245)----------

      ------- Testing for rmi -------
      RMI broken connection test

      Test 1: getDefaultDomain, break, getDefaultDomain
      .....
      Test 1 passed

      Test 2: addNotificationListener(NL), break, addNotificationListener(NL)
      Created and started connector server
      Client connected OK
      Client ran addNotificationListener(NL) OK
      Broke connection, run addNotificationListener(NL) again
      Got IOException as expected (java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
      java.io.EOFException)
      Stopping server
      Waiting for failure notif
      Did not get failure notif!
      Test 2 FAILED

      Test 3: addNotificationListener(MB), break, addNotificationListener(MB)
      ....
      Test 3 passed

      ....

      Test 21: break during send for setAttribute
      Created and started connector server
      Client connected OK
      Filter: javax.management.remote.JMXConnectionNotification[source=javax.management.remote.rmi.RMIConnector$RMIClientCommunicatorAdmin@4204][type=jmx.remote.connection.failed][message=Failed to
      communicate with the server: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
      java.net.SocketException: Connection reset] (jmx.remote.connection.failed)
      Got IOException as expected: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
      java.net.SocketException: Connection reset
      Stopping server
      Waiting for failure notif
      Test 21 passed

      Test 22: break during receive for getAttribute
      Created and started connector server
      Client connected OK
      Filter: javax.management.remote.JMXConnectionNotification[source=javax.management.remote.rmi.RMIConnector$RMIClientCommunicatorAdmin@3a1834][type=jmx.remote.connection.failed][message=Failed to
      communicate with the server: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
      java.io.EOFException] (jmx.remote.connection.failed)
      Got IOException as expected: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
      java.io.EOFException
      Stopping server
      Waiting for failure notif
      Test 22 passed
      FAILING CASES: 2

      ------- Testing for jmxmp -------
      JMXMP broken connection test
      Optional classes not present, skipping test

      TEST FAILED FOR: rmi
      ----------System.err:(17/1160)----------
      Dec 24, 2003 8:35:25 AM ClientNotifForwarder NotifFetcher-run
      SEVERE: Failed to fetch notification, stopping thread. Error is: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
      java.io.EOFException
      java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
      java.io.EOFException
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:203)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
      at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
      at javax.management.remote.rmi.RMIConnectionImpl_Stub.fetchNotifications(Unknown Source)
      at javax.management.remote.rmi.RMIConnector$RMINotifClient.fetchNotifs(RMIConnector.java:1271)
      at com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher.fetchNotifs(ClientNotifForwarder.java:424)
      at com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher.run(ClientNotifForwarder.java:322)
      at java.lang.Thread.run(Thread.java:566)
      Caused by: java.io.EOFException
      at java.io.DataInputStream.readByte(DataInputStream.java:340)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:189)
      ... 7 more
      result: Failed. Unexpected exit from test [exit code: 1]


      test result: Failed. Unexpected exit from test [exit code: 1]


      Specific machine info:
      ======================
      Hostname: linux-17
      OS: Mercury



      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              sjiang Shanliang Jiang (Inactive)
              Reporter:
              vshsunw Vsh Vsh (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: