Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-25 Thread Paul Tremblay

Hi Mehdi,

Yes, the nightly build works fine.

Paul

On 10/24/11 2:55 AM, mehdi houshmand wrote:

Hi Paul,

You're getting a class not found exception for some reason, maybe
there was an error when you downloaded the source? Or have you changed
the source at all? Someone else may have an idea, but if you just want
the JAR, you can get it from the nightly builds
http://ci.apache.org/projects/xmlgraphics/fop/snapshots/.

Mehdi

On 21 October 2011 17:33, Paul Tremblay  wrote:

Hi Mehdi,

Here are the errors, as an attached file.

On 10/21/11 11:16 AM, mehdi houshmand wrote:

Hi Paul,

Try running the JUnit task "ant junit" and share any errors.

Mehdi

On 21 October 2011 15:47, Paul Tremblaywrote:

Hi Mehdi,

I already have JUnit4 (junit-4.10.jar). That's the jar I put in my
/usr/share/ant/lib

Paul

On 10/21/11 10:44 AM, mehdi houshmand wrote:

Hi Paul,

The latest trunk relies on JUnit4, so you'll have to get that JAR not
the JUnit3 one, the url (https://github.com/KentBeck/junit/downloads)
should help.

Mehdi

On 21 October 2011 15:39, Paul Tremblay
  wrote:

On 10/21/11 6:04 AM, J.Pietschmann wrote:

Am 21.10.2011 09:44, schrieb mehdi houshmand:

however, FOP trunk doesn't produce this
issue,

Jeremias fixed this some time ago on trunk.

J.Pietschmann



Thanks. I downloaded the trunk. I followed the directions and set
JAVA_HOME
to /Library/Java/Home and ANT_HOME to usr/share/ant. I typed ant and
got
an
error message that junit.jar had to be on the classpath of ant. So I
copied
junit from /usr/share/junit/junit.jar to /usr/share/ant/lib, and typed
ant
again.

This time the build generated at lot of tests, and ended with this
message:

BUILD FAILED
/Library/Java/trunk/build.xml:875: NOTE:


**
* One or more of the Junit tests had Failures or Errors or were
skipped!
*
* Please check the output above for relevant messages.
*
*Or use the "junit-reports" target to generate HTML test reports.
  *


**

However, running a  few tests:

fop -fo  -pdf out.pdf

works fine, rendering correct PDF.

Do I have an incomplete build? I can send along more detailed reports
if
I
need to.

Thanks again

Paul

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-23 Thread mehdi houshmand
Hi Paul,

You're getting a class not found exception for some reason, maybe
there was an error when you downloaded the source? Or have you changed
the source at all? Someone else may have an idea, but if you just want
the JAR, you can get it from the nightly builds
http://ci.apache.org/projects/xmlgraphics/fop/snapshots/.

Mehdi

On 21 October 2011 17:33, Paul Tremblay  wrote:
> Hi Mehdi,
>
> Here are the errors, as an attached file.
>
> On 10/21/11 11:16 AM, mehdi houshmand wrote:
>>
>> Hi Paul,
>>
>> Try running the JUnit task "ant junit" and share any errors.
>>
>> Mehdi
>>
>> On 21 October 2011 15:47, Paul Tremblay  wrote:
>>>
>>> Hi Mehdi,
>>>
>>> I already have JUnit4 (junit-4.10.jar). That's the jar I put in my
>>> /usr/share/ant/lib
>>>
>>> Paul
>>>
>>> On 10/21/11 10:44 AM, mehdi houshmand wrote:

 Hi Paul,

 The latest trunk relies on JUnit4, so you'll have to get that JAR not
 the JUnit3 one, the url (https://github.com/KentBeck/junit/downloads)
 should help.

 Mehdi

 On 21 October 2011 15:39, Paul Tremblay
  wrote:
>
> On 10/21/11 6:04 AM, J.Pietschmann wrote:
>>
>> Am 21.10.2011 09:44, schrieb mehdi houshmand:
>>>
>>> however, FOP trunk doesn't produce this
>>> issue,
>>
>> Jeremias fixed this some time ago on trunk.
>>
>> J.Pietschmann
>>
>>
> Thanks. I downloaded the trunk. I followed the directions and set
> JAVA_HOME
> to /Library/Java/Home and ANT_HOME to usr/share/ant. I typed ant and
> got
> an
> error message that junit.jar had to be on the classpath of ant. So I
> copied
> junit from /usr/share/junit/junit.jar to /usr/share/ant/lib, and typed
> ant
> again.
>
> This time the build generated at lot of tests, and ended with this
> message:
>
> BUILD FAILED
> /Library/Java/trunk/build.xml:875: NOTE:
>
>
> **
> * One or more of the Junit tests had Failures or Errors or were
> skipped!
> *
> *         Please check the output above for relevant messages.
> *
> *    Or use the "junit-reports" target to generate HTML test reports.
>  *
>
>
> **
>
> However, running a  few tests:
>
> fop -fo    -pdf out.pdf
>
> works fine, rendering correct PDF.
>
> Do I have an incomplete build? I can send along more detailed reports
> if
> I
> need to.
>
> Thanks again
>
> Paul
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

>>>
>>> -
>>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>>
>>>
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>
>
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-21 Thread mehdi houshmand
Hi Paul,

Try running the JUnit task "ant junit" and share any errors.

Mehdi

On 21 October 2011 15:47, Paul Tremblay  wrote:
> Hi Mehdi,
>
> I already have JUnit4 (junit-4.10.jar). That's the jar I put in my
> /usr/share/ant/lib
>
> Paul
>
> On 10/21/11 10:44 AM, mehdi houshmand wrote:
>>
>> Hi Paul,
>>
>> The latest trunk relies on JUnit4, so you'll have to get that JAR not
>> the JUnit3 one, the url (https://github.com/KentBeck/junit/downloads)
>> should help.
>>
>> Mehdi
>>
>> On 21 October 2011 15:39, Paul Tremblay  wrote:
>>>
>>> On 10/21/11 6:04 AM, J.Pietschmann wrote:

 Am 21.10.2011 09:44, schrieb mehdi houshmand:
>
> however, FOP trunk doesn't produce this
> issue,

 Jeremias fixed this some time ago on trunk.

 J.Pietschmann


>>> Thanks. I downloaded the trunk. I followed the directions and set
>>> JAVA_HOME
>>> to /Library/Java/Home and ANT_HOME to usr/share/ant. I typed ant and got
>>> an
>>> error message that junit.jar had to be on the classpath of ant. So I
>>> copied
>>> junit from /usr/share/junit/junit.jar to /usr/share/ant/lib, and typed
>>> ant
>>> again.
>>>
>>> This time the build generated at lot of tests, and ended with this
>>> message:
>>>
>>> BUILD FAILED
>>> /Library/Java/trunk/build.xml:875: NOTE:
>>>
>>> **
>>> * One or more of the Junit tests had Failures or Errors or were skipped!
>>> *
>>> *         Please check the output above for relevant messages.
>>> *
>>> *    Or use the "junit-reports" target to generate HTML test reports.
>>>  *
>>>
>>> **
>>>
>>> However, running a  few tests:
>>>
>>> fop -fo  -pdf out.pdf
>>>
>>> works fine, rendering correct PDF.
>>>
>>> Do I have an incomplete build? I can send along more detailed reports if
>>> I
>>> need to.
>>>
>>> Thanks again
>>>
>>> Paul
>>>
>>> -
>>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>>
>>>
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-21 Thread Paul Tremblay

Hi Mehdi,

I already have JUnit4 (junit-4.10.jar). That's the jar I put in my 
/usr/share/ant/lib


Paul

On 10/21/11 10:44 AM, mehdi houshmand wrote:

Hi Paul,

The latest trunk relies on JUnit4, so you'll have to get that JAR not
the JUnit3 one, the url (https://github.com/KentBeck/junit/downloads)
should help.

Mehdi

On 21 October 2011 15:39, Paul Tremblay  wrote:

On 10/21/11 6:04 AM, J.Pietschmann wrote:

Am 21.10.2011 09:44, schrieb mehdi houshmand:

however, FOP trunk doesn't produce this
issue,

Jeremias fixed this some time ago on trunk.

J.Pietschmann



Thanks. I downloaded the trunk. I followed the directions and set JAVA_HOME
to /Library/Java/Home and ANT_HOME to usr/share/ant. I typed ant and got an
error message that junit.jar had to be on the classpath of ant. So I copied
junit from /usr/share/junit/junit.jar to /usr/share/ant/lib, and typed ant
again.

This time the build generated at lot of tests, and ended with this message:

BUILD FAILED
/Library/Java/trunk/build.xml:875: NOTE:
**
* One or more of the Junit tests had Failures or Errors or were skipped! *
* Please check the output above for relevant messages.   *
*Or use the "junit-reports" target to generate HTML test reports.*
**

However, running a  few tests:

fop -fo  -pdf out.pdf

works fine, rendering correct PDF.

Do I have an incomplete build? I can send along more detailed reports if I
need to.

Thanks again

Paul

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-21 Thread mehdi houshmand
Hi Paul,

The latest trunk relies on JUnit4, so you'll have to get that JAR not
the JUnit3 one, the url (https://github.com/KentBeck/junit/downloads)
should help.

Mehdi

On 21 October 2011 15:39, Paul Tremblay  wrote:
> On 10/21/11 6:04 AM, J.Pietschmann wrote:
>>
>> Am 21.10.2011 09:44, schrieb mehdi houshmand:
>>>
>>> however, FOP trunk doesn't produce this
>>> issue,
>>
>> Jeremias fixed this some time ago on trunk.
>>
>> J.Pietschmann
>>
>>
> Thanks. I downloaded the trunk. I followed the directions and set JAVA_HOME
> to /Library/Java/Home and ANT_HOME to usr/share/ant. I typed ant and got an
> error message that junit.jar had to be on the classpath of ant. So I copied
> junit from /usr/share/junit/junit.jar to /usr/share/ant/lib, and typed ant
> again.
>
> This time the build generated at lot of tests, and ended with this message:
>
> BUILD FAILED
> /Library/Java/trunk/build.xml:875: NOTE:
> **
> * One or more of the Junit tests had Failures or Errors or were skipped! *
> *         Please check the output above for relevant messages.           *
> *    Or use the "junit-reports" target to generate HTML test reports.    *
> **
>
> However, running a  few tests:
>
> fop -fo  -pdf out.pdf
>
> works fine, rendering correct PDF.
>
> Do I have an incomplete build? I can send along more detailed reports if I
> need to.
>
> Thanks again
>
> Paul
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-21 Thread Paul Tremblay

On 10/21/11 6:04 AM, J.Pietschmann wrote:

Am 21.10.2011 09:44, schrieb mehdi houshmand:

however, FOP trunk doesn't produce this
issue,

Jeremias fixed this some time ago on trunk.

J.Pietschmann


Thanks. I downloaded the trunk. I followed the directions and set 
JAVA_HOME to /Library/Java/Home and ANT_HOME to usr/share/ant. I typed 
ant and got an error message that junit.jar had to be on the classpath 
of ant. So I copied junit from /usr/share/junit/junit.jar to 
/usr/share/ant/lib, and typed ant again.


This time the build generated at lot of tests, and ended with this message:

BUILD FAILED
/Library/Java/trunk/build.xml:875: NOTE:
**
* One or more of the Junit tests had Failures or Errors or were skipped! *
* Please check the output above for relevant messages.   *
*Or use the "junit-reports" target to generate HTML test reports.*
**

However, running a  few tests:

fop -fo  -pdf out.pdf

works fine, rendering correct PDF.

Do I have an incomplete build? I can send along more detailed reports if 
I need to.


Thanks again

Paul

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-21 Thread J.Pietschmann
Am 21.10.2011 09:44, schrieb mehdi houshmand:
> however, FOP trunk doesn't produce this
> issue, 

Jeremias fixed this some time ago on trunk.

J.Pietschmann

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-21 Thread Simon Pepping
This is not an issue about interpretation. I seem to remember that we
had a problem with words consisting of soft hyphens only or starting
with them, and that the problem was fixed, possibly after the release
of version 1.0.

Simon

On Fri, Oct 21, 2011 at 10:52:57AM +0200, Ian Corne wrote:
> Mehdi,
> 
> >From wikipedia:
> According to the Unicode  standard, a
> soft hyphen is not displayed if the line is not broken at that point.
> 
> I'm not too familiar with fop's interpretation of the unicode standard, but
> it could be that the line's not broken?
> 
> Regards
> 
> Ian
> 
> ps: Is there a fop irc channel? :)
> 
> 
> On Fri, Oct 21, 2011 at 9:56 AM, mehdi houshmand  wrote:
> 
> > Curiously however, the soft-hyphen doesn't appear in the output
> > document. I'll try and investigate further, someone else may already
> > know the reason why.
> >
> > Mehdi
> >
> > On 21 October 2011 08:44, mehdi houshmand  wrote:
> > > Hi Paul,
> > >
> > > I just ran the FO you attached and I am getting the same error message
> > > as you are with FOP 1.0, however, FOP trunk doesn't produce this
> > > issue, it might be worth trying that.
> > >
> > > Hope that helps
> > > Mehdi
> > >
> > > On 21 October 2011 03:49, Paul Tremblay  wrote:
> > >> Fop crashes when processing a file with a SOFT HYPHEN character, 00AD. I
> > am
> > >> running FOP 1.0.
> > >>
> > >> My java is:
> > >>
> > >> java version "1.6.0_26"
> > >> Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
> > >> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
> > >>
> > >> The fo file is:
> > >>
> > >> 
> > >> http://www.w3.org/1999/XSL/Format";>
> > >> 
> > >>  > >> margin-right="1.0in" margin-top="1.0in" margin-bottom="1.0in"
> > >> page-width="8.5in" page-height="11in">
> > >> 
> > >> 
> > >> 
> > >>  > >> initial-page-number="1">
> > >> 
> > >> Below is the block that contains the character (00AD)
> > >> (soft-hyphen) causes the crash
> > >> ­­
> > >> 
> > >> 
> > >> 
> > >>
> > >> The error message is:
> > >>
> > >> Oct 20, 2011 9:38:01 PM org.apache.fop.cli.Main startFOP
> > >> SEVERE: Exception
> > >> java.lang.IllegalArgumentException: factor < 0; was: -1
> > >>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.IllegalArgumentException: factor < 0; was: -1
> > >>at org.apache.fop.traits.MinOptMax.mult(MinOptMax.java:251)
> > >>at
> > >>
> > org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:825)
> > >>at
> > >>
> > org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:710)
> > >>at
> > >>
> > org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:639)
> > >>at
> > >>
> > org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:579)
> > >>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.endPage

Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-21 Thread Ian Corne
Mehdi,

>From wikipedia:
According to the Unicode  standard, a
soft hyphen is not displayed if the line is not broken at that point.

I'm not too familiar with fop's interpretation of the unicode standard, but
it could be that the line's not broken?

Regards

Ian

ps: Is there a fop irc channel? :)


On Fri, Oct 21, 2011 at 9:56 AM, mehdi houshmand  wrote:

> Curiously however, the soft-hyphen doesn't appear in the output
> document. I'll try and investigate further, someone else may already
> know the reason why.
>
> Mehdi
>
> On 21 October 2011 08:44, mehdi houshmand  wrote:
> > Hi Paul,
> >
> > I just ran the FO you attached and I am getting the same error message
> > as you are with FOP 1.0, however, FOP trunk doesn't produce this
> > issue, it might be worth trying that.
> >
> > Hope that helps
> > Mehdi
> >
> > On 21 October 2011 03:49, Paul Tremblay  wrote:
> >> Fop crashes when processing a file with a SOFT HYPHEN character, 00AD. I
> am
> >> running FOP 1.0.
> >>
> >> My java is:
> >>
> >> java version "1.6.0_26"
> >> Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
> >> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
> >>
> >> The fo file is:
> >>
> >> 
> >> http://www.w3.org/1999/XSL/Format";>
> >> 
> >>  >> margin-right="1.0in" margin-top="1.0in" margin-bottom="1.0in"
> >> page-width="8.5in" page-height="11in">
> >> 
> >> 
> >> 
> >>  >> initial-page-number="1">
> >> 
> >> Below is the block that contains the character (00AD)
> >> (soft-hyphen) causes the crash
> >> ­­
> >> 
> >> 
> >> 
> >>
> >> The error message is:
> >>
> >> Oct 20, 2011 9:38:01 PM org.apache.fop.cli.Main startFOP
> >> SEVERE: Exception
> >> java.lang.IllegalArgumentException: factor < 0; was: -1
> >>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.IllegalArgumentException: factor < 0; was: -1
> >>at org.apache.fop.traits.MinOptMax.mult(MinOptMax.java:251)
> >>at
> >>
> org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:825)
> >>at
> >>
> org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:710)
> >>at
> >>
> org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:639)
> >>at
> >>
> org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:579)
> >>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:1101)
> >>at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
> >>at org.apache.xerces.xinclude.XIncludeHandler.endEleme

Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-21 Thread mehdi houshmand
Curiously however, the soft-hyphen doesn't appear in the output
document. I'll try and investigate further, someone else may already
know the reason why.

Mehdi

On 21 October 2011 08:44, mehdi houshmand  wrote:
> Hi Paul,
>
> I just ran the FO you attached and I am getting the same error message
> as you are with FOP 1.0, however, FOP trunk doesn't produce this
> issue, it might be worth trying that.
>
> Hope that helps
> Mehdi
>
> On 21 October 2011 03:49, Paul Tremblay  wrote:
>> Fop crashes when processing a file with a SOFT HYPHEN character, 00AD. I am
>> running FOP 1.0.
>>
>> My java is:
>>
>> java version "1.6.0_26"
>> Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
>> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
>>
>> The fo file is:
>>
>> 
>> http://www.w3.org/1999/XSL/Format";>
>> 
>> > margin-right="1.0in" margin-top="1.0in" margin-bottom="1.0in"
>> page-width="8.5in" page-height="11in">
>> 
>> 
>> 
>> > initial-page-number="1">
>> 
>> Below is the block that contains the character (00AD)
>> (soft-hyphen) causes the crash
>> ­­
>> 
>> 
>> 
>>
>> The error message is:
>>
>> Oct 20, 2011 9:38:01 PM org.apache.fop.cli.Main startFOP
>> SEVERE: Exception
>> java.lang.IllegalArgumentException: factor < 0; was: -1
>>    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.IllegalArgumentException: factor < 0; was: -1
>>    at org.apache.fop.traits.MinOptMax.mult(MinOptMax.java:251)
>>    at
>> org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:825)
>>    at
>> org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:710)
>>    at
>> org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:639)
>>    at
>> org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:579)
>>    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:1101)
>>    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(Unknown Source)
>>    at org.apache.xerces.jaxp.SAXParse

Re: FOP crashes when encountering character 00AD (soft hyphen)

2011-10-21 Thread mehdi houshmand
Hi Paul,

I just ran the FO you attached and I am getting the same error message
as you are with FOP 1.0, however, FOP trunk doesn't produce this
issue, it might be worth trying that.

Hope that helps
Mehdi

On 21 October 2011 03:49, Paul Tremblay  wrote:
> Fop crashes when processing a file with a SOFT HYPHEN character, 00AD. I am
> running FOP 1.0.
>
> My java is:
>
> java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
>
> The fo file is:
>
> 
> http://www.w3.org/1999/XSL/Format";>
> 
>  margin-right="1.0in" margin-top="1.0in" margin-bottom="1.0in"
> page-width="8.5in" page-height="11in">
> 
> 
> 
>  initial-page-number="1">
> 
> Below is the block that contains the character (00AD)
> (soft-hyphen) causes the crash
> ­­
> 
> 
> 
>
> The error message is:
>
> Oct 20, 2011 9:38:01 PM org.apache.fop.cli.Main startFOP
> SEVERE: Exception
> java.lang.IllegalArgumentException: factor < 0; was: -1
>    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.IllegalArgumentException: factor < 0; was: -1
>    at org.apache.fop.traits.MinOptMax.mult(MinOptMax.java:251)
>    at
> org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:825)
>    at
> org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:710)
>    at
> org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:639)
>    at
> org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:579)
>    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:1101)
>    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(Unknown Source)
>    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
>    at
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
>    at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299)
>    ... 3 more
>
> -
>
> java.lang.IllegalArgumentException: factor < 0; was: -1
>    at org.apach

FOP crashes when encountering character 00AD (soft hyphen)

2011-10-20 Thread Paul Tremblay
Fop crashes when processing a file with a SOFT HYPHEN character, 00AD. I 
am running FOP 1.0.


My java is:

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)

The fo file is:


http://www.w3.org/1999/XSL/Format";>

margin-right="1.0in" margin-top="1.0in" margin-bottom="1.0in" 
page-width="8.5in" page-height="11in">




initial-page-number="1">


Below is the block that contains the character (00AD) 
(soft-hyphen) causes the crash

­­




The error message is:

Oct 20, 2011 9:38:01 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.IllegalArgumentException: factor < 0; was: -1
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.IllegalArgumentException: factor < 0; was: -1
at org.apache.fop.traits.MinOptMax.mult(MinOptMax.java:251)
at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:825)
at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:710)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:639)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:579)
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:1101)
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(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)

at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299)
... 3 more

-

java.lang.IllegalArgumentException: factor < 0; was: -1
at org.apache.fop.traits.MinOptMax.mult(MinOptMax.java:251)
at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:825)
at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:710)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:639)
at 
org.apache.f