Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

iReport - Jasperreport jar problem

0 votes


I am trying to test creating report through iReport and I get different issues:

1- Following the Wiki: http://www.opennms.org/wiki/Jasper_Report_RRD_Datasource_Specification#iReport

I have added the "jasper-extensions-14.0.2.jar" in the classpath and restart iReport, I could not get the option menu anymore: it indicates the sub-window as busy (tested on version 3.6.0, 3.7.6 and the latest 5.6.0).

Has anybody already had this problem?

Note: I have installed windows iReport and copy-paste the linux openNMS library localy on my laptop.

2- Keeping all the jar on iReport 3.6.0, I get the following error message

Error loading the report template:
 org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.opennms.netmgt.jasper.OnmsQueryExecutorFactoryBundle] for bean with name 'org.opennms.netmgt.jasper.OnmsQueryExecutorFactoryBundle#0' defined in URL [jar:file:/D:/RTE/INUIT/Performance/JRB/tmp/jasper-extensions-14.0.2.jar!/org/opennms/netmgt/jasper/jrobin/jrobinBeans.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: org/opennms/netmgt/jasper/OnmsQueryExecutorFactoryBundle : Unsupported major.minor version 51.0

3- A last question, is someone has some example of using ireport for jrb data? I am looking to create a very simple report to testing this tools but I have some issue to understand how to configure the datasource or if It is possible to get querry result when testing to create a report query?

Currently I am looking on the wiki on the page related to ireport but with SQL request.


Thank you in advance



OpenNMS version
Java version
Operating system
Linux 2.6.32-431.el6.x86_64
PostgreSQL version
asked Feb 4, 2015 by Sylvestre (380 points)
edited Feb 4, 2015 by Sylvestre

1 Answer

0 votes
Best answer
I have find the issue for the point 1) and 2), iReport was using a bad version of java (1.7). I have updated the config file of iReport to add the correct path of java:

Location: C:\Program Files (x86)\Jaspersoft\iReport-3.6.0\etc\

File: ireport.conf

Line added: jdkhome="C:/Program Files/Java/jdk1.7.0_45"
answered Feb 4, 2015 by Sylvestre (380 points)
selected Mar 31, 2015 by indigo