Jump to content

Exception "wrong name" with report's name


Recommended Posts

I have a  emilio_report.jrxml file which contains this name attribute <jasperReport name="report_rejected_sv"> 
I re-compiled a report and when I use it I get the following exception:

Caused by: java.lang.NoClassDefFoundError: report_rejected_sv_d7395256a6a600c1f3df4fd11189096bf3aac209870f66a7cb61ffb8bd41b402 (wrong name: report_rejected_sv)
    at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
    at java.lang.ClassLoader.defineClass(ClassLoader.java:1022) ~[?:?]
    at net.sf.jasperreports.engine.util.JRClassLoader.loadClass(JRClassLoader.java:341) ~[jasperreports-6.20.5.jar:6.20.5-3efcf2e67f959db3888d79f73dde2dbd7acb4f8e]

I also found out that my project reuses that name attribute  <jasperReport name=" report_rejected_sv">  in several different .jrxml reports.

How can I re-compile the report and avoid this exception?

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

me too..

I have reports compiled by Jaspersoft iReport 5.5.1. But now, due to the problem that iReport only works up to Postgres 11, I need to compile them in Jaspersoft Studio 6.21.2. But after compiling them and when trying to print them, this error occurs java.lang.NoClassDefFoundError wrong name

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...