• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: jasper report doesn't like my EO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: jasper report doesn't like my EO


  • Subject: Re: jasper report doesn't like my EO
  • From: Theodore Petrosky <email@hidden>
  • Date: Sat, 25 May 2013 08:34:39 -0700 (PDT)

i set in my properties file:

log4j.logger.er=DEBUG

and the program stalls with no error while executing the next() method in ERJRFoundationDataSource.

I added NSLog statements just to see if I could determine what the issue was and to be honest, it appears as if this method doesn't really do anything.

I will keep hacking and see if I can figure it out. I really don't understand as the app works the first time then fails on the second time. I didn't see this problem until I installed the app on my test server.

there is no way to restart the app on the server. I must reboot. if I tried to stop the instance, I get an error that there is no instance.

ouch.

Ted


--- On Sat, 5/25/13, Jesse Tayler <email@hidden> wrote:

> From: Jesse Tayler <email@hidden>
> Subject: Re: jasper report doesn't like my EO
> To: "Theodore Petrosky" <email@hidden>
> Cc: "WebObjects Development" <email@hidden>
> Date: Saturday, May 25, 2013, 10:00 AM
>
> did you backtrace your hang to see where it is?
>
>
>
>
>
> On May 24, 2013, at 10:15 PM, Theodore Petrosky <email@hidden>
> wrote:
>
> > I hope someone can help me with this.
> >
> > I am creating a report with a sub report. I have a
> to-many relationship like this:
> >
> > project to-many projectSteps
> >
> > since I wanted to print a project with the steps
> ordered by its dueBy date, I created:
> >
> > public JRBeanCollectionDataSource theSteps() {
> >  return new JRBeanCollectionDataSource(
> ERXArrayUtilities.sortedArraySortedWithKey(this.projectSteps(),
> "dueBy") );
> > }
> >
> > This worked beautifully. I could print to JasperReports
> and each row of projects would print its steps ordered by
> the date.
> >
> > But now, if I try to print the report, it prints once
> and hangs if I try to print it again.
> >
> > At first I thought that this was acting as if I had a
> problem with a second thread was trying to access my EOs.
> Except I am using ERJasperReports and it carefully creates a
> new editingContext each time it is run. My next experiment
> was to delete the subReport from my report and now it prints
> multiple times with no problem.
> >
> > So I put the subReport back, and changed my method. I
> eliminated the above method (theSteps()) and instead just
> used the relationship as a field. I wanted to prove that my
> method that is returning the JRBeanCollectionDataSource was
> not the problem. So I created a field in iReport so
> correspond to the relationship.
> >
> > So now I am using only the EO and its relationship
> pieces.
> >
> > It fails exactly the same. It appears to fail in
> ERJRFoundationDataSource's next() method.
> ERJRFoundationDataSource  implements JRDataSource.
> >
> > I am at a loss. Since each iteration uses a new
> editingContext in a new thread, why is this failing? I want
> to cry.
> >
> >
> > I hope someone can help.
> >
> > Ted
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list      (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
>
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Re: jasper report doesn't like my EO (From: Jesse Tayler <email@hidden>)

  • Prev by Date: Re: jasper report doesn't like my EO
  • Next by Date: Cannot find strings into WebObjects application files
  • Previous by thread: Re: jasper report doesn't like my EO
  • Next by thread: Re: jasper report doesn't like my EO
  • Index(es):
    • Date
    • Thread