LINUX服务器部署后预览报表报错 java.lang.NullPointerException

LINUX服务器部署后预览报表报错
java.lang.NullPointerException

at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)

at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)

at sun.awt.FontConfiguration.init(FontConfiguration.java:107)

at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774)

at sun.font.SunFontManager$2.run(SunFontManager.java:431)

at java.security.AccessController.doPrivileged(Native Method)

at sun.font.SunFontManager.<init>(SunFontManager.java:376)

at sun.awt.FcFontManager.<init>(FcFontManager.java:35)

at sun.awt.X11FontManager.<init>(X11FontManager.java:57)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at java.lang.Class.newInstance(Class.java:442)

at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)

at java.security.AccessController.doPrivileged(Native Method)

at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)

at sun.font.SunFontManager.getInstance(SunFontManager.java:250)

at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264)

at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:250)

at sun.awt.SunToolkit.getFontMetrics(SunToolkit.java:652)

at sun.awt.HeadlessToolkit.getFontMetrics(HeadlessToolkit.java:413)

at com.fr.stable.GraphDrawHelper.createNotNullFontMetrics(Unknown Source)

at com.fr.stable.GraphDrawHelper.createFontMetrics(Unknown Source)

at com.fr.stable.GraphDrawHelper.getFontMetrics(Unknown Source)

at com.fr.base.GraphHelper.getFontMetrics(Unknown Source)

at com.fr.report.core.PaintUtils.getFontMetrics(Unknown Source)

at com.fr.report.core.PaintUtils.dealWrapTextCount(Unknown Source)

at com.fr.report.core.PaintUtils.getLineTextCount(Unknown Source)

at com.fr.report.core.PaintUtils.analyzeCellElementPreferredHeight(Unknown Source)

at com.fr.report.core.PaintUtils.analyzeCellElementPreferredHeight(Unknown Source)

at com.fr.report.elementcase.AbstractElementCase.shrinkTOFitRowHeightForCellElement(Unknown Source)

at com.fr.report.report.AbstractECReport.shrinkTOFitRowHeightForCellElement(Unknown Source)

at com.fr.report.report.AbstractECReport.prepare2ShrinkRealWidthOrHeight4Cell(Unknown Source)

at com.fr.report.core.A.J$_A.B(Unknown Source)

at com.fr.report.core.A.J$_A.B(Unknown Source)

at com.fr.report.core.A.J$_A.B(Unknown Source)

at com.fr.report.core.A.J$_A.B(Unknown Source)

at com.fr.report.core.A.J$_A.B(Unknown Source)

at com.fr.report.core.A.J.execute4ECReport(Unknown Source)

at com.fr.report.core.A.J.execute(Unknown Source)

at com.fr.report.worksheet.WorkSheet.execute(Unknown Source)

at com.fr.report.core.sheet.AbstractWorkBookExecutor._execute(Unknown Source)

at com.fr.report.core.sheet.AbstractWorkBookExecutor.execute(Unknown Source)

at com.fr.main.impl.WorkBook.execute(Unknown Source)

at com.fr.main.impl.WorkBook.execute(Unknown Source)

at com.fr.web.cache.ReportCache.getResultWorkBook(Unknown Source)

at com.fr.stable.PageActor.getResultBookFromCacheIfNeed(Unknown Source)

at com.fr.main.impl.WorkBookTemplateDelegate.execute(Unknown Source)

at com.fr.web.core.ReportSessionIDInfor.execute(Unknown Source)

at com.fr.web.core.ReportSessionIDInfor.computeBook2Show$original$EBmwTneT(Unknown Source)

at com.fr.web.core.ReportSessionIDInfor.computeBook2Show$original$EBmwTneT$accessor$x3S30psj(Unknown Source)

at com.fr.web.core.ReportSessionIDInfor$auxiliary$65azPGBc.call(Unknown Source)

at com.fr.intelli.metrics.MonitorInterceptor.intercept(Unknown Source)

at com.fr.web.core.ReportSessionIDInfor.computeBook2Show(Unknown Source)

at com.fr.web.core.ReportSessionIDInfor.initBook2Show(Unknown Source)

at com.fr.web.core.ReportSessionIDInfor.getWorkBook2Show(Unknown Source)

at com.fr.web.core.ReportSessionIDInfor.getWorkBook2Show(Unknown Source)

at com.fr.web.core.ReportSessionIDInfor.getResultWorkBook(Unknown Source)

at com.fr.web.core.ReportSessionIDInfor.createPageSetChain(Unknown Source)

at com.fr.web.core.ReportSessionIDInfor.getReportPage(Unknown Source)

at com.fr.web.core.B.qA.A(Unknown Source)

at com.fr.web.core.B.qA.A(Unknown Source)

at com.fr.web.core.B.kA.A(Unknown Source)

at com.fr.web.core.B.KA.actionCMD(Unknown Source)

at com.fr.web.core.WebActionsDispatcher.dealForActionCMD(Unknown Source)

at com.fr.web.core.WebActionsDispatcher.dealForActionDefaultCmd(Unknown Source)

at com.fr.web.core.B.hA.process(Unknown Source)

at com.fr.web.core.ReportDispatcher.dealWithOp(Unknown Source)

at com.fr.web.core.ReportDispatcher.dealWeblet(Unknown Source)

at com.fr.web.core.ReportDispatcher.dealWithRequest(Unknown Source)

at com.fr.web.controller.BaseRequestService.preview(Unknown Source)

at com.fr.web.controller.ReportRequestService.preview(Unknown Source)

at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.fr.third.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)

at com.fr.third.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)

at com.fr.third.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)

at com.fr.third.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:747)

at com.fr.third.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:676)

at com.fr.third.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)

at com.fr.third.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)

at com.fr.third.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)

at com.fr.third.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)

at com.fr.third.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)

at com.fr.third.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at com.fr.third.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)

at com.fr.third.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at com.fr.decision.base.DecisionServletInitializer$4.doFilter(DecisionServletInitializer.java:135)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:748)


FineReport 15533612013 发布于 2019-9-7 15:10
1min目标场景问卷 立即参与
回答问题
悬赏:4 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
1
15533612013Lv2见习互助
发布于2019-9-7 16:41

解决方案:

yum grouplist

然后找到 Fonts

yum groupinstall Fonts

装完后,再重启一下刷新,结果还是没有解决

重新运行后会提示一个JDK中的目录下没有一个 **.so的东西,这时候直接再次装这个东西

yum install **.so 


最佳回答
0
cd_cwLv6初级互助
发布于2019-9-7 16:38

空指针异常  有可能jar包冲突 

  • 1关注人数
  • 776浏览人数
  • 最后回答于:2019-9-7 16:41
    请选择关闭问题的原因
    确定 取消
    返回顶部