Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-780

ArrayIndexOutOfBoundsException in webconsole

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • webconsole-1.2.2
    • Web Console
    • None

    Description

      I just bumped into this exception in the webconsole module:

      java.lang.ArrayIndexOutOfBoundsException: 1
      at org.apache.felix.webconsole.internal.compendium.ComponentConfigurationPrinter.printConfiguration(ComponentConfigurationPrinter.java:81)

      And indeed, looking at the code in the trunk, it looks like a typo.. (should be "Components components = components[i];")

      // order components by id
      TreeMap componentMap = new TreeMap();
      for ( int i = 0; i < components.length; i++ )

      { Component component = components[1]; componentMap.put( new Long( component.getId() ), component ); }

      thanks,
      Arjun

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            apanday Arjun Panday
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: