I am using java.awt printing to send jobs to a local printer on the same network as the server (server side printing). This has worked pretty well in the past, but now with WO 5.3 on OSX 10.4.1 the code breaks.
When executing: PrinterJob job = PrinterJob.getPrinterJob();
The console logs a message: ** ATTENTION ***
Please Attach Debugger : No Autorelease pool exists Press any key to continue...
Other code seems to go OK, but then when the following is executed: job.print();
the program hangs. No exception is thrown, the program just chokes. Checking with the debugger reveals the hang occurs somewhere in the CPrinterJob code.
Using: int myPool = NSAutoreleasePool.push(); does not change the behavior at all.
Anybody have any ideas that might help fix this? So far the problem is reproducible in development mode. I tried the code on an upgraded deployment machine, and so far it actually prints. Don't know if it will keep printing in the future, and I'd hate to have it break all of a sudden.
Thanks
Dan Faber |