Letractively / tsab

Automatically exported from code.google.com/p/tsab
GNU Affero General Public License v3.0
0 stars 0 forks source link

Search fails when there are more than 50 hits #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
http://bark.phon.ioc.ee/tsab -- search for e.g. "Saksamaa":

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

javax.servlet.ServletException: Failed to process request for path:/search
    ee.ioc.phon.tsab.web.TsabServlet.doGet(TsabServlet.java:105)
    ee.ioc.phon.tsab.web.TsabServlet.doPost(TsabServlet.java:56)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

java.lang.ArrayIndexOutOfBoundsException

In log:

SEVERE: Servlet.service() for servlet TsabServlet threw exception
java.lang.ArrayIndexOutOfBoundsException: 50
        at ee.ioc.phon.tsab.dao.TsabDao.searchTranscriptions(TsabDao.java:390)
        at ee.ioc.phon.tsab.web.TsabServlet.handleSearch(TsabServlet.java:236)
        at ee.ioc.phon.tsab.web.TsabServlet.doGet(TsabServlet.java:68)
        at ee.ioc.phon.tsab.web.TsabServlet.doPost(TsabServlet.java:49)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:662)
Jan 26, 2011 3:16:45 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet TsabServlet threw exception
java.lang.ArrayIndexOutOfBoundsException: 50
        at ee.ioc.phon.tsab.dao.TsabDao.searchTranscriptions(TsabDao.java:427)
        at ee.ioc.phon.tsab.web.TsabServlet.handleSearch(TsabServlet.java:332)
        at ee.ioc.phon.tsab.web.TsabServlet.doGet(TsabServlet.java:75)
        at ee.ioc.phon.tsab.web.TsabServlet.doPost(TsabServlet.java:56)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:662)
Jan 26, 2011 3:19:14 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet TsabServlet threw exception
java.lang.ArrayIndexOutOfBoundsException
Jan 26, 2011 3:19:24 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet TsabServlet threw exception
java.lang.ArrayIndexOutOfBoundsException

Happens with both TSAB 1.0 ans TSAB 1.1

Original issue reported on code.google.com by alu...@gmail.com on 26 Jan 2011 at 1:21

GoogleCodeExporter commented 8 years ago

Original comment by ahti.kit...@gmail.com on 28 Jan 2011 at 12:23