java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

Spring JIRA | Phil Webb | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    JUnit tests for jasper reports fail on OSX using the preview JDK 8 version 88. {noformat} java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:121) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:88) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:103) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:61) at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:153) at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:82) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:653) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:969) at org.springframework.ui.jasperreports.JasperReportsUtils.renderAsHtml(JasperReportsUtils.java:167) at org.springframework.ui.jasperreports.JasperReportsUtilsTests.testRenderAsHtmlWithCollection(JasperReportsUtilsTests.java:99) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:491) at junit.framework.TestCase.runTest(TestCase.java:176) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.gradle.api.internal.tasks.testing.junit.JUni {noformat} Likely cause: https://java.net/jira/browse/MACOSX_PORT-355

    Spring JIRA | 4 years ago | Phil Webb
    java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
  2. 0

    JUnit tests for jasper reports fail on OSX using the preview JDK 8 version 88. {noformat} java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:121) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:88) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:103) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:61) at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:153) at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:82) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:653) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:969) at org.springframework.ui.jasperreports.JasperReportsUtils.renderAsHtml(JasperReportsUtils.java:167) at org.springframework.ui.jasperreports.JasperReportsUtilsTests.testRenderAsHtmlWithCollection(JasperReportsUtilsTests.java:99) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:491) at junit.framework.TestCase.runTest(TestCase.java:176) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.gradle.api.internal.tasks.testing.junit.JUni {noformat} Likely cause: https://java.net/jira/browse/MACOSX_PORT-355

    Spring JIRA | 4 years ago | Phil Webb
    java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
  3. 0

    error while invoking jasper from servlet using applet (Applets forum at JavaRanch)

    coderanch.com | 1 year ago
    java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ZK 5 - Jasper - ZK Forum

    zkoss.org | 1 year ago
    java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
  6. 0

    java.lang.NoClassDefFoundError: while running jasper report from servlet (Servlets forum at JavaRanch)

    coderanch.com | 1 year ago
    java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

    3 unregistered visitors
    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 net.sf.jasperreports.engine.util.JRStyledTextParser

      at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>()
    2. JasperReports
      JasperFillManager.fillReport
      1. net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:121)
      2. net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:88)
      3. net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:103)
      4. net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:61)
      5. net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:153)
      6. net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:82)
      7. net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:653)
      8. net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:969)
      8 frames
    3. Spring Context Support
      JasperReportsUtilsTests.testRenderAsHtmlWithCollection
      1. org.springframework.ui.jasperreports.JasperReportsUtils.renderAsHtml(JasperReportsUtils.java:167)
      2. org.springframework.ui.jasperreports.JasperReportsUtilsTests.testRenderAsHtmlWithCollection(JasperReportsUtilsTests.java:99)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:491)
      4 frames
    5. JUnit
      JUnit38ClassRunner.run
      1. junit.framework.TestCase.runTest(TestCase.java:176)
      2. junit.framework.TestCase.runBare(TestCase.java:141)
      3. junit.framework.TestResult$1.protect(TestResult.java:122)
      4. junit.framework.TestResult.runProtected(TestResult.java:142)
      5. junit.framework.TestResult.run(TestResult.java:125)
      6. junit.framework.TestCase.run(TestCase.java:129)
      7. junit.framework.TestSuite.runTest(TestSuite.java:255)
      8. junit.framework.TestSuite.run(TestSuite.java:250)
      9. org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
      9 frames