Failed to generate report: java.awt.print.PrinterIOException
Submitted by Guest on Sat, 20/09/2014 - 17:54
Guys. I'm getting this error, which I'm guessing is similar to this post: http://www.openvpms.org/forum/using-ubuntu-operating-system-openvpms
The situation is that I am testing Google Cloudprint and it's CUPS adapter with OPV. I am running Tomcat7 on ubuntu server. I can print testpages from the CUPs interface fine. However, when I try to print invoices etc I get the above java error. I can preview reports just fine and download them as PDFs. I have sent the error report in, any help appreciated.
Re: Failed to generate report: java.awt.print.PrinterIOException
OK - the error said my server was missing /usr/bin/lpr.
So I installed the package "lpr". Now the good news is that when I print say an invoice, there is no error message. The bad news is that nothing prints with no errors showing up.
Not quite sure where to turn to next.
Re: Failed to generate report: java.awt.print.PrinterIOException
I'm also running tomcat7 on a Ubuntu 14.04 headless server but with no significant print issues - now. I noticed that in comparing my customized version of /etc/cups/cupsd.conf to the default that it differs in that I have set "Browsing On" and "Allow all" under "Order allow, deny" in the section labeled <Location />
I have to admit that I'm not exactly sure which issue was I was trying to address there. It might simply have been remote acess, but I do seem to remember having similar issues as you during setup.
What happens if you run lpstat -a? If your printer is listed and accepting jobs, can you print using:
lpr testfile-name -P printer-name?
Sam
Kamloops, BC
Re: Failed to generate report: java.awt.print.PrinterIOException
Sam,
Thanks for your reply. I can't actually print using the lpr command. When I run "lpstat -a" My printers are listed. I am testing the cups google cloudprint script. I can add remote printers to my server cups, and print test-pages from them from the cups webinterface. But I can't get OPV to print any jobs through these printers.
Re: Failed to generate report: java.awt.print.PrinterIOException
UPDATE - this is fixed.
Thanks to this post: http://www.openvpms.org/forum/ec2-implementation
My issue was that "lpr" was not installed by default on ubuntu server. Instead I installed it with (sudo apt-get install lpr). However, this was the wrong lpr I should have installed the cups-bsd package as per the post. Once this was installed and the server restarted, printing worked! So I can confirm what the previous post said - you can use google cloudprint and cups with OPV.