hand79 / Hadoop

Hadoop 開發實作&筆記
0 stars 0 forks source link

Not able to perform the PDF export. #303

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set up the version of 3.0.3 example
2. explore http://localhost:8080/WebContent/presidents.run
3. click the PDF export icon

What is the expected output? What do you see instead?
Export PDF document sucessfully. But there is an exception.

12093 ["http-bio-8080"-exec-1] ERROR org.jmesa.facade.TableFacade  - Not able 
to perform the PDF export.
java.lang.ClassCastException: org.jmesa.view.component.Table cannot be cast to 
org.jmesa.view.html.component.HtmlTable
    at org.jmesa.view.pdf.PdfView.render(PdfView.java:89)
    at org.jmesa.view.pdf.PdfViewExporter.export(PdfViewExporter.java:55)
    at org.jmesa.facade.TableFacade.renderExport(TableFacade.java:874)
    at org.jmesa.facade.TableFacade.render(TableFacade.java:852)
    at org.jmesa.model.TableModel.render(TableModel.java:325)
    at org.jmesaweb.controller.BasicPresidentController.handleRequestInternal(BasicPresidentController.java:74)
    at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
    at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:550)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

What version of the product are you using? On what operating system?
3.0.3

Please provide any additional information below.

Original issue reported on code.google.com by xianyin...@gmail.com on 11 Feb 2011 at 9:20

GoogleCodeExporter commented 9 years ago
The PDF view takes an HtmlTable and converts it using the flying saucer api. 
The other option is to use the PDFP view, which takes a regular Table. The PDFP 
view is less fancy looking than the PDF view, but technically it is more simple.

Original comment by jeff.johnston.mn@gmail.com on 11 Feb 2011 at 3:12

GoogleCodeExporter commented 9 years ago
Thanks for your quick reply sincerely, I'll try it now. :)

Original comment by xianyin...@gmail.com on 12 Feb 2011 at 1:07

GoogleCodeExporter commented 9 years ago
Changed to PDFP option it get worked, but how can it work well with PDP option? 

Original comment by xianyin...@gmail.com on 12 Feb 2011 at 4:01

GoogleCodeExporter commented 9 years ago
Not sure if we really have a problem with this or not...closing for now.

Original comment by jeff.johnston.mn@gmail.com on 10 Mar 2011 at 8:09