Jump to content
We've recently updated our Privacy Statement, available here ×

JasperReport multiple elasticSearch dataSource


ramich

Recommended Posts

I want to create a jasperReport that use elasticSearch as a dataSource and it contains a Pie chart and a list each one has a specific mode of query 

I've used a subdatset for ech graph: a facet dataSource for Pie chart and hit dataSource for list

==> when i publish  the report  i have a null Pointer Exception

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

According to their blog - http://blog.wedjaa.net/elasticjasper-one/ you will need to create separate data adapter

"When you create sub-reports you can recycle the connection from the master report. That’s all fine, until you want to use some kind of different query results in the subreport. So: your master report is using a ElasticJasper adapter for facets and you want to use aggregations on the sub reports: you will need to create new adapters for these sub reports. I know – it sucks, but so many things suck in life, why would you want to be worried about this one?"

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