This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I am runing Netbeans 6.0 in the Ubuntu/Gutsy operating system. When I attempt to print a code file in the editor, it give s me a nice print preview page but when I click on Print in the bottom right corner of the preview page, it doesn't work. I do not get any dialog for the printer as I do with all other applications. The preview window also disappears. I initiate the print using the Print option under the File menu. I am fairly new to Ubuntu and linux so its possible I am missing something. I have tried to print both ruby and java files with no luck.
Please provide details: 1. Version of NetBeans: File > Help > About 2. Can you print from another applications? 3. Please run attach java program and try to print from it. What is the result?
Created attachment 54314 [details] Print application
From email thread: 1. netbeans ide 6.0 build 200711261600 also I am using java jdk 1.6.0_03. 2. Yes, I can print from several other applications including Firefox and Abiword. (My husband also cannot print and he has the netbeans 6.0 installed under Fedora. I am using Ubuntu.) 3. It appears to be having an exception at the following code line: dialog = new ServiceDialog(gc, x + gcBounds.x, y + gcBounds.y, services, defaultIndex, flavor, attributes, (Dialog)owner); } here is the error dump when I run it: init: deps-jar: compile: run: Exception in thread "Thread-1" 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 printtest2.Print.printData(Print.java:68) at printtest2.Print$2$1.run(Print.java:40)
Looks like the problem is in jdk 6.0 under unix, see stack trace, it can't print AttributedCharacters. Fix should be in next patch/release of jdk.