Problem Description:
Suppose you developed a jasperserver report using the webservice datasource package https://community.jaspersoft.com/wiki/installing-webservice-datasource.
You upgraded your jasperserver to v8x from v7x. You are getting the following error when running the report.
2023-11-20T12:30:21,527 ERROR JRFillSubreport,pool-11-thread-69:961 [] - Fill 1: exception
net.sf.jasperreports.util.JacksonRuntimException: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `com.jaspersoft.webservice.data.enumerations.LanguageType` (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator)
at [Source: (com.jaspersoft.jasperserver.api.metadata.common.domain.util.FileBufferedOutputStream$DataStream); line: 2, column: 230] (through reference chain: com.jaspersoft.webservice.data.WebServiceDataAdapterImpl["language"])
Workaround:
This problem is a result of migration of data adapter from Castor to Jackson happened in JR 6.19.0/JRS 8.1.
a) The webservice datasource package is a community contribution, it is not a part of the jasperserver product. Therefore, it is not supported. Jasperserver is subject to change without notice regarding unsupported third party components.
b) In this case, you can try the following workaround,
Download jasperreports-castor-6.20.0.jar from this link, https://repo1.maven.org/maven2/net/sf/jasperreports/jasperreports-castor/6.20.0/
Stop JRS, add the jar to WEB-INF/lib, restart JRS.
Recommended Comments
There are no comments to display.
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 accountSign in
Already have an account? Sign in here.
Sign In Now