[#14016] - Accessing report execution status via REST API is not possible.

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

There appears to be an issue with accessing the status of a report execution via the REST-API in JasperReports-Server CE version 8.0.0. This error does not occur in version 7.8.0 CE.
It seems to be related to XML annotations in the class com.jaspersoft.jasperserver.jaxrs.report.ReportExecutionStatusEntity.

The status is accessed through the following API endpoint :

GET /jasperserver/rest_v2/reportExecutions/*requestId goes here*/status

This generates the following error on the server:

2022-02-15T10:26:22,712 ERROR GenericExceptionMapper,http-nio-8085-exec-1:89 - Unexpected error occured. HTTP 500 Internal Server Error. 1 counts of IllegalAnnotationExceptions javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
at org.glassfish.jersey.jaxb.internal.AbstractRootElementJaxbProvider.writeTo(AbstractRootElementJaxbProvider.java:182)
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:265)
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:250)
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
at org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor.aroundWriteTo(JsonWithPaddingInterceptor.java:106)
...
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
If a class has @XmlElement property, it cannot have @XmlValue property.
this problem is related to the following location:
at public java.lang.String com.jaspersoft.jasperserver.jaxrs.report.ReportExecutionStatusEntity.getValue()
at com.jaspersoft.jasperserver.jaxrs.report.ReportExecutionStatusEntity
this problem is related to the following location:
at public boolean com.jaspersoft.jasperserver.jaxrs.report.ReportExecutionStatusEntity.getAsyncCancel()
at com.jaspersoft.jasperserver.jaxrs.report.ReportExecutionStatusEntity

at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:76)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:441)
...
at org.glassfish.jersey.jaxb.internal.AbstractJaxbProvider.getMarshaller(AbstractJaxbProvider.java:230)
at org.glassfish.jersey.jaxb.internal.AbstractRootElementJaxbProvider.writeTo(AbstractRootElementJaxbProvider.java:174)
... 171 more

v8.0.0
rest api v2
some.dev's picture
Joined: Feb 16 2022 - 7:02am
Last seen: 2 months 4 weeks ago

1 Comment:

#1

I can confirm that this is not fixed in 8.0.1

Feedback