Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1-rc-2
-
None
-
None
-
Ubuntu Linux 7.10, Latest Java packages (6.0), Gnome, typical desktop install
Description
Printing from Java applications does not work in Ubuntu 7.10, or at least does not work as it should. This is causing groovyConsole to dump a stack trace when asked to print a document.
However, this problem is not limited to groovy as a sample hello world print demo from Sun and other Java programs can't print either.
From a quick Google search I verified that this is affecting at least some other Ubuntu users (if not all).
Question: Should the print menu be disabled on Ubuntu, maybe replaced with a dialog noting the problem. If so how can the app determine if it is running on Ubuntu?
Question: Does this affect other flavors of Linux, RedHat Suse etc.
glen@amdx2:~/Desktop/groovy-1.1-rc-1/bin$ ./groovyConsole &
[1] 6501
glen@amdx2:~/Desktop/groovy-1.1-rc-1/bin$ java.lang.NullPointerException: null attribute
at sun.print.IPPPrintService.isAttributeValueSupported(IPPPrintService.java:1147)
at sun.print.ServiceDialog$OrientationPanel.updateInfo(ServiceDialog.java:2121)
at sun.print.ServiceDialog$PageSetupPanel.updateInfo(ServiceDialog.java:1263)
at sun.print.ServiceDialog.updatePanels(ServiceDialog.java:437)
at sun.print.ServiceDialog.initPrintDialog(ServiceDialog.java:195)
at sun.print.ServiceDialog.<init>(ServiceDialog.java:124)
at javax.print.ServiceUI.printDialog(ServiceUI.java:188)
at sun.print.RasterPrinterJob.printDialog(RasterPrinterJob.java:855)
at sun.print.PSPrinterJob.printDialog(PSPrinterJob.java:421)
at groovy.ui.ConsoleTextEditor$PrintAction.actionPerformed(ConsoleTextEditor.java:138)
[the rest goes through the awt event system and is omitted]