Re: fop and hyphenation produces NullPointerException [SOLVED with workaround]

2012-07-24 Thread Wilhelm

Hi,

Am 23.07.2012 14:54, schrieb mehdi houshmand:

Hi Wilhelm,

I've take a look at this issue, and it's definitely on the complex side
and I don't really have the time to address this at present. Could you
explain why you need that empty  element? Removing that
inline construct would solve your issue in the short term (obviously not
an actual fix for this bug.)


with the following workaround it works as expected:

true


  

  
  





Hope that helps

Mehdi

On 23 July 2012 12:23, Pascal Sancho mailto:[email protected]>> wrote:

Hi,

I think this is the same as another issue [1].

[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=48765

2012/7/23 mehdi houshmand mailto:[email protected]>>:
 > Hi Wilhelm,
 >
 > I've created a bug[1] to track this issue, I'll investigate and
post any
 > findings.
 >
 > Mehdi
 >
 > [1] https://issues.apache.org/bugzilla/show_bug.cgi?id=53586
 >
 >
 > On 21 July 2012 17:00, Wilhelm mailto:[email protected]>> wrote:
 >>
 >> Am 21.07.2012 14 :22, schrieb mehdi houshmand:
 >>
 >>> Hi,
 >>>
 >>> This looks like the NPE is occurring during layout, could you
please
 >>> provide the FO that causes this issue? If you could, try and
cut down
 >>> the FO as minimal as possible, just so that whomever looks at
this issue
 >>> can find the problem as quickly as possible.
 >>
 >>
 >> attached you find the offending test.fo  (it was
generated from test.xml).
 >>
 >>>
 >>> Thanks
 >>>
 >>> Mehdi
 >>>
 >>> On 21 July 2012 13:16, Wilhelm mailto:[email protected]>
 >>> >> wrote:
 >>>
 >>> Am 21.07.2012 13 
:47, schrieb
 >>> [email protected] 
>:
 >>>
 >>>
 >>> Show the stack trace.
 >>>
 >>>
 >>> start of the next element list is: page=112 col=0
 >>> Exception
 >>> org.apache.fop.apps.__FOPException
 >>> java.lang.NullPointerException
 >>>  at
 >>>
 >>>
org.apache.fop.cli.__InputHandler.transformTo(__InputHandler.java:302)
 >>>  at
 >>>
org.apache.fop.cli.__InputHandler.renderTo(__InputHandler.java:130)
 >>>  at org.apache.fop.cli.Main.__startFOP(Main.java:174)
 >>>  at org.apache.fop.cli.Main.main(__Main.java:205)
 >>> Caused by: java.lang.NullPointerException
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.__InlineStackingLayoutManager.__getChangedKnuthElements(__InlineStackingLayoutManager.__java:376)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.InlineLayoutManager.__getChangedKnuthElements(__InlineLayoutManager.java:537)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.__InlineStackingLayoutManager.__getChangedKnuthElements(__InlineStackingLayoutManager.__java:368)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.InlineLayoutManager.__getChangedKnuthElements(__InlineLayoutManager.java:537)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__processUpdates(__LineLayoutManager.java:1349)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__findHyphenationPoints(__LineLayoutManager.java:1318)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__findOptimalBreakingPoints(__LineLayoutManager.java:797)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__createLineBreaks(__LineLayoutManager.java:763)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__getNextKnuthElements(__LineLayoutManager.java:592)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:571)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:552)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextKnuthElements(__BlockStackingLayoutManager.__java:280)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:123)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:115)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextC

Re: fop and hyphenation produces NullPointerException

2012-07-24 Thread Wilhelm

Hi,

Am 23.07.2012 14:54, schrieb mehdi houshmand:

Hi Wilhelm,

I've take a look at this issue, and it's definitely on the complex side
and I don't really have the time to address this at present. Could you
explain why you need that empty  element?


well, I don't even look at the .fo files normally. I write in asciidoc 
and I use an


asciidoc -> .xml -> xsltproc -> .fo -> fop -> pdf

toolchain. So I really don't know where this element is from :-(

But I found another description for a workaround and I will try that 
later (and report).



Removing that
inline construct would solve your issue in the short term (obviously not
an actual fix for this bug.)

Hope that helps

Mehdi

On 23 July 2012 12:23, Pascal Sancho mailto:[email protected]>> wrote:

Hi,

I think this is the same as another issue [1].

[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=48765

2012/7/23 mehdi houshmand mailto:[email protected]>>:
 > Hi Wilhelm,
 >
 > I've created a bug[1] to track this issue, I'll investigate and
post any
 > findings.
 >
 > Mehdi
 >
 > [1] https://issues.apache.org/bugzilla/show_bug.cgi?id=53586
 >
 >
 > On 21 July 2012 17:00, Wilhelm mailto:[email protected]>> wrote:
 >>
 >> Am 21.07.2012 14 :22, schrieb mehdi houshmand:
 >>
 >>> Hi,
 >>>
 >>> This looks like the NPE is occurring during layout, could you
please
 >>> provide the FO that causes this issue? If you could, try and
cut down
 >>> the FO as minimal as possible, just so that whomever looks at
this issue
 >>> can find the problem as quickly as possible.
 >>
 >>
 >> attached you find the offending test.fo  (it was
generated from test.xml).
 >>
 >>>
 >>> Thanks
 >>>
 >>> Mehdi
 >>>
 >>> On 21 July 2012 13:16, Wilhelm mailto:[email protected]>
 >>> >> wrote:
 >>>
 >>> Am 21.07.2012 13 
:47, schrieb
 >>> [email protected] 
>:
 >>>
 >>>
 >>> Show the stack trace.
 >>>
 >>>
 >>> start of the next element list is: page=112 col=0
 >>> Exception
 >>> org.apache.fop.apps.__FOPException
 >>> java.lang.NullPointerException
 >>>  at
 >>>
 >>>
org.apache.fop.cli.__InputHandler.transformTo(__InputHandler.java:302)
 >>>  at
 >>>
org.apache.fop.cli.__InputHandler.renderTo(__InputHandler.java:130)
 >>>  at org.apache.fop.cli.Main.__startFOP(Main.java:174)
 >>>  at org.apache.fop.cli.Main.main(__Main.java:205)
 >>> Caused by: java.lang.NullPointerException
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.__InlineStackingLayoutManager.__getChangedKnuthElements(__InlineStackingLayoutManager.__java:376)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.InlineLayoutManager.__getChangedKnuthElements(__InlineLayoutManager.java:537)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.__InlineStackingLayoutManager.__getChangedKnuthElements(__InlineStackingLayoutManager.__java:368)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.InlineLayoutManager.__getChangedKnuthElements(__InlineLayoutManager.java:537)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__processUpdates(__LineLayoutManager.java:1349)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__findHyphenationPoints(__LineLayoutManager.java:1318)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__findOptimalBreakingPoints(__LineLayoutManager.java:797)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__createLineBreaks(__LineLayoutManager.java:763)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__getNextKnuthElements(__LineLayoutManager.java:592)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:571)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:552)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextKnuthElements(__BlockStackingLayoutManager.__java:280)
 >>>  at
 >>>
 >>>

org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:123)
 >>>  at
 >>>
 >>>

Re: fop and hyphenation produces NullPointerException

2012-07-23 Thread mehdi houshmand
Hi Wilhelm,

I've take a look at this issue, and it's definitely on the complex side and
I don't really have the time to address this at present. Could you explain
why you need that empty  element? Removing that inline construct
would solve your issue in the short term (obviously not an actual fix for
this bug.)

Hope that helps

Mehdi

On 23 July 2012 12:23, Pascal Sancho  wrote:

> Hi,
>
> I think this is the same as another issue [1].
>
> [1] https://issues.apache.org/bugzilla/show_bug.cgi?id=48765
>
> 2012/7/23 mehdi houshmand :
> > Hi Wilhelm,
> >
> > I've created a bug[1] to track this issue, I'll investigate and post any
> > findings.
> >
> > Mehdi
> >
> > [1] https://issues.apache.org/bugzilla/show_bug.cgi?id=53586
> >
> >
> > On 21 July 2012 17:00, Wilhelm  wrote:
> >>
> >> Am 21.07.2012 14:22, schrieb mehdi houshmand:
> >>
> >>> Hi,
> >>>
> >>> This looks like the NPE is occurring during layout, could you please
> >>> provide the FO that causes this issue? If you could, try and cut down
> >>> the FO as minimal as possible, just so that whomever looks at this
> issue
> >>> can find the problem as quickly as possible.
> >>
> >>
> >> attached you find the offending test.fo (it was generated from
> test.xml).
> >>
> >>>
> >>> Thanks
> >>>
> >>> Mehdi
> >>>
> >>> On 21 July 2012 13:16, Wilhelm  >>> > wrote:
> >>>
> >>> Am 21.07.2012 13 :47, schrieb
> >>> [email protected] :
> >>>
> >>>
> >>> Show the stack trace.
> >>>
> >>>
> >>> start of the next element list is: page=112 col=0
> >>> Exception
> >>> org.apache.fop.apps.__FOPException
> >>> java.lang.NullPointerException
> >>>  at
> >>>
> >>> org.apache.fop.cli.__InputHandler.transformTo(__InputHandler.java:302)
> >>>  at
> >>> org.apache.fop.cli.__InputHandler.renderTo(__InputHandler.java:130)
> >>>  at org.apache.fop.cli.Main.__startFOP(Main.java:174)
> >>>  at org.apache.fop.cli.Main.main(__Main.java:205)
> >>> Caused by: java.lang.NullPointerException
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__inline.__InlineStackingLayoutManager.__getChangedKnuthElements(__InlineStackingLayoutManager.__java:376)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__inline.InlineLayoutManager.__getChangedKnuthElements(__InlineLayoutManager.java:537)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__inline.__InlineStackingLayoutManager.__getChangedKnuthElements(__InlineStackingLayoutManager.__java:368)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__inline.InlineLayoutManager.__getChangedKnuthElements(__InlineLayoutManager.java:537)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__inline.LineLayoutManager.__processUpdates(__LineLayoutManager.java:1349)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__inline.LineLayoutManager.__findHyphenationPoints(__LineLayoutManager.java:1318)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__inline.LineLayoutManager.__findOptimalBreakingPoints(__LineLayoutManager.java:797)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__inline.LineLayoutManager.__createLineBreaks(__LineLayoutManager.java:763)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__inline.LineLayoutManager.__getNextKnuthElements(__LineLayoutManager.java:592)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:571)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:552)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextKnuthElements(__BlockStackingLayoutManager.__java:280)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:123)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:115)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:571)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:552)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextKnuthElements(__BlockStackingLayoutManager.__java:280)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:123)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:115)
> >>>  at
> >>>
> >>>
> org.apache.fop.layoutmgr.__FlowLayoutManager.__getNextChildEle

Re: fop and hyphenation produces NullPointerException

2012-07-23 Thread Pascal Sancho
Hi,

I think this is the same as another issue [1].

[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=48765

2012/7/23 mehdi houshmand :
> Hi Wilhelm,
>
> I've created a bug[1] to track this issue, I'll investigate and post any
> findings.
>
> Mehdi
>
> [1] https://issues.apache.org/bugzilla/show_bug.cgi?id=53586
>
>
> On 21 July 2012 17:00, Wilhelm  wrote:
>>
>> Am 21.07.2012 14:22, schrieb mehdi houshmand:
>>
>>> Hi,
>>>
>>> This looks like the NPE is occurring during layout, could you please
>>> provide the FO that causes this issue? If you could, try and cut down
>>> the FO as minimal as possible, just so that whomever looks at this issue
>>> can find the problem as quickly as possible.
>>
>>
>> attached you find the offending test.fo (it was generated from test.xml).
>>
>>>
>>> Thanks
>>>
>>> Mehdi
>>>
>>> On 21 July 2012 13:16, Wilhelm >> > wrote:
>>>
>>> Am 21.07.2012 13 :47, schrieb
>>> [email protected] :
>>>
>>>
>>> Show the stack trace.
>>>
>>>
>>> start of the next element list is: page=112 col=0
>>> Exception
>>> org.apache.fop.apps.__FOPException
>>> java.lang.NullPointerException
>>>  at
>>>
>>> org.apache.fop.cli.__InputHandler.transformTo(__InputHandler.java:302)
>>>  at
>>> org.apache.fop.cli.__InputHandler.renderTo(__InputHandler.java:130)
>>>  at org.apache.fop.cli.Main.__startFOP(Main.java:174)
>>>  at org.apache.fop.cli.Main.main(__Main.java:205)
>>> Caused by: java.lang.NullPointerException
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__inline.__InlineStackingLayoutManager.__getChangedKnuthElements(__InlineStackingLayoutManager.__java:376)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__inline.InlineLayoutManager.__getChangedKnuthElements(__InlineLayoutManager.java:537)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__inline.__InlineStackingLayoutManager.__getChangedKnuthElements(__InlineStackingLayoutManager.__java:368)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__inline.InlineLayoutManager.__getChangedKnuthElements(__InlineLayoutManager.java:537)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__inline.LineLayoutManager.__processUpdates(__LineLayoutManager.java:1349)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__inline.LineLayoutManager.__findHyphenationPoints(__LineLayoutManager.java:1318)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__inline.LineLayoutManager.__findOptimalBreakingPoints(__LineLayoutManager.java:797)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__inline.LineLayoutManager.__createLineBreaks(__LineLayoutManager.java:763)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__inline.LineLayoutManager.__getNextKnuthElements(__LineLayoutManager.java:592)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:571)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:552)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextKnuthElements(__BlockStackingLayoutManager.__java:280)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:123)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:115)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:571)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:552)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextKnuthElements(__BlockStackingLayoutManager.__java:280)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:123)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:115)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__FlowLayoutManager.__getNextChildElements(__FlowLayoutManager.java:199)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__FlowLayoutManager.__addChildElements(__FlowLayoutManager.java:140)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__FlowLayoutManager.__addChildElements(__FlowLayoutManager.java:129)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__FlowLayoutManager.__getNextKnuthElements(__FlowLayoutManager.java:70)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__PageBreaker.__getNextKnuthElements(__PageBreaker.java:216)
>>>  at
>>>
>>> org.apache.fop.layoutmgr.__AbstractBreaker.__getNextBlockList(__AbstractBreaker.java:692)
>>>  at
>>>
>

Re: fop and hyphenation produces NullPointerException

2012-07-23 Thread mehdi houshmand
Hi Wilhelm,

I've created a bug[1] to track this issue, I'll investigate and post any
findings.

Mehdi

[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=53586

On 21 July 2012 17:00, Wilhelm  wrote:

> Am 21.07.2012 14:22, schrieb mehdi houshmand:
>
>  Hi,
>>
>> This looks like the NPE is occurring during layout, could you please
>> provide the FO that causes this issue? If you could, try and cut down
>> the FO as minimal as possible, just so that whomever looks at this issue
>> can find the problem as quickly as possible.
>>
>
> attached you find the offending test.fo (it was generated from test.xml).
>
>
>> Thanks
>>
>> Mehdi
>>
>> On 21 July 2012 13:16, Wilhelm > > wrote:
>>
>> Am 21.07.2012 13 :47, schrieb
>> [email protected] **:
>>
>>
>> Show the stack trace.
>>
>>
>> start of the next element list is: page=112 col=0
>> Exception
>> org.apache.fop.apps.__**FOPException
>> java.lang.NullPointerException
>>  at
>> org.apache.fop.cli.__**InputHandler.transformTo(__**
>> InputHandler.java:302)
>>  at
>> org.apache.fop.cli.__**InputHandler.renderTo(__**
>> InputHandler.java:130)
>>  at org.apache.fop.cli.Main.__**startFOP(Main.java:174)
>>  at org.apache.fop.cli.Main.main(_**_Main.java:205)
>> Caused by: java.lang.NullPointerException
>>  at
>> org.apache.fop.layoutmgr.__**inline.__**
>> InlineStackingLayoutManager.__**getChangedKnuthElements(__**
>> InlineStackingLayoutManager.__**java:376)
>>  at
>> org.apache.fop.layoutmgr.__**inline.InlineLayoutManager.__**
>> getChangedKnuthElements(__**InlineLayoutManager.java:537)
>>  at
>> org.apache.fop.layoutmgr.__**inline.__**
>> InlineStackingLayoutManager.__**getChangedKnuthElements(__**
>> InlineStackingLayoutManager.__**java:368)
>>  at
>> org.apache.fop.layoutmgr.__**inline.InlineLayoutManager.__**
>> getChangedKnuthElements(__**InlineLayoutManager.java:537)
>>  at
>> org.apache.fop.layoutmgr.__**inline.LineLayoutManager.__**
>> processUpdates(__**LineLayoutManager.java:1349)
>>  at
>> org.apache.fop.layoutmgr.__**inline.LineLayoutManager.__**
>> findHyphenationPoints(__**LineLayoutManager.java:1318)
>>  at
>> org.apache.fop.layoutmgr.__**inline.LineLayoutManager.__**
>> findOptimalBreakingPoints(__**LineLayoutManager.java:797)
>>  at
>> org.apache.fop.layoutmgr.__**inline.LineLayoutManager.__**
>> createLineBreaks(__**LineLayoutManager.java:763)
>>  at
>> org.apache.fop.layoutmgr.__**inline.LineLayoutManager.__**
>> getNextKnuthElements(__**LineLayoutManager.java:592)
>>  at
>> org.apache.fop.layoutmgr.__**BlockStackingLayoutManager.__**
>> getNextChildElements(__**BlockStackingLayoutManager.__**java:571)
>>  at
>> org.apache.fop.layoutmgr.__**BlockStackingLayoutManager.__**
>> getNextChildElements(__**BlockStackingLayoutManager.__**java:552)
>>  at
>> org.apache.fop.layoutmgr.__**BlockStackingLayoutManager.__**
>> getNextKnuthElements(__**BlockStackingLayoutManager.__**java:280)
>>  at
>> org.apache.fop.layoutmgr.__**BlockLayoutManager.__**
>> getNextKnuthElements(__**BlockLayoutManager.java:123)
>>  at
>> org.apache.fop.layoutmgr.__**BlockLayoutManager.__**
>> getNextKnuthElements(__**BlockLayoutManager.java:115)
>>  at
>> org.apache.fop.layoutmgr.__**BlockStackingLayoutManager.__**
>> getNextChildElements(__**BlockStackingLayoutManager.__**java:571)
>>  at
>> org.apache.fop.layoutmgr.__**BlockStackingLayoutManager.__**
>> getNextChildElements(__**BlockStackingLayoutManager.__**java:552)
>>  at
>> org.apache.fop.layoutmgr.__**BlockStackingLayoutManager.__**
>> getNextKnuthElements(__**BlockStackingLayoutManager.__**java:280)
>>  at
>> org.apache.fop.layoutmgr.__**BlockLayoutManager.__**
>> getNextKnuthElements(__**BlockLayoutManager.java:123)
>>  at
>> org.apache.fop.layoutmgr.__**BlockLayoutManager.__**
>> getNextKnuthElements(__**BlockLayoutManager.java:115)
>>  at
>> org.apache.fop.layoutmgr.__**FlowLayoutManager.__**
>> getNextChildElements(__**FlowLayoutManager.java:199)
>>  at
>> org.apache.fop.layoutmgr.__**FlowLayoutManager.__**
>> addChildElements(__**FlowLayoutManager.java:140)
>>  at
>> org.apache.fop.layoutmgr.__**FlowLayoutManager.__**
>> addChildElements(__**FlowLayoutManager.java:129)
>>  at
>> org.apache.fop.layoutmgr.__**FlowLayoutManager.__**
>> getNextKnuthElements(__**FlowLayoutManager.java:70)
>>  at
>> org.apache.fop.layoutmgr.__**PageBreaker.__**getNextKnuthElements(__*
>> *PageBreaker.java:216)
>>  at
>> org.apache.fop.layoutmgr.__**AbstractBreaker.__**getNextBlockList(__*
>>

Re: fop and hyphenation produces NullPointerException

2012-07-21 Thread Wilhelm

Am 21.07.2012 14:22, schrieb mehdi houshmand:

Hi,

This looks like the NPE is occurring during layout, could you please
provide the FO that causes this issue? If you could, try and cut down
the FO as minimal as possible, just so that whomever looks at this issue
can find the problem as quickly as possible.


attached you find the offending test.fo (it was generated from test.xml).



Thanks

Mehdi

On 21 July 2012 13:16, Wilhelm mailto:[email protected]>> wrote:

Am 21.07.2012 13 :47, schrieb
[email protected] :

Show the stack trace.


start of the next element list is: page=112 col=0
Exception
org.apache.fop.apps.__FOPException
java.lang.NullPointerException
 at
org.apache.fop.cli.__InputHandler.transformTo(__InputHandler.java:302)
 at
org.apache.fop.cli.__InputHandler.renderTo(__InputHandler.java:130)
 at org.apache.fop.cli.Main.__startFOP(Main.java:174)
 at org.apache.fop.cli.Main.main(__Main.java:205)
Caused by: java.lang.NullPointerException
 at

org.apache.fop.layoutmgr.__inline.__InlineStackingLayoutManager.__getChangedKnuthElements(__InlineStackingLayoutManager.__java:376)
 at

org.apache.fop.layoutmgr.__inline.InlineLayoutManager.__getChangedKnuthElements(__InlineLayoutManager.java:537)
 at

org.apache.fop.layoutmgr.__inline.__InlineStackingLayoutManager.__getChangedKnuthElements(__InlineStackingLayoutManager.__java:368)
 at

org.apache.fop.layoutmgr.__inline.InlineLayoutManager.__getChangedKnuthElements(__InlineLayoutManager.java:537)
 at

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__processUpdates(__LineLayoutManager.java:1349)
 at

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__findHyphenationPoints(__LineLayoutManager.java:1318)
 at

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__findOptimalBreakingPoints(__LineLayoutManager.java:797)
 at

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__createLineBreaks(__LineLayoutManager.java:763)
 at

org.apache.fop.layoutmgr.__inline.LineLayoutManager.__getNextKnuthElements(__LineLayoutManager.java:592)
 at

org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:571)
 at

org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:552)
 at

org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextKnuthElements(__BlockStackingLayoutManager.__java:280)
 at

org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:123)
 at

org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:115)
 at

org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:571)
 at

org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextChildElements(__BlockStackingLayoutManager.__java:552)
 at

org.apache.fop.layoutmgr.__BlockStackingLayoutManager.__getNextKnuthElements(__BlockStackingLayoutManager.__java:280)
 at

org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:123)
 at

org.apache.fop.layoutmgr.__BlockLayoutManager.__getNextKnuthElements(__BlockLayoutManager.java:115)
 at

org.apache.fop.layoutmgr.__FlowLayoutManager.__getNextChildElements(__FlowLayoutManager.java:199)
 at

org.apache.fop.layoutmgr.__FlowLayoutManager.__addChildElements(__FlowLayoutManager.java:140)
 at

org.apache.fop.layoutmgr.__FlowLayoutManager.__addChildElements(__FlowLayoutManager.java:129)
 at

org.apache.fop.layoutmgr.__FlowLayoutManager.__getNextKnuthElements(__FlowLayoutManager.java:70)
 at

org.apache.fop.layoutmgr.__PageBreaker.__getNextKnuthElements(__PageBreaker.java:216)
 at

org.apache.fop.layoutmgr.__AbstractBreaker.__getNextBlockList(__AbstractBreaker.java:692)
 at

org.apache.fop.layoutmgr.__PageBreaker.getNextBlockList(__PageBreaker.java:149)
 at

org.apache.fop.layoutmgr.__PageBreaker.getNextBlockList(__PageBreaker.java:132)
 at

org.apache.fop.layoutmgr.__AbstractBreaker.doLayout(__AbstractBreaker.java:337)
 at
org.apache.fop.layoutmgr.__PageBreaker.doLayout(__PageBreaker.java:85)
 at

org.apache.fop.layoutmgr.__PageSequenceLayoutManager.__activateLayout(__PageSequenceLayoutManager.__java:107)
 at

org.apache.fop.area.__AreaTreeHandler.__endPageSequence(__AreaTreeHandler.java:238)
 at

org.apache.fop.fo.pagination.__PageSequence.endOfN

Re: fop and hyphenation produces NullPointerException

2012-07-21 Thread mehdi houshmand
Hi,

This looks like the NPE is occurring during layout, could you please
provide the FO that causes this issue? If you could, try and cut down the
FO as minimal as possible, just so that whomever looks at this issue can
find the problem as quickly as possible.

Thanks

Mehdi

On 21 July 2012 13:16, Wilhelm  wrote:

> Am 21.07.2012 13:47, schrieb [email protected]:
>
>> Show the stack trace.
>>
>
> start of the next element list is: page=112 col=0
> Exception
> org.apache.fop.apps.**FOPException
> java.lang.NullPointerException
> at org.apache.fop.cli.**InputHandler.transformTo(**
> InputHandler.java:302)
> at org.apache.fop.cli.**InputHandler.renderTo(**
> InputHandler.java:130)
> at org.apache.fop.cli.Main.**startFOP(Main.java:174)
> at org.apache.fop.cli.Main.main(**Main.java:205)
> Caused by: java.lang.NullPointerException
> at org.apache.fop.layoutmgr.**inline.**
> InlineStackingLayoutManager.**getChangedKnuthElements(**
> InlineStackingLayoutManager.**java:376)
> at org.apache.fop.layoutmgr.**inline.InlineLayoutManager.**
> getChangedKnuthElements(**InlineLayoutManager.java:537)
> at org.apache.fop.layoutmgr.**inline.**
> InlineStackingLayoutManager.**getChangedKnuthElements(**
> InlineStackingLayoutManager.**java:368)
> at org.apache.fop.layoutmgr.**inline.InlineLayoutManager.**
> getChangedKnuthElements(**InlineLayoutManager.java:537)
> at org.apache.fop.layoutmgr.**inline.LineLayoutManager.**
> processUpdates(**LineLayoutManager.java:1349)
> at org.apache.fop.layoutmgr.**inline.LineLayoutManager.**
> findHyphenationPoints(**LineLayoutManager.java:1318)
> at org.apache.fop.layoutmgr.**inline.LineLayoutManager.**
> findOptimalBreakingPoints(**LineLayoutManager.java:797)
> at org.apache.fop.layoutmgr.**inline.LineLayoutManager.**
> createLineBreaks(**LineLayoutManager.java:763)
> at org.apache.fop.layoutmgr.**inline.LineLayoutManager.**
> getNextKnuthElements(**LineLayoutManager.java:592)
> at org.apache.fop.layoutmgr.**BlockStackingLayoutManager.**
> getNextChildElements(**BlockStackingLayoutManager.**java:571)
> at org.apache.fop.layoutmgr.**BlockStackingLayoutManager.**
> getNextChildElements(**BlockStackingLayoutManager.**java:552)
> at org.apache.fop.layoutmgr.**BlockStackingLayoutManager.**
> getNextKnuthElements(**BlockStackingLayoutManager.**java:280)
> at org.apache.fop.layoutmgr.**BlockLayoutManager.**
> getNextKnuthElements(**BlockLayoutManager.java:123)
> at org.apache.fop.layoutmgr.**BlockLayoutManager.**
> getNextKnuthElements(**BlockLayoutManager.java:115)
> at org.apache.fop.layoutmgr.**BlockStackingLayoutManager.**
> getNextChildElements(**BlockStackingLayoutManager.**java:571)
> at org.apache.fop.layoutmgr.**BlockStackingLayoutManager.**
> getNextChildElements(**BlockStackingLayoutManager.**java:552)
> at org.apache.fop.layoutmgr.**BlockStackingLayoutManager.**
> getNextKnuthElements(**BlockStackingLayoutManager.**java:280)
> at org.apache.fop.layoutmgr.**BlockLayoutManager.**
> getNextKnuthElements(**BlockLayoutManager.java:123)
> at org.apache.fop.layoutmgr.**BlockLayoutManager.**
> getNextKnuthElements(**BlockLayoutManager.java:115)
> at org.apache.fop.layoutmgr.**FlowLayoutManager.**
> getNextChildElements(**FlowLayoutManager.java:199)
> at org.apache.fop.layoutmgr.**FlowLayoutManager.**
> addChildElements(**FlowLayoutManager.java:140)
> at org.apache.fop.layoutmgr.**FlowLayoutManager.**
> addChildElements(**FlowLayoutManager.java:129)
> at org.apache.fop.layoutmgr.**FlowLayoutManager.**
> getNextKnuthElements(**FlowLayoutManager.java:70)
> at org.apache.fop.layoutmgr.**PageBreaker.**getNextKnuthElements(*
> *PageBreaker.java:216)
> at org.apache.fop.layoutmgr.**AbstractBreaker.**getNextBlockList(*
> *AbstractBreaker.java:692)
> at org.apache.fop.layoutmgr.**PageBreaker.getNextBlockList(**
> PageBreaker.java:149)
> at org.apache.fop.layoutmgr.**PageBreaker.getNextBlockList(**
> PageBreaker.java:132)
> at org.apache.fop.layoutmgr.**AbstractBreaker.doLayout(**
> AbstractBreaker.java:337)
> at org.apache.fop.layoutmgr.**PageBreaker.doLayout(**
> PageBreaker.java:85)
> at org.apache.fop.layoutmgr.**PageSequenceLayoutManager.**
> activateLayout(**PageSequenceLayoutManager.**java:107)
> at org.apache.fop.area.**AreaTreeHandler.**endPageSequence(**
> AreaTreeHandler.java:238)
> at org.apache.fop.fo.pagination.**PageSequence.endOfNode(**
> PageSequence.java:120)
> at org.apache.fop.fo.**FOTreeBuilder$MainFOHandler.**
> endElement(FOTreeBuilder.java:**349)
> at org.apache.fop.fo.**FOTreeBuilder.endElement(**
> FOTreeBuilder.java:177)
> at org.apache.xalan.transformer.**TransformerIdentityImpl.**
> endElement(**TransformerIdentityImpl.java:**1102)
> at org.apache.xerces.

Re: fop and hyphenation produces NullPointerException

2012-07-21 Thread Wilhelm

Am 21.07.2012 13:47, schrieb [email protected]:

Show the stack trace.


start of the next element list is: page=112 col=0
Exception
org.apache.fop.apps.FOPException
java.lang.NullPointerException
at 
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302)

at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
at org.apache.fop.cli.Main.startFOP(Main.java:174)
at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: java.lang.NullPointerException
at 
org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.getChangedKnuthElements(InlineStackingLayoutManager.java:376)
at 
org.apache.fop.layoutmgr.inline.InlineLayoutManager.getChangedKnuthElements(InlineLayoutManager.java:537)
at 
org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.getChangedKnuthElements(InlineStackingLayoutManager.java:368)
at 
org.apache.fop.layoutmgr.inline.InlineLayoutManager.getChangedKnuthElements(InlineLayoutManager.java:537)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.processUpdates(LineLayoutManager.java:1349)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1318)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:797)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:763)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:592)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:571)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:552)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:280)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:123)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:115)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:571)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:552)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:280)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:123)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:115)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:199)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:140)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:129)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:70)
at 
org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:216)
at 
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:692)
at 
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:149)
at 
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:132)
at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:337)
at 
org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:85)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:107)
at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
at 
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102)
at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at 
org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(U

Re: fop and hyphenation produces NullPointerException

2012-07-21 Thread rsargent

Show the stack trace.

Quoting Wilhelm :


Hi,

using fop-1.0 oder fop-1.1rc1 I get NullPointerExceptions if I enable
hyphenation (language=de).

Any hints?

--
Wilhelm




-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]