caddyfan Posted July 11, 2024 Posted July 11, 2024 Hi community, I have a set of old JRXML templates I created for a Java desktop application that are used for PDF export/print. They were created when JR 1.3 was current and continue to work until now in JR 6.21.3. My main reason to try 7.0.0 are the vulnerabilities in the older version's dependencies. I tried to compile them with the JR library 7.0 but got a JRException: Unable to load report. I then tried to read my JRXML into Studio 7, but got an UnrecognizedPropertyException with "isDefault" in the style tag. Setting the file's properties to a prior JR version did not help. Did I do something wrong or is there a way to upgrade my templates? Regards, Thomas
Solution lucianc Posted July 12, 2024 Solution Posted July 12, 2024 Hello You seem to have very old JRXML files that still reference a DTD. Please correct me if my assumption is wrong. You need to convert your JRXML files to 7.0 syntax. You'll need to do that in two steps: first convert them to 6.x syntax (that uses an XSD schema instead of the DTD) using Jaspersoft Studio 6.x, and then convert the 6.x JRXMLs to the 7.0 syntax using Studio 7.0. Also see the discussion at https://github.com/TIBCOSoftware/jasperreports/issues/454 Regards, Lucian
caddyfan Posted July 16, 2024 Author Posted July 16, 2024 Yes, they were from the 1.3 version. I'll try that. Thanks
Recommended Posts
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