Java/CUPS printing problem in openSUSE 11

I’m using openproj 1.2 for project management and am unable to print. It looks like there is a problem between java and CUPS. Has anyone encountered this? If so, could you please provide fix?



Java error received when printing:

Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException: null attribute
at sun.print.IPPPrintService.isAttributeValueSupported(
at sun.print.ServiceDialog$OrientationPanel.updateInfo(
at sun.print.ServiceDialog$PageSetupPanel.updateInfo(
at sun.print.ServiceDialog.updatePanels(
at sun.print.ServiceDialog.initPrintDialog(
at sun.print.ServiceDialog.<init>(
at javax.print.ServiceUI.printDialog(
at sun.print.RasterPrinterJob.printDialog(
at sun.print.PSPrinterJob.printDialog(
at com.projity.print.GraphPageable.print(Unknown Source)
at com.projity.print.PrintPreviewFrame$PrintAction.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(
at javax.swing.AbstractButton$Handler.actionPerformed(
at javax.swing.DefaultButtonModel.fireActionPerformed(
at javax.swing.DefaultButtonModel.setPressed(
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased( )
at java.awt.AWTEventMulticaster.mouseReleased(
at java.awt.Component.processMouseEvent(
at javax.swing.JComponent.processMouseEvent(
at java.awt.Component.processEvent(
at java.awt.Container.processEvent(
at java.awt.Component.dispatchEventImpl(
at java.awt.Container.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.LightweightDispatcher.retargetMouseEvent(
at java.awt.LightweightDispatcher.processMouseEvent(
at java.awt.LightweightDispatcher.dispatchEvent(
at java.awt.Container.dispatchEventImpl(
at java.awt.Window.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForFilters(
at java.awt.EventDispatchThread.pumpEventsForFilter(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(

Not sure if this will help but I was having a problem where KDE apps would print but not GTK based one - firefox, gimp, gnucash. I reported a bug but after some experimentation I found that setting up the printer with YAST2 needed some care with a remote printer. I ended up selecting the local CUPS server option and then added my queue - also selected the IPP printer. This made the printer visible in the printers and queues dialog and all was well from there.

Hello, i have the same problem when i print with netbeans 6.1. The print setup make the same error.


Printing problem seems to only affect Java/Netbeans apps. I think there is a problem with Java and CUPS.

i try some workaround, but no one is correct! Freemind don’t print like netbeans! :frowning:

i have another pc linux with opensuse 10.3, java 1.6 and netbeans 6.1 and cups 1.2.12 and printing work fine. I think the problem is to cups 1.3.7!


Your mileage may vary…

I have been trying to solve a similar problem with printing from Gimp. …and with a recent update to Moz/Firefox 3.0x that application failed to print. The /var/log/cups/error_log contained a nugget of information:

tcp_wrappers refused connection from, ip= See /etc/hosts.allow and /etc/hosts.deny.

I modified my hosts.allow file to contain:

allow local printing

lpd: LOCAL
cupsd: LOCAL

Restarted the network scripts and cupsd. …and miracle of miracles, shazaam! The print features were restored to Moz/FF and gimp.

Good luck.



i found a solution in this blog:

Java Printing Fix for Linux with Cups | pikopong

#append orientation option into printers.conf
vi /etc/cups/printers.conf
  Option orientation-requested 3

#restart cups
rccups restart