on 11-07-2006 6:17 AM
Hi All,
I am trying to create a MI Application. For the header values i m getting the display in jsp page but while i click on header value to display the item value page i m getting the following error and unable to resolve the same.
Error: 500
Location: /Z_FSM_CE/jsp/showactionstaken.jsp
Internal Servlet Error:
javax.servlet.ServletException: 1 >= 0
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461)
at jsp._0002fjsp_0002fshowactionstaken_0002ejspshowactionstaken_jsp_20._jspService(_0002fjsp_0002fshowactionstaken_0002ejspshowactionstaken_jsp_20.java:168)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:222)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:162)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.dispatchRequest(AbstractMEHttpServlet.java:907)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe(AbstractMEHttpServlet.java:348)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:313)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:534)
Root cause:
java.lang.ArrayIndexOutOfBoundsException: 1 >= 0
at java.util.Vector.elementAt(Vector.java:431)
at jsp._0002fjsp_0002fshowactionstaken_0002ejspshowactionstaken_jsp_20._jspService(_0002fjsp_0002fshowactionstaken_0002ejspshowactionstaken_jsp_20.java:90)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:222)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:162)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.dispatchRequest(AbstractMEHttpServlet.java:907)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe(AbstractMEHttpServlet.java:348)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:313)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:534)
Please help me for the same.
I am giving the code what i have used please let me know if there is some problem in code.
public Vector getActions(String order)
{
equipmentStatusBean esBean = new equipmentStatusBean();
String s = order;
descriptorFacade = SmartSyncRuntime.getInstance().getSyncBoDescriptorFacade();
SyncBoDescriptor sbd = descriptorFacade.getSyncBoDescriptor("Z_CE");
//String str = sbd.getSyncBoName();
dataFacade = SmartSyncRuntime.getInstance().getSyncBoDataFacade();
SyncBo syncbo = null;
Condition cond = null;
MeIterator iteratorRows = null;
RelationalOperatorType filterOperator;
filterOperator = RelationalOperatorType.EQUALS;
Row row1 = null;
SmartSyncQueryFactory queryFactory = SmartSyncRuntime.getInstance().getQueryFactory();
RowDescriptor rd = sbd.getRowDescriptor("010");
FieldDescriptor fd1 = rd.getFieldDescriptor("aa");
FieldDescriptor fd2 = rd.getFieldDescriptor("order");
FieldDescriptor fd3 = rd.getFieldDescriptor("ACT");
FieldDescriptor fd4 = rd.getFieldDescriptor("ACTT");
FieldDescriptor fd5 = rd.getFieldDescriptor("AUT");
FieldDescriptor fd6 = rd.getFieldDescriptor("AC");
cond = queryFactory.createCondition(fd2,filterOperator,filter);
try
{
Query syncBoQuery = queryFactory.createQuery(sbd,cond);
iteratorRows = dataFacade.getRows(syncBoQuery).iterator();
}
catch(Exception e)
{
}
Vector rowData1 = new Vector();
try
{
while(iteratorRows.hasNext())
{
// String EVENT_SELECTEDPROD = null;
row1 = (Row)iteratorRows.next();
rowData1.clear();
Field f1 = row1.getField(fd1);
Field f2 = row1.getField(fd2);
Field f3 = row1.getField(fd3);
Field f4 = row1.getField(fd4);
Field f5 = row1.getField(fd5);
Field f6 = row1.getField(fd6);
esBean.setaa
(f1.getValue().toString());
esBean.setorder(f2.getValue().toString());
esBean.setACT
(f3.getValue().toString());
esBean.setACTT(f4.getValue().toString());
esBean.setAUT
(f5.getValue().toString());
esBean.setAC
(f6.getValue().toString());
String syncBoName = "Z_CE";
rowData1.addElement(esBean.getaa());
rowData1.addElement(esBean.getorder());
rowData1.addElement(esBean.getACT());
rowData1.addElement(esBean.getACTT());
rowData1.addElement(esBean.AUT());
rowData1.addElement(esBean.getAC());
actions.addElement(rowData1.clone());
}
}
catch(Exception e)
{
}
return actions;
}
Thanks in advance
Regards
Devendra Phate
Hello Devendra,
If you could provide us with your showactionstaken.jsp
code then may be we could tell you the problem.
regards,
Abhijit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello deven
from the exception logs, it seems that you are trying to
get an element of index 1 from a vector instance that has
no element data.
> java.lang.ArrayIndexOutOfBoundsException: 1 >= 0
try checking your current index with the vector's size to
avoid this error.
in your jsp, check the line which invoke the
vector.elementAt(index)
regards
jo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jo,
Thanks for the reply.can u please let me know what can be the reason since vector is not returning any value.
I have pasted my code in the previous post along with error log.First i created a smart sync application in that i was getting both header as well as item values.
can u please help me out for the same.
Thanks
Devendra Phate.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.