1 Reply Latest reply: Apr 10, 2014 2:46 AM by jwenting RSS

    NPE in TrueTypeGlyphMapper (TrueTypeGlyphMapper.<init>(TrueTypeGlyphMapper.java:56))

    1154680

      Hi All,

           We are getting the below mentioned NPE in one of the sun.font APIs while trying to generate a PDF using Jasper. We are not able to arrive upon the root cause for this issue. It would be helpful, if someone could provide an explanation.

       

      Thank you in advance,

       

      Prabakaran.

       

      Stack Trace :

       

      javax.servlet.ServletException: java.lang.NullPointerException

      at java.lang.Throwable.<init>(Throwable.java:80)

      at javax.servlet.ServletException.<init>(ServletException.java:97)

      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:284)

      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1661)

      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1602)

      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:149)

      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:530)

      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)

      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:125)

      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)

      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)

      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:125)

      at com.bnp.scm.fo.common.BNPURLActionHandler.doFilter(BNPURLActionHandler.java:75)

      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)

      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:125)

      at com.bnp.scm.fo.common.StatisticsFilter.doFilter(StatisticsFilter.java:120)

      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)

      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:125)

      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:80)

      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)

      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939)

      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:507)

      at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)

      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)

      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:878)

      at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592)

      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:191)

      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:453)

      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)

      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:306)

      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:84)

      at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)

      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)

      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)

      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)

      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)

      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)

      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1656)

      Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException

      at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)

      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

      at javax.faces.component.UICommand.broadcast(UICommand.java:315)

      at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)

      at org.ajax4jsf.component.UIInclude.broadcast(UIInclude.java:170)

      at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329)

      at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304)

      at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261)

      at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474)

      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)

      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)

      ... 40 more

      Caused by: java.lang.NullPointerException

      at sun.font.TrueTypeGlyphMapper.<init>(TrueTypeGlyphMapper.java:56)

      at sun.font.TrueTypeFont.getMapper(TrueTypeFont.java:1256)

      at sun.font.StandardGlyphVector.init(StandardGlyphVector.java:1116)

      at sun.font.StandardGlyphVector.<init>(StandardGlyphVector.java:166)

      at java.awt.Font.getStringBounds(Font.java:2302)

      at java.awt.Font.getStringBounds(Font.java:2212)

      at net.sf.jasperreports.engine.fill.TextMeasurer.measureSimpleText(TextMeasurer.java:558)

      at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:341)

      at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:511)

      at net.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:183)

      at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:328)

      at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:393)

      at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:352)

      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillTitle(JRVerticalFiller.java:323)

      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:257)

      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128)

      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:836)

      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:765)

      at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:84)

      at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624)

      at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:605)