java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1

Liferay Issues | Jose Jimenez | 4 years ago
  1. 0

    If you invoke the Asset Categories Selector with not existent CategoryIds as curCategoryIds, it's thrown an exception and is not renderized. See attached sample portlet that invokes the component with invented categoryIds. Exception: 14:45:21,331 ERROR [http-bio-8080-exec-5][IncludeTag:253] Current URL /en/web/guest/home?p_p_id=86&p_p_lifecycle=0&p_p_state=pop_up&p_p_col_id=column-1&p_p_col_count=5&_86_struts_action=%2Fportlet_configuration%2Fedit_configuration&_86_redirect=%2Fen%2Fweb%2Fguest%2Fhome&_86_returnToFullPageURL=%2Fen%2Fweb%2Fguest%2Fhome&_86_portletResource=101_INSTANCE_35d6KLgasCQJ&_86_resourcePrimKey=10183_LAYOUT_101_INSTANCE_35d6KLgasCQJ&_86_ generates exception: Array index out of range: -1 14:45:21,332 ERROR [http-bio-8080-exec-5][IncludeTag:154] java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1 at com.liferay.portal.kernel.util.StringBundler.setIndex(StringBundler.java:186) at org.apache.jsp.html.taglib.ui.asset_005fcategories_005fselector.page_jsp._getCategoryIdsTitles(page_jsp.java:271) at org.apache.jsp.html.taglib.ui.asset_005fcategories_005fselector.page_jsp._jspService(page_jsp.java:770) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97) at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90) at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54) at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:345) at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:245) at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:86) at org.apache.jsp.html.portlet.asset_005fpublisher.edit_005fquery_005frule_jsp._jspService(edit_005fquery_005frule_jsp.java:981) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97) at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90) at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54) at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:345) at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:245) at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:86)

    Liferay Issues | 4 years ago | Jose Jimenez
    java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
  2. 0

    Java JList remove() method throws an ArrayOutOfBoundsException

    Stack Overflow | 2 years ago | gudthing
    java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1
  3. 0

    [RESOLVED]Websphere Development Studio + WAS + Liferay - Forums | Liferay

    liferay.com | 11 months ago
    java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    UCM Error ::: Error in the cotent info while the home page search is done..

    Oracle Community | 4 years ago | Deepak Pillai
    java.io.IOException: !syServiceRuntime,java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1
  6. 0

    Array out of bounds exception when using Weka LibSVM

    qnundrum.com | 9 months ago
    java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      Array index out of range: -1

      at com.liferay.portal.kernel.util.StringBundler.setIndex()
    2. Liferay Portal Service
      StringBundler.setIndex
      1. com.liferay.portal.kernel.util.StringBundler.setIndex(StringBundler.java:186)
      1 frame
    3. org.apache.jsp
      page_jsp._jspService
      1. org.apache.jsp.html.taglib.ui.asset_005fcategories_005fselector.page_jsp._getCategoryIdsTitles(page_jsp.java:271)
      2. org.apache.jsp.html.taglib.ui.asset_005fcategories_005fselector.page_jsp._jspService(page_jsp.java:770)
      2 frames
    4. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      1 frame
    6. Liferay Portal Impl
      PACLRequestDispatcherWrapper.include
      1. com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
      2. com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
      3. com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
      3 frames
    7. Liferay Util Taglib
      IncludeTag.doEndTag
      1. com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:345)
      2. com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:245)
      3. com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:86)
      3 frames
    8. org.apache.jsp
      edit_005fquery_005frule_jsp._jspService
      1. org.apache.jsp.html.portlet.asset_005fpublisher.edit_005fquery_005frule_jsp._jspService(edit_005fquery_005frule_jsp.java:981)
      1 frame
    9. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      1 frame
    11. Liferay Portal Impl
      PACLRequestDispatcherWrapper.include
      1. com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
      2. com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
      3. com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
      3 frames
    12. Liferay Util Taglib
      IncludeTag.doEndTag
      1. com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:345)
      2. com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:245)
      3. com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:86)
      3 frames