[#14281] - Same report with multiple XML DataAdapters

Bug report
Project: Severity:
Component: Reproducibility:
Assigned to:

Hi Team,

We have authored jasper report with multiple XML dataadapters.
Report is compiling & working, but we are getting data of main report's "defaultdataadapter" in both tables.
Below is our use case:

Table 1 -> Dataset-ChangeRequest -> DataAdaper1 (dataAdapterChangeRequest)
Table 2 -> Dataset-ChangeNotice -> DataAdaper2 (dataAdapterChanageNotice)

Can you please help us to understand, How can we get data of two dataadapters in two separate tables.
We have also tried by setting "net.sf.jasperreports.data.adapter", but it is always giving "Resource not found" exception.


Thanks & Regard,
Tushar Patil

tuspatil's picture
Joined: Jan 3 2022 - 10:54pm
Last seen: 4 days 20 hours ago



Hi Team,

Please help us on this. We are eagerly waiting for your reply.


The solution is to set the net.sf.jasperreports.data.adapter property at subdataset level. If you get "Resource not found", please attach a self contained test case to reproduce the error.

Also, you don't need data source expressions for the table dataset runs if you have data adapters configured for the subdatasets.



Hi Lucian,

I tried by setting "net.sf.jasperreports.data.adapter" property at subdataset level, but I am getting "Resource not found". PFA for latest JRXML.
Can you please help me to understand, how to resolve "Resource not found" error. We are using 6.19.0 version.
What do you mean by self contained test case to reproduce the error.

We have urgent requirement for this. Your early response will be very helpful for us.

Thanks & Regards,
Tushar Patil

Binary Data samplereportwithtwotables.jrxml7.28 KB

Hi Lucian,

Please help us on this. We are eagerly waiting for your reply.


Hi Lucian,

PFA for self contained testcase to reproduce "Resource Not Found" error. After executing attached report we are getting exception as below:
net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Resource not found at: /DataAdapterNotice.jrdax.

Please check the same & let us know if attched JRXML is correct to multiple table with multiple dataadapter use case.



The only problem that I see with the report is that it still has data source expressions for the table dataset runs. The table subdatasets should not be passed data sources since they have data adapters that are meant to provide data.

Once I remove the data source expressions from the table dataset runs, the report works fine for me, see the output that I get. If you're still getting Resource not found errors please describe how exactly you run the report (Jaspersoft Studio, your own application, etc) and what are the locations where all the resources are placed.


PDF icon multitablereport1656049695615.pdf1.71 KB

Hi Lucian,

Which version of Jasper Studio you are using?

I am using Jasper Studio 6.19.0(Community Edition) to execute the report. Report(JRXML) & DataAdapter(JRDAX) are at same location in "My Reports" folder.
I had also tried by removing data source expressions for the table dataset runs, but still I was getting "Resource Not Found" error for "net.sf.jasperreports.data.adapter".

As per my analysis, this is the problem with Jasper Studio 6.19.0, because I am getting perfect output in Japser Studio 6.12.0.
Pleaes suggest.



I didn't run the report in Studio, I directly used the JasperReports Library to run it.

If there's a problem in Studio I suggest moving this issue to that project in order for the Studio team to have a look.


Moved the issue to the Studio project.


Thanks Lucian.

Hi Studio Team,
Please suggest.


Hi Team,

Please help us on this. We are eagerly waiting for your reply.


Hi Team,

Please help us on this.

  • Resolution:Open» Fixed
  • Status:New» Resolved

Hi, after investigating the issue, the problem should be fixed in the next upcoming version of JSS that will be out soon.


Image icon bugcommunity14281_solved.png81.36 KB

Thanks Massimo for your response.


Hi Massimo,

Can you please let us know, In wchich version of Jasper Studio we will get this fix & by when the upcoming version will be available for us.
We are eagerly waiting for your reply.