You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by tyler <ty...@ifactory.com> on 2012/11/08 23:39:41 UTC

"java.lang.IllegalArgumentException: 14" when processing math

I have three different XML files with a lot of math in them (quantum
physics). With each of them, when I use FOP to generate pdf's I get the
following exception (let me know if you want to see the full stack trace,
here's the top with all the FOP lines):



In one of the files, here is one snippet that will throw the error (it's not
thrown when I comment this out): 



Are there any symbols in there that might be unsupported? Is there something
else I should be considering that might trigger this error? Please let me
know if there is other information I can provide to help track this down.
Thanks in advance for any pointers. 




--
View this message in context: http://apache-fop.1065347.n5.nabble.com/java-lang-IllegalArgumentException-14-when-processing-math-tp37306.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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


RE: "java.lang.IllegalArgumentException: 14" when processing math

Posted by Robert Meyer <rm...@hotmail.co.uk>.
Hi, I had a quick look at this. One of the issues (IllegalArgumentException) relates to the following four tags:
<fo:inline vertical-align="top" font-size="75%">−i2x0xP /ħ</fo:inline><fo:inline vertical-align="top" font-size="75%">−21α′X<fo:inline vertical-align="sub" font-size="75%">π/2</fo:inline></fo:inline><fo:inline vertical-align="top" font-size="75%">i2p0pX/ħ</fo:inline><fo:inline vertical-align="top" font-size="75%">21α′′X<fo:inline vertical-align="sub" font-size="75%">0</fo:inline></fo:inline>
This bit is more for the attention of anyone on here familiar with this bit of the code. When I ran through the example in the code on trunk, the method setAlignmentBaselineIdentifier (AlignmentContext.java:224) takes an alignmentBaseline argument whose value is 14. This value matches EN_BEFORE_EDGE. This sets an alignmentBaselineIdentifier which is then used in the getBaselineDefaultOffset (ScaledBaselineTable.java:152) but there is no option there to handle a value of 14. I notice there is an option to handle EN_TEXT_BEFORE_EDGE which sounds similar, but that value is 141 and not 14.
With regard to the url issue, I am not sure why that is happening as I did not manage to replicate that issue. Once I commented out the above lines it generated the PDF fine. Maybe that issue lies elsewhere in the FO?
Regards,
Robert Meyer
> Date: Fri, 9 Nov 2012 09:59:34 -0800
> From: tyler@ifactory.com
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: "java.lang.IllegalArgumentException: 14" when processing math
> 
> Here is the file, the fop sections are inside the ifp:body tag. These get
> extracted and combined with some other metadata, etc. to make the final pdf.
> Those contents are what I thought was inlined in my previous email,
> apologies if they didn't show up:
> 
> fop_output_acprof-9780198509141-chapter-3
> <http://apache-fop.1065347.n5.nabble.com/file/n37326/fop_output_acprof-9780198509141-chapter-3>  
> 
> I'm using version 1.0. I had built from trunk before to address some other
> errors I was having at the time, here is the output from svn info: 
> 
> tyler@timbuktu:/var/tmp/fop/trunk$ svn info
> Path: .
> URL: http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk
> Repository Root: http://svn.apache.org/repos/asf
> Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> Revision: 1352991
> Node Kind: directory
> Schedule: normal
> Last Changed Author: vhennebert
> Last Changed Rev: 1352991
> Last Changed Date: 2012-06-22 14:14:51 -0400 (Fri, 22 Jun 2012)
> 
> I run a unit test to see what happens when I uncomment/comment various
> sections, etc. Here is the console output when I run that test: 
> 
> 11:18:25.938 [main]            ERROR c.i.o.s.PluginModule.PdfService - Error
> while configuring fop factory:
> java.net.MalformedURLException: null
> 	at java.net.URL.<init>(URL.java:601) ~[na:1.6.0_26]
> 	at java.net.URL.<init>(URL.java:464) ~[na:1.6.0_26]
> 	at java.net.URL.<init>(URL.java:413) ~[na:1.6.0_26]
> 	at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
> Source) ~[xercesImpl-2.9.1.jar:na]
> 	at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
> Source) ~[xercesImpl-2.9.1.jar:na]
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> ~[xercesImpl-2.9.1.jar:na]
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> ~[xercesImpl-2.9.1.jar:na]
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> ~[xercesImpl-2.9.1.jar:na]
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> ~[xercesImpl-2.9.1.jar:na]
> 	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> ~[xercesImpl-2.9.1.jar:na]
> 	at
> org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:255)
> ~[avalon-framework-impl-4.3.1.jar:na]
> 11:18:28.013 [main]            WARN  org.apache.fop.apps.FOUserAgent - Font
> "DejaVuSans,normal,400" not found. Substituting with "any,normal,400".
> 11:18:28.340 [main]            WARN  org.apache.fop.apps.FOUserAgent - Font
> "DejaVuSans,italic,400" not found. Substituting with "any,italic,400".
> 11:18:28.381 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
> "α" (0x3b1, alpha) not available in font "Times-Italic".
> 11:18:28.382 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
> "′" (0x2032, minute) not available in font "Times-Roman".
> 11:18:28.389 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
> "α" (0x3b1, alpha) not available in font "Times-Roman".
> 11:18:28.389 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
> "〉" (0x3009, anglebracketright) not available in font "Times-Roman".
> 11:18:28.397 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
> "−" (0x2212, minus) not available in font "Times-Italic".
> 11:18:28.397 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
> "ħ" (0x127, hbar) not available in font "Times-Italic".
> 11:18:28.399 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
> "′" (0x2032, minute) not available in font "Times-Italic".
> java.lang.IllegalArgumentException: 14
> 	at
> org.apache.fop.layoutmgr.inline.ScaledBaselineTable.getBaselineDefaultOffset(ScaledBaselineTable.java:177)
> 	at
> org.apache.fop.layoutmgr.inline.ScaledBaselineTable.<init>(ScaledBaselineTable.java:76)
> 	at
> org.apache.fop.layoutmgr.inline.ScaledBaselineTable.deriveScaledBaselineTable(ScaledBaselineTable.java:202)
> 	at
> org.apache.fop.layoutmgr.inline.AlignmentContext.getActualBaselineOffset(AlignmentContext.java:419)
> 	at
> org.apache.fop.layoutmgr.inline.AlignmentContext.setBaselineShift(AlignmentContext.java:321)
> 	at
> org.apache.fop.layoutmgr.inline.AlignmentContext.<init>(AlignmentContext.java:131)
> 	at
> org.apache.fop.layoutmgr.inline.AlignmentContext.<init>(AlignmentContext.java:97)
> 	at
> org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:277)
> 	at
> org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:329)
> 	at
> org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:329)
> 	at
> org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:689)
> 	at
> org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:622)
> 	at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
> 	at
> org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
> 	at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
> 	at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
> 	at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
> 	at
> org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
> 	at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
> 	at
> org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
> 	at
> org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:221)
> 	at
> org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:145)
> 	at
> org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:114)
> 	at
> org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:67)
> 	at
> org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:222)
> 	at
> org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:673)
> 	at
> org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:155)
> 	at
> org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137)
> 	at
> org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:387)
> 	at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:90)
> 	at
> org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:113)
> 	at
> org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
> 	at
> org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128)
> 	at
> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:347)
> 	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
> 	at
> net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:391)
> 	at
> net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:213)
> 	at
> net.sf.saxon.event.ComplexContentOutputter.endElement(ComplexContentOutputter.java:432)
> 	at
> net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299)
> 	at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
> 	at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
> 	at
> net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
> 	at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
> 	at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)
> 	at
> net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)
> 	at net.sf.saxon.Controller.transformDocument(Controller.java:1807)
> 	at net.sf.saxon.Controller.transform(Controller.java:1621)
> 	at com.ifactory.oso.components.DownloadDoc.render(DownloadDoc.java:211)
> 	at com.ifactory.oso.pages.PdfTest.testDownloadDoc(PdfTest.java:67)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> 	at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> 	at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> 	at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
> 	at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> 	at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> 	at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
> 	at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> 
> Here is that stack trace as an attachment: 
> 
> fop_console.txt
> <http://apache-fop.1065347.n5.nabble.com/file/n37326/fop_console.txt>  
> 
> Please let me know if you need anything else, if there are any problems with
> the attachments, etc. Thanks. 
> 
> 
> 
> 
> 
> --
> View this message in context: http://apache-fop.1065347.n5.nabble.com/java-lang-IllegalArgumentException-14-when-processing-math-tp37306p37326.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
 		 	   		  

Re: "java.lang.IllegalArgumentException: 14" when processing math

Posted by tyler <ty...@ifactory.com>.
Here is the file, the fop sections are inside the ifp:body tag. These get
extracted and combined with some other metadata, etc. to make the final pdf.
Those contents are what I thought was inlined in my previous email,
apologies if they didn't show up:

fop_output_acprof-9780198509141-chapter-3
<http://apache-fop.1065347.n5.nabble.com/file/n37326/fop_output_acprof-9780198509141-chapter-3>  

I'm using version 1.0. I had built from trunk before to address some other
errors I was having at the time, here is the output from svn info: 

tyler@timbuktu:/var/tmp/fop/trunk$ svn info
Path: .
URL: http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk
Repository Root: http://svn.apache.org/repos/asf
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 1352991
Node Kind: directory
Schedule: normal
Last Changed Author: vhennebert
Last Changed Rev: 1352991
Last Changed Date: 2012-06-22 14:14:51 -0400 (Fri, 22 Jun 2012)

I run a unit test to see what happens when I uncomment/comment various
sections, etc. Here is the console output when I run that test: 

11:18:25.938 [main]            ERROR c.i.o.s.PluginModule.PdfService - Error
while configuring fop factory:
java.net.MalformedURLException: null
	at java.net.URL.<init>(URL.java:601) ~[na:1.6.0_26]
	at java.net.URL.<init>(URL.java:464) ~[na:1.6.0_26]
	at java.net.URL.<init>(URL.java:413) ~[na:1.6.0_26]
	at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
Source) ~[xercesImpl-2.9.1.jar:na]
	at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source) ~[xercesImpl-2.9.1.jar:na]
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
~[xercesImpl-2.9.1.jar:na]
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
~[xercesImpl-2.9.1.jar:na]
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
~[xercesImpl-2.9.1.jar:na]
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
~[xercesImpl-2.9.1.jar:na]
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
~[xercesImpl-2.9.1.jar:na]
	at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:255)
~[avalon-framework-impl-4.3.1.jar:na]
11:18:28.013 [main]            WARN  org.apache.fop.apps.FOUserAgent - Font
"DejaVuSans,normal,400" not found. Substituting with "any,normal,400".
11:18:28.340 [main]            WARN  org.apache.fop.apps.FOUserAgent - Font
"DejaVuSans,italic,400" not found. Substituting with "any,italic,400".
11:18:28.381 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
"α" (0x3b1, alpha) not available in font "Times-Italic".
11:18:28.382 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
"′" (0x2032, minute) not available in font "Times-Roman".
11:18:28.389 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
"α" (0x3b1, alpha) not available in font "Times-Roman".
11:18:28.389 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
"〉" (0x3009, anglebracketright) not available in font "Times-Roman".
11:18:28.397 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
"−" (0x2212, minus) not available in font "Times-Italic".
11:18:28.397 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
"ħ" (0x127, hbar) not available in font "Times-Italic".
11:18:28.399 [main]            WARN  org.apache.fop.apps.FOUserAgent - Glyph
"′" (0x2032, minute) not available in font "Times-Italic".
java.lang.IllegalArgumentException: 14
	at
org.apache.fop.layoutmgr.inline.ScaledBaselineTable.getBaselineDefaultOffset(ScaledBaselineTable.java:177)
	at
org.apache.fop.layoutmgr.inline.ScaledBaselineTable.<init>(ScaledBaselineTable.java:76)
	at
org.apache.fop.layoutmgr.inline.ScaledBaselineTable.deriveScaledBaselineTable(ScaledBaselineTable.java:202)
	at
org.apache.fop.layoutmgr.inline.AlignmentContext.getActualBaselineOffset(AlignmentContext.java:419)
	at
org.apache.fop.layoutmgr.inline.AlignmentContext.setBaselineShift(AlignmentContext.java:321)
	at
org.apache.fop.layoutmgr.inline.AlignmentContext.<init>(AlignmentContext.java:131)
	at
org.apache.fop.layoutmgr.inline.AlignmentContext.<init>(AlignmentContext.java:97)
	at
org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:277)
	at
org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:329)
	at
org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:329)
	at
org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:689)
	at
org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:622)
	at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
	at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
	at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
	at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
	at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
	at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:288)
	at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
	at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
	at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:221)
	at
org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:145)
	at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:114)
	at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:67)
	at
org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:222)
	at
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:673)
	at
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:155)
	at
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137)
	at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:387)
	at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:90)
	at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:113)
	at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
	at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128)
	at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:347)
	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
	at
net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:391)
	at
net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:213)
	at
net.sf.saxon.event.ComplexContentOutputter.endElement(ComplexContentOutputter.java:432)
	at
net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299)
	at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
	at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
	at
net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
	at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
	at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)
	at
net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)
	at net.sf.saxon.Controller.transformDocument(Controller.java:1807)
	at net.sf.saxon.Controller.transform(Controller.java:1621)
	at com.ifactory.oso.components.DownloadDoc.render(DownloadDoc.java:211)
	at com.ifactory.oso.pages.PdfTest.testDownloadDoc(PdfTest.java:67)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
	at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
	at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
	at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
	at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
	at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Here is that stack trace as an attachment: 

fop_console.txt
<http://apache-fop.1065347.n5.nabble.com/file/n37326/fop_console.txt>  

Please let me know if you need anything else, if there are any problems with
the attachments, etc. Thanks. 





--
View this message in context: http://apache-fop.1065347.n5.nabble.com/java-lang-IllegalArgumentException-14-when-processing-math-tp37306p37326.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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


Re: "java.lang.IllegalArgumentException: 14" when processing math

Posted by Glenn Adams <gl...@skynav.com>.
you forgot the attachment; also you should indicate what version of FOP you
are using, and include all console output

On Fri, Nov 9, 2012 at 8:48 AM, tyler <ty...@ifactory.com> wrote:

> Hi Mehdi,
>
> Thanks for setting me straight. Our code will pull in a few different
> source
> documents/bits of metadata on top of the actual chapter being dumped to
> pdf.
> For the sake of getting you something to look at, I siphoned off the output
> just for the chapter before book metadata, copyright info, etc. gets added
> on. I also edited the chapter xml down to the section where I think the
> error is ocurring to keep the output shorter. If you need more, though,
> please let me know, I'll try to catch the document later in the process,
> but
> this should be the relevant part of the fop document for the section that's
> breaking:
>
>
>
> This is the fo markup for the particular snippet where, if I comment or
> uncomment it in the source xml, then I will or won't get the error.
>
>
>
> It looks like the fop.conf we are using is untouched, so we should just be
> using the defaults.
>
> Please let me know if you need anything else. Thanks again.
>
>
>
>
>
> --
> View this message in context:
> http://apache-fop.1065347.n5.nabble.com/java-lang-IllegalArgumentException-14-when-processing-math-tp37306p37324.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>

Re: "java.lang.IllegalArgumentException: 14" when processing math

Posted by tyler <ty...@ifactory.com>.
Hi Mehdi, 

Thanks for setting me straight. Our code will pull in a few different source
documents/bits of metadata on top of the actual chapter being dumped to pdf.
For the sake of getting you something to look at, I siphoned off the output
just for the chapter before book metadata, copyright info, etc. gets added
on. I also edited the chapter xml down to the section where I think the
error is ocurring to keep the output shorter. If you need more, though,
please let me know, I'll try to catch the document later in the process, but
this should be the relevant part of the fop document for the section that's
breaking: 



This is the fo markup for the particular snippet where, if I comment or
uncomment it in the source xml, then I will or won't get the error. 



It looks like the fop.conf we are using is untouched, so we should just be
using the defaults. 

Please let me know if you need anything else. Thanks again. 





--
View this message in context: http://apache-fop.1065347.n5.nabble.com/java-lang-IllegalArgumentException-14-when-processing-math-tp37306p37324.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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


Re: "java.lang.IllegalArgumentException: 14" when processing math

Posted by Mehdi Houshmand <me...@gmail.com>.
Hi Tyler,

The standard protocol when asking the community for help is to provide the
FO (FOP's input XML file) and any fonts/configuration settings you have. We
can't really help you without those pieces of information; when you upload
them, we can start helping you with your problem.

Thanks

Mehdi


On 8 November 2012 22:39, tyler <ty...@ifactory.com> wrote:

> I have three different XML files with a lot of math in them (quantum
> physics). With each of them, when I use FOP to generate pdf's I get the
> following exception (let me know if you want to see the full stack trace,
> here's the top with all the FOP lines):
>
>
>
> In one of the files, here is one snippet that will throw the error (it's
> not
> thrown when I comment this out):
>
>
>
> Are there any symbols in there that might be unsupported? Is there
> something
> else I should be considering that might trigger this error? Please let me
> know if there is other information I can provide to help track this down.
> Thanks in advance for any pointers.
>
>
>
>
> --
> View this message in context:
> http://apache-fop.1065347.n5.nabble.com/java-lang-IllegalArgumentException-14-when-processing-math-tp37306.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>