javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class sun.font.FontScaler

Jenkins JIRA | goori h | 3 years ago
  1. 0

    Not showing Test Result Trend with boost test. [Stack track] javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class sun.font.FontScaler at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:726) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:381) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:239) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:586) at org.kohsuke.stapler.Stapler.service(Stapler.java:217) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:248) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at winstone.RequestDispatcher.forward(RequestDispatcher.java:331) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.font.FontScaler at sun.font.TrueTypeFont.getScaler(Unknown Source) at sun.font.FileFontStrike.<init>(Unknown Source) at sun.font.FileFont.createStrike(Unknown Source) at sun.font.Font2D.getStrike(Unknown Source) at sun.font.Font2D.getStrike(Unknown Source) at sun.font.CompositeStrike.getStrikeForSlot(Unknown Source) at sun.font.CompositeStrike.getFontMetrics(Unknown Source) at sun.font.Font2D.getFontMetrics(Unknown Source) at java.awt.Font.defaultLineMetrics(Unknown Source) at java.awt.Font.getLineMetrics(Unknown Source) at org.jfree.chart.axis.NumberAxis.estimateMaximumTickLabelHeight(NumberAxis.java:974) at org.jfree.chart.axis.NumberAxis.selectVerticalAutoTickUnit(NumberAxis.java:1104) at org.jfree.chart.axis.NumberAxis.selectAutoTickUnit(NumberAxis.java:1048) at org.jfree.chart.axis.NumberAxis.refreshTicksVertical(NumberAxis.java:1249) at org.jfree.chart.axis.NumberAxis.refreshTicks(NumberAxis.java:1149) at org.jfree.chart.axis.ValueAxis.reserveSpace(ValueAxis.java:788) at org.jfree.chart.plot.CategoryPlot.calculateRangeAxisSpace(CategoryPlot.java:2650) at org.jfree.chart.plot.CategoryPlot.calculateAxisSpace(CategoryPlot.java:2669) at org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:2716) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1222) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1396) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1376) at hudson.util.Graph.render(Graph.java:88) at hudson.util.Graph.doPng(Graph.java:98) at hudson.util.ChartUtil.generateGraph(ChartUtil.java:115) at hudson.util.ChartUtil.generateGraph(ChartUtil.java:100) at hudson.tasks.test.AbstractTestResultAction.doGraph(AbstractTestResultAction.java:208) at hudson.tasks.test.TestResultProjectAction.doTrend(TestResultProjectAction.java:97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684) ... 42 more

    Jenkins JIRA | 3 years ago | goori h
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class sun.font.FontScaler
  2. 0

    Not showing Test Result Trend with boost test. [Stack track] javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class sun.font.FontScaler at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:726) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:381) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:239) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:586) at org.kohsuke.stapler.Stapler.service(Stapler.java:217) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:248) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at winstone.RequestDispatcher.forward(RequestDispatcher.java:331) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.font.FontScaler at sun.font.TrueTypeFont.getScaler(Unknown Source) at sun.font.FileFontStrike.<init>(Unknown Source) at sun.font.FileFont.createStrike(Unknown Source) at sun.font.Font2D.getStrike(Unknown Source) at sun.font.Font2D.getStrike(Unknown Source) at sun.font.CompositeStrike.getStrikeForSlot(Unknown Source) at sun.font.CompositeStrike.getFontMetrics(Unknown Source) at sun.font.Font2D.getFontMetrics(Unknown Source) at java.awt.Font.defaultLineMetrics(Unknown Source) at java.awt.Font.getLineMetrics(Unknown Source) at org.jfree.chart.axis.NumberAxis.estimateMaximumTickLabelHeight(NumberAxis.java:974) at org.jfree.chart.axis.NumberAxis.selectVerticalAutoTickUnit(NumberAxis.java:1104) at org.jfree.chart.axis.NumberAxis.selectAutoTickUnit(NumberAxis.java:1048) at org.jfree.chart.axis.NumberAxis.refreshTicksVertical(NumberAxis.java:1249) at org.jfree.chart.axis.NumberAxis.refreshTicks(NumberAxis.java:1149) at org.jfree.chart.axis.ValueAxis.reserveSpace(ValueAxis.java:788) at org.jfree.chart.plot.CategoryPlot.calculateRangeAxisSpace(CategoryPlot.java:2650) at org.jfree.chart.plot.CategoryPlot.calculateAxisSpace(CategoryPlot.java:2669) at org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:2716) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1222) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1396) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1376) at hudson.util.Graph.render(Graph.java:88) at hudson.util.Graph.doPng(Graph.java:98) at hudson.util.ChartUtil.generateGraph(ChartUtil.java:115) at hudson.util.ChartUtil.generateGraph(ChartUtil.java:100) at hudson.tasks.test.AbstractTestResultAction.doGraph(AbstractTestResultAction.java:208) at hudson.tasks.test.TestResultProjectAction.doTrend(TestResultProjectAction.java:97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684) ... 42 more

    Jenkins JIRA | 3 years ago | goori h
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class sun.font.FontScaler
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    libt2k.so error executing a jar on armv7, how to fix it?

    Stack Overflow | 4 years ago | aldo85ita
    java.lang.NoClassDefFoundError: Could not initialize class sun.font.FontScaler
  5. 0

    java.lang.NoClassDefFoundError: Could not initialize class sun.font.FontScaler

    GitHub | 2 years ago | GoogleCodeExporter
    java.lang.NoClassDefFoundError: Could not initialize class sun.font.FontScaler

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class sun.font.FontScaler

      at sun.font.TrueTypeFont.getScaler()
    2. Java RT
      Font.getLineMetrics
      1. sun.font.TrueTypeFont.getScaler(Unknown Source)
      2. sun.font.FileFontStrike.<init>(Unknown Source)
      3. sun.font.FileFont.createStrike(Unknown Source)
      4. sun.font.Font2D.getStrike(Unknown Source)
      5. sun.font.Font2D.getStrike(Unknown Source)
      6. sun.font.CompositeStrike.getStrikeForSlot(Unknown Source)
      7. sun.font.CompositeStrike.getFontMetrics(Unknown Source)
      8. sun.font.Font2D.getFontMetrics(Unknown Source)
      9. java.awt.Font.defaultLineMetrics(Unknown Source)
      10. java.awt.Font.getLineMetrics(Unknown Source)
      10 frames
    3. jfreechart
      JFreeChart.createBufferedImage
      1. org.jfree.chart.axis.NumberAxis.estimateMaximumTickLabelHeight(NumberAxis.java:974)
      2. org.jfree.chart.axis.NumberAxis.selectVerticalAutoTickUnit(NumberAxis.java:1104)
      3. org.jfree.chart.axis.NumberAxis.selectAutoTickUnit(NumberAxis.java:1048)
      4. org.jfree.chart.axis.NumberAxis.refreshTicksVertical(NumberAxis.java:1249)
      5. org.jfree.chart.axis.NumberAxis.refreshTicks(NumberAxis.java:1149)
      6. org.jfree.chart.axis.ValueAxis.reserveSpace(ValueAxis.java:788)
      7. org.jfree.chart.plot.CategoryPlot.calculateRangeAxisSpace(CategoryPlot.java:2650)
      8. org.jfree.chart.plot.CategoryPlot.calculateAxisSpace(CategoryPlot.java:2669)
      9. org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:2716)
      10. org.jfree.chart.JFreeChart.draw(JFreeChart.java:1222)
      11. org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1396)
      12. org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1376)
      12 frames
    4. Hudson
      TestResultProjectAction.doTrend
      1. hudson.util.Graph.render(Graph.java:88)
      2. hudson.util.Graph.doPng(Graph.java:98)
      3. hudson.util.ChartUtil.generateGraph(ChartUtil.java:115)
      4. hudson.util.ChartUtil.generateGraph(ChartUtil.java:100)
      5. hudson.tasks.test.AbstractTestResultAction.doGraph(AbstractTestResultAction.java:208)
      6. hudson.tasks.test.TestResultProjectAction.doTrend(TestResultProjectAction.java:97)
      6 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    6. Stapler
      Stapler.service
      1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297)
      2. org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160)
      3. org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95)
      4. org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
      5. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      6. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684)
      7. org.kohsuke.stapler.Stapler.invoke(Stapler.java:777)
      8. org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:381)
      9. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684)
      10. org.kohsuke.stapler.Stapler.invoke(Stapler.java:777)
      11. org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:239)
      12. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      13. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684)
      14. org.kohsuke.stapler.Stapler.invoke(Stapler.java:777)
      15. org.kohsuke.stapler.Stapler.invoke(Stapler.java:586)
      16. org.kohsuke.stapler.Stapler.service(Stapler.java:217)
      16 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      1 frame
    8. winstone
      RequestDispatcher.doFilter
      1. winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
      2. winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      3. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
      3 frames
    9. Hudson
      PluginServletFilter.doFilter
      1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
      2. hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
      2 frames
    10. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      2 frames
    11. Hudson
      CrumbFilter.doFilter
      1. hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
      1 frame
    12. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      2 frames
    13. Hudson
      HudsonFilter.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      2. hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      3. hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      3 frames
    14. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      2 frames
    15. Stapler
      CompressionFilter.doFilter
      1. org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:47)
      1 frame
    16. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      2 frames
    17. Hudson
      CharacterEncodingFilter.doFilter
      1. hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      1 frame
    18. winstone
      RequestHandlerThread.run
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      3. winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
      4. winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227)
      5. winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      5 frames
    19. Java RT
      FutureTask.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      2. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      3. java.util.concurrent.FutureTask.run(Unknown Source)
      3 frames
    20. winstone
      BoundedExecutorService$1.run
      1. winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      1 frame
    21. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3. java.lang.Thread.run(Unknown Source)
      3 frames