Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2259

groovyConsole affected by Java printing problems in Ubuntu Linux


    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1-rc-2
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
    • Environment:
      Ubuntu Linux 7.10, Latest Java packages (6.0), Gnome, typical desktop install


      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]




            • Assignee:
              shemnon Danno Ferrin
              glen Glen Marchesani
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: