NullPointerException when exporting reports from Rest Framework

0

JasperReports Version :7.8.0

OS : CentOS 7

We've been using Jasper ReST framework for a while now, and I've written some bash script to do the export/import reports as part of our CI/CD process and it was working fine up to version 7.2.

I updated a Dev environment with 7.8 and then the script stopped working. So I tried calling the ReST API using postman to see what's going on under the hood. I got the following error as response :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><errorDescriptor><errorCode>generic.error.message</errorCode><errorUid>7d283069-b320-4f03-93ff-ec0e6fabb954</errorUid><message>There was an error on the server. Try again or contact site administrators. (Error UID: 7d283069-b320-4f03-93ff-ec0e6fabb954)</message></errorDescriptor>

Strange. I checked catalina.out and jasperserver.log and they both had the same error (The stacktrace was not visible after posting the message, so I used Pastebin):

https://paste.ubuntu.com/p/37f2DxsJCP/

NullPointerException? It did not seem to be rooted in Jasper Reports, so I enabled all of the debug logs in log4j. Again, not much. I didn't copy the stack trace down below because it just got repeated. The rest of the debug log was as follows :

2020-10-10T11:31:23,465  WARN SecurityConfiguration,http-nio-8080-exec-1:194 - SECURITY for [INPUT-VALIDATION] is OFF
2020-10-10T11:31:23,465  WARN SecurityConfiguration,http-nio-8080-exec-1:194 - SECURITY for [ENCRYPTION] is OFF
2020-10-10T11:31:23,466  WARN JSDelegatingFilterProxy,http-nio-8080-exec-1:97 - casSingleSignOutFilter bean was not "dropped into" application context.  Using class com.jaspersoft.jasperserver.war.NullFilter instead.
2020-10-10T11:31:23,481  WARN JSDelegatingFilterProxy,http-nio-8080-exec-1:97 - proxyPreAuthenticatedProcessingFilter bean was not "dropped into" application context.  Using class com.jaspersoft.jasperserver.war.NullFilter instead.
2020-10-10T11:31:23,481  WARN JSDelegatingFilterProxy,http-nio-8080-exec-1:97 - proxyAuthenticationRestProcessingFilter bean was not "dropped into" application context.  Using class com.jaspersoft.jasperserver.war.RESTLoginAuthenticationFilter instead.
2020-10-10T11:31:23,483  WARN JSDelegatingFilterProxy,http-nio-8080-exec-1:97 - proxyBasicProcessingFilter bean was not "dropped into" application context.  Using class org.springframework.security.web.authentication.www.BasicAuthenticationFilter instead.
2020-10-10T11:31:23,535  WARN JSDelegatingFilterProxy,http-nio-8080-exec-1:97 - proxyRestRequestParameterAuthenticationFilter bean was not "dropped into" application context.  Using class com.jaspersoft.jasperserver.war.util.RequestParameterAuthenticationFilter instead.
2020-10-10T11:31:23,535  WARN JSDelegatingFilterProxy,http-nio-8080-exec-1:97 - corsFilter bean was not "dropped into" application context.  Using class org.springframework.web.filter.CorsFilter instead.
2020-10-10T11:31:23,615 ERROR GenericExceptionMapper,http-nio-8080-exec-1:69 - Unexpected error occurs java.lang.NullPointerException
 
...

Does someone have any idea on the problem above? Any help would be really appreciated.

aLuViAn's picture
Joined: Aug 10 2020 - 12:02am
Last seen: 1 year 4 weeks ago

0 Answers:

No answers yet
Feedback
randomness