aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Printing Problem - java.lang.InternalError: Error code 9: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Printing Problem - java.lang.InternalError: Error code 9: " Watch "Printing Problem - java.lang.InternalError: Error code 9: " New topic
Author

Printing Problem - java.lang.InternalError: Error code 9:

Sunoo Varghese
Greenhorn

Joined: Sep 11, 2004
Posts: 19
Has anyone got the following error message before..

java.lang.InternalError: Error code 9:
at sun.awt.motif.CheckExitCodeRunnable.run(PSPrintControl.java:602)
at java.lang.Thread.run(Thread.java:479)

Our application has a functionality using which the application users can print manually something known as a worksheet through a print button available in the screen. Also it automatically prints the worksheet when the first activity is done in the worksheet. Our problem is that the application prints the worksheet automatically but when the user tries to manually print it we get the above error.

The application initially generates and keeps the document to be printed into a particular directory structure in the server and then it prints the document from directory structure. The application uses an Xsun process that is configured on the Solaris Box. We tried restarting the Xsun process and then the application server instance as some suggested over here. But that also did not solve the problem.

Initially we thought that the file permissions in the the directory structure would have been changed and had that checked. But it seems thati has not changed. Moreover, both the QA and the Prod environments (on different servers ) are configured to the same Printers but both of them are having the same problem. All this would point to some problem being on the Hardware (ie the Printer) but then it gets printed the first time.

Any pointers on where to look next would be really appreciated. Thanks a lot..

Regards,
Sunoo
Sunoo Varghese
Greenhorn

Joined: Sep 11, 2004
Posts: 19
Any tips on where the problem could be? Does anyone know about XSun processes and how it is used by sun's AWT toolkit??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing Problem - java.lang.InternalError: Error code 9: