Jump to content

Recommended Posts

Posted

PFA the error

at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoSuchFieldError: BOOLEAN 	at net.sf.jasperreports.engine.query.JRHibernateQueryExecuter.(JRHibernateQueryExecuter.java:73)    at net.sf.jasperreports.engine.query.JRHibernateQueryExecuterFactory.createQueryExecuter(JRHibernateQueryExecuterFactory.java:141)    at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:1111)    at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:691)    at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1288)    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:907)[/code]

Java Code

Map parameters = getParameter();	try {		Session session = Utility.getSessionFactory().openSession();		parameters.put("accountId", 1);		parameters.put("productId", "1");		parameters.put(JRHibernateQueryExecuterFactory.PARAMETER_HIBERNATE_SESSION, session);		Transaction transaction = session.beginTransaction();		JasperFillManager.fillReportToFile(new ThemeResource(Util.getTemplatePath() + getXml() + ".jasper").toString(), parameters);		transaction.rollback();		session.close();		JasperExportManager.exportReportToPdfFile(new ThemeResource(Util.getReportPath() + getName()).toString()+ ".jrprint");		return true;	} catch (JRException e) {		e.printStackTrace();		return false;	},>[/code]

Jars using

 

jasperreports-5.5.1iText-2.1.7.js2hibernate-commons-annotations-4.0.2.Finalhibernate-core-4.2.3.Finalhibernate-jpa-2.0-api-1.0.1.Finaljavassist-3.15.0-GAcommons-beanutils-1.8.0commons-collections-3.1commons-digester-2.0commons-logging-1.1.3dom4j-1.6.1jboss-logging-3.1.0.GAjboss-transaction-api_1.1_spec-1.0.1.Final[/code]

Please help me to fix this error.

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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