My Oracle Support Banner

Reordering Tabs at Runtime in a Custom WebCenter Portal Application removes Tabs (Doc ID 1348167.1)

Last updated on MARCH 01, 2019

Applies to:

Oracle WebCenter Portal - Version to [Release 11g]
Information in this document applies to any platform.


When attempting to reorder Tabs at runtime in a custom WebCenter Portal Application, all the tabs except for the first Tab are removed and the following error occurs.


[2011-05-24T22:16:19.575-04:00] [DefaultServer] [ERROR] [] [] [tid: [ACTIVE].ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERID>] [ecid: <ECID>] [APP: WC_3_36777705961_App1#V2.0] [[
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(
at java.util.ArrayList.get(
at oracle.mds.internal.update.ChangeList.optimizeListMoveEvents(
at oracle.mds.internal.update.ChangeList.combineMoveEvent(
at oracle.mds.internal.update.ChangeList.addEvent(
at oracle.mds.core.ChangeHandler.handleChangeEvent(
at oracle.mds.internal.model.event.ChangeEventDispatcherUtil.dispatchEvent

The issue can be reproduced at will with the following steps:

  1. Create a WebCenter Portal Application in Jdeveloper (Custom portal).

  2. Create a page (Page1) based in the globe template.

  3. In the Component Palette, select ADF Faces and drag a Panel Stretch Layout component onto the page.

  4. In the Component Palette, select Oracle Composer.

  5. Add a Page Customizable component to the center facet of the Panel Stretch Layout.

  6. In the Structure window, within the top facet of the Panel Stretch Layout that you added in the previous section, drag a Change Mode Link component.

  7. Drag a Layout Customizable component to the Structure window and drop it inside the Panel Customizable component.

  8. Resize the components to give space to add tabs later (e.g. resize the af:panelStretchLayout, center facet and pe:pageCustomizable components).

  9. Add the page to the page hierarchy by dragging the page to the Root node on pages.xml.

  10. Save the changes.

  11. Run the portal application by running the index.html.

  12. Login as <ADMIN> user.

  13. Navigate to the page (Page1) in the browser.

  14. Enter "Edit" mode of the page.

  15. Select the wrench icon of one of the panels in the page and enable the "Show Tab Actions" display option.

  16. Add a tab to the panel.

  17. Click the edit icon for that panel (the wrench icon).

  18. Add two more tabs to make the total tab count 3 (Tab1, Tab2 and Tab3).

  19. Hit Apply.

  20. Select the tab in the middle (Tab2) of the order and using the down arrows move it to the bottom and hit apply.

  21. Now move Tab3 that is currently in the middle to the bottom and hit apply.

    This step will generate a "java.lang.IndexOutOfBoundsException: Index: 0, Size: 0" error and all the tabs except for the first to be removed.

    It seems to happen when you try to move the tab that was originally last in the list to the bottom.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.