ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54941] New: FOP 1.1 SEVERE: Exception java.lang.IllegalArgumentException: min (1650) > opt (0)
Date Wed, 08 May 2013 21:14:27 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54941

            Bug ID: 54941
           Summary: FOP 1.1 SEVERE: Exception
                    java.lang.IllegalArgumentException: min (1650) > opt
                    (0)
           Product: Ant
           Version: 1.1
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
          Assignee: notifications@ant.apache.org
          Reporter: yevgeniy.vostokov@wolterskluwer.com
    Classification: Unclassified

Created attachment 30261
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30261&action=edit
sample fo file to reproduce a problem

I am getting an Exception java.lang.IllegalArgumentException: min (1650) > opt
(0) 
and PDF is not getting created.

FO file is attached. 

I can generate PDF from the same FO file using XEP. 

If I remove the attribute word-spacing.minimum from the fo file it fixes it. If
I add optimum and maximum attributes it works too.
Apparently the code expects the optimum and maximum to be also specified if the
minimum is and in this case they are not.

FOP log:
C:\Users\Yevgeniy.Vostokov\Local Settings\Temp\fop-1.1>
C:\Users\Yevgeniy.Vostokov\Local Settings\Temp\fop-1.1>fop -r
../ExpereResponse.
fo ../expereresponse.pdf
May 3, 2013 11:20:52 AM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Font "Times New Roman,normal,400" not found. Substituting with
"any,nor
mal,400".
May 3, 2013 11:20:52 AM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Font "Arial,normal,700" not found. Substituting with "any,normal,700".
May 3, 2013 11:20:53 AM org.apache.fop.events.LoggingEventListener processEvent
INFO: table-layout="fixed" and width="auto", but auto-layout not supported =>
as
suming width="100%". (See position 529:133)
May 3, 2013 11:20:53 AM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Font "Times New Roman,normal,700" not found. Substituting with
"any,nor
mal,700".
May 3, 2013 11:20:53 AM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.IllegalArgumentException: min (1650) > opt (0)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
        at org.apache.fop.cli.Main.startFOP(Main.java:177)
        at org.apache.fop.cli.Main.main(Main.java:208)
Caused by: java.lang.IllegalArgumentException: min (1650) > opt (0)
        at org.apache.fop.traits.MinOptMax.getInstance(MinOptMax.java:59)
        at org.apache.fop.traits.SpaceVal.createSpaceProperty(SpaceVal.java:62)
        at org.apache.fop.traits.SpaceVal.<init>(SpaceVal.java:45)
        at org.apache.fop.traits.SpaceVal.makeWordSpacing(SpaceVal.java:94)
        at
org.apache.fop.layoutmgr.inline.TextLayoutManager.initialize(TextLayo
utManager.java:245)
        at
org.apache.fop.layoutmgr.AbstractLayoutManager.getChildLM(AbstractLay
outManager.java:119)
        at
org.apache.fop.layoutmgr.BreakOpportunityHelper.getBreakBefore(BreakO
pportunityHelper.java:45)
        at
org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.getBreakB
efore(InlineStackingLayoutManager.java:392)
        at
org.apache.fop.layoutmgr.BreakOpportunityHelper.getBreakBefore(BreakO
pportunityHelper.java:49)
        at
org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.getBreakB
efore(InlineStackingLayoutManager.java:392)
        at
org.apache.fop.layoutmgr.BreakOpportunityHelper.getBreakBefore(BreakO
pportunityHelper.java:49)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getBreakBefore(BlockLayou
tManager.java:508)
        at
org.apache.fop.layoutmgr.BreakOpportunityHelper.getBreakBefore(BreakO
pportunityHelper.java:49)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getBreakBefore(BlockLayou
tManager.java:508)
        at
org.apache.fop.layoutmgr.BreakOpportunityHelper.getBreakBefore(BreakO
pportunityHelper.java:49)
        at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.addKnuthElementsF
orBreakBefore(BlockStackingLayoutManager.java:1038)
        at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.breakBeforeServed
(BlockStackingLayoutManager.java:443)
        at
org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElem
ents(BlockContainerLayoutManager.java:224)
        at
org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElem
ents(BlockContainerLayoutManager.java:186)
        at
org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthEle
ments(TableCellLayoutManager.java:153)
        at
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.createElementsFo
rRowGroup(RowGroupLayoutManager.java:120)
        at
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.getNextKnuthElem
ents(RowGroupLayoutManager.java:63)
        at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElem
entsForRowIterator(TableContentLayoutManager.java:242)
        at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuth
Elements(TableContentLayoutManager.java:181)
        at
org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElement
s(TableLayoutManager.java:253)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(Bloc
kLayoutManager.java:141)
        at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme
nts(BlockStackingLayoutManager.java:288)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc
kLayoutManager.java:113)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc
kLayoutManager.java:105)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(Bloc
kLayoutManager.java:141)
        at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme
nts(BlockStackingLayoutManager.java:288)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc
kLayoutManager.java:113)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc
kLayoutManager.java:105)
        at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowL
ayoutManager.java:221)
        at
org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayou
tManager.java:145)
        at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowL
ayoutManager.java:114)
        at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowL
ayoutManager.java:67)
        at
org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker
.java:222)
        at
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBre
aker.java:673)
        at
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.jav
a:155)
        at
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.jav
a:137)
        at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav
a:387)
        at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:90)
        at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(Pag
eSequenceLayoutManager.java:113)
        at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.j
ava:267)
        at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java
:128)
        at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilde
r.java:347)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Trans
formerIdentityImpl.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(Unknow
n Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known 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
Sour
ce)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:484)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
        ... 3 more

---------

java.lang.IllegalArgumentException: min (1650) > opt (0)
        at org.apache.fop.traits.MinOptMax.getInstance(MinOptMax.java:59)
        at org.apache.fop.traits.SpaceVal.createSpaceProperty(SpaceVal.java:62)
        at org.apache.fop.traits.SpaceVal.<init>(SpaceVal.java:45)
        at org.apache.fop.traits.SpaceVal.makeWordSpacing(SpaceVal.java:94)
        at
org.apache.fop.layoutmgr.inline.TextLayoutManager.initialize(TextLayo
utManager.java:245)
        at
org.apache.fop.layoutmgr.AbstractLayoutManager.getChildLM(AbstractLay
outManager.java:119)
        at
org.apache.fop.layoutmgr.BreakOpportunityHelper.getBreakBefore(BreakO
pportunityHelper.java:45)
        at
org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.getBreakB
efore(InlineStackingLayoutManager.java:392)
        at
org.apache.fop.layoutmgr.BreakOpportunityHelper.getBreakBefore(BreakO
pportunityHelper.java:49)
        at
org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.getBreakB
efore(InlineStackingLayoutManager.java:392)
        at
org.apache.fop.layoutmgr.BreakOpportunityHelper.getBreakBefore(BreakO
pportunityHelper.java:49)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getBreakBefore(BlockLayou
tManager.java:508)
        at
org.apache.fop.layoutmgr.BreakOpportunityHelper.getBreakBefore(BreakO
pportunityHelper.java:49)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getBreakBefore(BlockLayou
tManager.java:508)
        at
org.apache.fop.layoutmgr.BreakOpportunityHelper.getBreakBefore(BreakO
pportunityHelper.java:49)
        at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.addKnuthElementsF
orBreakBefore(BlockStackingLayoutManager.java:1038)
        at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.breakBeforeServed
(BlockStackingLayoutManager.java:443)
        at
org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElem
ents(BlockContainerLayoutManager.java:224)
        at
org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElem
ents(BlockContainerLayoutManager.java:186)
        at
org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthEle
ments(TableCellLayoutManager.java:153)
        at
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.createElementsFo
rRowGroup(RowGroupLayoutManager.java:120)
        at
org.apache.fop.layoutmgr.table.RowGroupLayoutManager.getNextKnuthElem
ents(RowGroupLayoutManager.java:63)
        at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElem
entsForRowIterator(TableContentLayoutManager.java:242)
        at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuth
Elements(TableContentLayoutManager.java:181)
        at
org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElement
s(TableLayoutManager.java:253)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(Bloc
kLayoutManager.java:141)
        at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme
nts(BlockStackingLayoutManager.java:288)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc
kLayoutManager.java:113)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc
kLayoutManager.java:105)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(Bloc
kLayoutManager.java:141)
        at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme
nts(BlockStackingLayoutManager.java:288)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc
kLayoutManager.java:113)
        at
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc
kLayoutManager.java:105)
        at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowL
ayoutManager.java:221)
        at
org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayou
tManager.java:145)
        at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowL
ayoutManager.java:114)
        at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowL
ayoutManager.java:67)
        at
org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker
.java:222)
        at
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBre
aker.java:673)
        at
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.jav
a:155)
        at
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.jav
a:137)
        at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav
a:387)
        at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:90)
        at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(Pag
eSequenceLayoutManager.java:113)
        at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.j
ava:267)
        at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java
:128)
        at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilde
r.java:347)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Trans
formerIdentityImpl.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(Unknow
n Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known 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
Sour
ce)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:484)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
        at org.apache.fop.cli.Main.startFOP(Main.java:177)
        at org.apache.fop.cli.Main.main(Main.java:208)

C:\Users\Yevgeniy.Vostokov\Local Settings\Temp\fop-1.1>

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message