Re: border-top-xxx and border-bottom-xxx causing wierd errors

2007-03-13 Thread nick humphrey

Jeremias, the border bottom and top is working like it should so a big
"Merci" to you buddy =)

2007/3/12, nick humphrey <[EMAIL PROTECTED]>:

thanks a bigillion Jeremias! i'll download the trunk tomorrow and test
it out... i'm so happy that it was a bug and that i wasn't crazy
=)

2007/3/12, Jeremias Maerki <[EMAIL PROTECTED]>:
> Thanks for the test file. I was able to reproduce and fix the bug. It is
> fixed in FOP Trunk:
> http://svn.apache.org/viewvc?view=rev&rev=517415
>
> If you can't use FOP Trunk you can work around the problem by
> explicitely setting the height or block-progression-dimension property
> on the block-container.
>
> On 12.03.2007 20:43:05 nick humphrey wrote:
> > see attached file...
> > i echo the java_home variable in the fop script and it is using the
> > correct java version, to where i also made the endorsed directory
> > ($JAVA_HOME/lib), but like i said, still the same errors. when i run
> > fop with just the fo and pdf statements:
> > ./fop XXX.fo XXX.pdf
> >
> > then some errors aren't present/repeated (like when i run with -xml
> > -xsl -pdf parameters), i only get this:
> > 
> > 12/03/2007 10:17:32 org.apache.fop.apps.FOUserAgent setTargetResolution
> > INFO: target-resolution set to: 72.0dpi (px2mm=0.3528)
> > 12/03/2007 10:17:34 org.apache.fop.cli.Main startFOP
> > SEVERE: Exception
> > java.lang.IllegalStateException: lineWidth must be set and positive,
> > but it is: -2834
> 
> > java.lang.IllegalStateException: lineWidth must be set and positive,
> > but it is: -2834
> > at 
org.apache.fop.layoutmgr.BreakingAlgorithm.getLineWidth(BreakingAlgorithm.java:1087)
> 
> > =
> >
> >
> > would really like to get this working so i don't have to use 
jasperreports...
>
> :-)
>
> 
>
>
> Jeremias Maerki
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: border-top-xxx and border-bottom-xxx causing wierd errors

2007-03-12 Thread nick humphrey

thanks a bigillion Jeremias! i'll download the trunk tomorrow and test
it out... i'm so happy that it was a bug and that i wasn't crazy
=)

2007/3/12, Jeremias Maerki <[EMAIL PROTECTED]>:

Thanks for the test file. I was able to reproduce and fix the bug. It is
fixed in FOP Trunk:
http://svn.apache.org/viewvc?view=rev&rev=517415

If you can't use FOP Trunk you can work around the problem by
explicitely setting the height or block-progression-dimension property
on the block-container.

On 12.03.2007 20:43:05 nick humphrey wrote:
> see attached file...
> i echo the java_home variable in the fop script and it is using the
> correct java version, to where i also made the endorsed directory
> ($JAVA_HOME/lib), but like i said, still the same errors. when i run
> fop with just the fo and pdf statements:
> ./fop XXX.fo XXX.pdf
>
> then some errors aren't present/repeated (like when i run with -xml
> -xsl -pdf parameters), i only get this:
> 
> 12/03/2007 10:17:32 org.apache.fop.apps.FOUserAgent setTargetResolution
> INFO: target-resolution set to: 72.0dpi (px2mm=0.3528)
> 12/03/2007 10:17:34 org.apache.fop.cli.Main startFOP
> SEVERE: Exception
> java.lang.IllegalStateException: lineWidth must be set and positive,
> but it is: -2834

> java.lang.IllegalStateException: lineWidth must be set and positive,
> but it is: -2834
> at 
org.apache.fop.layoutmgr.BreakingAlgorithm.getLineWidth(BreakingAlgorithm.java:1087)

> =
>
>
> would really like to get this working so i don't have to use jasperreports...

:-)




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: border-top-xxx and border-bottom-xxx causing wierd errors

2007-03-12 Thread nick humphrey

see attached file...
i echo the java_home variable in the fop script and it is using the
correct java version, to where i also made the endorsed directory
($JAVA_HOME/lib), but like i said, still the same errors. when i run
fop with just the fo and pdf statements:
./fop XXX.fo XXX.pdf

then some errors aren't present/repeated (like when i run with -xml
-xsl -pdf parameters), i only get this:

12/03/2007 10:17:32 org.apache.fop.apps.FOUserAgent setTargetResolution
INFO: target-resolution set to: 72.0dpi (px2mm=0.3528)
12/03/2007 10:17:34 org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.IllegalStateException: lineWidth must be set and positive,
but it is: -2834
   at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
   at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
   at org.apache.fop.cli.Main.startFOP(Main.java:166)
   at org.apache.fop.cli.Main.main(Main.java:197)

-

java.lang.IllegalStateException: lineWidth must be set and positive,
but it is: -2834
   at 
org.apache.fop.layoutmgr.BreakingAlgorithm.getLineWidth(BreakingAlgorithm.java:1087)
   at 
org.apache.fop.layoutmgr.PageBreakingAlgorithm.getLineWidth(PageBreakingAlgorithm.java:853)
   at 
org.apache.fop.layoutmgr.PageBreakingAlgorithm.computeDifference(PageBreakingAlgorithm.java:367)
   at 
org.apache.fop.layoutmgr.BreakingAlgorithm.considerLegalBreak(BreakingAlgorithm.java:696)
   at 
org.apache.fop.layoutmgr.PageBreakingAlgorithm.considerLegalBreak(PageBreakingAlgorithm.java:309)
   at 
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:485)
   at 
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:403)
   at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:338)
   at 
org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElementsAbsolute(BlockContainerLayoutManager.java:506)
   at 
org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElements(BlockContainerLayoutManager.java:194)
   at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:106)
   at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextKnuthElements(PageSequenceLayoutManager.java:272)
   at 
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:554)
   at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextBlockList(PageSequenceLayoutManager.java:264)
   at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:301)
   at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)
   at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:157)
   at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:385)
   at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:148)
   at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
   at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
   at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
   at org.apache.xerces.parsers.AbstractSAXParser.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.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
   at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
   at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
   at org.apache.fop.cli.Main.startFOP(Main.java:166)
   at org.apache.fop.cli.Main.main(Main.java:197)
=


would really like to get this working so i don't have to use jasperreports...

Nick


2007/3/12, Jeremias Maerki <[EMAIL PROTECTED]>:

Can you please post a full FO file (no XSLT) that demonstrates the
problem?

On 09.03.2007 13:51:31 nick humphrey wrote:
> hi, i'm using ubuntu 6.10 edgy linux, jdk sun java version "1.5.0_08",
> and the latest fop-trunk from svn
> in my xslt i have the following line:
> ==code==
>  border-left-color="red"
> border-left-style="solid"
> border-left-width="1mm"
> >
>

Re: border-top-xxx and border-bottom-xxx causing wierd errors

2007-03-12 Thread nick humphrey

i get the same exact error messages. maybe its not reading/recognizing
the endorsed folder? this is blowing my mind...

2007/3/9, Andreas L Delmelle <[EMAIL PROTECTED]>:

On Mar 9, 2007, at 15:48, nick humphrey wrote:

Hi,

> thanks for the reply chris =)
>
>> Try to ensure you are using the xerces and xalan versions shipped
>> with FOP
> not exactly sure how one does this..
>
> you lost me here:
> Use the endorsed mechanism to override any other xerces/xalan
> versions that your JDK might be picking up.
>
> what is the endorsed mechanism? sorry for my ignorance, and thanks in
> advance for your help.

The endorsed standards mechanism is yet another way to force
overrides, global to your JVM, for the XML API implementations.

Look for the directory $JAVA_HOME$/lib/endorsed. (Create it if it
does not exist.)
Move all the Xalan/Xerces related JARs from your $FOP_HOME$/lib
directory there.

The JARs to be moved/copied are
serializer-2.7.0.jar
xalan-2.7.0.jar
xercesImpl-2.7.1.jar
xml-apis.jar

The next time you start your JVM, it uses the versions in the lib/
endorsed directory, instead of the ones on that are bundled with the
Java distribution.


HTH!

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: border-top-xxx and border-bottom-xxx causing wierd errors

2007-03-09 Thread nick humphrey

thanks for the reply chris =)


Try to ensure you are using the xerces and xalan versions shipped with FOP

not exactly sure how one does this..

you lost me here:
Use the endorsed mechanism to override any other xerces/xalan
versions that your JDK might be picking up.

what is the endorsed mechanism? sorry for my ignorance, and thanks in
advance for your help.


2007/3/9, Chris Bowditch <[EMAIL PROTECTED]>:

nick humphrey wrote:

> hi, i'm using ubuntu 6.10 edgy linux, jdk sun java version "1.5.0_08",
> and the latest fop-trunk from svn
> in my xslt i have the following line:



>
> when i run fop from the command line it works fine:
> ./fop -xml ~/in.xml -xsl ~/in.xslt -pdf ~/out.pdf
>
> but if i change that xml line to border-top-xxx or border-bottom-xxx
> (where xxx is color style or width) i get this following errors:
> =
> 9/03/2007 13:29:59 org.apache.fop.apps.FOUserAgent setTargetResolution
> INFO: target-resolution set to: 72.0dpi (px2mm=0.3528)
> 9/03/2007 13:30:01 org.apache.fop.fo.FOTreeBuilder$MainFOHandler endElement
> WARNING: Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format)
> vs. root (http://www.w3.org/1999/XSL/Format)
> 9/03/2007 13:30:01 org.apache.fop.fo.FOTreeBuilder fatalError
> SEVERE: javax.xml.transform.TransformerException:
> java.lang.IllegalStateException: lineWidth must be set and positive,
> but it is: -2834
> 9/03/2007 13:30:01 org.apache.fop.cli.Main startFOP
> SEVERE: Exception
> javax.xml.transform.TransformerException:
> java.lang.IllegalStateException: lineWidth must be set and positive,
> but it is: -2834
>at
> org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
>at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
>at org.apache.fop.cli.Main.startFOP(Main.java:166)
>at org.apache.fop.cli.Main.main(Main.java:197)
>



> i have been googling like crazy but finding no answers... anybody know
> what might be wrong?

I think it is likely to be a classpath issue. The effects are similar
when the wrong version of xerces/xalan is used to process the XML/XSL.
Try to ensure you are using the xerces and xalan versions shipped with
FOP. Use the endorsed mechanism to override any other xerces/xalan
versions that your JDK might be picking up.

Chris






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



border-top-xxx and border-bottom-xxx causing wierd errors

2007-03-09 Thread nick humphrey

hi, i'm using ubuntu 6.10 edgy linux, jdk sun java version "1.5.0_08",
and the latest fop-trunk from svn
in my xslt i have the following line:
==code==



==/code==

when i run fop from the command line it works fine:
./fop -xml ~/in.xml -xsl ~/in.xslt -pdf ~/out.pdf

but if i change that xml line to border-top-xxx or border-bottom-xxx
(where xxx is color style or width) i get this following errors:
=
9/03/2007 13:29:59 org.apache.fop.apps.FOUserAgent setTargetResolution
INFO: target-resolution set to: 72.0dpi (px2mm=0.3528)
9/03/2007 13:30:01 org.apache.fop.fo.FOTreeBuilder$MainFOHandler endElement
WARNING: Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format)
vs. root (http://www.w3.org/1999/XSL/Format)
9/03/2007 13:30:01 org.apache.fop.fo.FOTreeBuilder fatalError
SEVERE: javax.xml.transform.TransformerException:
java.lang.IllegalStateException: lineWidth must be set and positive,
but it is: -2834
9/03/2007 13:30:01 org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException:
java.lang.IllegalStateException: lineWidth must be set and positive,
but it is: -2834
   at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
   at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
   at org.apache.fop.cli.Main.startFOP(Main.java:166)
   at org.apache.fop.cli.Main.main(Main.java:197)

-

; SystemID: file:///home/myself/in.xslt; Line#: 27; Column#: 57
javax.xml.transform.TransformerException:
java.lang.IllegalStateException: lineWidth must be set and positive,
but it is: -2834
   at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2416)
   at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
   at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)
   at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
   at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
   at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
   at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
   at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
   at org.apache.fop.cli.Main.startFOP(Main.java:166)
   at org.apache.fop.cli.Main.main(Main.java:197)
Caused by: java.lang.IllegalStateException: lineWidth must be set and
positive, but it is: -2834
   at 
org.apache.fop.layoutmgr.BreakingAlgorithm.getLineWidth(BreakingAlgorithm.java:1087)
   at 
org.apache.fop.layoutmgr.PageBreakingAlgorithm.getLineWidth(PageBreakingAlgorithm.java:853)
   at 
org.apache.fop.layoutmgr.PageBreakingAlgorithm.computeDifference(PageBreakingAlgorithm.java:367)
   at 
org.apache.fop.layoutmgr.BreakingAlgorithm.considerLegalBreak(BreakingAlgorithm.java:696)
   at 
org.apache.fop.layoutmgr.PageBreakingAlgorithm.considerLegalBreak(PageBreakingAlgorithm.java:309)
   at 
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:485)
   at 
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:403)
   at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:338)
   at 
org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElementsAbsolute(BlockContainerLayoutManager.java:506)
   at 
org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElements(BlockContainerLayoutManager.java:194)
   at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:106)
   at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextKnuthElements(PageSequenceLayoutManager.java:272)
   at 
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:554)
   at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextBlockList(PageSequenceLayoutManager.java:264)
   at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:301)
   at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)
   at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:157)
   at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:385)
   at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:148)
   at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
   at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
   at 
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:261)
   at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1399)
   at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transformer