-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b77
-
generic
-
solaris
-
Verified
JCK : JCK6.0 b17
J2SE : FAIL - mustang b71
Platform[s] : FAIL - solaris (tested 8+openwin and 10+JDS-Gnome), maybe windows.
switch/Mode : FAIL - default
The test api/javax_print/PrintServiceLookup/index.html#lookup[lookup004] fails on solaris systems (seems to be independent from desktop). The reason is:
On solaris machine with 22 installed TCP/IP printers PrintServiceLookup.lookupPrintServices returns 22 printers. No one of them has name and no one supports flavour specified as a parameter of PrintServiceLookup.lookupPrintServices. Tiger returns 0 printers.
Also I not sure about other platforms. As for my windows desktop it has 3 printers installed (on tcp/ip ports), but PrintServiceLookup.lookupPrintServices returns 0 printers.
steps to reproduce:
compile and run on solaris the following example:
import java.io.PrintWriter;
import javax.print.DocFlavor;
import javax.print.MultiDocPrintService;
import javax.print.PrintService;
import javax.print.PrintServiceLookup;
import javax.print.StreamPrintService;
public class Print {
public static void main(String argv[]) {
PrintServiceLookup.lookupDefaultPrintService();
DocFlavor flav = DocFlavor.STRING.TEXT_HTML;
DocFlavor suppFlav = null;
DocFlavor[] flavs;
PrintService[] pServs = PrintServiceLookup.lookupPrintServices(flav, null);
PrintService pserv;
System.out.println("Length is: "+pServs.length);
for (int i=0;i<pServs.length;i++)
{
pserv = pServs[i];
System.out.println("Service "+i+" named: "+pserv.getName());
if (!pserv.isDocFlavorSupported(flav)){
System.out.println("returned printService doesn't support specified docFlavor!"+flav);
}
}
}
}
The result will be:
Length is: 22
Service 0 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 1 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 2 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 3 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 4 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 5 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 6 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 7 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 8 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 9 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 10 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 11 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 12 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 13 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 14 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 15 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 16 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 17 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 18 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 19 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 20 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 21 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
J2SE : FAIL - mustang b71
Platform[s] : FAIL - solaris (tested 8+openwin and 10+JDS-Gnome), maybe windows.
switch/Mode : FAIL - default
The test api/javax_print/PrintServiceLookup/index.html#lookup[lookup004] fails on solaris systems (seems to be independent from desktop). The reason is:
On solaris machine with 22 installed TCP/IP printers PrintServiceLookup.lookupPrintServices returns 22 printers. No one of them has name and no one supports flavour specified as a parameter of PrintServiceLookup.lookupPrintServices. Tiger returns 0 printers.
Also I not sure about other platforms. As for my windows desktop it has 3 printers installed (on tcp/ip ports), but PrintServiceLookup.lookupPrintServices returns 0 printers.
steps to reproduce:
compile and run on solaris the following example:
import java.io.PrintWriter;
import javax.print.DocFlavor;
import javax.print.MultiDocPrintService;
import javax.print.PrintService;
import javax.print.PrintServiceLookup;
import javax.print.StreamPrintService;
public class Print {
public static void main(String argv[]) {
PrintServiceLookup.lookupDefaultPrintService();
DocFlavor flav = DocFlavor.STRING.TEXT_HTML;
DocFlavor suppFlav = null;
DocFlavor[] flavs;
PrintService[] pServs = PrintServiceLookup.lookupPrintServices(flav, null);
PrintService pserv;
System.out.println("Length is: "+pServs.length);
for (int i=0;i<pServs.length;i++)
{
pserv = pServs[i];
System.out.println("Service "+i+" named: "+pserv.getName());
if (!pserv.isDocFlavorSupported(flav)){
System.out.println("returned printService doesn't support specified docFlavor!"+flav);
}
}
}
}
The result will be:
Length is: 22
Service 0 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 1 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 2 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 3 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 4 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 5 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 6 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 7 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 8 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 9 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 10 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 11 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 12 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 13 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 14 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 15 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 16 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 17 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 18 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 19 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 20 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"
Service 21 named:
returned printService doesn't support specified docFlavor!text/html; charset="utf-16"; class="java.lang.String"