We use jasper with java 1.7 for report generation. It works fine with Java 1.7 version. Gets the below specified exception after java version updation to Java1.8.
No secret found for "XXXXXX" key in "net.sf.jasperreports.data.adapter" category.
Here "XXXXXX" is my database password.
My Database configuration is:
<?xml version="1.0" encoding="UTF-8" ?> <jdbcDataAdapter class="net.sf.jasperreports.data.jdbc.JdbcDataAdapterImpl"> <name>DataAdapter</name> <driver>org.postgresql.Driver</driver> <username>XXXX_user</username> <password>XXXXX</password> <savePassword>true</savePassword> <url>jdbc:postgresql://XXXXXXX:5432/XXXXXdb</url> <database></database> <serverAddress></serverAddress> </jdbcDataAdapter>
Unable to figuring out solution to the issue. Can anybody help to fix this issue?
You no longer need that jar from @m.kamran's answer. Those classes have made it into the core JasperReports library for several releases. It is just a matter of configuration. I have also replied to you on stackoverflow: https://stackoverflow.com/a/49817393/5882963