aspose file tools
The moose likes General Computing and the fly likes Not able to download a PDF from load balancer site Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » General Computing
Reply Bookmark "Not able to download a PDF from load balancer site" Watch "Not able to download a PDF from load balancer site" New topic
Author

Not able to download a PDF from load balancer site

k kumarp
Greenhorn

Joined: Dec 10, 2009
Posts: 3
We have a web application deployed in Tomcat 4.1. When we try to download a PDF from the load balancer site, we are getting the error in Adobe reader 9 as "There was an error opening this document. The file cannot be found".

This problem occurs only in Load balancer sites. When we try to download the PDF from direct link, it works.

And this problem occurs only in Adobe Reader 9. If we use the Adobe Reader 8, 7 with load balancer links, the PDF gets displayed.

The combination, Load balancer site + Adobe Reader 9 is the only problem.

Not sure the problem is with some load balancer settings related to cache or Reader 9 plugins.

Please let me know if somebody knows the solution. Is this problem can be resolved by setting some specific Headers in response object?


Note : option 'Display PDF in browser' in Internet explorer is disabled.


~ Kiran
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2552
    
    2

Welcome to Javaranch k kumarp
If the "Display PDF in browser" is disabled then is the PDF file downloaded to your machine?
Anyways this does not seem to be a servlet question, moving to General Computing.


SCJP, SCWCD.
|Asking Good Questions|
k kumarp
Greenhorn

Joined: Dec 10, 2009
Posts: 3
Hello Amit,

If the option 'Display PDF in browser' is disabled i.e, if we expect to display the PDF in Adobe Reader 9 then it doesn't work.
If the option 'Display PDF in browser' is enabled, the file gets displayed well.

I believe this is related to servlets only...

~KP
k kumarp
Greenhorn

Joined: Dec 10, 2009
Posts: 3
The issue got resolved with the setting 'Cache-Contro' to 'private' in httpd.conf

Thanks
KP
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Not able to download a PDF from load balancer site
 
Similar Threads
PDF error from iText
How to enable commenting into pdf files using java?
Error opening pdf file from modal window
open a pdf file from a servlet
How to open a local file in Java program