felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arjun Panday (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-780) ArrayIndexOutOfBoundsException in webconsole
Date Thu, 16 Oct 2008 07:14:44 GMT
ArrayIndexOutOfBoundsException in webconsole

                 Key: FELIX-780
                 URL: https://issues.apache.org/jira/browse/FELIX-780
             Project: Felix
          Issue Type: Bug
          Components: Web Console
            Reporter: Arjun Panday

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 );


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message