0
votes

I got the next error when I try to open a pdf file in my aplication:

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) at com.genexus.webpanels.GXWebObjectStub.callExecute(Unknown Source) at com.genexus.webpanels.GXWebObjectStub.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:600) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1703) at 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)

the rt.jar , iText.jar are in the in folder page WPAGE\WEB-INF\lib any ideas why I got this problem? thank you.

1
Which platform (linux/windows) is your server in? - pmoleri

1 Answers

0
votes

first thing first, rt.jar shouldn't be in WEB-INF\lib, perhaps you have in your classpath for compilation purposes but you shouldn't have it in runtime.

Make sure your itext.jar and gxclassr.jar correspond to the generator version, ie: they are the same you have in your model web directory (JavaModel or DataXXX directory).

Last, check the fonts you are using in the report layout, some font might not be available in your server, producing an error.