Jump to content
Changes to the Jaspersoft community edition download ×

problems upgrading from 0.3.2 to 0.4.1


2005 IR Help

Recommended Posts

By: Wex - wexwarez

problems upgrading from 0.3.2 to 0.4.1

2005-04-28 11:26

I have been using .3.2 for a while and decided it was time for the upgrade, if for anything to get access to the last page footer feature. So I downloaded .4.1 on my linux box and installed, copied the tools.jar file over and loaded it up. I brought up all my reports and re-compiled them one by one with out a problem.

 

I then copied the jasper report .6.4 jar file to my netbeans project and quickly discovered i also needed this jdt-compiler.jar library because of some bug .6.4.

 

Everything seemed fine until I run my reports. Every single one of them gives me this error "Error retrieving field value from bean : Field". I have attached the stack trace below. Is there some type of conversion I need to do or what?

 

Thanks, Ryan

 

Exception, Error retrieving field value from bean : Field returned by getDate method of mbs.report.TreatmentCourseReportBean

java.lang.NoSuchMethodException: Unknown property 'Field returned by getDate method of mbs'

at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:1157)

at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:734)

at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:783)

at net.sf.jasperreports.engine.data.JRBeanCollectionDataSource.getFieldValue(JRBeanCollectionDataSource.java:158)

at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:890)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:160)

at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:691)

at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:160)

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

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

at mbs.med.rad.TreatmentCourseFinder.generateReport(TreatmentCourseFinder.java:487)

at mbs.med.rad.TreatmentCourseFinder.cmdReportActionPerformed(TreatmentCourseFinder.java:442)

at mbs.med.rad.TreatmentCourseFinder.access$900(TreatmentCourseFinder.java:36)

at mbs.med.rad.TreatmentCourseFinder$8.actionPerformed(TreatmentCourseFinder.java:354)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)

at java.awt.Component.processMouseEvent(Component.java:5100)

at java.awt.Component.processEvent(Component.java:4897)

at java.awt.Container.processEvent(Container.java:1569)

at java.awt.Component.dispatchEventImpl(Component.java:3615)

at java.awt.Container.dispatchEventImpl(Container.java:1627)

at java.awt.Component.dispatchEvent(Component.java:3477)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)

at java.awt.Container.dispatchEventImpl(Container.java:1613)

at java.awt.Window.dispatchEventImpl(Window.java:1606)

at java.awt.Component.dispatchEvent(Component.java:3477)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

 

NESTED BY :

net.sf.jasperreports.engine.JRException: Error retrieving field value from bean : Field returned by getDate method of mbs.report.TreatmentCourseReportBean

at net.sf.jasperreports.engine.data.JRBeanCollectionDataSource.getFieldValue(JRBeanCollectionDataSource.java:170)

at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:890)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:160)

at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:691)

at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:160)

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

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

at mbs.med.rad.TreatmentCourseFinder.generateReport(TreatmentCourseFinder.java:487)

at mbs.med.rad.TreatmentCourseFinder.cmdReportActionPerformed(TreatmentCourseFinder.java:442)

at mbs.med.rad.TreatmentCourseFinder.access$900(TreatmentCourseFinder.java:36)

at mbs.med.rad.TreatmentCourseFinder$8.actionPerformed(TreatmentCourseFinder.java:354)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)

at java.awt.Component.processMouseEvent(Component.java:5100)

at java.awt.Component.processEvent(Component.java:4897)

at java.awt.Container.processEvent(Container.java:1569)

at java.awt.Component.dispatchEventImpl(Component.java:3615)

at java.awt.Container.dispatchEventImpl(Container.java:1627)

at java.awt.Component.dispatchEvent(Component.java:3477)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)

at java.awt.Container.dispatchEventImpl(Container.java:1613)

at java.awt.Window.dispatchEventImpl(Window.java:1606)

at java.awt.Component.dispatchEvent(Component.java:3477)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Caused by: java.lang.NoSuchMethodException: Unknown property 'Field returned by getDate method of mbs'

at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:1157)

at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:734)

at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:783)

at net.sf.jasperreports.engine.data.JRBeanCollectionDataSource.getFieldValue(JRBeanCollectionDataSource.java:158)

... 33 more

 

 

 

 

 

 

 

 

By: Wex - wexwarez

RE: problems upgrading from 0.3.2 to 0.4.1

2005-04-28 11:58

Ok I found the bug. I use Beans for all my data sources, I don't know if this has any bearing.

So, in the older version when you specify a field name it wanted it with the first character in Caps like "Date" rather than "date". This version wants it lowecase.

 

Did I mention that I have some reports with over 200 fields and that this is a ton of work....booo

Anyone got a conversion script?

 

 

 

 

By: C-Box - c-box

RE: problems upgrading from 0.3.2 to 0.4.1

2005-04-28 14:15

Yes I have... I have made a plugin for Ireport that loads my reports from my database... after restoring the reports in database I do verify the report against the fields declared in a special (to the report belonging) class...

 

so just call the getFields method and iterate through the array and change your fieldnames. Very simple program.

 

so if you want to know anything further... just ask. :-)

 

 

C-Box

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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