JasperReports encountered an error on context creation!

book

Article ID: 8372

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder) CA Service Virtualization (DevTest / LISA / VSE / Application Test)

Issue/Introduction

Getting this error when running any report from the DevTest Portal:

JasperReports encountered an error on context creation! 

java.sql.SQLNonTransientConnectionException: java.net.ConnectException : Error connecting to server localhost on port 1528 with message Connection refused.

 

Cause

This property was changed in the lisa.properties file:

From:

lisadb.internal.host=0.0.0.0

To:

lisadb.internal.host=<hostname of computer running Registry>

 

This property configures the Derby database to be accessible from all network interfaces present on the machine, which is why it should never be changed.

 

Derby is not supported in a production environment, only verifying the product out of the box.

Environment

Reported in DevTest 9.5.1, but can apply to any supported DevTest release.

Resolution

Setting value back in the lisa.properties file to:

 

lisadb.internal.host=0.0.0.0

Additional Information

It is recommended to never change the lisa.properties file properties to other values.