-
Bug
-
Resolution: Fixed
-
P3
-
1.1, 1.4.2_04, 5.0
-
None
-
b26
-
generic, sparc
-
solaris_9
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2121720 | 1.4.2_08 | Sathianantha Thilagar | P4 | Resolved | Fixed | b01 |
PrinterJob.getPrintService() will always return null in the sandbox
(solaris only)
This is because in UnixPrintServiceLookup.java, method execCmd, it tries
to execute lpstat to find out the available print service on the system,
and redirects the lpstat output to a temp file created with
File.createTempFile.
But File.createTempFile will fail in the sandbox because we don't have
permissions to create file on the local system. So all the lookup on
print service will return null.
(solaris only)
This is because in UnixPrintServiceLookup.java, method execCmd, it tries
to execute lpstat to find out the available print service on the system,
and redirects the lpstat output to a temp file created with
File.createTempFile.
But File.createTempFile will fail in the sandbox because we don't have
permissions to create file on the local system. So all the lookup on
print service will return null.
- backported by
-
JDK-2121720 UnixPrintServiceLookup should not require file permission
-
- Resolved
-
- duplicates
-
JDK-5024816 Suntime2 printing produces java.awt.print.PrinterException error
-
- Closed
-
-
JDK-6199984 Printing from Java Applet fails in JRE 142_04 on Solaris/Netscape
-
- Closed
-