You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Ben Morgan (JIRA)" <ji...@apache.org> on 2008/08/20 12:29:24 UTC
[jira] Created: (WW-2776) Exception thrown for subreports in
non-splitting bands containing collections that might need to be split.
Exception thrown for subreports in non-splitting bands containing collections that might need to be split.
----------------------------------------------------------------------------------------------------------
Key: WW-2776
URL: https://issues.apache.org/struts/browse/WW-2776
Project: Struts 2
Issue Type: Bug
Components: Plugin - JasperReports
Affects Versions: 2.1.2
Reporter: Ben Morgan
"net.sf.jasperreports.engine.JRException: The subreport is placed on a non-splitting band, but it does not have a rewindable data source."
The ValueStackDataSource implements JRDataSource, not JRRewindableDatasource, If a "non-splittable" subreport iterates over a collection that might go over the page boundary, an exception is thrown because it cannot rewind the collection.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2776) Exception thrown for subreports in
non-splitting bands containing collections that might need to be split.
Posted by "Andrew Hodgson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46746#action_46746 ]
Andrew Hodgson commented on WW-2776:
------------------------------------
IMHO, coupling between plugin and JasperReports is quite brittle. dataSource plugin parameter could / should be optional, and alternative dataSource types such as JRRewindableDatasource could be supplied as report parameter.
See WW-3245 for an example of how this can be achieved (this example is for a Hibernate Session, but alternative connection and data source types could be supported with a little more work).
Use of report parameters to supply connection / data source is normal practice for Jasper users, so user base should be relatively familiar with this method of usage.
> Exception thrown for subreports in non-splitting bands containing collections that might need to be split.
> ----------------------------------------------------------------------------------------------------------
>
> Key: WW-2776
> URL: https://issues.apache.org/struts/browse/WW-2776
> Project: Struts 2
> Issue Type: Improvement
> Components: Plugin - JasperReports
> Affects Versions: 2.1.6
> Reporter: Ben Morgan
> Fix For: 2.2.x
>
>
> "net.sf.jasperreports.engine.JRException: The subreport is placed on a non-splitting band, but it does not have a rewindable data source."
> The ValueStackDataSource implements JRDataSource, not JRRewindableDatasource, If a "non-splittable" subreport iterates over a collection that might go over the page boundary, an exception is thrown because it cannot rewind the collection.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2776) Exception thrown for subreports in
non-splitting bands containing collections that might need to be split.
Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes Wannemacher updated WW-2776:
--------------------------------
Affects Version/s: (was: 2.1.2)
2.2.x
Issue Type: Improvement (was: Bug)
I'm not familiar with JasperReports, but if I'm reading it correctly, it seems like this is more of an improvement request than a bug.
> Exception thrown for subreports in non-splitting bands containing collections that might need to be split.
> ----------------------------------------------------------------------------------------------------------
>
> Key: WW-2776
> URL: https://issues.apache.org/struts/browse/WW-2776
> Project: Struts 2
> Issue Type: Improvement
> Components: Plugin - JasperReports
> Affects Versions: 2.1.6
> Reporter: Ben Morgan
> Fix For: 2.2.x
>
>
> "net.sf.jasperreports.engine.JRException: The subreport is placed on a non-splitting band, but it does not have a rewindable data source."
> The ValueStackDataSource implements JRDataSource, not JRRewindableDatasource, If a "non-splittable" subreport iterates over a collection that might go over the page boundary, an exception is thrown because it cannot rewind the collection.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2776) Exception thrown for subreports in
non-splitting bands containing collections that might need to be split.
Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes Wannemacher updated WW-2776:
--------------------------------
Affects Version/s: (was: 2.2.x)
2.1.6
Fix Version/s: 2.2.x
> Exception thrown for subreports in non-splitting bands containing collections that might need to be split.
> ----------------------------------------------------------------------------------------------------------
>
> Key: WW-2776
> URL: https://issues.apache.org/struts/browse/WW-2776
> Project: Struts 2
> Issue Type: Improvement
> Components: Plugin - JasperReports
> Affects Versions: 2.1.6
> Reporter: Ben Morgan
> Fix For: 2.2.x
>
>
> "net.sf.jasperreports.engine.JRException: The subreport is placed on a non-splitting band, but it does not have a rewindable data source."
> The ValueStackDataSource implements JRDataSource, not JRRewindableDatasource, If a "non-splittable" subreport iterates over a collection that might go over the page boundary, an exception is thrown because it cannot rewind the collection.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.