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.
Issue
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?
2 Answers:
Posted on April 13, 2018 at 9:46am
Hi,
This might help,
https://community.jaspersoft.com/questions/821523/no-secret-found-when-r...
Thanks.
Posted on April 16, 2018 at 12:28am
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