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

JSR160 FailedConnectionTest does not behave correctly when JMXMP not available

XMLWordPrintable

    • b32
    • generic
    • generic

      This test should check if optional JSR 160 classes are present before attempting to use JMXP protocol.

      Today it leads to a failure in J2SE env:

      #Test Results (version 2)
      #Mon Dec 01 00:41:33 PST 2003
      #checksum:72d00b56d3ff3366
      #-----testdescription-----
      $file=/export/disk07/serviceability/ws/j2se/gate_jmxteam/service_sdk_jsr160.ws/test/javax/management/remote/mandatory/connection/FailedConnectionTest.java
      $root=/export/disk07/serviceability/ws/j2se/gate_jmxteam/service_sdk_jsr160.ws/test
      author=Shanliang JIANG
      keywords=bug4939578
      run=USER_SPECIFIED clean FailedConnectionTest\nUSER_SPECIFIED build FailedConnectionTest\nUSER_SPECIFIED main FailedConnectionTest\n
      source=FailedConnectionTest.java
      title=test to get an IOException.

      #-----environment-----

      #-----testresult-----
      description=file:///export/disk07/serviceability/ws/j2se/gate_jmxteam/service_sdk_jsr160.ws/test/javax/management/remote/mandatory/connection/FailedConnectionTest.java
      end=Mon Dec 01 00:41:33 PST 2003
      environment=regtest
      execStatus=Failed. Unexpected exit from test [exit code: 1]
      javatestOS=SunOS 5.8 (sparc)
      javatestVersion=2.1.6
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages clean build compile build main
      start=Mon Dec 01 00:41:17 PST 2003
      status=Failed. Unexpected exit from test [exit code: 1]
      test=javax/management/remote/mandatory/connection/FailedConnectionTest.java
      work=/export/disk07/serviceability/ws/j2se/gate_jmxteam/service_sdk_jsr160.ws/test/javax/management/JTwork/javax/management/remote/mandatory/connection

      #section:script_messages
      ----------messages:(4/313)----------
      JDK under test: (/export/disk07/serviceability/ws/j2se/gate_jmxteam/service_sdk_jsr160.ws/build/solaris-sparc/j2sdk-image)
      java version "1.5.0-internal"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-internal-jferaud_28_Nov_2003_07_39)
      Java HotSpot(TM) Server VM (build 1.5.0-beta-b29, mixed mode)

      #section:clean
      ----------messages:(3/128)----------
      command: clean FailedConnectionTest
      reason: User specified action: run clean FailedConnectionTest
      elapsed time (seconds): 0.0
      result: Passed. Clean successful

      #section:build
      ----------messages:(3/130)----------
      command: build FailedConnectionTest
      reason: User specified action: run build FailedConnectionTest
      elapsed time (seconds): 5.344
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/246)----------
      command: compile /export/disk07/serviceability/ws/j2se/gate_jmxteam/service_sdk_jsr160.ws/test/javax/management/remote/mandatory/connection/FailedConnectionTest.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 5.34
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/107)----------
      command: build FailedConnectionTest
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0020
      result: Passed. No need to compile: FailedConnectionTest.java

      #section:main
      ----------messages:(3/128)----------
      command: main FailedConnectionTest
      reason: User specified action: run main FailedConnectionTest
      elapsed time (seconds): 10.259
      ----------System.out:(18/962)----------

      >>>>>> test to get an IOException when calling getConnectionID on a closed connection.
      >>>>>> Test for protocol rmi
      >>>>>> Test successed for rmi
      >>>>>> Test for protocol iiop
      >>>>>> Test successed for iiop
      >>>>>> Test for protocol jmxmp
      >>>>>> Test failed for jmxmp

      java.net.MalformedURLException: Unsupported protocol: jmxmp
      at javax.management.remote.JMXConnectorServerFactory.newJMXConnectorServer(JMXConnectorServerFactory.java:307)
      at FailedConnectionTest.test(FailedConnectionTest.java:57)
      at FailedConnectionTest.main(FailedConnectionTest.java:30)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:489)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:83)
      at java.lang.Thread.run(Thread.java:559)
      >>> TEST FAILED
      ----------System.err:(0/0)----------
      result: Failed. Unexpected exit from test [exit code: 1]

            sjiang Shanliang Jiang (Inactive)
            jferaud Joel Feraud (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: