Jasper - No secret found for “XXXXX” key in “net.sf.jasperreports.data.adapter” category

0

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?

srinivasulu.dagda's picture
Joined: Apr 9 2018 - 11:34pm
Last seen: 2 years 2 months ago

2 Answers:

0
m.kamran's picture
140
Joined: Nov 3 2017 - 3:11am
Last seen: 2 years 1 month ago
0

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

narcism's picture
1219
Joined: Nov 22 2010 - 12:39am
Last seen: 11 hours 9 min ago
Feedback
randomness