File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes javax.servlet.ServletException: java.lang.IndexOutOfBoundsException: Index: 6, Size: 0   Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "javax.servlet.ServletException: java.lang.IndexOutOfBoundsException: Index: 6, Size: 0   " Watch "javax.servlet.ServletException: java.lang.IndexOutOfBoundsException: Index: 6, Size: 0   " New topic
Author

javax.servlet.ServletException: java.lang.IndexOutOfBoundsException: Index: 6, Size: 0

r jaya
Greenhorn

Joined: Jun 17, 2011
Posts: 1
Hi i am using jsf 1.2 with netbeans 5.5

i have a list box based on listbox selections i am displaying table
i am facing below error




javax.servlet.ServletException: java.lang.IndexOutOfBoundsException: Index: 6, Size: 0
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:225)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.gm.visualanalytics.common.filters.AuthorizationFilter.doFilter(AuthorizationFilter.java:166)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1


The IndexOutOfBoundsException mentions that you are trying to access element [6] out of an array of size [0]. Do check the indexes you use.
pradeep gamage
Ranch Hand

Joined: Aug 03, 2009
Posts: 85

if you are getting data to list box from database table, i think this problem comes if there no records in table or your table data retrieving method wrong.


Software Engineer(BSC):SCJP 1.5
(Knowledge is power when applied)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.servlet.ServletException: java.lang.IndexOutOfBoundsException: Index: 6, Size: 0
 
Similar Threads
ServletException: Index: 0, Size: 0
ServletException: Index: 0, Size: 0
please help on this error.thanks
Struts error cannot find bean
Some problem with my account