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

/java/awt/print/PrinterJob/CheckPrivilege.java fails if no printers available

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 5.0
    • 1.4.0, 1.4.2, 5.0
    • client-libs
    • None
    • 2d
    • tiger
    • generic, x86, sparc
    • generic, linux, solaris_10
    • Verified

    Description

      This test fails in the AWT nightly build/tests every night (Mantis+Tiger b01).
      ###@###.### thinks the problem is that we don't have a printer
      hooked up, so there is no print service. She asked me to file a bug.
      I think the machine it is running on is jdc.

      #Test Results (version 2)
      #Tue Mar 04 14:41:13 PST 2003
      #checksum:5e17aad8a80b3c3a
      #-----testdescription-----
      $file=/java/jdk/ws/AWT/AWT-Tiger/test/java/awt/print/PrinterJob/CheckPrivilege.java
      $root=/java/jdk/ws/AWT/AWT-Tiger/test
      author=Graham Hamilton
      keywords=bug4151151
      run=ASSUMED_ACTION main CheckPrivilege\n
      source=CheckPrivilege.java
      title=Confirm that low-level print code does doPrivilege.

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

      #-----testresult-----
      description=file:///java/jdk/ws/AWT/AWT-Tiger/test/java/awt/print/PrinterJob/CheckPrivilege.java
      end=Tue Mar 04 14:41:13 PST 2003
      environment=regtest
      execStatus=Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: java.awt.print.PrinterException: No print service found.
      javatestOS=SunOS 5.10 (sparc)
      javatestVersion=2.1.6
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile main
      start=Tue Mar 04 14:41:07 PST 2003
      status=Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: java.awt.print.PrinterException: No print service found.
      test=java/awt/print/PrinterJob/CheckPrivilege.java
      work=/net/jano/export/disk03/awt/bchristi/NightlyBuilds/archive-TIGER/2003-03-04-Tue-TIGER/solaris-sparc/test/jtreg/JTwork/java/awt/print/PrinterJob

      #section:script_messages
      ----------messages:(4/252)----------
      JDK under test: (/localhome/nightlyTIGER/build/solaris-sparc)
      java version "Build:04-Mar-03@11:41.TIGER"
      Java(TM) 2 Runtime Environment, Standard Edition (build Build:04-Mar-03@11:41.TIGER)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b02, mixed mode)

      #section:build
      ----------messages:(3/100)----------
      command: build CheckPrivilege
      reason: Named class compiled on demand
      elapsed time (seconds): 2.216
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/176)----------
      command: compile /java/jdk/ws/AWT/AWT-Tiger/test/java/awt/print/PrinterJob/CheckPrivilege.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 2.213
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:main
      ----------messages:(3/127)----------
      command: main CheckPrivilege
      reason: Assumed action based on file name: run main CheckPrivilege
      elapsed time (seconds): 3.285
      ----------System.out:(4/325)----------
      -----------------------------------------------------------------------
      INSTRUCTIONS: You should have a printer configured in your system to do this test. Test fails if you get this error message:
         "Regression: printing causes a NullPointerException"
      -----------------------------------------------------------------------
      ----------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:83)
              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.

      Attachments

        Issue Links

          Activity

            People

              jgodinez Jennifer Godinez (Inactive)
              ehawkessunw Eric Hawkes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: