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 = bytes;
>           
>         }catch(Exception e){
>             e.printStackTrace();
>         }
>         return page;
>     }
> 
> in wod:
> -----------
> ModalWindowBottom: JSModalWindow {
>     isResizable = true;
>     showScrollbars = true;
>     action = printJasperReports;
>     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 <kelleh...@gmail.com> 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      (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
>> 
>> This email sent to kelleh...@gmail.com
> 
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to