You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2006/12/28 11:29:26 UTC
DO NOT REPLY [Bug 41251] New: - ArrayIndexOutOfBoundsException in multithreading environement
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41251>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41251
Summary: ArrayIndexOutOfBoundsException in multithreading
environement
Product: Fop
Version: 0.20.5
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P1
Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: myprivat65@hotmail.com
Making 5 fop threads work simultaneiousely leads to a failure every 1000 task.
That means, when the process is invoked 5000 times (only f threads are allowed
at one time) about 5 out of the 5000 tasks fail and result in the following
exception.
The same tasks which failed, can be successful processed when invoked again,
which means it has nothing to do with the tasks themselves. And the failure
happens randomly at any time, but i never noticed that it happened at the very
beginning of the processing. Usually it happenes after few hundreds of tasks
were processed.
java.lang.ArrayIndexOutOfBoundsException: -2; Line#: 51; Column#: 106
at com.mycompany.rendering.engine.FopRenderer.render(FopRenderer.java:254)
at com.mycompany.rendering.engine.XmlHtmlRenderer.render
(XmlHtmlRenderer.java:92)
at com.mycompany.rendering.engine.XmlHtmlRenderer.render
(XmlHtmlRenderer.java:124)
at com.mycompany.myproduct.postprocessing.CDefaultPostProcessor.transform
(CDefaultPostProcessor.java:320)
at com.mycompany.myproduct.postprocessing.CDefaultPostProcessor.xml2pdf
(CDefaultPostProcessor.java:274)
at com.mycompany.myproduct.postprocessing.CDefaultPostProcessor.postprocess
(CDefaultPostProcessor.java:207)
at com.mycompany.myproduct.postprocessing.CTaxCertPostProcessor.postprocess
(CTaxCertPostProcessor.java:78)
at com.mycompany.myproduct.processors.CReportProcessor.postProcessRequest
(CReportProcessor.java:251)
at com.mycompany.myproduct.processors.CReportProcessor.doExecute
(CReportProcessor.java:183)
at com.mycompany.myproduct.processors.CReportRequestProcessor.doExecute
(CReportRequestProcessor.java:454)
at com.mycompany.myproduct.CmyproductProcess.execute
(CmyproductProcess.java:183)
at com.mycompany.myproduct.processors.CReportRequestProcessor.process
(CReportRequestProcessor.java:157)
at com.mycompany.myproduct.workflow.queues.WorkerMDEJB.onMessage
(WorkerMDEJB.java:126)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
javax.xml.transform.TransformerException:
java.lang.ArrayIndexOutOfBoundsException: -2
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
(TransformerImpl.java:2344)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode
(TransformerImpl.java:2160)
at org.apache.xalan.transformer.TransformerImpl.transformNode
(TransformerImpl.java:1213)
at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:668)
at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:1129)
at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:1107)
at com.mycompany.rendering.engine.FopRenderer.render(FopRenderer.java:241)
at com.mycompany.rendering.engine.XmlHtmlRenderer.render
(XmlHtmlRenderer.java:92)
at com.mycompany.rendering.engine.XmlHtmlRenderer.render
(XmlHtmlRenderer.java:124)
at com.mycompany.myproduct.postprocessing.CDefaultPostProcessor.transform
(CDefaultPostProcessor.java:320)
at com.mycompany.myproduct.postprocessing.CDefaultPostProcessor.xml2pdf
(CDefaultPostProcessor.java:274)
at com.mycompany.myproduct.postprocessing.CDefaultPostProcessor.postprocess
(CDefaultPostProcessor.java:207)
at com.mycompany.myproduct.postprocessing.CTaxCertPostProcessor.postprocess
(CTaxCertPostProcessor.java:78)
at com.mycompany.myproduct.processors.CReportProcessor.postProcessRequest
(CReportProcessor.java:251)
at com.mycompany.myproduct.processors.CReportProcessor.doExecute
(CReportProcessor.java:183)
at com.mycompany.myproduct.processors.CReportRequestProcessor.doExecute
(CReportRequestProcessor.java:454)
at com.mycompany.myproduct.CmyproductProcess.execute
(CmyproductProcess.java:183)
at com.mycompany.myproduct.processors.CReportRequestProcessor.process
(CReportRequestProcessor.java:157)
at com.mycompany.myproduct.workflow.queues.WorkerMDEJB.onMessage
(WorkerMDEJB.java:126)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
java.lang.ArrayIndexOutOfBoundsException: -2
at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.java:130)
at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:505)
at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:271)
at org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.java:236)
at org.apache.fop.fo.flow.Table.layout(Table.java:302)
at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:400)
at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338)
at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
at org.apache.xalan.transformer.ResultTreeHandler.endElement
(ResultTreeHandler.java:309)
at org.apache.xalan.templates.ElemLiteralResult.execute
(ElemLiteralResult.java:716)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
(TransformerImpl.java:2339)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode
(TransformerImpl.java:2160)
at org.apache.xalan.transformer.TransformerImpl.transformNode
(TransformerImpl.java:1213)
at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:668)
at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:1129)
at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:1107)
at com.mycompany.rendering.engine.FopRenderer.render(FopRenderer.java:241)
at com.mycompany.rendering.engine.XmlHtmlRenderer.render
(XmlHtmlRenderer.java:92)
at com.mycompany.rendering.engine.XmlHtmlRenderer.render
(XmlHtmlRenderer.java:124)
at com.mycompany.myproduct.postprocessing.CDefaultPostProcessor.transform
(CDefaultPostProcessor.java:320)
at com.mycompany.myproduct.postprocessing.CDefaultPostProcessor.xml2pdf
(CDefaultPostProcessor.java:274)
at com.mycompany.myproduct.postprocessing.CDefaultPostProcessor.postprocess
(CDefaultPostProcessor.java:207)
at com.mycompany.myproduct.postprocessing.CTaxCertPostProcessor.postprocess
(CTaxCertPostProcessor.java:78)
at com.mycompany.myproduct.processors.CReportProcessor.postProcessRequest
(CReportProcessor.java:251)
at com.mycompany.myproduct.processors.CReportProcessor.doExecute
(CReportProcessor.java:183)
at com.mycompany.myproduct.processors.CReportRequestProcessor.doExecute
(CReportRequestProcessor.java:454)
at com.mycompany.myproduct.CmyproductProcess.execute
(CmyproductProcess.java:183)
at com.mycompany.myproduct.processors.CReportRequestProcessor.process
(CReportRequestProcessor.java:157)
at com.mycompany.myproduct.workflow.queues.WorkerMDEJB.onMessage
(WorkerMDEJB.java:126)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 41251] - ArrayIndexOutOfBoundsException in multithreading environement
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41251>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41251
------- Additional Comments From a_l.delmelle@pandora.be 2007-02-18 05:10 -------
(In reply to comment #2)
>
> The Exception was thrown by FOP-Code!
Not according to the stack trace you posted.
"com.mycompany.rendering.engine" is definitely not a FOP package.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 41251] - ArrayIndexOutOfBoundsException in multithreading environement
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41251>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41251
a_l.delmelle@pandora.be changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From a_l.delmelle@pandora.be 2007-02-18 04:51 -------
Bugzilla cleanup:
This is unrelated to FOP. The error occurs in the calling code, not FOP itself.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 41251] - ArrayIndexOutOfBoundsException in multithreading environement
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41251>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41251
jeremias@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Additional Comments From jeremias@apache.org 2007-02-18 05:12 -------
(In reply to comment #3)
> (In reply to comment #2)
> >
> > The Exception was thrown by FOP-Code!
>
> Not according to the stack trace you posted.
> "com.mycompany.rendering.engine" is definitely not a FOP package.
Look closely, Andreas:
java.lang.ArrayIndexOutOfBoundsException: -2
at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.java:130)
at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:505)
at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:271)
at org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.java:236)
at org.apache.fop.fo.flow.Table.layout(Table.java:302)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 41251] - ArrayIndexOutOfBoundsException in multithreading environement
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41251>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41251
------- Additional Comments From myprivat65@hotmail.com 2007-02-18 05:02 -------
(In reply to comment #1)
> Bugzilla cleanup:
> This is unrelated to FOP. The error occurs in the calling code, not FOP
itself.
The Exception was thrown by FOP-Code!
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 41251] - ArrayIndexOutOfBoundsException in multithreading environement
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41251>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41251
------- Additional Comments From a_l.delmelle@pandora.be 2007-02-18 05:19 -------
(In reply to comment #4)
> Look closely, Andreas:
> java.lang.ArrayIndexOutOfBoundsException: -2
> at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.java:130)
Right, sorry. My bad.
OTOH, this bug does not seem to applicable to the Trunk anymore, so that would make it... a WONTFIX?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.