cancel
Showing results for 
Search instead for 
Did you mean: 

Jasper reports: Class not found when loading object from file

former_member190085
Participant
0 Kudos

Hi Experts,

I am trying to generate my first jasper report using 'Generate Oracle entry report' job. I have downloaded the required jar files related to Jasper reports 3.5.2 and added them to the classpath extension in identity center.

But, on running the job, i am getting the following error and no report is generated.

Report error - Exception:net.sf.jasperreports.engine.JRException: Class not found when loading object from file : D:\IDM 7.1\Reporting\Oracle\entryReport\dist\Entry report.jasper.

I am using IdM 7.1 SP2, Oracle 10.2, Jasper reports 3.5.2.

Can anyone help on what i am missing?

From the job log:

01.07.2009 16:11:22 :E:Report error

net.sf.jasperreports.engine.JRException: Class not found when loading object from file : D:\IDM 7.1\Reporting\Oracle\entryReport\dist\Entry report.jasper

at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:102)

at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)

at com.sap.idm.ic.ToJasper.createReport(ToJasper.java:471)

at com.sap.idm.ic.ToJasper.addEntryCustom(ToJasper.java:328)

at com.sap.idm.ic.ToCustom.addEntry(ToCustom.java:154)

at com.sap.idm.ic.ToPass.putNextEntry(ToPass.java:873)

at com.sap.idm.ic.DSERunTime.runToPass(DSERunTime.java:2904)

at com.sap.idm.ic.DSERunTime.runPass(DSERunTime.java:3573)

at com.sap.idm.ic.DSERunTime.runJob(DSERunTime.java:1386)

at com.sap.idm.ic.DSERunTime.doCommand(DSERunTime.java:2209)

at com.sap.idm.ic.DSERunTime.doCommand(DSERunTime.java:350)

at com.sap.idm.ic.DSERunTime.run(DSERunTime.java:4039)

at com.sap.idm.ic.DSERunTime.main(DSERunTime.java:3934)

Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.SequencedHashMap............

Regards,

Vijay.K

Accepted Solutions (0)

Answers (1)

Answers (1)

oliver_nocon
Participant
0 Kudos

If you add following files to your classpath report generation with Jasper should work:

u2022 jasperreports-1.3.1.jar

u2022 itext-1.3.1.jar

u2022 commons-collections-2.1.jar

u2022 commons-logging-api-1.0.2.jar

The best way to get the files is through downloading iReports 1.3.1 from here:

[http://sourceforge.net/project/showfiles.php?group_id=64348&package_id=64215|http://sourceforge.net/project/showfiles.php?group_id=64348&package_id=64215]

To my best knowledge there are incompatibilities with newer versions of the jasper library. 1.3.1 works fine for me.

In addition make sure that the .jasper files are referenced correctly in your task/job.

Best regards,

Oliver

former_member190085
Participant
0 Kudos

Hi Oliver,

Thanks for the answer as well as the link to download the required files.

I added the four jar files to the classpath and the job executed without any errors.

Regards,

Vijay.K