[#2532] - When the subreport time, jasperreport not be able to use JsonQueryExecuterFactory.JSON_INPUT_STREAM parameters

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

        When statements include subreport components using the the json data sources.
        If you use export the "JsonQueryExecuterFactory.JSON_INPUT_STREAM" parameter.
Report export fails, the exception information is as follows:(Caused by: java.io.EOFException: No content to map to Object due to end of input
     at org.codehaus.jackson.map.ObjectMapper._initForReading (ObjectMapper.java: 2775)
     at org.codehaus.jackson.map.ObjectMapper._readMapAndClose (ObjectMapper.java: 2718)
     at org.codehaus.jackson.map.ObjectMapper.readTree (ObjectMapper.java: 1507)
     at net.sf.jasperreports.engine.data.JsonDataSource. <init> (JsonDataSource.java: 98));

     If you use the "JsonQueryExecuterFactory.JSON_SOURCE". Report export success.
    Specific code, detailed annex.

AttachmentSize
File Source code43.73 KB
v4.7.1
huanglppp's picture
Joined: Oct 12 2012 - 8:27pm
Last seen: 9 years 1 month ago
Feedback
randomness