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

JCK7: 2 serialization tests for CompositeDataSupport fail with NPE since JDK7-b41

XMLWordPrintable

    • b41
    • 7
    • generic
    • generic

      Filed By : JCK team
      JDK : java full version "1.7.0-ea-b41"
      JCK : 7-ea-b09
      Platform[s] : Solaris
      switch/Mode :
      JCK test owner : http://javaweb.sfbay.sun.com/jcce/tcks/jck/docs/others/owners.jto
      Failing Test[s]:
        api/javax_management/jmx_serial/openmbean/CompositeDataSupport/serial/index.html#Constructor[serial2001]
        api/javax_management/jmx_serial/openmbean/CompositeDataSupport/serial/index.html#Constructor[serial2002]

      Problem description
      ===================
      Since JDK7-b41 the following JCK7 test cases:
        api/javax_management/jmx_serial/openmbean/CompositeDataSupport/serial/index.html#Constructor[serial2001]
        api/javax_management/jmx_serial/openmbean/CompositeDataSupport/serial/index.html#Constructor[serial2002]
      throws java.lang.NullPointerException.

      Please use the following script to reproduce these failures:
      --- index_Constructor.sh ---
      #!/bin/sh

      TCK_HOME=/java/re/jck/7/promoted/ea/b09/binaries/JCK-runtime-7
      CLASSPATH="$TCK_HOME/classes"
      JAVA_HOME=/java/re/jdk/7/promoted/all/b41/binaries/solaris-sparc

      "$JAVA_HOME/bin/java" -cp $CLASSPATH javasoft.sqe.tests.api.javax.management.openmbean.CompositeDataSupport.serial.ConstructorTests -TestCaseID ALL

      if [ $? != 95 ] ; then
        echo "-- failed "; exit 1 ;
      fi

      echo "-- passed"; exit 0
      --- index_Constructor.sh ---

      Test output:
      ============
      #./index_Constructor.sh
      java.lang.NullPointerException
              at java.util.TreeMap.getEntry(TreeMap.java:341)
              at java.util.TreeMap.containsKey(TreeMap.java:226)
              at javax.management.openmbean.CompositeDataSupport.makeMap(CompositeDataSupport.java:182)
              at javax.management.openmbean.CompositeDataSupport.<init>(CompositeDataSupport.java:176)
              at javasoft.sqe.tests.api.javax.management.openmbean.CompositeDataSupport.serial.ConstructorTests.serial2001(ConstructorTests.java:75)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:623)
              at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:406)
              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.javax.management.openmbean.CompositeDataSupport.serial.ConstructorTests.main(ConstructorTests.java:33)
      serial2001: Failed. Test case throws exception: java.lang.NullPointerException
      java.lang.NullPointerException
              at java.util.TreeMap.getEntry(TreeMap.java:341)
              at java.util.TreeMap.containsKey(TreeMap.java:226)
              at javax.management.openmbean.CompositeDataSupport.makeMap(CompositeDataSupport.java:182)
              at javax.management.openmbean.CompositeDataSupport.<init>(CompositeDataSupport.java:176)
              at javasoft.sqe.tests.api.javax.management.openmbean.CompositeDataSupport.serial.ConstructorTests.serial2002(ConstructorTests.java:211)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:623)
              at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:406)
              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.javax.management.openmbean.CompositeDataSupport.serial.ConstructorTests.main(ConstructorTests.java:33)
      serial2002: Failed. Test case throws exception: java.lang.NullPointerException
      serial2003: Passed. OKAY
      serial2004: Passed. OKAY
      Creating StreamObject from Object
      Checking for JDK Version : 1.5
      Creating spec class.
      Verifying the constraints on the serial fields
      Checking for JDK Version : 6.0
      Creating spec class.
      Verifying the constraints on the serial fields
      serial2003 passed.
      Creating StreamObject from Object
      Checking for JDK Version : 1.5
      Creating spec class.
      Verifying the constraints on the serial fields
      Checking for JDK Version : 6.0
      Creating spec class.
      Verifying the constraints on the serial fields
      serial2004 passed.
      STATUS:Failed.test cases: 4; passed: 2; failed: 2; first test case failure: serial2001
      -- failed

            emcmanus Eamonn McManus
            ygaevsky Yuri Gaevsky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: