You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by nico <nv...@scilearn.com> on 2003/07/11 01:41:32 UTC
mysterious error generating pdf file
hello cocoon users, i am trying to solve the following problem:
** problem description *****************************************
a pdf file that is dynamically generated from xml data using the fo2pdf
serializer
is downloaded and viewed successfully the first few attempts.
however, after repeated attempts (about a dozen) the pdf file can no
longer be viewed by
adobe acrobat which displays the following error messages:
"there was an error processing the page. wrong number of arguments for
the setcolor operator"
and
"an unrecognized token 'NaN' was found."
** system configuration ***************************************
the system configuration is as follows:
cocoon 2.0.4 under jboss 3.2.0 on a linux box with java j2sdk1.4.1_02
the error appears using
internet explorer
on a windows xp box
and adobe acrobat 5.
the error does *not* appear using
internet explorer
on os x
and the os x native pdf viewer.
** debugging **************************************************
i've tried the following to debug/solve the problem:
1. looked at the WEB-INF/logs/error.log and noted the following errors
ERROR (2003-07-10) 15:41.01:031 [core.manager.fop]
(/cocoon/mywebapp/report.pdf) PoolThread-2/PageSequence: Page
subsequences exhausted. Using previous subsequence.
ERROR (2003-07-10) 15:41.01:032 [core.manager.fop]
(/cocoon/mywebapp/report.pdf) PoolThread-2/MessageHandler: Unknown
enumerated value for property 'border-bottom-style': black
2. restarted jboss, which eliminated the errors. however, after a dozen
or so downloads the error reappears.
3. saved the downloaded report.pdf before and after the error occurs,
and the files are different sizes.
also, a diff text viewer indicated that the contents are different.
however the os x viewer displays them identically.
4. before sending the fo xml stream to the fo2pdf serializer, i viewed
the xml and it is valid, and contained no invalid data
or characters.
** questions ****************************************************
1. does anyone know of any bugs with the fop2pdf serializer (such as
memory leaks ) that would corrupt or damage
a pdf file after several download/generation attempts?
2. does anyone know if upgrading to cocoon2.1 would help with this
problem?
thanks in advance for any answers!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: mysterious error generating pdf file
Posted by "J.Pietschmann" <j3...@yahoo.de>.
nico wrote:
> ERROR (2003-07-10) 15:41.01:031 [core.manager.fop]
> (/cocoon/mywebapp/report.pdf) PoolThread-2/PageSequence: Page
> subsequences exhausted. Using previous subsequence.
>
> ERROR (2003-07-10) 15:41.01:032 [core.manager.fop]
> (/cocoon/mywebapp/report.pdf) PoolThread-2/MessageHandler: Unknown
> enumerated value for property 'border-bottom-style': black
..
> 4. before sending the fo xml stream to the fo2pdf serializer, i viewed
> the xml and it is valid, and contained no invalid data
> or characters.
Well, it's not quite valid, as the log entries indicate. However, they
should not cause an invalid PDF.
> 1. does anyone know of any bugs with the fop2pdf serializer (such as
> memory leaks ) that would corrupt or damage
> a pdf file after several download/generation attempts?
FOP has sort of memory leaks, but I'm not aware of leaks causing
PDF damage.
> 2. does anyone know if upgrading to cocoon2.1 would help with this problem?
Unlikely.
Could you try:
- reproduce the problem with another browser on Windows XP, like
Mozilla
- eliminate images and custom fonts and check whether the problem
persists
- if so, and if there are no confidential data, open a FOP bug and
append the FO file
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org