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

yoannbsk

Recommended Posts

Hello,

I'm currently having issue with the JRDAX file inside my Java project.
The jrxml works well on JasperStudio, but no longer on the java side.

I used the sample found here to complete my jrxml/jrdax/json :

https://jasperreports.sourceforge.net/sample.reference/jsonqldatasource/index.html

In the jrxml, I use the dataAdapter this way :

<property name="com.jaspersoft.studio.data.defaultdataadapter" value="JsonDataAdapter.jrdax"/><property name="net.sf.jasperreports.data.adapter" value="JsonDataAdapter.jrdax"/>[/code]


Here is the jrdax :

<?xml version="1.0" encoding="UTF-8" ?><jsonDataAdapter class="net.sf.jasperreports.data.json.JsonDataAdapterImpl">    <name>JsonQL</name>    <fileName>data.json</fileName>    <useConnection>true</useConnection>    <language>jsonql</language></jsonDataAdapter>[/code]


and the java issue :

2023-10-05 09:31:41.315 ERROR 9732 --- [ Call: FSP-CLIS] c.t.f.r.p.b.i.CreateReportServiceBIImpl  : Error while generating pdf: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id 'net.sf.jasperreports.data.json.JsonDataAdapterImpl' as a subtype of `net.sf.jasperreports.data.DataAdapter`: no such class found at [source: (FileInputStream); line: 2, column: 1][/code]


I'm using jasperreports 6.20.5 (I try with 6.20.6 and the issue is the same).

The fact that I was able to generate my pdf the 02/10/23 around 16:30, but no longer the 04/10/23 in the morning.

Thank you for any help

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

In addition, this is working on template that doesn't have subDataset.

I have created 2 jrxml, with the same jrdax, and java code.
The one without subdataset works well, the one with subdataset have the java issue.

I also add this property to the subdataset, or try other things without success :

<subDataset name="subdata" uuid="b10ad888-7807-4c0a-8777-e6d66d476e6c">

<property name="com.jaspersoft.studio.data.defaultdataadapter" value="JsonDataAdapter.jrdax"/>

Link to comment
Share on other sites

Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.
 

Link to comment
Share on other sites

FYI I retry with the "NorthWind" example from the github repo. I have the same issue:
com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id 'net.sf.jasperreports.data.json.JsonDataAdapterImpl' as a subtype of `net.sf.jasperreports.data.DataAdapter`: no such class found

Link to comment
Share on other sites

Hi @yoannbsk

If you have local samples, that will really help. As it is working fine independently and fails with subdataset only, need to see complete jrxml, the one which is working and the one which is failing. So we can verify what is wrong. 

What I got from your information is, the one which works fine, works on studio and JRS both, and the jrxml with subdataset doesn't work on both studio and JRS. Is that right? Please provide that clarification too.

Thanks.

Link to comment
Share on other sites

  • 3 weeks later...

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