JDK-4078990 : "printing StartDoc failed" error message should be less cryptic
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.2.0
  • Priority: P5
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1997-09-15
  • Updated: 2001-06-29
  • Resolved: 2001-06-29
Description

Name: sg39081			Date: 09/15/97


When the problem is from the OS, not from Java, wrap the message inside a nice
window so the user won't panic before a console full of cryptic
exceptions, and he or she will be able to correct the problem.

I thought I had a java bug concerning printing problems, I had received
the following exception while trying to call a printjob :

Exception occurred during event dispatching:
java.lang.InternalError: printing STARTDOC failed
        at sun.awt.windows.WGraphics.createFromPrintJob(Native Method)
        at sun.awt.windows.WGraphics.<init>(WGraphics.java:95)
        at sun.awt.windows.WPrintGraphics.<init>(WPrintGraphics.java:43)
        at sun.awt.windows.WPrintJob.initJob(WPrintJob.java:58)
        at sun.awt.windows.WToolkit.getPrintJob(WToolkit.java:341)

Apparently, this was not a bug

The problem appears to be that winnt cannot print, either. After trying to 
print from the java program, I tried to print with netscape and received 
an error window saying "Cannot print due to a printer misconfiguration or lack of memory" 
or something like that. So I assume that the problem with java was the same, only
much less nicely presented and managed.
======================================================================

Comments
EVALUATION Printing falls under classes_awt? anand.palaniswamy@Eng 1997-11-12 Sure, we could easily make the printing error messages less cryptic. Committing to ladybird. david.mendenhall@eng 1999-12-20 Name: biR10147 Date: 06/29/2001 The code which throws the exception mentioned doesn't exist in Kestrel or Merlin, nor do classes WPrintJob, WPrintGraphics or WGraphics. Closing out as not reproducible. ###@###.### ======================================================================
11-06-2004

WORK AROUND Name: sg39081 Date: 09/15/97 ======================================================================
11-06-2004