How to handle java.lang.IndexOutOfBoundsException in eclipse environment?

while runnig my java application, iam getting the above exception. But i am unable to find the root location, from where exactly the error is coming (when clicking on that exception in console,a popup window appearing and showing some options).. plz help me how to proceed !!
otherwise tell me where to post this!

avula wrote:
i didn't write LogWorker .java. iam running my application in debug mode. but when it comes to the exception, the control simply goes into the "ArrayList.class" and stopping at the
private void RangeCheck(int index) {
     if (index >= size)
         throw new IndexOutOfBoundsException(
          "Index: "+index+", Size: "+size);
Ok, so that's where the problem occurs. Now you should see the call stack (similar to a stack trace) of the method (usually in the upper left corner). There you can see which method called this method, which called that one ... and so on.
Follow that stack to find out why the problem occured (usually it's the first line that is in code that you wrote).

Similar Messages

  • UWL workitem error - java.lang.IndexOutofBoundsException

    Any alternative solutions/workaround are welcome.
    1. e.g. make the UWL refresh faster.
    2.Current Delta Cache validity period or iview is
    disable for UWL.
    3.We encountered the below UWL bugs @ EP 7.0 SPS9, Patched JTECHF level 11 and JTECHS level 12.
    4.Temporary solution, Users need to re-click on inbox
    5. to refresh the workitem after the error below.
    6. steps:
    You will see two or more workitems in your UWL
    inbox.
    Click on the 1st workitem on top. Process the
    workitem by clicking on
    the 'Recommend' button.
    To go back to the UWL, click on the 'Inbox' tab to
    go back to the inbox.
    Click on the second (the last) workitem in the UWL
    list, and the
    error "IndexOutOfBounds" will appear.
    7. error message:
    Internal Server Error
    java.lang.IndexOutofBoundsException
    Steven

    Hi Abhilash,
    Thanks. The code is working fine. Now, I am facing another problem. In back end certain data (sum_hrs) is stored as String. The values are like 7,00. This 7,00 has be converted into 7.00. How we can do it?
    The code is as below. I tried using replace function. However it is not working.
      IPrivateTimesheetView.ICategoriesElement categoryElement;
      String wbs ="h";
      double d =0;
      String sum_hrs ="";
      for (int i=0 ; i<wdContext.nodeWorklist().size() ; i++){
      wdContext.nodeWorklist().setLeadSelection(i);
      categoryElement = wdContext.createCategoriesElement();
      wbs = wdContext.currentWorklistElement().getReciever_Wbs_Element();
      sum_hrs = wdContext.currentWorklistElement().getSum_Hours();
      sum_hrs = sum_hrs.replace(",",".");
      if( sum_hrs != null && sum_hrs.trim().length()>0)
      d = Double.parseDouble(sum_hrs) ;
      categoryElement.setCategoryText(wbs);
      categoryElement.setSeries1Value(d);
      wdContext.nodeCategories().addElement(categoryElement);
      wbs = "";
    The error message is
       java.lang.NoSuchMethodError: java.lang.String.replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
        at com.sastech.app.models.TimesheetView.onActionFindRecord(TimesheetView.java:253)
        at com.sastech.app.models.wdp.InternalTimesheetView.wdInvokeEventHandler(InternalTimesheetView.java:365)
        at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
        at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
        at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
        ... 26 more
    Can you please help me?
    Regards,
    S

  • HPCM: Calc Script Deployment Error: java.lang.indexoutofboundsexception: In

    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 more

    I 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.

  • Java.lang.IndexOutOfBoundsException when zipping larger files

    i get the error:
    java.lang.IndexOutOfBoundsException
    at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:261)
    at compress.zipEntry(compress.java:126)
    at compress.Create_Zip_File(compress.java:84)
    at Test.backup(Test.java:101)
    at Test.<init>(Test.java:37)
    at Test.main(Test.java:149)
    when zipping a file which is 349MB in size I think this might be because it trying to store the file in the memory and the file is too large.What can I do to not store it in memory or if im wrong can someone point me in the right direction.
    Thanks.
    FileOutputStream zipFile = null;
        ZipOutputStream zipOut = null;
       private void listContents( File Zip_File, File dir, ZipOutputStream out )
           throws Exception
           // Assume that dir is a directory.  List
           // its contents, including the contents of
           // subdirectories at all levels.
           System.out.println("Directory \"" + dir.getName() + "\""); 
           String[] files ;  // The names of the files in the directory.
           files = dir.list();
           for (int i = 0; i < files.length; i++) {
           File f;  // One of the files in the directory.
           f = new File(dir, files);
    if ( f.isDirectory() )
    // Call listContents() recursively to
    // list the contents of the directory, f.
    listContents(Zip_File, f, out);
    else
    // For a regular file, just print the name, files[i].
    zipEntry(Zip_File, f, out);
    } // end listContents()
    public void Create_Zip_File(File Zip_File,File[] To_Be_Zipped_Files,
    boolean Skip_Dirs)
    try
    // Open archive file
    FileOutputStream stream=new FileOutputStream(Zip_File);
    ZipOutputStream out=new ZipOutputStream(stream);
    for (int i=0;i<To_Be_Zipped_Files.length;i++)
    //if (To_Be_Zipped_Files[i]==null
    // || !To_Be_Zipped_Files[i].exists()
    // || (Skip_Dirs ))
    // continue;
    System.out.println("Adding "+To_Be_Zipped_Files[i].getName());
    zipEntry(Zip_File, To_Be_Zipped_Files[i], out);
    out.close();
    stream.close();
    System.out.println("Finished zipping : "
    + Zip_File.getAbsolutePath());
    catch (Exception e)
    e.printStackTrace();
    System.out.println("Error: " + e.getMessage());
    return;
    private void zipEntry(File Zip_File, File file, ZipOutputStream out)
    throws Exception
    if (file.isDirectory())
    listContents(Zip_File, file, out);
    return;
    int BUFFER_SIZE=10240000; // 10 M
    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
    FileInputStream in=
    new FileInputStream(file.getAbsolutePath());
    int len;
    int nRead=in.available();
    while((count = in.read(buffer, 0, BUFFER_SIZE)) != -1)
    out.write(buffer, 0, nRead);
    // System.out.println("loop ");
    in.close();
    out.closeEntry();

    of 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

  • ShowOverview SalarySlip java.lang.IndexOutOfBoundsException:Index:0,size:0

    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 Shah

    Hi 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

  • Java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 when tried to edit..

    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

    Hi,
    Quite new to Java, and have an error which I can't solve!! Not sure how simple it is :)
    Basically, I Run the following code on the server, and can connect two clients to it, the client which was the last to be connected works fine, but any others bring up an error:
    Exception in thread "Thread-0" java.lang.IndexOutOfBoundsException: end
    at java.util.regex.Matcher.region(Matcher.java:895)
    at java.util.Scanner.findPatternInBuffer(Scanner.java:986)
    at java.util.Scanner.findWithinHorizon(Scanner.java:1653)
    at java.util.Scanner.nextLine(Scanner.java:1514)
    at ClientHandler.run(EmailServer.java:144)
    I have commented line 144.
         public void run()
              do
                   String name = input.nextLine();
                   String sendRead = input.nextLine();
                   while (!sendRead.equals("quit"))
                         //Deleted a lot of code here which processes what has been inputted by the client
                   name = input.nextLine();
                   sendRead = input.nextLine();    //LINE 144 where the error occurs
                   try
                        client.close();
                   catch (IOException e)
                        e.printStackTrace();
              }while (input.hasNextLine());
         }

    Hi,
    I would suggest that you put a SOP statement in between line 143 and 144 and print out the value of 'name', input.hasNextLine().toString() . Compare the value of 'name' to the input given by client and check if that is the last line. If so, then you will have to go through your logic to figure out why this is happening. If this is not the case, then post the complete code. We might be able to help you out then.

  • 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>

  • 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,
    John

    of 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

  • How to solve 'java/lang/OutOfMemoryError' when apply weblogic patch 10.3.6.0.10?

    Hi All:  Our platform is IBM AIX power system 64 bit, os level 6.  Oracle Fusion Middleware version is 10.3.6.0.8.  We tried to patch 10.3.6.0.10 on it, but encounter ‘out of memory error’ when  applied WebLogic patch 10.3.6.0.10 on UAT report server.  Currently UAT has 3GB memory (currently is 3G) .
    JVMDUMP006I Processing dump event "systhrow",
    detail "java/lang/OutOfMemoryError
    JVMDUMP032I JVM requested Heap dump using
    '/ora_bin01/u01/oracle/Middleware/utilhd' in response to an event
    JVMDUMP010I Heap dump written to
    /ora_bin01/u01/oracle/Middleware/utils/bsu/heapdump.20150224.152727.6422620.0001.phd
    JVMDUMP032I JVM requested Java dump using
    '/ora_bin01/u01/oracle/Middleware/utils/bsu/javacore.20150224.152727.6422620.0002.txt'
    in response to an event
    JVMDUMP010I Java dump written to
    /ora_bin01/u01/oracle/Middleware/utils/bsu/javacore.20150224.152727.6422620.0002.txt
    JVMDUMP032I JVM requested Snap dump using
    '/ora_bin01/u01/oracle/Middleware/utils/bsu/Snap.20150224.152727.6422620.0003.trc'
    in response to an event
    JVMDUMP006I Processing dump event "systhrow",
    detail "java/lang/OutOfMemoryError" - please wait.
    JVMDUMP010I Snap dump written to
    /ora_bin01/u01/oracle/Middleware/utils/bsu/Snap.20150224.152727.6422620.0003.trc
    JVMDUMP013I Processed dump event "systhrow",
    detail "java/lang/OutOfMemoryError".
    JVMDUMP032I JVM requested Heap dump using
    '/ora_bin01/u01/oracle/Middleware/utils/bsu/heapdump.20150224.152735.6422620.0004.phd'
    in response to an event
    JVMDUMP010I Heap dump written to
    /ora_bin01/u01/oracle/Middleware/utils/bsu/heapdump.20150224.152735.6422620.0004.phd
    JVMDUMP032I JVM requested Java dump using
    '/ora_bin01/u01/oracle/Middleware/utils/bsu/javacore.20150224.152735.6422620.0005.txt'
    in response to an event
    JVMDUMP010I Java dump written to
    /ora_bin01/u01/oracle/Middleware/utils/bsu/javacore.20150224.152735.6422620.0005.txt
    JVMDUMP032I JVM requested Snap dump using
    '/ora_bin01/u01/oracle/Middleware/utils/bsu/Snap.20150224.152735.6422620.0006.trc'
    in response to an event
    Exception in thread "main"
    java.lang.OutOfMemoryError at
    java.lang.StringBuffer.ensureCapacityImpl(StringBuffer.java:335)
    at
    java.lang.StringBuffer.append(StringBuffer.java:201)
    at
    java.lang.Class.throwNoSuchMethodException(Class.java:278)
    at
    java.lang.Class.getMethod(Class.java:845)
    at
    com.bea.cie.common.dao.xbean.XBeanDataHandler.isValueSet(XBeanDataHandler.java:958)
    at
    com.bea.cie.common.dao.xbean.XBeanDataHandler.getValueFromObject(XBeanDataHandler.java:589)
    at
    com.bea.cie.common.dao.xbean.XBeanDataHandler.getSimpleValue(XBeanDataHandler.java:431)
    at
    com.bea.plateng.patch.dao.cat.PatchDependency.getRule(PatchDependency.java:48)
    at
    com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getInvalidatedPatchMap(PatchCatalogHelper.java:1625)
    at com.bea.plateng.patch.PatchSystem.updatePatchCatalog(PatchSystem.java:436)
    at
    com.bea.plateng.patch.PatchSystem.refresh(PatchSystem.java:130)
    at
    com.bea.plateng.patch.PatchSystem.setCacheDir(PatchSystem.java:201)
    at
    com.bea.plateng.patch.Patch.main(Patch.java:281)
    JVMDUMP010I Snap dump written to
    /ora_bin01/u01/oracle/Middleware/utils/bsu/Snap.20150224.152735.6422620.0006.trc
    JVMDUMP013I Processed dump event "systhrow",
    detail "java/lang/OutOfMemoryError".
    Exception in thread "Attach API wait loop"
    java.lang.OutOfMemoryError
       at
    com.ibm.tools.attach.javaSE.CommonDirectory.waitSemaphore(CommonDirectory.java:222)
    at
    com.ibm.tools.attach.javaSE.AttachHandler$WaitLoop.waitForNotification(AttachHandler.java:329)
    at com.ibm.tools.attach.javaSE.AttachHandler$WaitLoop.run(AttachHandler.java:396)
    bsu.sh -install -patch_download_dir=/ora_bin01/u01/oracle/Middleware/utils/bsu/cache_dir -patchlist=12UV -prod_dir=/ora_bin01/u01/oracle/Middleware/wlserver_10.3
    we followed the README.txt instructions, and stop/start weblogic service before/after apply patch. Can anyone suggest a solution or Doc ID for helping us?
    thank you very much!

    Solutions: Bounce the applications and check the arguments if you can increase it.  It is due to memory issue
    You can set these values in CommEnv.sh (.cmd for windows) file located in the weblogic_home/common/bin directory.
    This gets applied to all the domains under that wls home.
    If you want to make the changes to specific domain then edit the SetDomainEnv.sh file located under the domain/bin directory.
    How to solve java.lang.OutOfMemoryError: Java heap space
    solutions:  export JVM_ARGS="-Xms1024m -Xmx1024m"
    How to solve java.lang.OutOfMemoryError: PermGen space
    solution : export JVM_ARGS="-XX:PermSize=64M -XX:MaxPermSize=256m"

  • Portal error : java.lang.IndexOutOfBoundsException: Index: 2, Size: 2

    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.
    Prasad

    Hi,
    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 while using lexicals

    Hi,
    I am trying to use a dynamic where clause with the described mechanism.
    - all report parameters defined as global variables in default package
    - whereclause defined as global variable in default package
    - defaultPackage defined in DataTemplate
    - before Report Trigger defined as function in default package which sets the where clause
    - Trigger executed in datatemplate (this works fine so far unless I try to use the &whereclause in a sqlStatement)
    When I try to use the whereclause variable from the default package in one of my statements in the data template I get an Error like
    " The report cannot be rendered because of an error, please contact the administrator. "
    in the UI and on the console log I get
    [070606_031501966][][EXCEPTION] java.lang.IndexOutOfBoundsException: Index: 0, S
    ize: 0
    at com.sun.java.util.collections.ArrayList.RangeCheck(ArrayList.java:492
    at com.sun.java.util.collections.ArrayList.get(ArrayList.java:306)
    at oracle.apps.xdo.dataengine.DataTemplateParser.getParentDataSource(Dat
    aTemplateParser.java:1449)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeDefaultGroup(XMLPGEN.java:298
    at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:2
    64)
    at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:251)
    at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:192)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:229)
    at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.ja
    va:336)
    at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.callDataP
    rocessor(AdvancedQueryBoundValue11.java:126)
    at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.getValue(
    AdvancedQueryBoundValue11.java:79)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportC
    ontextImplV11.java:335)
    at oracle.apps.xdo.servlet.XDOProcessor.process(XDOProcessor.java:235)
    at oracle.apps.xdo.servlet.ReportImpl.renderBody(ReportImpl.java:227)
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBody(ReportImpl.java:4
    6)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:319)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:223)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:159)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterC
    hain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilt
    er.java:52)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:629)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:376)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequ
    estHandler.java:870)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:451)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpReque
    stHandler.java:218)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:119)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:112)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSo
    cketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Any Ideas??

    I solved the issue ...
    since I am using the standalone version of XML Publisher with the UIs the declaration of the lexical in the dataTeamplate was the problem.
    If I define
              <sqlStatement name="Unterlagen"><![CDATA[select id,bezeichnung from AJS_UNTERL_CHECKLISTE where ANFORDERER = 1 and [b]&amp;whereclause ]]>
    instead of
              <sqlStatement name="Unterlagen"><![CDATA[select id,bezeichnung from AJS_UNTERL_CHECKLISTE where ANFORDERER = 1 and [b]&whereclause ]]>
    it works fine!
    Regards,
    Lars

  • How to configure Java Card 3 in eclipse ?

    How to configure Java Card 3 in eclipse ? I have already configured Java Card2.2.2 by following
    1) http://eclipse-jcde.sourceforge.net/user-guide.htm
    And
    2)http://eclipse-jcde.sourceforge.net/
    the above two links.B ut for Java Card 3 when i am configuring window->preference->Java Card Home I am getting error as "Converter.jar" not found. i checked the lib and i didnt found these jar. I copied 2.2.2 converter.jar , then that jar file not matching. So please tell me how to configure this.
    Thanks in advance
    Anoop Michael

    there are many changes between 2.2.2 and 3.0.1. Folders and files are not same. EclipseJCDE is not going to work with JCDk3.0.1. Some one needs to update that plugin :).
    There is a NetBeans plugin in progress and you can try downloading latest NetBeans 6.7.1
    Some intro about the plugin can be found here http://weblogs.java.net/blog/2009/05/10/sneak-preview-java-card-tools-netbeans-67
    You can try Netbeans 6.8 nightly builds for latest changes, but it may be a while until the plugin is stable.
    -Anki.N

  • 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 you

    Hi,
    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 Bhatia

    Can 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?

Maybe you are looking for