Re: FOP crashes when encountering character 00AD (soft hyphen)
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 paulhtremb...@gmail.com 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: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple-page margin-left=1.0in margin-right=1.0in margin-top=1.0in margin-bottom=1.0in page-width=8.5in page-height=11in fo:region-body / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple-page format=1 initial-page-number=1 fo:flow flow-name=xsl-region-body fo:blockBelow is the block that contains the character (00AD) (soft-hyphen) causes the crash/fo:block fo:block #x00AD;/fo:block /fo:flow /fo:page-sequence /fo:root 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
Re: FOP crashes when encountering character 00AD (soft hyphen)
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 med1...@gmail.com 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 paulhtremb...@gmail.com 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: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple-page margin-left=1.0in margin-right=1.0in margin-top=1.0in margin-bottom=1.0in page-width=8.5in page-height=11in fo:region-body / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple-page format=1 initial-page-number=1 fo:flow flow-name=xsl-region-body fo:blockBelow is the block that contains the character (00AD) (soft-hyphen) causes the crash/fo:block fo:block #x00AD;/fo:block /fo:flow /fo:page-sequence /fo:root 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
Re: FOP crashes when encountering character 00AD (soft hyphen)
Mehdi, From wikipedia: According to the Unicode http://en.wikipedia.org/wiki/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 med1...@gmail.com 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 med1...@gmail.com 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 paulhtremb...@gmail.com 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: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple-page margin-left=1.0in margin-right=1.0in margin-top=1.0in margin-bottom=1.0in page-width=8.5in page-height=11in fo:region-body / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple-page format=1 initial-page-number=1 fo:flow flow-name=xsl-region-body fo:blockBelow is the block that contains the character (00AD) (soft-hyphen) causes the crash/fo:block fo:block #x00AD;/fo:block /fo:flow /fo:page-sequence /fo:root 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
Re: FOP crashes when encountering character 00AD (soft hyphen)
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 http://en.wikipedia.org/wiki/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 med1...@gmail.com 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 med1...@gmail.com 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 paulhtremb...@gmail.com 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: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple-page margin-left=1.0in margin-right=1.0in margin-top=1.0in margin-bottom=1.0in page-width=8.5in page-height=11in fo:region-body / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple-page format=1 initial-page-number=1 fo:flow flow-name=xsl-region-body fo:blockBelow is the block that contains the character (00AD) (soft-hyphen) causes the crash/fo:block fo:block #x00AD;/fo:block /fo:flow /fo:page-sequence /fo:root 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)
Re: FOP crashes when encountering character 00AD (soft hyphen)
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)
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 file.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)
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 paulhtremb...@gmail.com 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 file.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)
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 Tremblaypaulhtremb...@gmail.com 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 -fofile.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)
Hi Paul, Try running the JUnit task ant junit and share any errors. Mehdi On 21 October 2011 15:47, Paul Tremblay paulhtremb...@gmail.com 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 Tremblaypaulhtremb...@gmail.com 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 -fofile.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