Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Tomcat problem in generating Jasper report(Excel) with SOAP web service response

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

We are using Tomcat 5.5.2 server for web services execution, its time-out is set to 120(seconds).
We can't change that timeout value as it is used by other projects aswell.

My application is getting large amount(3 to 4 MB) of data as response to webservice call, to generate jasper report(excel file).
When response data is not large its working fine, but for large response its giving the problem below.

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request
Reason: Error reading from remote server.
HTTP Status 500 -

We also observed the following entries from server log.

[Thu Dec 23 11:37:38 2010] [error] [client 151.95.57.86] (70007)The timeout specified has expired: proxy: error reading status line from remote server tnld03718.np.ge.com, referer: < applurl >...
[Thu Dec 23 11:37:38 2010] [error] [client 151.95.57.86] proxy: Error reading from remote server returned by /ibas/ajax-servlet/export-xls-spares-list.do, referer: < applurl >...

Please help me to resolve this problem.

Thanks
Shiva
 
Saloon Keeper
Posts: 25466
180
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it sounds as though you're attempting to transport 1000kg of fertiliser in a 500kg lorry. Apparently someone thinks the laws of physics are optional.

I doubt that there's much that you can do to Tomcat to remedy your problem, since most likely the real delays are in the speed of the back-end logic to construct such large files and in the linear time required to transmit the results to the client.

Your best bet is probably to run a second instance of Tomcat with a longer timeout and place the offending webapp there.
 
Shiva Shankar
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tim Holloway,
Thanks for your reply.

But client is not intrested to increase the timeout value in any instance of Tomcat server.

is there any other possible solution?
 
Tim Holloway
Saloon Keeper
Posts: 25466
180
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sometimes clients have to understand that the Universe doesn't care what they want.
 
The fastest and most reliable components of any system are those that are not there. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic