• 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: Ajax.framework problem when printing JasperReports
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ajax.framework problem when printing JasperReports


  • Subject: Re: Ajax.framework problem when printing JasperReports
  • From: Kieran Kelleher <email@hidden>
  • Date: Tue, 21 Sep 2010 09:30:20 -0400

I am not sure from your symptoms description whether you are experiencing browser _javascript_ deadlock or an Application deadlock.

... for _javascript_ browser deadlock......

- Use FireBug to see if you have _javascript_ errors associated with the page or upon executing the action from the JSModalWindow (which I have never used myself)

- Try running the action temporarily from a plain WOHyperlink

- Try using AjaxModalDialog from Ajax framework instead of JSModalWindow

.... for application deadlock..... try....

- Turning on ERXEC lock tracing

- use ERXStatisticsStore to grab stack traces in middle of the problem request

- Do a dump of all thread stack traces after the app has frozen to see the state of the threads using jstack



On Sep 21, 2010, at 8:32 AM, Venu A wrote:

Hi Kelleher ,

Thanks for quick reply,

Iam using WebObjects 5.4.3 with Project wonder. In the application iam generating pdf's using JasperReports.
Previously i used old Ajax.framework,ErExtentions.framework,in this case all of the PrintPdf's was working fine.
Now am updated my
Ajax.framework,ErExtentions.framework,in this case PrintPdf is not working means the application
is strucked(I coud not click on any tab or any link and the pdf is not generated), I need to relaunch the application. My print pdf code
is as follows


 public WOComponent printJasperReports() {
        String buString=null;
        HashMap map = new HashMap();
        URL reportURL = application().resourceManager().pathURLForResourceNamed("Reports/Invoice/MyReport.jasper", "CCBViewJava", null);
        String basePath = reportURL.getPath().substring(0,reportURL.getPath().lastIndexOf('/'));
        WOResourceManager manager = application().resourceManager();
       
        String imagePath = CCBUtilities.getBasePath("SampleWrapper",manager);
        map.put("imagePath",imagePath);

        map.put("basePath",basePath);
        JRDataSourceScriptlet source = new JRDataSourceScriptlet(new NSArray(bill));
        JRPDFPage page = (JRPDFPage)pageWithName("JRPDFPage");
        try{
            byte[] bytes=JasperRunManager.runReportToPdf(reportURL.getPath(),map,source);
            page.data = "">         
        }catch(Exception e){
            e.printStackTrace();
        }
        return page;
    }

in wod:
-----------
ModalWindowBottom: JSModalWindow {
    isResizable = true;
    showScrollbars = true;
    action = "">     height = 640;
    width = 576;
    windowName = "_blank";
}


If i replace the old frameworks for the application it is working fine without change any code.
I have updated my frameworks for AjaxFlexibleFileUpload to use in my application.

Thanks
Venu

On Tue, Sep 21, 2010 at 5:11 PM, Kieran Kelleher <email@hidden> wrote:
Venu,

more details?




On Sep 21, 2010, at 4:57 AM, Venu A wrote:

Hi All,

When I used old Ajax.framework with WebObjects 5.4.3 wonder frameworks, JasperReport's JasperRunManager.runReportToPdf method
 is working correctly, and producing PDF.
But When I used new Ajax.framework, JasperReport's JasperRunManager.runReportToPdf is getting struck in this method itself and
after re-launch only app is working, until that it is in idle state.
How to resolve this?

Thanks in advance,
Venu
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)

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: 
 >Ajax.framework problem when printing JasperReports (From: Venu A <email@hidden>)
 >Re: Ajax.framework problem when printing JasperReports (From: Kieran Kelleher <email@hidden>)
 >Re: Ajax.framework problem when printing JasperReports (From: Venu A <email@hidden>)

  • Prev by Date: Re: Ajax.framework problem when printing JasperReports
  • Next by Date: Oracle EOModel connection
  • Previous by thread: Re: Ajax.framework problem when printing JasperReports
  • Next by thread: Re: Ajax.framework problem when printing JasperReports
  • Index(es):
    • Date
    • Thread