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: 1 year 3 months ago

2 Answers:

0
m.kamran's picture
141
Joined: Nov 3 2017 - 3:11am
Last seen: 1 year 2 months 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
1027
Joined: Nov 22 2010 - 12:39am
Last seen: 1 day 6 hours ago
Feedback
randomness