You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Arjun Panday (JIRA)" <ji...@apache.org> on 2008/10/16 09:14:44 UTC

[jira] Created: (FELIX-780) ArrayIndexOutOfBoundsException in webconsole

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


thanks,
Arjun 

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


[jira] Assigned: (FELIX-780) ArrayIndexOutOfBoundsException in webconsole

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reassigned FELIX-780:
---------------------------------------

    Assignee: Felix Meschberger

> 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
>            Assignee: Felix Meschberger
>
> 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 

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


[jira] Work started: (FELIX-780) ArrayIndexOutOfBoundsException in webconsole

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on FELIX-780 started by Felix Meschberger.

> 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
>            Assignee: Felix Meschberger
>
> 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 

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


[jira] Resolved: (FELIX-780) ArrayIndexOutOfBoundsException in webconsole

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved FELIX-780.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: webconsole-1.2.2

Thanks for reporting. This is fixed in Rev. 705158.

Please close this issue, if it works for you. Thanks.

> 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
>            Assignee: Felix Meschberger
>             Fix For: webconsole-1.2.2
>
>
> 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 

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