cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea König <>
Subject Re: fo2pdf Serialzer problem
Date Fri, 27 Oct 2006 14:11:47 GMT
Hi Andrew,
many thanks for your help. You were right. I had sent response headers that disable caching.
For displaying the pdf I have now enabled caching and the pdf are displayed correctly in the
IExplorer, too.

Thank you very much!


Dr. Andrea König

G.punkt - medical services
Halberstädter Str. 115A
39112 Magdeburg

Tel: +49 391 280380
Fax: +49 391 2803822

Andrew Stevens wrote:

>> From: Andrea König <>
>> Date: Fri, 20 Oct 2006 14:26:28 +0200
>> Hi all,
>> I'm using cocoon-2.1.9 and have to generate pdf through a fo2pdf 
>> seralizer. The first problem is that the FOPSerializer comming with 
>> cocoon-2.1.9 doesn't seem to work correctly. If I try out the FOP 
>> sample of cocoon I get an error message like
>> java.lang.ExceptionInInitializerError
>> org.apache.cocoon.serialization.FOPSerializer.<clinit>(

>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(

>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(

>> java.lang.reflect.Constructor.newInstance(
>> java.lang.Class.newInstance0( ....
>> So I have written my own Serializer and it seemed to work fine. But 
>> if I use the Internet Explorer connect to my web site through https 
>> my serialized pdf could not be displayed. A download dialog is shown 
>> and a message error
>> that the file cannot be found. Using Firefox or Mozilla the pdf is 
>> serialized without any problems. The pdf is correctly serialized 
>> using Internet Explorer and http, too.
>> Is there anybody with an idea what the problem could be?
>> Any hint would be appreciated.
> No-cache headers. Using the acrobat plugin, IE actually opens the PDFs 
> from the cache (i.e. Temporary Internet Files/some temp filename.pdf) 
> after it's downloaded them. If you've sent response headers that 
> disable caching (which, if you're using https, suggests they're in a 
> secure area and is quite likely) then IE won't actually save the PDFs 
> in the cache, but still tries to open them from there (so you get an 
> error message when they're not found). It's not just PDFs that do 
> this, we had the same problem with some excel spreadsheets we 
> generated with the POI serializer too.
> Andrew.
> _________________________________________________________________
> Windows Live™ Messenger has arrived. Click here to download it for 
> free!
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message