Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4401237

PrinterJob.getPrinterJob throws sun.misc.ServiceConfigurationError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.4.0
    • client-libs
    • sparc
    • solaris_8

      With this code:


      PrinterJob pj = PrinterJob.getPrinterJob();
      PrintService[] psl = pj.lookupPrintServices();
      for (int i = 0; i < psl.length; i++) {
      PrintServiceAttributeSet psas = psl[i].getAttributes();
      }

      I get the following:

      sun.misc.ServiceConfigurationError: javax.print.PrintServiceLookup: Provider uFFFDuFFFDuFFFDuFFFDuFFFDuFFFDuFFFDuFFFDuFFFDuFFFDuFFFDuFFFDu...
              at sun.misc.Service.fail(Service.java:123)
              at sun.misc.Service.access$000(Service.java:114)
              at sun.misc.Service$LazyIterator.next(Service.java:266)
              at javax.print.PrintServiceLookup.getAllLookupServices(PrintServiceLookup.java:272)
              at javax.print.PrintServiceLookup.getServices(PrintServiceLookup.java:287)
              at javax.print.PrintServiceLookup.lookupPrintServices(PrintServiceLookup.java:61)
              at java.awt.print.PrinterJob.lookupPrintServices(PrinterJob.java:77)
              at java_awt_print_PrinterJob.do_lookupPrintServices_1(java_awt_print_PrinterJob.java:132)
              at java_awt_print_PrinterJob.run(java_awt_print_PrinterJob.java:626)
              at java.lang.Thread.run(Thread.java:579)

      The application crashes at this point.

      The string uFFFD... is actually non-ASCII characters and goes on for quite a ways.

      Solaris 8 (sparc), JDK 1.4 build 46.

            ehawkessunw Eric Hawkes (Inactive)
            dherronsunw David Herron (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: