RE: Stackoverflow exception

2011-05-06 Thread Marcos.Garcia

Hi Dan,

I've tried to update all my libraries and also the java version but it
didn't work. Nonetheless, thank you so much for your response.

I'll keep looking for a solution.

Marcos.


Dan Gorst wrote:
 
 Hey Marcos,
  
 Out of interest, do you have log4j on your classpath?  I seem to remember
 having a similar problem a while back which was fixed by removing the
 log4j jars from my app. Actually, after upgrading my jre to a later
 release I was able to reinclude log4j without getting this issue so either
 way forward is worth trying...
  
 Of course, this maybe something completely different.
  
 Thanks,
 Dan
  
  
 
 Using FOP Trunk
 
 Hi everyone,
 
 I'm working with FOP embedded in a Java project. During a transformation
 of an XML file I get the following exception:
 
 java.lang.StackOverflowError
 at
 org.apache.xpath.VariableStack.getLocalVariable(VariableStack.java:345)
 at org.apache.xpath.operations.Variable.execute(Variable.java:214)
 at org.apache.xpath.operations.Variable.execute(Variable.java:186)
 at
 org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(FilterExprIteratorSimple.java:114)
 at
 org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:129)
 at
 org.apache.xpath.axes.WalkingIterator.setRoot(WalkingIterator.java:154)
 at
 org.apache.xpath.axes.LocPathIterator.asNode(LocPathIterator.java:298)
 at
 org.apache.xpath.axes.LocPathIterator.bool(LocPathIterator.java:318)
 at org.apache.xpath.XPath.bool(XPath.java:410)
 at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:124)
 at
 org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
 at
 org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:392)
 at
 org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:246)
 at
 org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
 at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)
 at
 org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)

 .
 at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)
 at
 org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
 at
 org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:392)
 at
 org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:246)
 at
 org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
 
 Seems like Xalan is doing a lot of recursive calls and the stack memory
 overflows. Is there any way to overcome this problem?
 
 Thanks in advance.
 
 Disclaimer: 
 
 This e-mail (and any attachment) is confidential and may also be
 privileged. It is intended solely for the use of the individual to whom it
 is addressed. Any views or opinions presented are solely those of the
 author and do not necessarily represent those of Conveyancing Direct.
 Conveyancing Direct accepts no liability for the contents of this e-mail
 or of any attachment. If you are not the intended recipient, be advised
 that you have received this e-mail in error and that any use,
 dissemination, forwarding, disclosure, printing or copying is expressly
 prohibited. Further, if you are not the intended recipient, you are
 strictly prohibited from acting or refraining from acting in reliance on
 this e-mail. 
 
 If you have received this mail in error please delete this e-mail and any
 attachments and notify the Conveyancing Direct IT Department by telephone
 on 01525 244 555 or email to helpd...@cdpll.co.uk If you would prefer not
 to receive future mailings please email unsubscr...@cdpll.co.uk
 
 This message has been checked for all known viruses by Webroot Virus
 Scanning Service.
 Registered in England, Registration number: 04152278
 Registered Office: The Bailey, Skipton, North Yorkshire, BD23 1DN
 VAT Registration No. 500 2481 05
 

-- 
View this message in context: 
http://old.nabble.com/Stackoverflow-exception-tp31551744p31557205.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Overflow Exception

2011-05-05 Thread Marcos.Garcia

Hi everyone,

I'm working with FOP embedded in a Java project. During a transformation of
an XML file I get the following exception:

java.lang.StackOverflowError
at
org.apache.xpath.VariableStack.getLocalVariable(VariableStack.java:345)
at org.apache.xpath.operations.Variable.execute(Variable.java:214)
at org.apache.xpath.operations.Variable.execute(Variable.java:186)
at
org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(FilterExprIteratorSimple.java:114)
at
org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:129)
at
org.apache.xpath.axes.WalkingIterator.setRoot(WalkingIterator.java:154)
at
org.apache.xpath.axes.LocPathIterator.asNode(LocPathIterator.java:298)
at org.apache.xpath.axes.LocPathIterator.bool(LocPathIterator.java:318)
at org.apache.xpath.XPath.bool(XPath.java:410)
at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:124)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
at
org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:392)
at
org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:246)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
   
.
at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
at
org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:392)
at
org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:246)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)

Seems like Xalan is doing a lot of recursive calls and the stack memory
overflows. Is there any way to overcome this problem?

Thanks in advance.

-- 
View this message in context: 
http://old.nabble.com/Overflow-Exception-tp31549235p31549235.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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