[Bug 81] New: PrinterJob.PageDialog null pointer exception

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Sun Nov 25 09:32:20 PST 2007


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=81

           Summary: PrinterJob.PageDialog null pointer exception
           Product: IcedTea
           Version: unspecified
          Platform: PC
               URL: http://java.sun.com/javase/6/docs/technotes/guides/jps/s
                    pec/appendix_2DPrinterJob.fm.html#997825
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: IcedTea
        AssignedTo: unassigned at icedtea.classpath.org
        ReportedBy: mrsam at courier-mta.com


The example code from this URL throws a null pointer exception.

This is with Fedora 8 java-1.7.0-icedtea-devel:

$ javac Print2DPrinterJob.java
$ java Print2DPrinterJob
selected printer hp_LaserJet_1320_series
Exception in thread "main" java.lang.NullPointerException: null attribute
        at
sun.print.IPPPrintService.isAttributeValueSupported(IPPPrintService.java:1176)
        at
sun.print.ServiceDialog$OrientationPanel.updateInfo(ServiceDialog.java:2165)
        at
sun.print.ServiceDialog$PageSetupPanel.updateInfo(ServiceDialog.java:1281)
        at sun.print.ServiceDialog.initPageDialog(ServiceDialog.java:284)
        at sun.print.ServiceDialog.<init>(ServiceDialog.java:261)
        at sun.print.RasterPrinterJob.pageDialog(RasterPrinterJob.java:684)
        at Print2DPrinterJob.<init>(Print2DPrinterJob.java:35)
        at Print2DPrinterJob.main(Print2DPrinterJob.java:62)

If I comment out the calls to PrinterJob.PageDialog() and
PrinterJob.PrintDialog(), the print job goes through without throwing an
exception.

Perhaps these functions are not implemented in icedtea -- but there seems to be
no mention of this on the wiki.


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the distro-pkg-dev mailing list