Issue description
The following error is being thrown when running a report published from Jaspersoft Studio:
Error Message
null (Error UID: 21cddd74-69da-4005-b5e0-1a12852d7004)
Error Trace
java.lang.NullPointerException at com.jaspersoft.jasperserver.api.engine.jasperreports.util.repo.RepositoryConnection.getInputStream(RepositoryConnection.java:120) at java.net.URL.openStream(URL.java:1048) at net.sf.jasperreports.engine.util.JRLoader.getInputStream(JRLoader.java:339) at net.sf.jasperreports.repo.DefaultRepositoryService.getInputStream(DefaultRepositoryService.java:99) ...
The report works fine in Jaspersoft Studio though.
Solution
The error message does directly point to it, but this type of stack trace can show up when a resource referenced by report (for example an image) in not accessible. The common causes for such resource being unaccessible are:
The resource is placed in a different organization (which can also be a parent organization). In this case you need to move the resource to your current org, or to the Public folder
The resource has been removed
There is also an existing enhancement request submitted on the internal JasperReports Server tracker to make the error message more informative in such cases.
Recommended Comments
There are no comments to display.