Re: Problem with 'large' STATIC pdf files - appears FIXED

2002-04-22 Thread Nicola Ken Barozzi

From: "Christopher Watson" <[EMAIL PROTECTED]>

> Err.. Vadim,
>
> Don't know WHAT I did exactly, but when I tried the CVS version again it
> WORKED.
> Both with wget AND the browsers !
>
> So, Thanks !
>
> Sorry to trouble you unnecessarily.

Your questions are always welcome, they help to give us a deeper knowledge
of Cocoon.

BTW, I had a similar problem and had a really hard time digging in the
codebase and trying to see differences between how Cocoon and Tomcat as for
PDFs.

The fact that PDF files have problems from time to time in Cocoon releases
is one of the greatest misteries of our times ;-)

--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Problem with 'large' STATIC pdf files

2002-04-22 Thread Mike Dewar

Hi,

I've just downloaded the sources and read the "todo.xml" file which
says:

  
   Allow a Reader to give the content length to pipelines. This will
   allow to correctly serve static PDFs (well-known IE+Acrobat bug)
   without requiring to buffer the whole file in memory to know its
   content length.
  

Leaving aside the fact that it has nothing to do with IE+Acrobat per se,
this would suggest that Cocoon is fundamentally broken here and that
readers are not in fact safe to use.  I was planning to use Apache to
serve everything which isn't generated on-the-fly directly, but will
check out your suggestion of defining a tomcat context.

Cheers,
Mike.

On Mon, Apr 22, 2002 at 01:17:44PM +0100, Christopher Watson wrote:
> Mike
> 
> Using the CVS version made it 'better' ...
> wget seemed to reliably get all the file.
> But I was still having intermittent problems when using a browser.
> The browser problems seemed to go away if I put a dummy query string on the
> end of the URL, e.g.
> http://server/something.pdf?a=a
> That's with IE6, haven't tried it elsewhere
> 
> Sorry about the use of the word seemed , but then it's an intermittent
> problem :-?
> 
> However, other bits of the CVS version functioned differently from release
> 2.0.1, (see my separate message)
> so I had to abandon it for now for my own purposes.
> 
> I ended up defining a new tomcat context (in config/server.xml) to serve the
> pdf files, which seems (there's that word again) fine.
> 
> Christopher Watson
> > -Original Message-
> > From: Mike Dewar [mailto:[EMAIL PROTECTED]]
> > Sent: 22 April 2002 10:22
> > To: [EMAIL PROTECTED]
> > Subject: Re: Problem with 'large' STATIC pdf files
> >
> >
> > I have exactly this problem, which I reported to this list last week.  I
> > also tried wget and was surprised to see that it reported the size of
> > the file to be the truncated length, rather than the true length.
> > Looking in core.log I see the content-size reported as -1.
> >
> > Its an intermitant problem - if you can get the whole file cached then
> > everything appears to work normally.
> >
> > Let me know if you find a solution.
> >
> > Mike.
> >
> > On Sat, Apr 20, 2002 at 07:10:51PM +0100, Christopher Watson wrote:
> > > Vadim, the plot thickens.
> > >
> > > I've unearthed cygwin's wget.
> > > On the 2.0.2 release build it gets all 175958 bytes !
> > > Shame my browsers don't :-<
> > >
> > > BUT On the current CVS (HEAD branch) it only gets 32768 bytes.
> > >
> > > The opposite of what I would have expected/hoped
> > >
> > > Christopher
> > >
> > > > -Original Message-
> > > > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > > > Sent: 20 April 2002 16:44
> > > > To: [EMAIL PROTECTED]; 'Christopher Watson'
> > > > Subject: RE: Problem with 'large' STATIC pdf files
> > > >
> > > >
> > > > > From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> > > > >
> > > > > Can anyone help - from the archives I think there've been a
> > few people
> > > > down
> > > > > this road, but I haven't see anything very hopeful.
> > > > >
> > > > > I'm trying to serve up static PDF files using
> > > > >
> > > > >
> > > > > 
> > > > >
> > > > >
> > > > > These are simply exposed as download/viewable files by  > > > > href="pdf/something.pdf">
> > > > >
> > > > > If I right click and download, I only get the first 32768 bytes.
> > > > > The .pdf file file is 115Kb.
> > > > >
> > > > > Bizarrely, I can download all of an 82KB one with no problem
> > > > >
> > > > >
> > > > > I did a sanity check with a large (300kb) image file
> > > > > served by
> > > > >
> > > > >
> > > > > 
> > > > >
> > > > >
> > > > > which I could right-click and save OK.
> > > > >
> > > > >
> > > > > What am I doing wrong?
> > > > > Why the different behaviour?
> > > >
> > > > Should not be. Reader processes all file types similarly.
> > > >
> > > >
> > > > > Is there anywhere where a max

RE: Problem with 'large' STATIC pdf files

2002-04-22 Thread Christopher Watson

Mike

Using the CVS version made it 'better' ...
wget seemed to reliably get all the file.
But I was still having intermittent problems when using a browser.
The browser problems seemed to go away if I put a dummy query string on the
end of the URL, e.g.
http://server/something.pdf?a=a
That's with IE6, haven't tried it elsewhere

Sorry about the use of the word seemed , but then it's an intermittent
problem :-?

However, other bits of the CVS version functioned differently from release
2.0.1, (see my separate message)
so I had to abandon it for now for my own purposes.

I ended up defining a new tomcat context (in config/server.xml) to serve the
pdf files, which seems (there's that word again) fine.

Christopher Watson
> -Original Message-
> From: Mike Dewar [mailto:[EMAIL PROTECTED]]
> Sent: 22 April 2002 10:22
> To: [EMAIL PROTECTED]
> Subject: Re: Problem with 'large' STATIC pdf files
>
>
> I have exactly this problem, which I reported to this list last week.  I
> also tried wget and was surprised to see that it reported the size of
> the file to be the truncated length, rather than the true length.
> Looking in core.log I see the content-size reported as -1.
>
> Its an intermitant problem - if you can get the whole file cached then
> everything appears to work normally.
>
> Let me know if you find a solution.
>
> Mike.
>
> On Sat, Apr 20, 2002 at 07:10:51PM +0100, Christopher Watson wrote:
> > Vadim, the plot thickens.
> >
> > I've unearthed cygwin's wget.
> > On the 2.0.2 release build it gets all 175958 bytes !
> > Shame my browsers don't :-<
> >
> > BUT On the current CVS (HEAD branch) it only gets 32768 bytes.
> >
> > The opposite of what I would have expected/hoped
> >
> > Christopher
> >
> > > -----Original Message-
> > > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > > Sent: 20 April 2002 16:44
> > > To: [EMAIL PROTECTED]; 'Christopher Watson'
> > > Subject: RE: Problem with 'large' STATIC pdf files
> > >
> > >
> > > > From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> > > >
> > > > Can anyone help - from the archives I think there've been a
> few people
> > > down
> > > > this road, but I haven't see anything very hopeful.
> > > >
> > > > I'm trying to serve up static PDF files using
> > > >
> > > >
> > > > 
> > > >
> > > >
> > > > These are simply exposed as download/viewable files by  > > > href="pdf/something.pdf">
> > > >
> > > > If I right click and download, I only get the first 32768 bytes.
> > > > The .pdf file file is 115Kb.
> > > >
> > > > Bizarrely, I can download all of an 82KB one with no problem
> > > >
> > > >
> > > > I did a sanity check with a large (300kb) image file
> > > > served by
> > > >
> > > >
> > > > 
> > > >
> > > >
> > > > which I could right-click and save OK.
> > > >
> > > >
> > > > What am I doing wrong?
> > > > Why the different behaviour?
> > >
> > > Should not be. Reader processes all file types similarly.
> > >
> > >
> > > > Is there anywhere where a max file size is set for static .pdf's or
> > > other
> > > > file types?
> > >
> > > I don't think so.
> > >
> > >
> > > > PS I can serve the pdf through another tomcat servlet OK
> > > >
> > > > Same behaviour in ie6, opera 6.0.1, ns 4.73
> > >
> > > Try with "wget -S".
> > >
> > > > Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1
> > >
> > > Try Cocoon CVS version (or today's snapshot).
> > >
> > > Vadim
> > >
> > >
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > >
> > >
> >
> > -
> > Please check that your question has not already been answered in the
> > F

Re: Problem with 'large' STATIC pdf files

2002-04-22 Thread Mike Dewar

I have exactly this problem, which I reported to this list last week.  I
also tried wget and was surprised to see that it reported the size of
the file to be the truncated length, rather than the true length.
Looking in core.log I see the content-size reported as -1.

Its an intermitant problem - if you can get the whole file cached then
everything appears to work normally.

Let me know if you find a solution.

Mike.

On Sat, Apr 20, 2002 at 07:10:51PM +0100, Christopher Watson wrote:
> Vadim, the plot thickens.
> 
> I've unearthed cygwin's wget. 
> On the 2.0.2 release build it gets all 175958 bytes !
> Shame my browsers don't :-<
> 
> BUT On the current CVS (HEAD branch) it only gets 32768 bytes.
> 
> The opposite of what I would have expected/hoped
> 
> Christopher
> 
> > -Original Message-
> > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > Sent: 20 April 2002 16:44
> > To: [EMAIL PROTECTED]; 'Christopher Watson'
> > Subject: RE: Problem with 'large' STATIC pdf files
> > 
> > 
> > > From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> > > 
> > > Can anyone help - from the archives I think there've been a few people
> > down
> > > this road, but I haven't see anything very hopeful.
> > > 
> > > I'm trying to serve up static PDF files using
> > > 
> > >
> > > 
> > >
> > > 
> > > These are simply exposed as download/viewable files by  > > href="pdf/something.pdf">
> > > 
> > > If I right click and download, I only get the first 32768 bytes.
> > > The .pdf file file is 115Kb.
> > > 
> > > Bizarrely, I can download all of an 82KB one with no problem
> > > 
> > > 
> > > I did a sanity check with a large (300kb) image file
> > > served by
> > > 
> > >
> > > 
> > >
> > > 
> > > which I could right-click and save OK.
> > > 
> > > 
> > > What am I doing wrong?
> > > Why the different behaviour?
> > 
> > Should not be. Reader processes all file types similarly.
> > 
> > 
> > > Is there anywhere where a max file size is set for static .pdf's or
> > other
> > > file types?
> > 
> > I don't think so.
> > 
> > 
> > > PS I can serve the pdf through another tomcat servlet OK
> > > 
> > > Same behaviour in ie6, opera 6.0.1, ns 4.73
> > 
> > Try with "wget -S".
> >  
> > > Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1
> > 
> > Try Cocoon CVS version (or today's snapshot).
> > 
> > Vadim
> >  
> > 
> > 
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > 
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > 
> > 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 
> _
> This message has been checked for all known viruses by Star Internet
> delivered through the MessageLabs Virus Scanning Service. For further
> information visit http://www.star.net.uk/stats.asp or alternatively call
> Star Internet for details on the Virus Scanning Service.

_
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: Problem with 'large' STATIC pdf files - appears FIXED

2002-04-20 Thread Vadim Gritsenko

:)

Use "build clean" from time to time.

PS You can find wget compiled for NT without cygwin... But cygwin is
good because of many other tools (cvs is one of them)

Vadim

> From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> 
> Err.. Vadim,
> 
> Don't know WHAT I did exactly, but when I tried the CVS version again
it
> WORKED.
> Both with wget AND the browsers !
> 
> So, Thanks !
> 
> Sorry to trouble you unnecessarily.
> 
> Christopher
> 
> > -Original Message-
> > From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> > Sent: 20 April 2002 19:11
> > To: [EMAIL PROTECTED]
> > Subject: RE: Problem with 'large' STATIC pdf files
> >
> >
> > Vadim, the plot thickens.
> >
> > I've unearthed cygwin's wget.
> > On the 2.0.2 release build it gets all 175958 bytes !
> > Shame my browsers don't :-<
> >
> > BUT On the current CVS (HEAD branch) it only gets 32768 bytes.
> >
> > The opposite of what I would have expected/hoped
> >
> > Christopher
> >
> > > -----Original Message-
> > > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > > Sent: 20 April 2002 16:44
> > > To: [EMAIL PROTECTED]; 'Christopher Watson'
> > > Subject: RE: Problem with 'large' STATIC pdf files
> > >
> > >
> > > > From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> > > >
> > > > Can anyone help - from the archives I think there've been a few
people
> > > down
> > > > this road, but I haven't see anything very hopeful.
> > > >
> > > > I'm trying to serve up static PDF files using
> > > >
> > > >
> > > > 
> > > >
> > > >
> > > > These are simply exposed as download/viewable files by  > > > href="pdf/something.pdf">
> > > >
> > > > If I right click and download, I only get the first 32768 bytes.
> > > > The .pdf file file is 115Kb.
> > > >
> > > > Bizarrely, I can download all of an 82KB one with no problem
> > > >
> > > >
> > > > I did a sanity check with a large (300kb) image file
> > > > served by
> > > >
> > > >
> > > > 
> > > >
> > > >
> > > > which I could right-click and save OK.
> > > >
> > > >
> > > > What am I doing wrong?
> > > > Why the different behaviour?
> > >
> > > Should not be. Reader processes all file types similarly.
> > >
> > >
> > > > Is there anywhere where a max file size is set for static .pdf's
or
> > > other
> > > > file types?
> > >
> > > I don't think so.
> > >
> > >
> > > > PS I can serve the pdf through another tomcat servlet OK
> > > >
> > > > Same behaviour in ie6, opera 6.0.1, ns 4.73
> > >
> > > Try with "wget -S".
> > >
> > > > Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1
> > >
> > > Try Cocoon CVS version (or today's snapshot).
> > >
> > > Vadim


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: Problem with 'large' STATIC pdf files

2002-04-20 Thread Christopher Watson

Vadim, the plot thickens.

I've unearthed cygwin's wget. 
On the 2.0.2 release build it gets all 175958 bytes !
Shame my browsers don't :-<

BUT On the current CVS (HEAD branch) it only gets 32768 bytes.

The opposite of what I would have expected/hoped

Christopher

> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: 20 April 2002 16:44
> To: [EMAIL PROTECTED]; 'Christopher Watson'
> Subject: RE: Problem with 'large' STATIC pdf files
> 
> 
> > From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> > 
> > Can anyone help - from the archives I think there've been a few people
> down
> > this road, but I haven't see anything very hopeful.
> > 
> > I'm trying to serve up static PDF files using
> > 
> >
> > 
> >
> > 
> > These are simply exposed as download/viewable files by  > href="pdf/something.pdf">
> > 
> > If I right click and download, I only get the first 32768 bytes.
> > The .pdf file file is 115Kb.
> > 
> > Bizarrely, I can download all of an 82KB one with no problem
> > 
> > 
> > I did a sanity check with a large (300kb) image file
> > served by
> > 
> >
> > 
> >
> > 
> > which I could right-click and save OK.
> > 
> > 
> > What am I doing wrong?
> > Why the different behaviour?
> 
> Should not be. Reader processes all file types similarly.
> 
> 
> > Is there anywhere where a max file size is set for static .pdf's or
> other
> > file types?
> 
> I don't think so.
> 
> 
> > PS I can serve the pdf through another tomcat servlet OK
> > 
> > Same behaviour in ie6, opera 6.0.1, ns 4.73
> 
> Try with "wget -S".
>  
> > Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1
> 
> Try Cocoon CVS version (or today's snapshot).
> 
> Vadim
>  
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 

-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: Problem with 'large' STATIC pdf files

2002-04-20 Thread Christopher Watson

Thanks for this Vadim,

could you tell me what 
Try with "wget -S".
means? Some unix thing?

I'm on winnt4, I'm going to try and delve into CygWIN...

Meanwhile I'll get the latest CVS

Christopher

PS Any news on a 2.0.3 release?

> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: 20 April 2002 16:44
> To: [EMAIL PROTECTED]; 'Christopher Watson'
> Subject: RE: Problem with 'large' STATIC pdf files
> 
> 
> > From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> > 
> > Can anyone help - from the archives I think there've been a few people
> down
> > this road, but I haven't see anything very hopeful.
> > 
> > I'm trying to serve up static PDF files using
> > 
> >
> > 
> >
> > 
> > These are simply exposed as download/viewable files by  > href="pdf/something.pdf">
> > 
> > If I right click and download, I only get the first 32768 bytes.
> > The .pdf file file is 115Kb.
> > 
> > Bizarrely, I can download all of an 82KB one with no problem
> > 
> > 
> > I did a sanity check with a large (300kb) image file
> > served by
> > 
> >
> > 
> >
> > 
> > which I could right-click and save OK.
> > 
> > 
> > What am I doing wrong?
> > Why the different behaviour?
> 
> Should not be. Reader processes all file types similarly.
> 
> 
> > Is there anywhere where a max file size is set for static .pdf's or
> other
> > file types?
> 
> I don't think so.
> 
> 
> > PS I can serve the pdf through another tomcat servlet OK
> > 
> > Same behaviour in ie6, opera 6.0.1, ns 4.73
> 
> Try with "wget -S".
>  
> > Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1
> 
> Try Cocoon CVS version (or today's snapshot).
> 
> Vadim
>  
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 

-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: Problem with 'large' STATIC pdf files

2002-04-20 Thread Vadim Gritsenko

> From: Christopher Watson [mailto:[EMAIL PROTECTED]]
> 
> Can anyone help - from the archives I think there've been a few people
down
> this road, but I haven't see anything very hopeful.
> 
> I'm trying to serve up static PDF files using
> 
>
> 
>
> 
> These are simply exposed as download/viewable files by  href="pdf/something.pdf">
> 
> If I right click and download, I only get the first 32768 bytes.
> The .pdf file file is 115Kb.
> 
> Bizarrely, I can download all of an 82KB one with no problem
> 
> 
> I did a sanity check with a large (300kb) image file
> served by
> 
>
> 
>
> 
> which I could right-click and save OK.
> 
> 
> What am I doing wrong?
> Why the different behaviour?

Should not be. Reader processes all file types similarly.


> Is there anywhere where a max file size is set for static .pdf's or
other
> file types?

I don't think so.


> PS I can serve the pdf through another tomcat servlet OK
> 
> Same behaviour in ie6, opera 6.0.1, ns 4.73

Try with "wget -S".
 
> Tomcat 4.0.1 Cocoon 2.0.1 WinNT4 jdk1.3.1

Try Cocoon CVS version (or today's snapshot).

Vadim
 


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>