Thursday, March 22, 2012

Errors in Jasper Report

Errors in Jasper Reports:-


net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
1. Only a type can be imported. it.businesslogic.ireport.IReportScriptlet resolves to a package
import it.businesslogic.ireport.IReportScriptlet;
       <--------------------------------------->
1 errors

Solution :- remove this line from the report(.jrxml) as shown below..This might come in ireport version 2.0.1 and when your ate using jasper jar 3.1.2



13 comments:

  1. net.sf.jasperreports.engine.JRException: Error retrieving field value from bean : time_out
    at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:127)
    at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getFieldValue(JRAbstractBeanDataSource.java:100)
    at net.sf.jasperreports.engine.data.JRBeanCollectionDataSource.getFieldValue(JRBeanCollectionDataSource.java:104)
    at net.sf.jasperreports.engine.fill.JRFillDataset.setOldValues(JRFillDataset.java:799)
    at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:763)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1402)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:111)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:888)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:810)
    at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:89)
    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601)
    at net.sf.jasperreports.engine.JasperManager.fillReport(JasperManager.java:836)



    How to solve this error Sir..plz help me..!!

    ReplyDelete
  2. Prabhkeerat There are a number of reasons why this error is coming...
    According to me..time_Out variable should be mapped with your VO(Value Object), if its not , then this error will definitely come..just chk your VO class

    ReplyDelete
  3. The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files

    Sir i am getting this error in my class..how to clear it out..??

    ReplyDelete
    Replies
    1. Hi Prabhkeerat,

      configure build path and include servlet-api.jar in your library

      You can download servlet-api.jar from http://www.findjar.com/jar/javax.servlet/jars/servlet-api-2.3.jar.html

      Delete
  4. Hi Gagan,

    I am getting compiler error on this class (FileUtils)..i am not familiar with this class and i have just used it from internet and pasted it.. plz tell me how to solve this error..??..

    Rahul

    ReplyDelete
    Replies
    1. Hi Rahul, its a easy one..

      configure build path and include commons-io-1.4.jar in your library
      You can download the jar from http://www.jarfinder.com/index.php/jars/versionInfo/41911

      Delete
  5. Does your blog have a contact page? I’m having problems locating it but, I’d like to shoot you an email. I’ve got some recommendations for your blog you might be interested in hearing.
    AWS Training in Chennai |Best Amazon Web Services Training in Chennai
    Best AWS Amazon Web Services Training in Chennai | AWS Training in Chennai cost
    No.1 AWS Training in Chennai | Amazon Web Services Training Institute in Chennai

    ReplyDelete
  6. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.
    microsoft azure training in bangalore
    rpa interview questions and answers
    automation anywhere interview questions and answers
    blueprism interview questions and answers
    uipath interview questions and answers
    rpa training in bangalore

    ReplyDelete
  7. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.

    hadoop training in chennai

    hadoop training in omr

    salesforce training in chennai

    salesforce training in omr

    c and c plus plus course in chennai

    c and c plus plus course in omr

    machine learning training in chennai

    machine learning training in omr

    ReplyDelete

  8. I have express a few of the articles on your website now, and I really like your style of blogging.
    I added it to my favorite’s blog site list and will be checking back soon…
    java training in chennai

    java training in tambaram

    aws training in chennai

    aws training in tambaram

    python training in chennai

    python training in tambaram

    selenium training in chennai

    selenium training in tambaram

    ReplyDelete