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

RegTest-test java/awt/print/PrinterJob/CheckPrivilege.java failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.2
    • client-libs
    • 2d
    • x86
    • linux



      Name: vtR10009 Date: 03/07/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b17,18
      Testbase : RegTest-test
      Platform[s] : RedHat Linux 2.1 Adv. Server
      switch/Mode : -server -Xmixed
      Falling test[s]:
              java/awt/print/PrinterJob/CheckPrivilege.java

      RegTest-test java/awt/print/PrinterJob/CheckPrivilege.java test
      fails on JDK1.4.2-b18. Print service configured to network printer
      sca14p36dbl(sca15ps server) as generic Postscript.
      Other applications like netscape work fine with this printer as
      well as driver can print test page. The test fails with hopper
      so this is either configuration problem or platform specific problem.

      Test source location:
      =====================
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/java/awt/print/PrinterJob/CheckPrivilege
      .java

      jtr file location:
      ==================
      /net/jtgb4u4c/export/sail15/results/mantis/b17/regtest/linux/redhat2.1adv_gnomeserver_jc
      k-win5/workDir/test/java/awt/print/PrinterJob/CheckPrivilege.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
      JT_HOME="/java/re/jct-tools/3.1.3/promoted/fcs/latest/binaries"
      JAVA_HOME="/java/re/jdk/1.4.2/promoted/latest/binaries/linux-i586"
      TEST_BASE_PATH="/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test"

      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME

      JTOPTS="-server -Xmixed"
      TESTVMOPTS="-server-Xmixed"

      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar:$JT_HOME/je
      mmy/jemmy.jar"

      export JAVA_HOME
      export JT_HOME
      export TESTWITH
      export CLASSPATH
      export LPDEST=sca14p36dbl
      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 -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST=sca14p36dbl -DDISPLAY=:0 -DlocalHost="jck-win5" -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/java/awt/print/PrinterJob/CheckPrivilege.java"

      --- script end ---

      Script output:
      ==============

      Test output (jtr part):
      =======================

      ----------System.err:(14/892)----------
      Caught java.awt.print.PrinterException: No print service found.
      java.lang.RuntimeException: java.awt.print.PrinterException: No print service found.
              at CheckPrivilege.main(CheckPrivilege.java:82)
              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:324)
              at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
              at java.lang.Thread.run(Thread.java:534)

      JavaTest Message: Test threw exception: java.lang.RuntimeException:
      java.awt.print.PrinterException: No print service found.
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException:
      java.awt.print.PrinterException: No print service found.
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException:
      java.awt.print.PrinterException: No print service found.


      test result: Failed. Execution failed: `main' threw exception:
      java.lang.RuntimeException: java.awt.print.PrinterException: No print service found.


      Specific machine info:
      ======================
      Hostname: jck-win5
      OS: RedHat Linux 2.1 Adv. Server



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

            Unassigned Unassigned
            vitcsunw Vitc Vitc (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: