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

Stack Overflow | Fazeen Ahmad | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

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

    Stack Overflow | 10 months ago | Fazeen Ahmad
    java.lang.NoClassDefFoundError: Could not initialize class sun.font.SunFontManager

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class sun.font.SunFontManager

      at sun.font.FontDesignMetrics.getMetrics()
    2. Java RT
      SunGraphics2D.getFontMetrics
      1. sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264)
      2. sun.java2d.SunGraphics2D.getFontMetrics(SunGraphics2D.java:819)
      2 frames
    3. jcommon
      TextUtilities.createTextBlock
      1. org.jfree.text.G2TextMeasurer.getStringWidth(G2TextMeasurer.java:78)
      2. org.jfree.text.TextUtilities.nextLineBreak(TextUtilities.java:248)
      3. org.jfree.text.TextUtilities.createTextBlock(TextUtilities.java:187)
      4. org.jfree.text.TextUtilities.createTextBlock(TextUtilities.java:155)
      4 frames
    4. jfreechart
      ChartUtilities.saveChartAsPNG
      1. org.jfree.chart.plot.PiePlot.drawLeftLabels(PiePlot.java:1822)
      2. org.jfree.chart.plot.PiePlot.drawLabels(PiePlot.java:1787)
      3. org.jfree.chart.plot.PiePlot3D.draw(PiePlot3D.java:517)
      4. org.jfree.chart.JFreeChart.draw(JFreeChart.java:1058)
      5. org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1244)
      6. org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1223)
      7. org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:173)
      8. org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:328)
      8 frames
    5. com.PMSystems.charts
      GenerateChart.generatePieChart
      1. com.PMSystems.charts.GenerateChart.generatePieChart(GenerateChart.java:340)
      1 frame
    6. org.apache.jsp
      PMSCampaignSummaryDetail_jsp._jspService
      1. org.apache.jsp.report.PMSCampaignSummaryDetail_jsp._jspService(PMSCampaignSummaryDetail_jsp.java:1886)
      1 frame