Submitted On 06-MAR-2003
A1972
This is a very serious BUG! Since we are running a
TaskServer with many different Java Tasks (realized by
different class Loaders) on a Linux machine. One of that
taks is a PrintServer that prints out reports.
The only way to configure a printer at the moment is to
restart the whole TaskServer (the complete virtual machine)
which stops all Tasks.
Please fix it.
Submitted On 02-JUN-2003
ninesun
There are so many bugs in the new print service of JDK1.4.
Submitted On 14-JUN-2004
SeS
I use Windows and with printerJob.printDialog() the list is up to date, but with printerJob.printDialog(attributes) itīs not. The dialog without the attributes seems to be the native one.
Itīs difficult to explain to an end-user, why the printer dialog at one place is up-to-date while it is not up-to-date somewhere else just because there are some additional attributes necessary.
Submitted On 14-JUN-2004
lbrucher
Please, at least provide a method or something to allow the retrievaal of an up-to-date list of printers.
The current situation is not acceptable in a server environment!
Submitted On 16-SEP-2004
simexel
I unferstand the Sun team's issue with Solaris.
However, we are suffering from this problem in a Win32 environment using JBoss where "restarting the app" is not a feasible option. Can we perhaps instead have some kind of "cache clearing" feature to the lookupPrintServices method that would work for win32 and linux ?
Submitted On 12-APR-2005
fuggly
Forget Server Side Printing with Citrix under Windows then?
If there is a printer spooler as a single process running on a Windows server, it will never see the printers of a new user logging in, although Citrix maps the user
Submitted On 12-APR-2005
fuggly
Forget Server Side Printing with Citrix under Windows then?
If there is a printer spooler as a single process running on a Windows server, it will never see the printers of a new user logging in, although Citrix maps the user's printers into the account the print spooler is started with. Citrix users can then basically forget printing with Java as without manual refresh, Java printing is *totally unusable* for Citrix users.
Submitted On 12-APR-2005
fuggly
On 1.4.2, a (hack-) workaround could be this:
public void refreshSystemPrinterList() {
try {
Class[] classes = PrintServiceLookup.class.getDeclaredClasses();
for (int i=0; i<classes.length; i++)
if ("javax.print.PrintServiceLookup$Services".equals(classes[i].getName())) {
AppContext.getAppContext().remove(classes[i]);
break;
}
}
catch (Exception e) {
e.printStackTrace();
}
}
Submitted On 13-APR-2007
SeS
I'm running 1.6.0_01 on Windows XP and my printer list doesn't seem to get updated. Still you need to run fluggy's workaround to see a change.
Does the new feature need to get activated somehow or is it simply not working - any other experiences?
Submitted On 02-NOV-2007
Quirin@DRX
Due to the severity of this bug for server-side printing I request to backport the fixture done in mustang also for tiger.
Submitted On 10-JUL-2008
Atila
Thank you fuggly, your workaround works perfectly.
Submitted On 24-JUL-2008
Is there a permanent fix for this? We have an application which needs to refresh printer lists attached locally once, twice, or even multiple times during the day. We are using jdk1.6.05 which i thought would have addressed this. Right now our only alternative is to simply restart the JVM, not a good solution.
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|