You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Leon (JIRA)" <ji...@apache.org> on 2012/07/19 08:20:36 UTC

[jira] [Created] (OFBIZ-4969) IndexOutOfBoundsException thrown by ServerHitBin.countHit

Leon created OFBIZ-4969:
---------------------------

             Summary: IndexOutOfBoundsException thrown by ServerHitBin.countHit
                 Key: OFBIZ-4969
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4969
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Leon
            Priority: Trivial
             Fix For: SVN trunk


Never happened before, but reacently, this weird exception thrown out when initiated a "json" request.
{quote}
229156224 [http-bio-0.0.0.0-443-exec-6138] ERROR org.ofbiz.webapp.control.ControlServlet  - 
---- runtime exception report --------------------------------------------------
Error in request handler: 
Exception: java.lang.IndexOutOfBoundsException
Message: index: 0
---- stack trace ---------------------------------------------------------------
java.lang.IndexOutOfBoundsException: index: 0
javolution.util.FastList.add(FastList.java:228)
org.ofbiz.webapp.stats.ServerHitBin.countHit(ServerHitBin.java:210)
org.ofbiz.webapp.stats.ServerHitBin.countHit(ServerHitBin.java:84)
org.ofbiz.webapp.stats.ServerHitBin.countEvent(ServerHitBin.java:66)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:409)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
......
{quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OFBIZ-4969) IndexOutOfBoundsException thrown by ServerHitBin.countHit

Posted by "Leon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418322#comment-13418322 ] 

Leon commented on OFBIZ-4969:
-----------------------------

same as this version:
https://fisheye6.atlassian.com/browse/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java?r=1337662

Just replace the line 210.
                
> IndexOutOfBoundsException thrown by ServerHitBin.countHit
> ---------------------------------------------------------
>
>                 Key: OFBIZ-4969
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4969
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4969.patch
>
>
> Never happened before, but reacently, this weird exception thrown out when initiated a "json" request.
> {quote}
> 229156224 [http-bio-0.0.0.0-443-exec-6138] ERROR org.ofbiz.webapp.control.ControlServlet  - 
> ---- runtime exception report --------------------------------------------------
> Error in request handler: 
> Exception: java.lang.IndexOutOfBoundsException
> Message: index: 0
> ---- stack trace ---------------------------------------------------------------
> java.lang.IndexOutOfBoundsException: index: 0
> javolution.util.FastList.add(FastList.java:228)
> org.ofbiz.webapp.stats.ServerHitBin.countHit(ServerHitBin.java:210)
> org.ofbiz.webapp.stats.ServerHitBin.countHit(ServerHitBin.java:84)
> org.ofbiz.webapp.stats.ServerHitBin.countEvent(ServerHitBin.java:66)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:409)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> ......
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (OFBIZ-4969) IndexOutOfBoundsException thrown by ServerHitBin.countHit

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-4969.
----------------------------------

       Resolution: Fixed
    Fix Version/s: Release Branch 12.04
                   Release Branch 11.04
                   Release Branch 10.04
         Assignee: Jacques Le Roux

Thanks Leon,

Your patch is in
trunk r1364046  
R12.04 r1364047
R11.04 r1364048  
R10.04 r1364049  



                
> IndexOutOfBoundsException thrown by ServerHitBin.countHit
> ---------------------------------------------------------
>
>                 Key: OFBIZ-4969
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4969
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk, Release Branch 12.04
>
>         Attachments: OFBIZ-4969.patch
>
>
> Never happened before, but reacently, this weird exception thrown out when initiated a "json" request.
> {quote}
> 229156224 [http-bio-0.0.0.0-443-exec-6138] ERROR org.ofbiz.webapp.control.ControlServlet  - 
> ---- runtime exception report --------------------------------------------------
> Error in request handler: 
> Exception: java.lang.IndexOutOfBoundsException
> Message: index: 0
> ---- stack trace ---------------------------------------------------------------
> java.lang.IndexOutOfBoundsException: index: 0
> javolution.util.FastList.add(FastList.java:228)
> org.ofbiz.webapp.stats.ServerHitBin.countHit(ServerHitBin.java:210)
> org.ofbiz.webapp.stats.ServerHitBin.countHit(ServerHitBin.java:84)
> org.ofbiz.webapp.stats.ServerHitBin.countEvent(ServerHitBin.java:66)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:409)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> ......
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OFBIZ-4969) IndexOutOfBoundsException thrown by ServerHitBin.countHit

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418241#comment-13418241 ] 

Adrian Crum commented on OFBIZ-4969:
------------------------------------

That patch does not appear to be from the trunk.

                
> IndexOutOfBoundsException thrown by ServerHitBin.countHit
> ---------------------------------------------------------
>
>                 Key: OFBIZ-4969
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4969
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4969.patch
>
>
> Never happened before, but reacently, this weird exception thrown out when initiated a "json" request.
> {quote}
> 229156224 [http-bio-0.0.0.0-443-exec-6138] ERROR org.ofbiz.webapp.control.ControlServlet  - 
> ---- runtime exception report --------------------------------------------------
> Error in request handler: 
> Exception: java.lang.IndexOutOfBoundsException
> Message: index: 0
> ---- stack trace ---------------------------------------------------------------
> java.lang.IndexOutOfBoundsException: index: 0
> javolution.util.FastList.add(FastList.java:228)
> org.ofbiz.webapp.stats.ServerHitBin.countHit(ServerHitBin.java:210)
> org.ofbiz.webapp.stats.ServerHitBin.countHit(ServerHitBin.java:84)
> org.ofbiz.webapp.stats.ServerHitBin.countEvent(ServerHitBin.java:66)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:409)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> ......
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (OFBIZ-4969) IndexOutOfBoundsException thrown by ServerHitBin.countHit

Posted by "Leon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leon updated OFBIZ-4969:
------------------------

    Attachment: OFBIZ-4969.patch

"binList.add(0, bin);" : 
IndexOutOfBoundsException - if the index is out of range (index < 0 || index > size())
                
> IndexOutOfBoundsException thrown by ServerHitBin.countHit
> ---------------------------------------------------------
>
>                 Key: OFBIZ-4969
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4969
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4969.patch
>
>
> Never happened before, but reacently, this weird exception thrown out when initiated a "json" request.
> {quote}
> 229156224 [http-bio-0.0.0.0-443-exec-6138] ERROR org.ofbiz.webapp.control.ControlServlet  - 
> ---- runtime exception report --------------------------------------------------
> Error in request handler: 
> Exception: java.lang.IndexOutOfBoundsException
> Message: index: 0
> ---- stack trace ---------------------------------------------------------------
> java.lang.IndexOutOfBoundsException: index: 0
> javolution.util.FastList.add(FastList.java:228)
> org.ofbiz.webapp.stats.ServerHitBin.countHit(ServerHitBin.java:210)
> org.ofbiz.webapp.stats.ServerHitBin.countHit(ServerHitBin.java:84)
> org.ofbiz.webapp.stats.ServerHitBin.countEvent(ServerHitBin.java:66)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:409)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> ......
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira