Jump to content

iReport 4.5.0 'General problem" during JavaBeans set DataSource


borisnikfai

Recommended Posts

Hello gentelmen.

I have an issue to set up my datasource via 'JavaBean set datasource ' option and, as well, same result coming out when I am trying to use other option 'Custom JRDataSource'.

I created jar file with MyDataSource class, which returns Map from getBeanCollection() methods.

And when I test the connection environment to this class I do not receive "Connection test successfully", I receive "General problem com.myproject.web.report.MyDataSource.createBeanCollection()".

I don't understand why. If somebody can help me to understand the reason?

(version jdk and jre 1.5, version compiler from Eclipe 1.5).

Thank you



Post Edited by borisnikfai at 03/14/2012 15:30



Post Edited by borisnikfai at 03/14/2012 15:43
Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...

Same thing with the "general problem" here...

I read about it many times and the way I fixed the "Test Connection" was to create only an empty constructor for the beanList offering class.

But I've got still problems to get the data from my list correctly into my report --> subreport area is empty and the whole report is printed as often as the subreport has entries^^

 

edit:

I solved my problem - I added the bean to my hashmap and passed it to the subreport like a parameter...

Link to comment
Share on other sites

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