Jump to content
We've recently updated our Privacy Statement, available here ×

Unable to load Jasper Report in my UAT Environment


sasikala_1

Recommended Posts

Hi All,

I have a strange issue that one of jasper reports is not loading in our UAT environment(Linux) whereas it is working fine in my local environment (Windows) and Production environment(Linux),  Jasper Reports version is 5.6.0.  Following is the error for first-time access 

java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

        at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:

Subsequent access will result in following error

Followed by

 

[   ][ckalaga1] [2021-01-05 10:45:11,261] [Default Executor-thread-53245] [ERROR] Error while getting summary Report in getSummaryReportMethod:java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser (TrailerReportServiceImpl.java:512)

java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

        at java.util.concurrent.FutureTask.report(FutureTask.java:122)

        at java.util.concurrent.FutureTask.get(FutureTask.java:206)

        at com.uscs.ewms.yms.service.TrailerReportServiceImpl.getSummaryReport(TrailerReportServiceImpl.java:506)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

I have gone through various forums and tried the following options without any success.

 1) Starting the server in headless mode using  Djava.awt.headless=true

2) Ensure all the necessary fonts are installed. Validated against the production environment

3) Validated if jasper libraries are missing. Compared against the production server settings.

Basically, the UAT and Production servers have the same code base and folder structure. So not really sure what is going wrong in the environment.

Appreciate if someone can directions on what else can go wrong which resulted in this error?

Regards,

Ravindra

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...