Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027321Retail ModulesWeb POS Hardware Managerpublic2014-08-13 12:542014-08-26 13:50
guillermogil 
umartirena 
highcriticalalways
closedfixed 
30
RR14Q3 
pi 
umartirena
No
0027321: Print PDF from WebPOS does not work on Windows
Print PDF from WebPOS does not work on Windows.
On a Linux environment it works properly, also the xml print works without problem in any environment.
Create a pdf template for print tickets.
Add it on Organization window on Ticket Template field.

On windows OS open the HWM and try to print a ticket from WebPOS.
The following error appears on the HWM:

net.sf.jasperreports.engine.JRException: Error compiling report java source files : C:\Users\Jon Setuain\Downloads\poshw-1.0.2010\report1_1407848472985_274846.java
 at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJavacCompiler.java:89)
 at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileUnits(JRAbstractClassCompiler.java:63)
 at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:188)
 at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215)
 at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:201)
 at com.openbravo.poshw.TicketPdfServlet.doProcess(TicketPdfServlet.java:167)
 at com.openbravo.poshw.TicketPdfServlet.doPost(TicketPdfServlet.java:89)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
 at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)
 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
 at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
 at org.eclipse.jetty.server.Server.handle(Server.java:349)
 at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)
 at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:925)
 at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:857)
 at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
 at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)
 at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609)
 at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)
 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Cannot run program "javac": CreateProcess error=2, the system cannot find the file specified
 at java.lang.ProcessBuilder.start(Unknown Source)
 at java.lang.Runtime.exec(Unknown Source)
 at java.lang.Runtime.exec(Unknown Source)
 at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJavacCompiler.java:58)
 ... 28 more
Caused by: java.io.IOException: CreateProcess error=2, the system cannot find the file specified
 at java.lang.ProcessImpl.create(Native Method)
 at java.lang.ProcessImpl.<init>(Unknown Source)
 at java.lang.ProcessImpl.start(Unknown Source)
 ... 32 more
No tags attached.
Issue History
2014-08-13 12:54guillermogilNew Issue
2014-08-13 12:54guillermogilAssigned To => marvintm
2014-08-13 12:54guillermogilTriggers an Emergency Pack => No
2014-08-13 12:57guillermogilSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6262#r6262
2014-08-13 13:40guillermogilDescription Updatedbug_revision_view_page.php?rev_id=6264#r6264
2014-08-13 14:22guillermogilAssigned Tomarvintm => umartirena
2014-08-26 13:48umartirenaStatusnew => scheduled
2014-08-26 13:48umartirenaStatusscheduled => resolved
2014-08-26 13:48umartirenaFixed in Version => pi
2014-08-26 13:48umartirenaResolutionopen => fixed
2014-08-26 13:50umartirenaReview Assigned To => umartirena
2014-08-26 13:50umartirenaNote Added: 0069760
2014-08-26 13:50umartirenaStatusresolved => closed

Notes
(0069760)
umartirena   
2014-08-26 13:50   
The issue was that in Windows machines the javac folder path is was not added to PATH environment variable. After configuring it it worked properly.

The Wiki page has been updated in order to explain this.

http://wiki.openbravo.com/wiki/Retail:Developers_Guide/How-to/How_to_create_and_modify_new_receipt_documents_from_other_module#Configure_PDF_templates [^]