2004 IR Help Posted August 24, 2006 Share Posted August 24, 2006 By: quirin - mq25046 printing over win-network from within jboss 2005-05-09 01:50 In our project we're using jasperreports (0.6.0) to print labels inside a jboss (3.2.3) application server. Our printers are located on client side and shared over a windows network. Our jboss application server sends the printjobs over windows network to the shared clients' printers. During our development and testing phase we didn't encounter any problems - in the meantime our application went into production and from time to time (about once/twice a week) we aren't suddendly able to print labels anymore. We receive a "java.awt.print.PrinterException: No printer found." The only choice we have at that point is to reboot jboss and afterwards we're able to continue printing our labels. In our printing business logic we log (via log4j) all available printers for jboss - and all of them seem to be available, but as soon as we try to send a print request, this print request results in a PrinterException telling us that no printer was found. By: -jb - jackbeck RE: printing over win-network from within jbo 2005-12-13 08:57 I am experiencing a similar problem. I am running Jasper 1.1.0 on Weblogic 8.1 using Sun jdk 1.4.2. Reports print fine for a week or two. Then, I start getting an exception every time a report is printed. So far, the only thing that seems to fix the problem is stopping and restarting the Weblogic server. Exception: java.awt.print.PrinterException: No printer found at sun.awt.windows.WPrinterJob._startDoc(Native Method) at sun.awt.windows.WPrinterJob.startDoc(WPrinterJob.java:1008) at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1037) at net.sf.jasperreports.engine.export.JRPrintServiceExporter.exportReport(JRPrintServiceExporter.java:171) ... ... By: quirin - mq25046 RE: printing over win-network from within jbo 2005-12-16 02:43 Hi jackbeck, well the solution in our case was pretty unusual. We've exchanged the (lantronix)printservers for our label printers. Afterwards our problems were completly gone. We're now using HP-Jetdirect boxes. Hopefully this tip is also usefull for you. Would be really nice to hear if you could solve your problem the same way... Best regards, mq Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now