Jump to content

java.lang.NoClassDefFoundError: Jrxxxxxxxx _1811b31b27d13da1f8bc9955038dc0646b5de2a76581526d5a0228d015ebfd49 (wrong name: Jrxxxxxxxx )


andrson1er
Go to solution Solved by andrson1er,

Recommended Posts

I have this error on a sub-report file that I linked to my main report.

The subreport is named Jrxxxxxxxx but I have this error

java.lang.NoClassDefFoundError: Jrxxxxxxxx _1811b31b27d13da1f8bc9955038dc0646b5de2a76581526d5a0228d015ebfd49 (wrong name: Jrxxxxxxxx )] with root cause

Edited by andrson1er
Link to comment
Share on other sites

  • andrson1er changed the title to java.lang.NoClassDefFoundError: Jrxxxxxxxx _1811b31b27d13da1f8bc9955038dc0646b5de2a76581526d5a0228d015ebfd49 (wrong name: Jrxxxxxxxx )

Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.
 

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

I can confirm, that something in 6.20.6 changed and causes this effect.

 

I tried to fix some small things in an old report (just formatting of text-fields) and kept receiving

Exception in thread "main" java.lang.NoClassDefFoundError: BothClusterReport (wrong name: BothClusterReport_809e19930caca7fe260fc1fa57f33f150339b8c81fea60cca055beffcb492d08)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at net.sf.jasperreports.engine.util.JRClassLoader.loadClass(JRClassLoader.java:378)
        at net.sf.jasperreports.engine.util.JRClassLoader.loadClassFromBytes(JRClassLoader.java:302)
        at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.loadClass(JRAbstractJavaCompiler.java:142)
        at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.loadEvaluator(JRAbstractJavaCompiler.java:115)
        at net.sf.jasperreports.engine.design.JRAbstractCompiler.createEvaluator(JRAbstractCompiler.java:433)
        at net.sf.jasperreports.engine.design.JRAbstractCompiler.loadEvaluator(JRAbstractCompiler.java:408)
        at net.sf.jasperreports.engine.JasperCompileManager.getEvaluator(JasperCompileManager.java:382)
        at net.sf.jasperreports.engine.fill.JRFillDataset.createCalculator(JRFillDataset.java:493)
        at net.sf.jasperreports.engine.fill.BaseReportFiller.<init>(BaseReportFiller.java:168)
        at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:272)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:82)
        at net.sf.jasperreports.engine.fill.JRFiller.createBandReportFiller(JRFiller.java:251)
        at net.sf.jasperreports.engine.fill.JRFiller.createReportFiller(JRFiller.java:272)
        at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:114)
        at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:103)
        at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:530)
        at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:954)
        at de.cenote.jasperstarter.Report.fillInternal(Report.java:338)
        at de.cenote.jasperstarter.Report.fill(Report.java:282)
        at de.cenote.jasperstarter.App.processReport(App.java:226)
        at de.cenote.jasperstarter.App.main(App.java:109)

 

After some hours of fumbling about, and thinking I did something wrong, I stumbled across this thread and tried downgrading from 6.20.6 to 6.20.5. 

That "fixes" the error. 

  • Like 2
Link to comment
Share on other sites

  • 1 month later...
On 11/21/2023 at 3:21 AM, andrson1er said:

Finally I had to download version 6.20.5 since I was on 6.20.6 and I edited the build path and the Jaspersoft Studio.ini file for java 17 support since I am on java 17.
I think this problem is due to a bug on 6.20.6

Can you please share the version 6.20.5 for windows to download as I can not see it on jaspersoft community

Link to comment
Share on other sites

  • 4 weeks later...

"I have the latest version of Jasper (6.21.2), I edited a field and still getting the error described above, however, downgrading to version 6.20.5 is not an option. Does anyone have an estimate for when this issue will be revised in the current version?"

  • Thanks 1
Link to comment
Share on other sites

  • 1 month later...
On 1/5/2024 at 5:07 PM, jan.schnackenberg said:

I can confirm, that something in 6.20.6 changed and causes this effect.

 

I tried to fix some small things in an old report (just formatting of text-fields) and kept receiving

Exception in thread "main" java.lang.NoClassDefFoundError: BothClusterReport (wrong name: BothClusterReport_809e19930caca7fe260fc1fa57f33f150339b8c81fea60cca055beffcb492d08)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at net.sf.jasperreports.engine.util.JRClassLoader.loadClass(JRClassLoader.java:378)
        at net.sf.jasperreports.engine.util.JRClassLoader.loadClassFromBytes(JRClassLoader.java:302)
        at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.loadClass(JRAbstractJavaCompiler.java:142)
        at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.loadEvaluator(JRAbstractJavaCompiler.java:115)
        at net.sf.jasperreports.engine.design.JRAbstractCompiler.createEvaluator(JRAbstractCompiler.java:433)
        at net.sf.jasperreports.engine.design.JRAbstractCompiler.loadEvaluator(JRAbstractCompiler.java:408)
        at net.sf.jasperreports.engine.JasperCompileManager.getEvaluator(JasperCompileManager.java:382)
        at net.sf.jasperreports.engine.fill.JRFillDataset.createCalculator(JRFillDataset.java:493)
        at net.sf.jasperreports.engine.fill.BaseReportFiller.<init>(BaseReportFiller.java:168)
        at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:272)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:82)
        at net.sf.jasperreports.engine.fill.JRFiller.createBandReportFiller(JRFiller.java:251)
        at net.sf.jasperreports.engine.fill.JRFiller.createReportFiller(JRFiller.java:272)
        at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:114)
        at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:103)
        at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:530)
        at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:954)
        at de.cenote.jasperstarter.Report.fillInternal(Report.java:338)
        at de.cenote.jasperstarter.Report.fill(Report.java:282)
        at de.cenote.jasperstarter.App.processReport(App.java:226)
        at de.cenote.jasperstarter.App.main(App.java:109)

 

After some hours of fumbling about, and thinking I did something wrong, I stumbled across this thread and tried downgrading from 6.20.6 to 6.20.5. 

That "fixes" the error. 

This is common error is usually related to JAVA install latest java and set JAVA_HOME path

Link to comment
Share on other sites

  • 6 months later...

This problem arose when we upgraded to a recent version of JasperStudio, but were using an older version of the jasperreports runtime java libraries when building our report (6.17).  Using newer jasperreports libraries (6.21.4) fixed the issue.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...