[jira] Created: (OFBIZ-1549) java.lang.IndexOutOfBoundsException in Invoice PDF

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-1549) java.lang.IndexOutOfBoundsException in Invoice PDF

Nicolas Malin (Jira)
java.lang.IndexOutOfBoundsException in Invoice PDF
---------------------------------------------------

                 Key: OFBIZ-1549
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1549
             Project: OFBiz
          Issue Type: Bug
          Components: accounting
    Affects Versions: SVN trunk
            Reporter: Jacques Le Roux
            Priority: Minor


When, from Order Manager, you try to look at the invoice PDF of an order shipped you get this error :

type Status report

message ERROR rendering error page [/error/error.jsp], but here is the error text: java.lang.IndexOutOfBoundsException: Index: -1, Size: 0

description The server encountered an internal error (ERROR rendering error page [/error/error.jsp], but here is the error text: java.lang.IndexOutOfBoundsException: Index: -1, Size: 0) that prevented it from fulfilling this request.

It comes from FOP

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1549) java.lang.IndexOutOfBoundsException in Invoice PDF

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554582 ]

Jacques Le Roux commented on OFBIZ-1549:
----------------------------------------

It seems that this was already not working before recent FOP changes. I tried with rev. 603453 and I get the same error, even if it's not show in the same way since Adrian has refactored the way FOP error msg are rendered.

> java.lang.IndexOutOfBoundsException in Invoice PDF
> ---------------------------------------------------
>
>                 Key: OFBIZ-1549
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1549
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: SVN trunk
>            Reporter: Jacques Le Roux
>            Priority: Minor
>
> When, from Order Manager, you try to look at the invoice PDF of an order shipped you get this error :
> type Status report
> message ERROR rendering error page [/error/error.jsp], but here is the error text: java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
> description The server encountered an internal error (ERROR rendering error page [/error/error.jsp], but here is the error text: java.lang.IndexOutOfBoundsException: Index: -1, Size: 0) that prevented it from fulfilling this request.
> It comes from FOP

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1549) java.lang.IndexOutOfBoundsException in Invoice PDF

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554587 ]

Jacques Le Roux commented on OFBIZ-1549:
----------------------------------------

Here is the log (in last svn)

2007-12-27 17:13:44,835 (http-0.0.0.0-28443-Processor4) [     ControlServlet.java:196:ERROR]
---- exception report ----------------------------------------------------------
Error in request handler:
Exception: org.apache.fop.apps.FOPException
Message: Index: -1, Size: 0
---- stack trace ---------------------------------------------------------------
java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
org.ofbiz.webapp.view.ApacheFopWorker.transform(ApacheFopWorker.java:151)
org.ofbiz.widget.screen.ScreenFopViewHandler.render(ScreenFopViewHandler.java:85)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:651)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:435)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:363)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:78)
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
java.lang.Thread.run(Thread.java:595)
---------
java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
java.util.LinkedList.entry(LinkedList.java:368)
java.util.LinkedList.get(LinkedList.java:313)
org.apache.fop.layoutmgr.table.RowPainter.computeSpanHeight(RowPainter.java:240)
org.apache.fop.layoutmgr.table.RowPainter.addAreasAndFlushRow(RowPainter.java:158)
org.apache.fop.layoutmgr.table.RowPainter.handleTableContentPosition(RowPainter.java:103)
org.apache.fop.layoutmgr.table.TableContentLayoutManager.handleMarkersAndPositions(TableContentLayoutManager.java:766)
org.apache.fop.layoutmgr.table.TableContentLayoutManager.iterateAndPaintPositions(TableContentLayoutManager.java:739)
org.apache.fop.layoutmgr.table.TableContentLayoutManager.addAreas(TableContentLayoutManager.java:694)
org.apache.fop.layoutmgr.table.TableLayoutManager.addAreas(TableLayoutManager.java:334)
org.apache.fop.layoutmgr.AreaAdditionUtil.addAreas(AreaAdditionUtil.java:118)
org.apache.fop.layoutmgr.FlowLayoutManager.addAreas(FlowLayoutManager.java:297)
org.apache.fop.layoutmgr.PageBreaker.addAreas(PageBreaker.java:241)
org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:507)
org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:370)
org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:262)
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:345)
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:144)
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:233)
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:145)
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
org.ofbiz.webapp.view.ApacheFopWorker.transform(ApacheFopWorker.java:147)
org.ofbiz.widget.screen.ScreenFopViewHandler.render(ScreenFopViewHandler.java:85)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:651)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:435)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:363)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:78)
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
java.lang.Thread.run(Thread.java:595)
--------------------------------------------------------------------------------

2007-12-27 17:13:44,835 (http-0.0.0.0-28443-Processor4) [     ControlServlet.java:210:ERROR] An error occurred, going to the errorPage: /error/error.jsp
2007-12-27 17:13:44,850 (http-0.0.0.0-28443-Processor4) [     ControlServlet.java:217:ERROR] Including errorPage: /error/error.jsp
2007-12-27 17:13:45,022 (http-0.0.0.0-28443-Processor4) [ApplicationDispatcher.java:723:ERROR] Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
        at org.apache.catalina.connector.Response.getWriter(Response.java:601)
        at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:196)
        at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:105)
        at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
        at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
        at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:177)
        at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:116)
        at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:76)
        at org.apache.jsp.error.error_jsp._jspService(error_jsp.java:90)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:221)
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:78)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:595)
2007-12-27 17:13:45,022 (http-0.0.0.0-28443-Processor4) [     ControlServlet.java:223:WARN ] Error while trying to send error page using rd.include (will try response.getOutputStream or response.getWriter): o
rg.apache.jasper.JasperException: getOutputStream() has already been called for this response
2007-12-27 17:13:45,022 (http-0.0.0.0-28443-Processor4) [     ControlServlet.java:235:WARN ] Error while trying to write error message using response.getOutputStream or response.getWriter: org.apache.jasper.J
asperException: getOutputStream() has already been called for this response; sending error code [500], and message [ERROR rendering error page [/error/error.jsp], but here is the error text: java.lang.IndexOu
tOfBoundsException: Index: -1, Size: 0]

> java.lang.IndexOutOfBoundsException in Invoice PDF
> ---------------------------------------------------
>
>                 Key: OFBIZ-1549
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1549
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: SVN trunk
>            Reporter: Jacques Le Roux
>            Priority: Minor
>
> When, from Order Manager, you try to look at the invoice PDF of an order shipped you get this error :
> type Status report
> message ERROR rendering error page [/error/error.jsp], but here is the error text: java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
> description The server encountered an internal error (ERROR rendering error page [/error/error.jsp], but here is the error text: java.lang.IndexOutOfBoundsException: Index: -1, Size: 0) that prevented it from fulfilling this request.
> It comes from FOP

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-1549) java.lang.IndexOutOfBoundsException in Invoice PDF

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum reassigned OFBIZ-1549:
----------------------------------

    Assignee: Adrian Crum

> java.lang.IndexOutOfBoundsException in Invoice PDF
> ---------------------------------------------------
>
>                 Key: OFBIZ-1549
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1549
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: SVN trunk
>            Reporter: Jacques Le Roux
>            Assignee: Adrian Crum
>            Priority: Minor
>
> When, from Order Manager, you try to look at the invoice PDF of an order shipped you get this error :
> type Status report
> message ERROR rendering error page [/error/error.jsp], but here is the error text: java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
> description The server encountered an internal error (ERROR rendering error page [/error/error.jsp], but here is the error text: java.lang.IndexOutOfBoundsException: Index: -1, Size: 0) that prevented it from fulfilling this request.
> It comes from FOP

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-1549) java.lang.IndexOutOfBoundsException in Invoice PDF

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum closed OFBIZ-1549.
------------------------------

    Resolution: Fixed

Fixed, rev 607136.


> java.lang.IndexOutOfBoundsException in Invoice PDF
> ---------------------------------------------------
>
>                 Key: OFBIZ-1549
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1549
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: SVN trunk
>            Reporter: Jacques Le Roux
>            Assignee: Adrian Crum
>            Priority: Minor
>
> When, from Order Manager, you try to look at the invoice PDF of an order shipped you get this error :
> type Status report
> message ERROR rendering error page [/error/error.jsp], but here is the error text: java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
> description The server encountered an internal error (ERROR rendering error page [/error/error.jsp], but here is the error text: java.lang.IndexOutOfBoundsException: Index: -1, Size: 0) that prevented it from fulfilling this request.
> It comes from FOP

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.