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

REGRESSION: JCK1.5 null printer returned when no printers configured

XMLWordPrintable

    • 2d
    • b49
    • itanium
    • linux
    • Verified



      Name: vsR10238 Date: 04/22/2004


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b46,b47,b48 (passes using JDK1.5.0-b44, JDK1.4.2-b28)
      JCK : JCK1.5-runtime (b16,b17)
      Platform[s] : RedHat Advanced Server 3 (ia64)
      JCK test owner : http://javaweb.sfbay/jcce/tcks/jck/1.5/project/data_reports/owners.jto
      Falling test[s]:
               api/javax_print/ServiceUI/index.html#printDialog [printDialog004, result]

      JCK1.5-runtime test api/javax_print/ServiceUI/index.html#printDialog fails
      using JDK1.5.0-b46,b47,b48 with NPE.

      The test passes on ia64 using JDK1.5.0-b44, JDK1.4.2-b28/JCK1.4a.

      The failure has not been reproduced on other platforms.

      Test source location:
      =====================
      /java/re/jck/1.5/promoted/beta2/b17/binaries/JCK-runtime-15/tests/api/javax_print/ServiceUI/printDialogTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b47/jck15/linux/RedHat_Advanced_Server_3_Gnome__linux-9/workDir/api/javax_print/ServiceUI/index_printDialog.jtr

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

      --- script start ---
      #!/bin/sh

      #Paths in Java Software:
      JDK="/java/re/jdk/1.5.0/promoted/all/b47/binaries/linux-ia64"
      JCK="/java/re/jck/1.5/promoted/beta2/b17/binaries/JCK-runtime-15"

      #Alternative paths outside Java Software
      #JDK="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b47/binaries/linux-ia64"
      #JCK="/net/koori.sfbay/onestop/jck/1.5/promoted/beta2/b17/binaries/JCK-runtime-15"

      #Alternative paths for the NSK site:
      #JCK="/net/linux-15/export/home/java/jck1.5/JCK-runtime-15"
      #JDK="/net/linux-15/export/home/java/jdk1.5.0/linux_ia64"

      SWITCHES=""
      CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"

      TEST="javasoft.sqe.tests.api.javax.print.ServiceUI.printDialogTests"
      TESTCASES="-TestCaseID ALL"

      echo `cat $JCK/build.txt | grep JCK_VERSION` `cat $JCK/build.txt | grep JCK_BUILD`

      $JDK/bin/java -showversion $SWITCHES -cp $CLASSPATH $TEST $TESTCASES
      --- script end ---

      Test output:
      ============
      JCK_VERSION=1.5 JCK_BUILD_ID=b17
      java version "1.5.0-beta2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b48)
      Java HotSpot(TM) 64-Bit Server VM (build 1.5.0-beta2-b48, mixed mode)

      printDialog001: Passed. Ok
      printDialog002: Passed. Ok
      printDialog003: Passed. Ok
      java.lang.NullPointerException
               at javax.print.ServiceUI.printDialog(ServiceUI.java:154)
               at javasoft.sqe.tests.api.javax.print.ServiceUI.printDialogTests.printDialog004(printDialogTests.java:195)
               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:495)
               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.javax.print.ServiceUI.printDialogTests.main(printDialogTests.java:94)
      printDialog004: Failed. Test case throws exception: java.lang.NullPointerException
      STATUS:Failed.test cases: 4; passed: 3; failed: 1; first test case failure: printDialog004

      Test output (jtr part):
      =======================
      ----------out1:(16/1041)----------
      printDialog001: Passed. Ok
      printDialog002: Passed. Ok
      printDialog003: Passed. Ok
      java.lang.NullPointerException
      at javax.print.ServiceUI.printDialog(ServiceUI.java:154)
      at javasoft.sqe.tests.api.javax.print.ServiceUI.printDialogTests.printDialog004(printDialogTests.java:195)
      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:495)
      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.javax.print.ServiceUI.printDialogTests.main(printDialogTests.java:94)
      printDialog004: Failed. Test case throws exception: java.lang.NullPointerException
      STATUS:Failed.test cases: 4; passed: 3; failed: 1; first test case failure: printDialog004
      ----------out2:(0/0)----------
      result: Failed. test cases: 4; passed: 3; failed: 1; first test case failure: printDialog004


      test result: Failed. test cases: 4; passed: 3; failed: 1; first test case failure: printDialog004


      Specific machine info:
      ======================
      Hostname: linux-9
      OS: RedHat Advanced Server 3 (Gnome) (ia64)


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

      Name: ooR10006 Date: 04/28/2004



      The following JCK1.5 tests fail due to this bug on Linux 2.4.20-8 (i386)
      (jdk1.5.0-b47, -server -Xint -d32 mode):

      api/javax_print/CancelablePrintJob/index.html#Cancel[Cancel001]
      api/javax_print/DocPrintJob/index.html#AttributeListener[AttributeListener007]
      api/javax_print/DocPrintJob/index.html#AttributeListener[AttributeListener006]
      api/javax_print/DocPrintJob/index.html#AttributeListener[AttributeListener005]
      api/javax_print/DocPrintJob/index.html#AttributeListener[AttributeListener004]
      api/javax_print/DocPrintJob/index.html#AttributeListener[AttributeListener001]
      api/javax_print/DocPrintJob/index.html#Get[Get003]
      api/javax_print/DocPrintJob/index.html#Get[Get002]
      api/javax_print/DocPrintJob/index.html#Get[Get001]
      api/javax_print/DocPrintJob/index.html#JobListener[JobListener005]
      api/javax_print/DocPrintJob/index.html#JobListener[JobListener004]
      api/javax_print/DocPrintJob/index.html#JobListener[JobListener003]
      api/javax_print/DocPrintJob/index.html#JobListener[JobListener002]
      api/javax_print/DocPrintJob/index.html#JobListener[JobListener001]

      The tests exist since JCK 1.4.


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

            prr Philip Race
            vshsunw Vsh Vsh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: