Results 1 to 8 of 8

Thread: Java/CUPS printing problem in openSUSE 11

  1. #1

    Default 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?

    Thanks,

    James

    Java error received when printing:

    Exception in thread "AWT-EventQueue-0" 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:856)
    at sun.print.PSPrinterJob.printDialog(PSPrinterJob.java:421)
    at com.projity.print.GraphPageable.print(Unknown Source)
    at com.projity.print.PrintPreviewFrame$PrintAction.actionPerformed(Unknown Source)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236 )
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6041)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
    at java.awt.Component.processEvent(Component.java:5806)
    at java.awt.Container.processEvent(Container.java:2058)
    at java.awt.Component.dispatchEventImpl(Component.java:4413)
    at java.awt.Container.dispatchEventImpl(Container.java:2116)
    at java.awt.Component.dispatchEvent(Component.java:4243)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
    at java.awt.Container.dispatchEventImpl(Container.java:2102)
    at java.awt.Window.dispatchEventImpl(Window.java:2440)
    at java.awt.Component.dispatchEvent(Component.java:4243)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

  2. #2
    Join Date
    Jun 2008
    Location
    Brisbane Australia
    Posts
    30

    Default Re: Java/CUPS printing problem in openSUSE 11

    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.

  3. #3
    jphcano NNTP User

    Default Re: Java/CUPS printing problem in openSUSE 11

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

  4. #4

    Default Re: Java/CUPS printing problem in openSUSE 11

    @owise1

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

  5. #5
    jphcano NNTP User

    Default Re: Java/CUPS printing problem in openSUSE 11

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

  6. #6
    jphcano NNTP User

    Default Re: Java/CUPS printing problem in openSUSE 11

    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!

    Jean-Philippe

  7. #7

    Default Re: Java/CUPS printing problem in openSUSE 11

    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 127.0.0.1, ip=127.0.0.1. See /etc/hosts.allow and /etc/hosts.deny.

    I modified my hosts.allow file to contain:

    # allow local printing
    lpd: LOCAL 127.0.0.1
    cupsd: LOCAL 127.0.0.1

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

    Good luck.

    --Eric

  8. #8

    Default Re: Java/CUPS printing problem in openSUSE 11

    hi,

    i found a solution in this blog:

    Java Printing Fix for Linux with Cups | pikopong

    Code:
    #append orientation option into printers.conf
    vi /etc/cups/printers.conf
      ....
      Option orientation-requested 3
    </Printer>
    
    #restart cups
    rccups restart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •