cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea König <andrea.koe...@gmatic.de>
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!

Regards

-- 
Dr. Andrea König
(Entwicklung)

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

Tel: +49 391 280380
Fax: +49 391 2803822
Inet: www.gmatic.de
mail: andrea.koenig@gmatic.de



Andrew Stevens wrote:

>> From: Andrea König <andrea.koenig@gmatic.de>
>> 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>(FOPSerializer.java:61)

>>
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

>>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

>>
>> java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>> java.lang.Class.newInstance0(Class.java:308) ....
>>
>>
>> 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! http://imagine-msn.com/messenger/launch80/?locale=en-gb
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message