Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6692339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:51:24+00:00 2026-05-26T05:51:24+00:00

Iam getting an error when iam trying to call a report made in iReport

  • 0

Iam getting an error when iam trying to call a report made in iReport 4.1.1.

        Session sax = HibernateUtil.getSessionFactory().openSession();
        Transaction transaction = sax.beginTransaction();


        Map<String, Object> map = new HashMap<String, Object>();
        map.put(JRHibernateQueryExecuterFactory.PARAMETER_HIBERNATE_SESSION, sax);
        //map.put(, session);



        String relativeWebPath = "/reports/factura_template1.jasper";
        String absoluteDiskPath = getServletContext().getRealPath(relativeWebPath);

        JasperPrint print = JasperFillManager.fillReport(new FileInputStream(new File(absoluteDiskPath)),map);
        byte[] report = JasperExportManager.exportReportToPdf(print);

We are using Hibernate 3.6 (JPA Annotations) and Jasperreports 4.1.1 as report engine, when i try to call the report i get this exception:

java.lang.NoSuchFieldError: BOOLEAN
at net.sf.jasperreports.engine.query.JRHibernateQueryExecuter.<clinit>(JRHibernateQueryExecuter.java:70)
at net.sf.jasperreports.engine.query.JRHibernateQueryExecuterFactory.createQueryExecuter(JRHibernateQueryExecuterFactory.java:136)
at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:724)
at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:625)
at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1238)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:869)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:118)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:435)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:398)
at mx.com.facture.FactureApp.server.ReportExporter.ServletExporter.doGet(ServletExporter.java:198)

Any one else has been in this problem?, how did you solve?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:51:25+00:00Added an answer on May 26, 2026 at 5:51 am

    Even I was getting the same error…
    This is because Hibernate 3.6 has deprecated “org.hibernate.Hibernate.BOOLEAN” (and other similar types).
    They have consolidated all the types into “org.hibernate.type.StandardBasicTypes” class.

    Solution

    Solution is very simple.

    1) Download the whole (with source) jasper tar.gz file from JasperReports home site

    2) Untar the file (let the location be called $JASPER_SOURCE)

    3) vim $JASPER_SOURCE/src/net/sf/jasperreports/engine/query/JRHibernateQueryExecuter.java

    4) Add the following line in the top import statements

    import org.hibernate.type.StandardBasicTypes;

    5) Now from line 71 onwards change all “Hibernate” to “StandardBasicTypes” (till the end of the static block, that is till 84th line)

    6) Save and exit the editor

    7) Copy the latest hibernate3.jar (3.6.x version) into “$JASPER_SOURCE/lib” location

    8) Now do the following ant command from $JASPER_SOURCE location

    ant jar

    You will get the modified jar in lib/jasperreports-4.x.x.jar location. Use that jar for your project

    ————— OR ——————-

    Another solution is to use old hibernate3.jar file (version 3.0.x) with your project

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to call ejabberdctl from PHP but i keep getting an error
I am getting a javascript error on firefox 3.5, when trying to call an
I am getting this error while trying to run an ajaxq call. I am
I am getting an error when trying to call a form from within a
I am getting error trying to run my asp code for executing stored proc.
I am getting Bus Error trying to read stdin into a char* variable. I
I am new to php and I am getting this error trying to load
I am getting this error when trying to run internet information services on a
I am getting an error while trying to run CFmx code on a remote
I am getting this error when trying to merge TFS2008. There are no pending

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.