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

Provider sun.print.Win32PrintServiceLookup not found

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      A DESCRIPTION OF THE PROBLEM :
      PrinterJob.lookupPrintServices() failed with a: java.util.ServiceConfigurationError: javax.print.PrintServiceLookup: Provider sun.print.Win32PrintServiceLookup not found

      REGRESSION : Last worked in version 10.0.2

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Call the code line:
      PrinterJob.lookupPrintServices();

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      An array of services.
      ACTUAL -
      Exception in thread "result.print" java.util.ServiceConfigurationError: javax.print.PrintServiceLookup: Provider sun.print.Win32PrintServiceLookup not found
      at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:588)
      at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1211)
      at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1220)
      at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1264)
      at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1299)
      at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1384)
      at java.desktop/javax.print.PrintServiceLookup$1.run(PrintServiceLookup.java:362)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.desktop/javax.print.PrintServiceLookup.getAllLookupServices(PrintServiceLookup.java:355)
      at java.desktop/javax.print.PrintServiceLookup.getServices(PrintServiceLookup.java:400)
      at java.desktop/javax.print.PrintServiceLookup.lookupPrintServices(PrintServiceLookup.java:154)
      at java.desktop/java.awt.print.PrinterJob.lookupPrintServices(PrinterJob.java:105)
      at com.inet.taskplanner.server.api.action.print.PrintResultActionFactory.initPrintServices(PrintResultActionFactory.java:136)
      at com.inet.taskplanner.server.api.action.print.PrintResultActionFactory.access$4(PrintResultActionFactory.java:134)
      at com.inet.taskplanner.server.api.action.print.PrintResultActionFactory$1.run(PrintResultActionFactory.java:160)

      ---------- BEGIN SOURCE ----------
      PrinterJob.lookupPrintServices();
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              pardesha Pardeep Sharma
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: