xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jayant Ghagre <Jayant.Gha...@ambest.com>
Subject Re: Error (Exception in thread "Root Thread" java.lang.StackOverflowError) while transforming XML data using .xsl file using Oracle 11g R1
Date Wed, 21 Jul 2010 17:13:47 GMT
Hi,

I am still getting the same error (Exception in thread "Root Thread"
java.lang.StackOverflowError).

FYI, in case of Oracle JVM, we can set the JVM properties using oracle.
aurora.vm.OracleRuntime class, unlike the java command line option -Xss.

I am able to generate PDF using the same code on local Windows environment.

Oracle JVM details (before executing the Java Stored Procedure which calls
FOP)
==================================================================
getSessionSize(): 2621440
NewspaceSize(): 1048576
MaxRunspaceSize(): 4294967295
getJavaPoolSize(): 83886080
getSessionSoftLimit(): 4294967295
SessionGCThreshold(): 1048576
NewspaceSize: 1048576
MaxMemsize: 536870912
JavaStackSize(): 7340032
ThreadStackSize(): 7340032


Debug log
==================================================================
DEBUG: Dynamically adding ContentHandlerFactory:
org.apache.fop.render.afp.extensions.AFPExtensionHandlerFactory
DEBUG: Dynamically adding ContentHandlerFactory:
org.apache.fop.render.ps.extensions.PSExtensionHandlerFactory
DEBUG: Dynamically adding ContentHandlerFactory:
org.apache.fop.fo.extensions.xmp.XMPContentHandlerFactory
DEBUG: Dynamically adding maker for Renderer:
org.apache.fop.render.pdf.PDFRendererMaker
DEBUG: Dynamically adding maker for Renderer:
org.apache.fop.render.ps.PSRendererMaker
DEBUG: Dynamically adding maker for Renderer:
org.apache.fop.render.txt.TXTRendererMaker
DEBUG: Dynamically adding maker for Renderer:
org.apache.fop.render.bitmap.PNGRendererMaker
DEBUG: Dynamically adding maker for Renderer:
org.apache.fop.render.bitmap.TIFFRendererMaker
DEBUG: Dynamically adding maker for Renderer:
org.apache.fop.render.xml.XMLRendererMaker
DEBUG: Dynamically adding maker for Renderer:
org.apache.fop.render.awt.AWTRendererMaker
DEBUG: Dynamically adding maker for Renderer:
org.apache.fop.render.print.PrintRendererMaker
DEBUG: Dynamically adding maker for Renderer:
org.apache.fop.render.afp.AFPRendererMaker
DEBUG: Dynamically adding maker for Renderer:
org.apache.fop.render.pcl.PCLRendererMaker
DEBUG: Dynamically adding maker for FOEventHandler:
org.apache.fop.render.rtf.RTFFOEventHandlerMaker
DEBUG: Dynamically adding XMLHandler:
org.apache.fop.render.pdf.PDFSVGHandler
DEBUG: Dynamically adding XMLHandler: org.apache.fop.render.ps.PSSVGHandler
DEBUG: Dynamically adding XMLHandler:
org.apache.fop.render.java2d.Java2DSVGHandler
DEBUG: Dynamically adding XMLHandler:
org.apache.fop.render.pcl.PCLSVGHandler
DEBUG: Dynamically adding XMLHandler:
org.apache.fop.render.afp.AFPSVGHandler
DEBUG: target-resolution set to: 72.0dpi (px2mm=0.35277778)
DEBUG: Dynamically adding PDFImageHandler:
org.apache.fop.render.pdf.PDFImageHandlerRawJPEG
DEBUG: Dynamically adding PDFImageHandler:
org.apache.fop.render.pdf.PDFImageHandlerRawCCITTFax
DEBUG: Dynamically adding PDFImageHandler:
org.apache.fop.render.pdf.PDFImageHandlerGraphics2D
DEBUG: Dynamically adding PDFImageHandler:
org.apache.fop.render.pdf.PDFImageHandlerRenderedImage
DEBUG: Dynamically adding PDFImageHandler:
org.apache.fop.render.pdf.PDFImageHandlerXML
DEBUG: userconfig is null
DEBUG: Registering: any,normal,400 under F5
DEBUG: Registering: any,italic,400 under F6
DEBUG: Registering: any,oblique,400 under F6
DEBUG: Registering: any,normal,700 under F7
DEBUG: Registering: any,italic,700 under F8
DEBUG: Registering: any,oblique,700 under F8
DEBUG: Registering: sans-serif,normal,400 under F1
DEBUG: Registering: sans-serif,oblique,400 under F2
DEBUG: Registering: sans-serif,italic,400 under F2
DEBUG: Registering: sans-serif,normal,700 under F3
DEBUG: Registering: sans-serif,oblique,700 under F4
DEBUG: Registering: sans-serif,italic,700 under F4
DEBUG: Registering: SansSerif,normal,400 under F1
DEBUG: Registering: SansSerif,oblique,400 under F2
DEBUG: Registering: SansSerif,italic,400 under F2
DEBUG: Registering: SansSerif,normal,700 under F3
DEBUG: Registering: SansSerif,oblique,700 under F4
DEBUG: Registering: SansSerif,italic,700 under F4
DEBUG: Registering: serif,normal,400 under F5
DEBUG: Registering: serif,oblique,400 under F6
DEBUG: Registering: serif,italic,400 under F6
DEBUG: Registering: serif,normal,700 under F7
DEBUG: Registering: serif,oblique,700 under F8
DEBUG: Registering: serif,italic,700 under F8
DEBUG: Registering: monospace,normal,400 under F9
DEBUG: Registering: monospace,oblique,400 under F10
DEBUG: Registering: monospace,italic,400 under F10
DEBUG: Registering: monospace,normal,700 under F11
DEBUG: Registering: monospace,oblique,700 under F12
DEBUG: Registering: monospace,italic,700 under F12
DEBUG: Registering: Monospaced,normal,400 under F9
DEBUG: Registering: Monospaced,oblique,400 under F10
DEBUG: Registering: Monospaced,italic,400 under F10
DEBUG: Registering: Monospaced,normal,700 under F11
DEBUG: Registering: Monospaced,oblique,700 under F12
DEBUG: Registering: Monospaced,italic,700 under F12
DEBUG: Registering: Helvetica,normal,400 under F1
DEBUG: Registering: Helvetica,oblique,400 under F2
DEBUG: Registering: Helvetica,italic,400 under F2
DEBUG: Registering: Helvetica,normal,700 under F3
DEBUG: Registering: Helvetica,oblique,700 under F4
DEBUG: Registering: Helvetica,italic,700 under F4
DEBUG: Registering: Times,normal,400 under F5
DEBUG: Registering: Times,oblique,400 under F6
DEBUG: Registering: Times,italic,400 under F6
DEBUG: Registering: Times,normal,700 under F7
DEBUG: Registering: Times,oblique,700 under F8
DEBUG: Registering: Times,italic,700 under F8
DEBUG: Registering: Courier,normal,400 under F9
DEBUG: Registering: Courier,oblique,400 under F10
DEBUG: Registering: Courier,italic,400 under F10
DEBUG: Registering: Courier,normal,700 under F11
DEBUG: Registering: Courier,oblique,700 under F12
DEBUG: Registering: Courier,italic,700 under F12
DEBUG: Registering: Symbol,normal,400 under F13
DEBUG: Registering: ZapfDingbats,normal,400 under F14
DEBUG: Registering: Times-Roman,normal,400 under F5
DEBUG: Registering: Times-Roman,oblique,400 under F6
DEBUG: Registering: Times-Roman,italic,400 under F6
DEBUG: Registering: Times-Roman,normal,700 under F7
DEBUG: Registering: Times-Roman,oblique,700 under F8
DEBUG: Registering: Times-Roman,italic,700 under F8
DEBUG: Registering: Times Roman,normal,400 under F5
DEBUG: Registering: Times Roman,oblique,400 under F6
DEBUG: Registering: Times Roman,italic,400 under F6
DEBUG: Registering: Times Roman,normal,700 under F7
DEBUG: Registering: Times Roman,oblique,700 under F8
DEBUG: Registering: Times Roman,italic,700 under F8
DEBUG: Registering: Computer-Modern-Typewriter,normal,400 under F9
DEBUG: Building formatting object tree
DEBUG: Current heap size: 7378KB
DEBUG: Starting layout
DEBUG: [1]
DEBUG: PLM> flow BPD =648000
DEBUG: start of the next element list is: page=1 col=0
DEBUG: span change from 95 to 5
DEBUG: Column balancing necessary for the next element list!!!
DEBUG: PLM> blockLists.size() = 0
DEBUG: start of the next element list is: page=1 col=0
DEBUG: Could not find a set of breaking points 1.0
DEBUG: No set of breaking points found with maxAdjustment = 1.0
DEBUG: Hyphenation possible? false
DEBUG: Could not find a set of breaking points 5.0
DEBUG: No set of breaking points found with maxAdjustment = 5.0
DEBUG: Could not find a set of breaking points 1.0
DEBUG: No set of breaking points found with maxAdjustment = 1.0
DEBUG: Hyphenation possible? false
DEBUG: Could not find a set of breaking points 5.0
DEBUG: No set of breaking points found with maxAdjustment = 5.0
DEBUG: Could not find a set of breaking points 1.0
DEBUG: No set of breaking points found with maxAdjustment = 1.0
DEBUG: Hyphenation possible? false
DEBUG: Could not find a set of breaking points 5.0
DEBUG: No set of breaking points found with maxAdjustment = 5.0
DEBUG: Could not find a set of breaking points 1.0
DEBUG: No set of breaking points found with maxAdjustment = 1.0
DEBUG: Hyphenation possible? false
DEBUG: Could not find a set of breaking points 5.0
DEBUG: No set of breaking points found with maxAdjustment = 5.0
DEBUG: Restarting at node <KnuthNode at 17 87820+20016-0 line:1 prev:0
dem:8.080243478870226E11>
DEBUG: Could not find a set of breaking points 1.0
DEBUG: No set of breaking points found with maxAdjustment = 1.0
DEBUG: Hyphenation possible? false
DEBUG: Could not find a set of breaking points 5.0
DEBUG: No set of breaking points found with maxAdjustment = 5.0
DEBUG: Restarting at node <KnuthNode at 24 88380+20016-0 line:1 prev:0
dem:8.015227326375352E11>
DEBUG: Could not find a set of breaking points 1.0
DEBUG: No set of breaking points found with maxAdjustment = 1.0
DEBUG: Hyphenation possible? false
DEBUG: Could not find a set of breaking points 5.0
DEBUG: No set of breaking points found with maxAdjustment = 5.0
Exception in thread "Root Thread" java.lang.StackOverflowError
      at java.lang.String.valueOf(String.java)
      at java.lang.StringBuffer.append(StringBuffer.java)
      at org.apache.fop.fo.properties.PercentLength.toString
(PercentLength.java)
      at java.lang.String.valueOf(String.java)
      at java.lang.StringBuffer.append(StringBuffer.java)
      at org.apache.fop.fo.flow.table.TableColumn.toString
(TableColumn.java)
      at java.lang.String.valueOf(String.java)
      at java.util.AbstractCollection.toString(AbstractCollection.java)
      at org.apache.fop.layoutmgr.table.ColumnSetup.toString
(ColumnSetup.java:125)
      at java.lang.String.valueOf(String.java)
      at java.lang.StringBuffer.append(StringBuffer.java)
      at
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements
(TableContentLayoutManager.java:132)
      at
org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements
(TableLayoutManager.java:247)
      at
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements
(BlockStackingLayoutManager.java)
      at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements
(BlockLayoutManager.java:116)
      at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements
(FlowLayoutManager.java)
      at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements
(PageBreaker.java:145)
      at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList
(AbstractBreaker.java:552)
      at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList
(PageBreaker.java:137)
      at org.apache.fop.layoutmgr.AbstractBreaker.doLayout
(AbstractBreaker.java:302)
      at org.apache.fop.layoutmgr.AbstractBreaker.doLayout
(AbstractBreaker.java:264)
      at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout
(PageSequenceLayoutManager.java:106)
      at org.apache.fop.area.AreaTreeHandler.endPageSequence
(AreaTreeHandler.java:234)
      at org.apache.fop.fo.pagination.PageSequence.endOfNode
(PageSequence.java:123)
      at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement
(FOTreeBuilder.java)
      at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java)
      at org.apache.xml.serializer.ToXMLSAXHandler.endElement
(ToXMLSAXHandler.java)
      at org.apache.xalan.templates.ElemLiteralResult.execute
(ElemLiteralResult.java)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
(TransformerImpl.java)
      at org.apache.xalan.templates.ElemLiteralResult.execute
(ElemLiteralResult.java)
      at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes
(ElemApplyTemplates.java:395)
      at org.apache.xalan.templates.ElemApplyTemplates.execute
(ElemApplyTemplates.java:177)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
(TransformerImpl.java)
      at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode
(TransformerImpl.java:2202)
      at org.apache.xalan.transformer.TransformerImpl.transformNode
(TransformerImpl.java:1276)
      at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:673)
      at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:1192)
      at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:1170)
      at CreditReports.CreateReport(CreditReports:84)


Thanks,
Jayant





|------------>
| From:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Chris Bowditch <bowditch_chris@hotmail.com>                                     
                                                                 |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |fop-users@xmlgraphics.apache.org                                                      
                                                           |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |07/12/2010 10:12 AM                                                                   
                                                           |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Re: Error (Exception in thread "Root Thread" java.lang.StackOverflowError) while transforming
XML data using .xsl file using Oracle 11g R1        |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|





Jayant Ghagre wrote:
> Hello,
>
> I am getting following error while transforming XML data file to PDF
> using .XSL file. I have loaded FOP 0.95 in Oracle 11g R1 database. I am
> calling FOP using Java Stored Procedure.
>
> The same code executes without any errors in stand-alone mode (Windows XP
> with JDK 1.5)
>
> Exception in thread "Root Thread" java.lang.StackOverflowError
>       at java.lang.String.valueOf(String.java)

When running within Oracle Instance you may just need more than 64Kb
stack space. You could try specifying -Xss2M to JVM startup parameters
to see if it resolves the issue

Thanks,

Chris

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







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


Mime
View raw message