You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by mi...@post.ch on 2005/08/30 11:09:52 UTC
Error while processing a PDF
Hi all,
I compiled the latest FOP trunk (2005.09.29), and tested it. Now, I
always get the following error message :
"Exception
java.lang.ClassCastException:
org.apache.fop.layoutmgr.inline.KnuthInlineBox"
I'm unfortunately unable to find where the error sticks in the FO.
Thanks for your help
Lawrence Michel
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: RE : Error while processing a PDF
Posted by Jeremias Maerki <de...@greenmail.ch>.
Lawrence sent me a test file off the mailing list. The bug is now fixed
in the Trunk.
Test cases:
http://svn.apache.org/viewcvs?rev=264771&view=rev
The fix:
http://svn.apache.org/viewcvs?rev=264773&view=rev
On 30.08.2005 11:46:45 Jeremias Maerki wrote:
> Oh, no, it doesn't necessarily have to do with fo:inlines. I misread the
> stack trace. All the more reason I need an FO file.
>
> On 30.08.2005 11:44:41 Jeremias Maerki wrote:
> > Thanks, Lawrence, but that only helps me verify that it is a problem
> > with fo:inline elements. Without an FO file that shows the problem I
> > can't do much to reproduce it. Please provide a small test case.
> >
> > On 30.08.2005 11:27:26 michella wrote:
> > > Here is the complete error message :
> > >
> > > -------------------
> > >
> > > java.lang.ClassCastException: org.apache.fop.layoutmgr.inline.KnuthInlineBox
> > > at org.apache.fop.layoutmgr.inline.LineLayoutManager$Paragraph.removeEle
> > > mentsForTrailingSpaces(LineLayoutManager.java:295)
> > > at org.apache.fop.layoutmgr.inline.LineLayoutManager$Paragraph.endSequen
> > > ce(LineLayoutManager.java:237)
> > > at org.apache.fop.layoutmgr.inline.LineLayoutManager$Paragraph.endParagr
> > > aph(LineLayoutManager.java:229)
> > > at org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthE
> > > lements(LineLayoutManager.java:803)
> > > at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElement
> > > s(LineLayoutManager.java:610)
> > <snip/>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: RE : Error while processing a PDF
Posted by Jeremias Maerki <de...@greenmail.ch>.
Oh, no, it doesn't necessarily have to do with fo:inlines. I misread the
stack trace. All the more reason I need an FO file.
On 30.08.2005 11:44:41 Jeremias Maerki wrote:
> Thanks, Lawrence, but that only helps me verify that it is a problem
> with fo:inline elements. Without an FO file that shows the problem I
> can't do much to reproduce it. Please provide a small test case.
>
> On 30.08.2005 11:27:26 michella wrote:
> > Here is the complete error message :
> >
> > -------------------
> >
> > java.lang.ClassCastException: org.apache.fop.layoutmgr.inline.KnuthInlineBox
> > at org.apache.fop.layoutmgr.inline.LineLayoutManager$Paragraph.removeEle
> > mentsForTrailingSpaces(LineLayoutManager.java:295)
> > at org.apache.fop.layoutmgr.inline.LineLayoutManager$Paragraph.endSequen
> > ce(LineLayoutManager.java:237)
> > at org.apache.fop.layoutmgr.inline.LineLayoutManager$Paragraph.endParagr
> > aph(LineLayoutManager.java:229)
> > at org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthE
> > lements(LineLayoutManager.java:803)
> > at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElement
> > s(LineLayoutManager.java:610)
> <snip/>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: RE : Error while processing a PDF
Posted by Jeremias Maerki <de...@greenmail.ch>.
Thanks, Lawrence, but that only helps me verify that it is a problem
with fo:inline elements. Without an FO file that shows the problem I
can't do much to reproduce it. Please provide a small test case.
On 30.08.2005 11:27:26 michella wrote:
> Here is the complete error message :
>
> -------------------
>
> java.lang.ClassCastException: org.apache.fop.layoutmgr.inline.KnuthInlineBox
> at org.apache.fop.layoutmgr.inline.LineLayoutManager$Paragraph.removeEle
> mentsForTrailingSpaces(LineLayoutManager.java:295)
> at org.apache.fop.layoutmgr.inline.LineLayoutManager$Paragraph.endSequen
> ce(LineLayoutManager.java:237)
> at org.apache.fop.layoutmgr.inline.LineLayoutManager$Paragraph.endParagr
> aph(LineLayoutManager.java:229)
> at org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthE
> lements(LineLayoutManager.java:803)
> at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElement
> s(LineLayoutManager.java:610)
<snip/>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Error while processing a PDF
Posted by Jeremias Maerki <de...@greenmail.ch>.
Can you provide a small test case, please? It probably has to do with
fo:inline. Please always provide the full stack trace when you get an
exception. The "-d" option on the command-line can help there.
On 30.08.2005 11:09:52 michella wrote:
> Hi all,
>
> I compiled the latest FOP trunk (2005.09.29), and tested it. Now, I
> always get the following error message :
>
> "Exception
> java.lang.ClassCastException:
> org.apache.fop.layoutmgr.inline.KnuthInlineBox"
>
> I'm unfortunately unable to find where the error sticks in the FO.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org