带有java错误的Genexus PDF报告

时间:2013-06-06 16:01:36

标签: java pdf genexus

当我尝试在我的应用程序中打开pdf文件时出现了下一个错误:

javax.servlet.ServletException:java.lang.UnsatisfiedLinkError:sun.awt.font.NativeFontWrapper.getPlatformFontVar()Z     at sun.awt.font.NativeFontWrapper.getPlatformFontVar(Native Method)     at sun.awt.font.NativeFontWrapper。(NativeFontWrapper.java:54)     at uk.org.retep.pdf.SunPDFFontDescriptor.getTrueTypeFontLocation(Unknown Source)     at com.genexus.reports.PDFReportItext.GxAttris(Unknown Source)     at orcnescta01_impl.webExecute(orcnescta01_impl.java)     at com.genexus.webpanels.GXWebObjectBase.doExecute(Unknown Source)     at orcnescta01.doExecute(orcnescta01.java)     在com.genexus.webpanels.GXWebObjectStub.callExecute(未知来源)     在com.genexus.webpanels.GXWebObjectStub.doGet(未知来源)     在javax.servlet.http.HttpServlet.service(HttpServlet.java:617)     在javax.servlet.http.HttpServlet.service(HttpServlet.java:717)     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)     在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)     在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)     在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)     在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)     在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)     在org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)     在org.apache.coyote.http11.Http11AprProtocol $ Http11ConnectionHandler.process(Http11AprProtocol.java:600)     在org.apache.tomcat.util.net.AprEndpoint $ Worker.run(AprEndpoint.java:1703)     在java.lang.Thread.run(Thread.java:722)

com.genexus.webpanels.GXWebObjectStub.callExecute(Unknown Source)
com.genexus.webpanels.GXWebObjectStub.doGet(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

rt.jar,iText.jar是在文件夹页面WPAGE \ WEB-INF \ lib中的任何想法,为什么我遇到这个问题?谢谢。

1 个答案:

答案 0 :(得分:0)

首先,rt.jar不应该在WEB-INF \ lib中,也许你在类路径中有编译目的,但你不应该在运行时使用它。

确保您的itext.jar和gxclassr.jar对应于生成器版本,即:它们与您的模型Web目录(JavaModel或DataXXX目录)中的相同。

最后,检查您在报告布局中使用的字体,服务器中可能无法使用某些字体,从而产生错误。