JSF 2.0 restoreView- java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
I am having problems using a custom view handler with my JSF 2.0 web application. The custom view handler worked fine under JSF 1.2, but now when the application is configured to use this handler, I get an IndexOutOfBoundsException as soon as I click a link or a button in my application. I have also tried the view handler in an simple example web application from the Core JSF book that works without the handler, but stops working as soon as I add the custom view handler.
I am using:
Tomcat 7.0.10
Mojarra 2.0.4 FCS
Here is the exception:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:165)
at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1432)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1207)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1222)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1222)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1222)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1222)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1222)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1222)
at javax.faces.component.UIViewRoot.processRestoreState(UIViewRoot.java:872)
at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:201)
at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:123)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:448)
at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:148)
at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:288)
at myapp.CustomLocaleViewHandler.restoreView(CustomLocaleViewHandler.java:76)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:187)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:111)
Here is the view handler configuration in faces-config.xml:
<application>
<message-bundle>myapp.bundles.Resources</message-bundle>
<locale-config>
<default-locale>en</default-locale>
<supported-locale>fr</supported-locale>
</locale-config>
<view-handler>myapp.CustomLocaleViewHandler</view-handler>
</application>
</faces-config>
You can swith off partial state saving. It is not reccomended(partial state saving have better performance, it not update every request all JSF model), but it solve problem.
<context-param>
<param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
<param-value>false</param-value>
</context-param>
Similar Messages
-
Hi Experts,
Through protal I am changing Other Bank details (IT0009 subtype 0001) for US employee.
I get the error java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 when I am edditing the other bank details.
Please help me out in this.
PrasadHi,
java.lang.IndexOutOfBoundsException occurs when the runtime environment tries to access the index of an array which doesn't exist. (Index 2 = third entry, you only seem to have 2 entries though).
Are you certain, the Pernr's Infotype is maintained correctly?
Could you post the entire error log from NWA so we can see the JAVA Stack? Maybe the error is nested.
Check Notes 1356222 and 1359671 as well. They might solve your error right away.
best regards, Lukas
Edited by: Lukas Weigelt on Jul 14, 2011 9:36 AM -
Java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
We have upgraded from Crystal 10 to 2008. We are able to run all reports from the admin console but when trying to connect and run from a java based application to the crystal server, we encounter the following error:
[0000TvbEgjI3QkQAR-cNXc83c5x:-1]2010-06-28 17:13:23,797] [AUDIT]: - Reports - Attempt to schedule - [EXPORT] - Activity_Tag_Change_DB:_E0002046A_PLDB:_LUKETEST_SS:_NEW-V#1-5/06_ACT_RPT-5/6/10 8:37 AM_to_SS:_NEW-V#1-6/26_ACT_RPT-6/26/10 1:17 PM_Run_On:[6-28-2010][17:13:23.797] -- Failed -- Index: 0, Size: 0
[0000TvbEgjI3QkQAR-cNXc83c5x:-1]2010-06-28 17:13:24,579] [ERROR]: - Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at java.util.ArrayList.RangeCheck(ArrayList.java)
at java.util.ArrayList.get(ArrayList.java)
at com.crystaldecisions.sdk.occa.infostore.internal.InfoObjects.get(InfoObjects.java:530)
at com.acnielsen.arch.crystalreports.ReportManager.scheduleReport(ReportManager.java)
at com.acnielsen.espec.web.action.activity.ReportParametersAction.export(ReportParametersAction.java:697)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
The query value is: Select SI_PROCESSINFO.SI_PROMPTS From CI_INFOOBJECTS Where SI_NAME = 'Export_Activity_Tag_Change.rpt' AND SI_PARENT_FOLDER IN (1109,1928,2383) AND SI_INSTANCE = 0
The code that generates this error is:
IInfoObjects infoObjects = infoStore.query(query);
IInfoObject infoObject = (IInfoObject) infoObjects.get(0);
Com.crystaldecisions.sdk.occa.infostore.iinfoobject is the class that I'm calling.
Any help would be greatly appreciated.
Thank youHi,
We need more information from your side to understand this issue better :
First where from are you trying to connect is it client machine or server machine ?
What is the Application server you are using.. ?
On which server you are trying to configure ?
Before upgrade was it working perfectly ?
Thanks
Shakeel -
Java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
Hi,
I am using Jdeveloper 11.1.1.5.
When we are trying to create a new row in the table through EO, we have overrided the default Create method in EOImpl.
protected void create(AttributeList attributeList) {
DBTransaction trans = getDBTransaction();
SequenceImpl seq = new SequenceImpl("CONTACT_INFO_ID_Q", trans);
DBSequence dbSeq = new DBSequence(seq.getSequenceNumber());
System.out.println("dbseq is "+dbSeq);
this.setContactInformationId(new Long(dbSeq.toString()));
super.create(attributeList);
We are getting Index 1 size 1 error at the point where we are trying to set the key attribute (ContactInformationId) for this EO. We are setting this key attribute through a sequence. Detailed log shows:
[2012-08-25T09:11:17.933-04:00] [DefaultServer] [TRACE:32] [] [] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 284928cbeaee1f83:4f86d3a2:1395de4e125:-8000-0000000000000044,0] [SRC_CLASS: oracle.adf.model.binding.DCBindingContainer] [APP: Prism#V2.0] [SRC_METHOD: reportException] [23459] oracle.jbo.RowCreateException: JBO-25017: New entity row of type PhoneXEO cannot be created.[[
at oracle.jbo.server.ViewRowStorage.processRowCreateExceptions(ViewRowStorage.java:3872)
at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:1155)
at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:472)
at org.adr.prism.account.model.view.AccountPhoneVORowImpl.create(AccountPhoneVORowImpl.java:1264)
at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:489)
at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:5568)
at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1937)
at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2458)
at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2499)
at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:2480)
at oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:10857)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1364)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2149)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:185)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:313)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at oracle.jbo.server.QueryCollection.getRowInitValues(QueryCollection.java:1859)
at oracle.jbo.server.ViewObjectImpl.createRowWithEntity(ViewObjectImpl.java:15132)
at oracle.jbo.server.ViewObjectImpl.createNewRowInQC(ViewObjectImpl.java:15467)
at oracle.jbo.server.ViewObjectImpl.afterRowUpdate(ViewObjectImpl.java:13573)
at oracle.jbo.server.ViewObjectImpl.sourceChanged(ViewObjectImpl.java:13839)
at oracle.jbo.server.EntityCache.sendEvent(EntityCache.java:1498)
at oracle.jbo.server.EntityCache.deliverEntityEvent(EntityCache.java:1514)
at oracle.jbo.server.EntityCache.notifyColumnAndBlgChange(EntityCache.java:1570)
at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:7384)
at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:7365)
at oracle.jbo.server.EntityImpl.notifyAttributesAndBlgChanged(EntityImpl.java:7374)
at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:3642)
at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:3203)
at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1971)
at org.adr.prism.contact.model.entity.ContactInformationEOImpl.setContactInformationId(ContactInformationEOImpl.java:267)
* at org.adr.prism.contact.model.entity.ContactInformationEOImpl.create(ContactInformationEOImpl.java:521)*
* *at oracle.jbo.server.EntityImpl.callCreate(EntityImpl.java:1163)
at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:1151)
... 81 more
## Detail 0 ##
Thanks,
Ankit BhatiaCan someone suggest me what can be done to fix this issue.
When we are trying to create a new row in the table through EO, we have overrided the default Create method in EOImpl. We are getting this error only in a particular scenario. It is working fine for the other VOs created for this EO and also working for a particular scenario in the same VO.
I would also like to mention if "Application module pooling" is turned off in AM configurations, it is working fine although it is bringing new errors. So turning this configuration off will not help and is also not an ideal solution.
Will creating a seperate VO for this scenario be any help? -
Hi all,
I'm sending this thread on behalf my colleague Vishnupriya.
He is facing an issue when clicking on Leave Request link it throws an exception:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
They have recently installed Business Package for XSS.
Please kindly help this colleague.
Best regards,
Márcio LeoniThis occurs due to misconfiguration, please check:
Please can you check if the Pernr used
has correct information like It0105 etc, also the rules are
correctly defined.
For the Employee, First of all check the Period Work Schedule also
the Quotas of the pernr needs to maintained in 2006, Please do
this customisation and it should solve the issue.
Maintain the absence quota in the IT2006 and then try once.
Also make sure that the Settings in Webmo and PTARQ etc all is done
The pernr belongs to the a Rule and have absences defined for him. -
Hi All,
I am getting error java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
when i am accessing the salary slip link show overview.
Where i am missing. Is this related to some Configurations in R/3.
If yes then where to apply this setting and what parameters to set.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:512)
at java.util.ArrayList.get(ArrayList.java:329)
at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.getElement(Node.java:2034)
at com.sap.tc.webdynpro.progmodel.context.Node$MappedElementList.getElement(Node.java:2399)
at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:621)
at com.sap.tc.webdynpro.progmodel.context.Node.setLeadSelection(Node.java:753)
at com.sap.xss.hr.rem2.selection.SelectionView.wdDoModifyView(SelectionView.java:141)
at com.sap.xss.hr.rem2.selection.wdp.InternalSelectionView.wdDoModifyView(InternalSelectionView.java:433)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:337)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:481)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:488)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)
at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1299)
at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:326)
at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:868)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Please Help me asap.
Thanks & Regards,
Dhruv ShahHi Suresh,
I have same type of problem.I have checked ex_filtered_rgdir itab in debug mode. I have only one enty. but still iam getting Java exception error. Please let me know do i need to do any thing.
see my code below under following method: IF_EX_XSS_REM_INTERFACE~PROVIDE_FILTERED_RGDIR
loop AT IM_IN_RGDIR into wa_rgdir .
if wa_rgdir-PAYDT le sy-datum.
append wa_RGDIR TO EX_FILTERED_RGDIR.
endif.
ENDLOOP.
But when i click on Show Overview Link then below error is coming.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:507)
at java.util.ArrayList.get(ArrayList.java:324)
at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.getElement(Node.java:2034)
at com.sap.tc.webdynpro.progmodel.context.Node$MappedElementList.getElement(Node.java:2399)
at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:621)
at com.sap.tc.webdynpro.progmodel.context.Node.setLeadSelection(Node.java:753)
at com.sap.xss.hr.rem2.selection.SelectionView.wdDoModifyView(SelectionView.java:141)
at com.sap.xss.hr.rem2.selection.wdp.InternalSelectionView.wdDoModifyView(InternalSelectionView.java:433)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:337)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:481)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:488)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)
at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1299)
at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:326)
at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:868)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Thanks and Regards,
Raju
Edited by: Vamsi K on May 20, 2009 10:20 AM
Edited by: Vamsi K on May 20, 2009 10:21 AM
Edited by: Vamsi K on May 20, 2009 10:22 AM -
Has anybody ever experience this type of exception?
Would really appreciate some comments.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.LinkedList.entry(Unknown Source)
at java.util.LinkedList.get(Unknown Source)
at sun.net.www.protocol.http.PathMap.get(Unknown Source)
at sun.net.www.protocol.http.AuthenticationInfo.getAuth(Unknown Source)
at sun.net.www.protocol.http.AuthenticationInfo.getServerAuth(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getServerAuthentication(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getHeaderField(Unknown Source)
at java.net.URLConnection.getHeaderFieldInt(Unknown Source)
at java.net.URLConnection.getContentLength(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(Unknown Source)The linked list function is being called internally, I have
no control over that. I get this exception when I call
sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength().
Thanks for the reply. -
Hi Experts,
I am getting dump when I tried to edit or delete the family dependents details in my case only for china employee.I can add family dependents but when I tried to edit or delete the added record from the overview screen it is throwing the dump.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:539)
at java.util.ArrayList.get(ArrayList.java:356)
at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.getElement(Node.java:2034)
at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:621)
at com.sap.tc.webdynpro.progmodel.context.Node.getElementAt(Node.java:628)
... 64 more
See full exception chain for details.
Any one please help me out in solving this issue.
Thanks in advance,
Harish.K.Hi Harish
Please check the SP landscape matches the recommendations in the following link
https://www.sdn.sap.com/irj/scn/wiki?path=/display/profile/marcio+leoni
--->HOW TO GET RID OF SP STACK MISMATCH ISSUES
Best wishes
Stuart -
Java.lang.IndexOutOfBoundsException Index:244 Size:244
Hi!
I m working on an application built entirely on servlet technology. My problem is that I m getting a "java.lang.IndexOutOfBoundsException Index:244 Size:244" . when I m running my servlet. But the strange part of this exception is that my servlet is running perfectly alright when the size of ArrayList is small but gives the above exception when its size is large.
Plz! help me outYou realize that the indexes in Java generally go from 0 to size-1, right? Other than that, I don't know what kind of help you are expecting.
-
Java.lang.IndexOutOfBoundsException: Index: 19, Size: 19
I am not able to remove this exception.Please help me.
Thanx in advanceArray indexes start at 0. So an array size of 19, means the last index is 18. If you want a final index of 19, then you need to create an array of size 20.
-
Java.lang.IndexOutOfBoundsException during InvokeApplicationPhase
Hello,
I'm developing JSF 1.1_01 application and during page submit have this stack trace:
[04.12.15 10.26.43:875 EET] 554fd8f WebGroup E SRVE0026E: [Servlet Error]-[Index: 0, Size: 0]: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java(Inlined Compiled Code))
at java.util.ArrayList.remove(ArrayList.java(Compiled Code))
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:271)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:61)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1006)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:589)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:209)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:121)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:280)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:615)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Anything wrong with application configuration?
Thank you,
AndrejusDid you check if you are triggering multiple threads to execute at the same time ?
-
I am trying to deploy the allocation calc scripts in HPCM and ran into the indexoutofboundsexception. Does anyone know how I resolve this?
I have successfully deployed the calculation database. This is version 11.1.1.2.
Cheers,
Below is the relevant section of the hpm.log file.
2009-04-07 21:02:06,645 [Thread-16] ERROR com.hyperion.profitability.business.integration.ces.jobs.ProcessCalcscriptsJob: Error processing calc scripts
com.hyperion.profitability.common.ProfitabilityRuntimeException: java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
at com.hyperion.profitability.data.dao.AllocationDAOImpl.loadAllocations(AllocationDAOImpl.java:129)
at com.hyperion.profitability.business.mdb.deployment.calcscriptgeneration.CalcScriptGenerationHelper.getInterCellLevelAllocations(CalcScriptGenerationHelper.java:145)
at com.hyperion.profitability.business.mdb.deployment.calcscriptgeneration.CalculationScriptGenerator.generateCalcScripts(CalculationScriptGenerator.java:397)
at com.hyperion.profitability.business.service.GenerateCalcScript.generateCalcScript(GenerateCalcScript.java:49)
at com.hyperion.profitability.business.service.ServiceFacade.calcScriptGenerate(ServiceFacade.java:724)
at com.hyperion.profitability.business.integration.ces.jobs.ProcessCalcscriptsJob.start(ProcessCalcscriptsJob.java:47)
at com.hyperion.profitability.business.integration.ces.TaskHandler$AgentThread.run(TaskHandler.java:128)
Caused by: java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at com.hyperion.profitability.data.dao.AllocationDAOImpl.extractAllocationDriver(AllocationDAOImpl.java:403)
at com.hyperion.profitability.data.dao.AllocationDAOImpl.extractAllocationDriver(AllocationDAOImpl.java:352)
at com.hyperion.profitability.data.dao.AllocationDAOImpl.loadAllocations(AllocationDAOImpl.java:91)
... 6 moreI am working on first profitability application creation. I have performed the following steps till now:
1. Creating Dimension Library for the Profitability Application. (I haven't put any details in the AllocationType Dimension)
2. Validate and Deploy the Profitability Application.
3. Created Staging Table (HPM_STG_STAGE, HPM_STG_ASSIGNMENT...) in Database. These are blank staging tables.
My question is:
1. How the data load happens in the Profitability Application.
2. After creating stages, does it get populated when you create stages? How are you going to populate the same.
3. Are you able to open the application in Essbase? I can see this through Shared Services but am unable to open the same in Essbase.
Let me know if you have done things differently than this. -
Recon error - java.lang.IndexOutOfBoundsException
While running recon for an AIX server in SUn IDM 8.1, I am getting the following error:
Error iterating accounts for resource sys1:
java.lang.IndexOutOfBoundsException: Index: 229, Size: 229
and the recon goes into Failed status. What could be the reason for this error?hi,
i thnik u need to check Resource file Attribute list index number or otherwise u chk ur Resource Adapter. -
Avoid java.lang.IndexOutOfBoundsException error
This is the error message:
java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
at at java.util.ArrayList.RangeCheck(ArrayList.java:539)
at at java.util.ArrayList.get(ArrayList.java:356)
Below line of coding is the place where system encounter the error
node.setLeadSelection(j); //this is the place causing the error
if (!"".equals(wdContext.getCurrentElement()
.getAttributeValue((String) contextInputFields.get(c))))
allFieldsEmpty = false;
} else {
wdThis.raiseNoAnswersMaintained();
// if all answer fields are empty then set the question lead selection from 1...n
if (allFieldsEmpty) {
// set lead selection of dropdown listboxes from 1...n
for (int j = 0; j < contextDropDowns.size(); j++) {
IWDNode node =
wdContext.getChildNode(
(String) contextDropDowns.elementAt(j),
0);
node.setLeadSelection(j); //this is the place causing the error
for (int j = 0; j < contextDropDowns.size(); j++) {
IWDNode node =
wdContext.getChildNode(
(String) contextDropDowns.elementAt(j) + "Overview",
0);
node.setLeadSelection(j);
What should i do to avoid this error?
There is quite similar thread reported, but no solution given in the thread.
Re: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Appreciate any comment/suggestion.
regards,
Prakesh.Hi prakash,
I am not getting what you are trying to do for getting the Node.
Could you please explain what is
contextDropDowns
you should directly get the node using wdcontext.node<node name>.
I think the method that you are trying is not giving the correct node to you and so index is going out of range.
Reagrds,
Sarbjeet. -
Mxmlc java.lang.IndexOutOfBoundsException
Hi,
I'm trying to use the command line compiler for a set of
standalone
apps. It used to work fine, but now I'm getting the following
error
when I start up my make file:
mxmlc -show-unused-type-selector-warnings=false -output
bin/AddEditReviseProjectRequest.swf
AddEditReviseProjectRequest.mxml
Loading configuration file C:\Program Files\Adobe\Flex
Builder 2\Flex
SDK 2\frameworks\flex-config.xml
Error: Index: 14, Size: 5
java.lang.IndexOutOfBoundsException: Index: 14, Size: 5
at java.util.ArrayList.RangeCheck(ArrayList.java:546)
at java.util.ArrayList.get(ArrayList.java:321)
Has anyone see this before or know what is causing it? It
used to
compile just fine. I restructured some code, but I'm not
doing
anything new.
Any help or ideas would be greatly appreciated.
Thanks,
Johnof course!!Thanks problem solved:DI don't see how - it is very very wrong!
private void zipEntry(File Zip_File, File file, ZipOutputStream out)
throws Exception
if (file.isDirectory())
listContents(Zip_File, file, out);
return;
int BUFFER_SIZE=4094;
byte buffer[]=new byte[BUFFER_SIZE];
// Add archive entry
ZipEntry zipAdd=new ZipEntry(file.getAbsolutePath());
//zipAdd.setTime(file.lastModified());
out.putNextEntry(zipAdd);
// Read input & write to output
InputStream in= new BufferedInputStream( new FileInputStream(file.getAbsolutePath()), BUFFER_SIZE);
for(int count = 0; (count = in.read(buffer)) != -1;)
out.write(buffer, 0, count);
in.close();
out.closeEntry();
}Message was edited by:
sabre150
Maybe you are looking for
-
Regarding Header(top-of-page) in ALV Report
Dear All, I am displaying name and address of company on the top of alv report and after that alv grid is displaying. e.g. 'XYZ' LTD. ADDRESS1,PINCODE1. ACCOUNTING DOC.NO. DOC TYPE G/L ACCT. AMOUNT 123456 DD 6353 444400 123457 DD 6334 455500 Issue :
-
Displaying page number in ALV grid display
Hi, Is it possible to display page number in an ALV grid display? If yes, how? I tried it in top of page event, but it didnt work. Harmeet.
-
Functional Analysis Required.
I have a requirement in which I need to write a functional specification for a program. I need to fetch the payer data which is having KNA1-ZZDTCESS value populated(Payer which are having this field value blank no need to fetch those payer).ZZDTCESS
-
Trouble using Yahoo mail accounts on iPad
Hello, I posted to another community as well, and we are working on this with no luck so far: I have yahoo based e-mail accounts. I have them set to keep e-mails on server until I manually delete. This works on my computer and iPhone, but not on th
-
Error when installing AddOn in 64-bit server
hi, when i install on a 64-bit server i get this message: 'unable to cast com object of type 'system.__comobject' to interface type 'SAPbobscom.Company'. This operation failed because the QueryInterface call on the COM companent for the interface wit