You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by "Lars Corneliussen (JIRA)" <ji...@apache.org> on 2011/04/01 07:02:05 UTC

[jira] [Resolved] (NPANDAY-380) IndexOutOfRangeExcpetion in SettingsGeneratorMojo.GetVendorsFromMicrosoft

     [ https://issues.apache.org/jira/browse/NPANDAY-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Corneliussen resolved NPANDAY-380.
---------------------------------------

    Resolution: Fixed

fixed in trunk. committed for NPANDAY-123

> IndexOutOfRangeExcpetion in SettingsGeneratorMojo.GetVendorsFromMicrosoft
> -------------------------------------------------------------------------
>
>                 Key: NPANDAY-380
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-380
>             Project: NPanday
>          Issue Type: Bug
>          Components: Maven Plugins
>    Affects Versions: 1.3-incubating
>         Environment: Windows 7 Pro, 32-bit. Visual Studio 2010. Maven 3.0.2, JDK 1.6.0_22
>            Reporter: Peter Johnson
>            Assignee: Lars Corneliussen
>             Fix For: 1.3.1-incubating
>
>
> I created a simple project using the maven-archetype-dotnet-simple archetype. Without making any changes I attempted to build the project via "mvn package". Got this error:
> Exception occcurred: System.IndexOutOfRangeException: Index was outside the bounds of the array.
>    at NPanday.Plugin.Settings.SettingsGeneratorMojo.GetVendorsForMicrosoft(RegistryKey microsoftRegistryKey)
>    at NPanday.Plugin.Settings.SettingsGeneratorMojo.Execute()
>    at NPanday.Plugin.AbstractMojo.Execute()
>    at NPanday.Plugin.Loader.PluginLoader.Main(String[] args)
> Examining the method in question, it appears that the "vendors" array is being initialized to have 4 entries (line 189), and then the code attempts to fill it with 5 entries if all 5 versions of the .Net Framework on the machine.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira