At first that was the case, but I changed the code. 

Now every thread has its own XLSTransformer, but the error still appears

The only thing shared is the template.
What else could be the reason for tat error?

Thanks



________________________________
From: Leo <leon...@gmail.com>
To: Deina <deina_s...@yahoo.com>
Cc: "jxls-user@lists.sourceforge.net" <jxls-user@lists.sourceforge.net>
Sent: Friday, October 28, 2011 4:35 PM
Subject: Re: [jXLS-user] Jxls template


It looks like Commons Digester parse() method is being invoked on the same 
instance of digester.
Do you use the same instance of XLSTransformer when generating your excels in 
multiple threads?

--
Leo

On Fri, Oct 28, 2011 at 4:05 PM, Deina <deina_s...@yahoo.com> wrote:

Hi,
>
>
>This is the stacktrace:
>
>
>org.xml.sax.SAXException: FWK005 parse may not be called while parsing.
>    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>    at org.apache.commons.digester.Digester.parse(Digester.java:1785)
>    at net.sf.jxls.parser.CellParser.parseTag(CellParser.java:288)
>    at net.sf.jxls.parser.CellParser.parseCellValue(CellParser.java:189)
>    at net.sf.jxls.parser.CellParser.parseCell(CellParser.java:57)
>    at 
>net.sf.jxls.transformer.SheetTransformer.parseCells(SheetTransformer.java:195)
>   
 at net.sf.jxls.transformer.SheetTransformer.parseRow(SheetTransformer.java:265)
>    at 
>net.sf.jxls.transformer.SheetTransformer.transformSheet(SheetTransformer.java:82)
>    at 
>net.sf.jxls.transformer.XLSTransformer.transformWorkbook(XLSTransformer.java:238)
>    at 
>net.sf.jxls.transformer.XLSTransformer.transformXLS(XLSTransformer.java:217)
>Thanks,
>
>
>________________________________
>From: Leo <leon...@gmail.com>
>To: Deina <deina_s...@yahoo.com>
>Cc: "jxls-user@lists.sourceforge.net" <jxls-user@lists.sourceforge.net>
>Sent: Friday, October 28, 2011 4:03 PM
>Subject: Re: [jXLS-user] Jxls template
>
>
>
>Can you provide more stack trace information?
>
>
>On Fri, Oct 28, 2011 at 3:50 PM, Deina <deina_s...@yahoo.com> wrote:
>
>Hi,
>>
>>
>>Is it ok to share the same template file between multiple threads when trying 
>>to generate an excel?
>>I am receiving this error when trying to generate multiples excel files from 
>>different threads using the same template file :
>>
>>
>>org.xml.sax.SAXException: FWK005 parse may not be called while parsing.
>>    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>>    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
>>Source)
>>
>>
>>Can anyone help me to solve this issue?
>>------------------------------------------------------------------------------
>>The demand for IT networking professionals continues to grow, and the
>>demand for specialized networking skills is growing even more rapidly.
>>Take a complimentary Learning@Cisco Self-Assessment and learn
>>about Cisco certifications, training, and career opportunities.
>>http://p.sf.net/sfu/cisco-dev2dev
>>_______________________________________________
>>jXLS-user mailing list
>>jXLS-user@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/jxls-user
>>
>>
>
>
>
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
jXLS-user mailing list
jXLS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jxls-user

Reply via email to