I am lost. if I remove the subreport everything is happy.
try number 1.
since what I need is to sort this array by date, I thought I would get my EO to
return what I wanted. So I created in my projectSteps.java
public JRBeanCollectionDataSource theSteps() {
return new JRBeanCollectionDataSource(
ERXArrayUtilities.sortedArraySortedWithKey(this.projectSteps(), "dueBy") );
}
Then I used the Field 'theSteps' as a datasource and it worked fine. ONE TIME
try number 2
So i assume i was screwing the pooch and changed to passing the normal field to
iReport and 'fixing' the datasource there. so I used projectSteps as the field
and Connection type is datasourse DataSource expression was:
new
net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{projectSteps})
Which worked fine again (without sorting on the date). ONE TIME.
If I run the report again, my app hangs. No response, no errors, it just stops.
I am using ERJasperReports as the basis and I see that it sets up a new
EditingContext each time it is run. So I do not believe that I am hosing the
EC. But what do I know?
--- On Mon, 5/6/13, Jesse Tayler <[email protected]> wrote:
> From: Jesse Tayler <[email protected]>
> Subject: Re: sub report (jasper) problem?
> To: "Theodore Petrosky" <[email protected]>
> Cc: "WebObjects Development" <[email protected]>
> Date: Monday, May 6, 2013, 9:54 AM
>
> are you certain this is not your app handling here?
>
> I mean, it sure sounds like you're either hanging an EC or
> otherwise killing your instance?
>
>
>
>
> On May 6, 2013, at 9:44 AM, Theodore Petrosky <[email protected]>
> wrote:
>
> > someone must have seen this. this is D2W btw!!
> > I have a to-many relationship
> > Project ==> projectSteps
> >
> > I am trying to print a jasper report where each row is
> a Project and there is a sub report on the same line with
> the 'steps'. If I have the subReport in the printed report,
> the report prints beautifully. But only one time. If I try
> to rerun the report the app hangs. no errors in the console,
> it just stops and the browser window updates to "No instance
> available".
> >
> > Is there someone doing JasperReport with Subreports
> that has an idea.
> >
> > I thought maybe there was a simple leak that was
> hurting me so I tried running the report, logging out,
> logging in (to create a new session). but it dies.
> >
> > I think I need real help in debugging this one.
> >
> > Ted
> > _______________________________________________
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list ([email protected])
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
> >
> > This email sent to [email protected]
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]