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

5.0u3 b4 JCK test failing with -Xcheck:jni flag on Windows 2003

    Details

    • Subcomponent:
    • Resolved In Build:
      b06
    • CPU:
      x86
    • OS:
      windows_2003

      Backports

        Description

        I ran the JCK tests for 1.5.0_03 build4 with the -Xcheck:jni flag on Windows 2003.
        One test failed that passes when you remove the -Xcheck:jni flag.

        This test PASSES on Solaris sparc 10 and cinnebar.
        The test FAILS on Windows 2003 AMD 64 and Windows 2003 x86 32 bit.

        The failing test is:
        api/java_net/MulticastSocket/descriptions.html#NetworkInterface

        The error reported when the test fails:

        test=api/java_net/MulticastSocket/descriptions.html#NetworkInterface
        timeoutSeconds=600
        work=C:\\JQA\\ts150\\jck\\workDir\\api\\java_net\\MulticastSocket

        #section:script_messages
        ----------messages:(1/25)----------
        Executing test class...

        #section:testExecute
        ----------messages:(1/567)*----------
        command: com.sun.jck.lib.ExecJCKTestOtherJVMCmd CLASSPATH=H:\\jck\\JCK-runtime-15\\classes LD_LIBRARY_PATH=H:\\jck\\JCK-runtime-15\\lib\\win64;C:\\WINDOWS\\system32\\jmx;C:\WINDOWS\\system32 SystemRoot=C:/WINDOWS TMP=C:\\JQA\\ts150\\jck\\workDir TEMP=C:\\JQA\\ts150\\jck\\workDir DISPLAY=pentane:0.0 c:\\progra~1\\java\\jdk1.5.0_03\\bin\\java.exe -Xcheck:jni -Djavatest.security.allowPropertiesAccess=true -Xfuture -Djava.security.policy=H:\\jck\\JCK-runtime-15\\lib\\jck.policy javasoft.sqe.tests.api.java.net.MulticastSocket.NetworkInterfaceTests -TestCaseID ALL
        ----------out1:(0/0)----------
        ----------out2:(14/1084)----------
        FATAL ERROR in native method: JNI call made with exception pending
        at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method)
        at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:299)
        at java.net.MulticastSocket.setNetworkInterface(MulticastSocket.java:502)
        - locked <0x000000005005ecd0> (a java.lang.Object)
        at javasoft.sqe.tests.api.java.net.MulticastSocket.NetworkInterfaceTests.MulticastSocket2015(NetworkInterfaceTests.java:71)
        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:585)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
        at javasoft.sqe.tests.api.java.net.MulticastSocket.NetworkInterfaceTests.main(NetworkInterfaceTests.java:30)
        result: Failed. unexpected exit code: exit code 1


        Location of test file:
        /net/latte.ireland/export/home4/jck/JCK-runtime-15/tests/api/java_net/MulticastSocket/NetworkInterfaceTests.java

        Location of jtr file:
        /net/latte.ireland/export/home6/sharon/JCKFailure/descriptions_NetworkInterface.jtr

        To Reproduce:

        Install jdk 1.5.0_03u4 on a Windows 2003 machine.
        Map a network drive to /net/latte.ireland/export/home4/jck and set classpath
        to /net/latte.ireland/export/home4/jck/JCK-runtime-15/lib/javatest.jar;/net/latte.ireland/export/home4/jck/JCK-runtime-15/classes
        Copy the java test file from the above location and compile it.
        Execute it with -Xcheck:jni - test fails
        Execute it without the flag - test passes
        set CLASSPATH=

        ###@###.### 2005-2-11 12:59:44 GMT

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  michaelm Michael McMahon
                  Reporter:
                  duke J. Duke (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: