Opened 13 years ago

Closed 13 years ago

#1839 closed defect (fixed)

MapGuide Maestro and MapGuide Open Source 2.2

Reported by: wrees Owned by: jng
Priority: medium Milestone: 2.2
Component: Maestro Version: 2.2.0
Severity: critical Keywords: maestro create layer
Cc: External ID:

Description

Hello,

I've ran into a bug in Maestro when working with a MapGuide Open Source 2.2 server. I've tried using both Maestro 3.5.0 and Maestro 4.0.0 beta 2, both produce the same results:

Version Information:

Version: 4.0.0.6143 MapGuide Version: 2.2.0.5703 (MapGuideOS2_2)

When I attempt to create a new Vector Layer (doesn't matter which definition I use, they all produce the same error), I wind up with the following error message after selecting the Feature Source:

Below are the error reports generated by Maestro.

Maestro Error Report
====================

Version: 4.0.0.6143
Date: 10/26/2011 10:02:33 AM

Message: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
   at System.Windows.Forms.Binding.SetPropValue(Object value)
   at System.Windows.Forms.Binding.PushData(Boolean force)
   at System.Windows.Forms.Binding.UpdateIsBinding()
   at System.Windows.Forms.Binding.CheckBinding()
   at System.Windows.Forms.Binding.SetListManager(BindingManagerBase bindingManagerBase)
   at System.Windows.Forms.ListManagerBindingsCollection.AddCore(Binding dataBinding)
   at System.Windows.Forms.BindingsCollection.Add(Binding binding)
   at System.Windows.Forms.BindingContext.UpdateBinding(BindingContext newBindingContext, Binding binding)
   at System.Windows.Forms.Control.UpdateBindings()
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.set_BindingContextInternal(BindingContext value)
   at System.Windows.Forms.ContainerControl.set_BindingContext(BindingContext value)
   at System.Windows.Forms.ContainerControl.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.ContainerControl.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.Control.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.ContainerControl.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.SplitContainer.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.Control.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.SplitContainer.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.Control.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.SplitContainer.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.Control.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.Control.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.Control.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.ContainerControl.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.Control.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.ContainerControl.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.ContainerControl.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.Control.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.Control.get_BindingContext()
   at System.Windows.Forms.Control.get_BindingContextInternal()
   at System.Windows.Forms.Control.get_BindingContext()
   at System.Windows.Forms.Control.UpdateBindings()
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
   at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
   at System.Windows.Forms.ContainerControl.OnCreateControl()
   at System.Windows.Forms.UserControl.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.ControlCollection.Add(Control value)
   at Maestro.Base.Editor.LayerDefinitionEditor.Bind(IEditorService service) in d:\Workspace\maestro-trunk\Maestro.Base\Editor\LayerDefinitionEditor.cs:line 70
   at Maestro.Base.Editor.EditorContentBase.set_EditorService(IEditorService value) in d:\Workspace\maestro-trunk\Maestro.Base\Editor\EditorContentBase.cs:line 81
   at Maestro.Base.Services.OpenResourceManager.Open(IResource res, IServerConnection conn, Boolean useXmlEditor, ISiteExplorer siteExp) in d:\Workspace\maestro-trunk\Maestro.Base\Services\OpenResourceManager.cs:line 164
   at Maestro.Base.Services.OpenResourceManager.Open(String resourceId, IServerConnection conn, Boolean useXmlEditor, ISiteExplorer siteExp) in d:\Workspace\maestro-trunk\Maestro.Base\Services\OpenResourceManager.cs:line 219

followed by

Maestro Error Report
====================

Version: 4.0.0.6143
Date: 10/26/2011 10:02:40 AM

Message: Object reference not set to an instance of an object.

Details: System.NullReferenceException: Object reference not set to an instance of an object.
   at Maestro.Base.Commands.NewItemCommand.Run() in d:\Workspace\maestro-trunk\Maestro.Base\Commands\NewItemCommand.cs:line 64
   at ICSharpCode.Core.WinForms.MenuCommand.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Attachments (2)

maestro error.png (152.2 KB ) - added by wrees 13 years ago.
Error while creating a Vector layer from a feature source
Water Service PVC.rar (20.5 KB ) - added by wrees 13 years ago.
Sample set of SHP files

Download all attachments as: .zip

Change History (10)

by wrees, 13 years ago

Attachment: maestro error.png added

Error while creating a Vector layer from a feature source

comment:1 by jng, 13 years ago

What is your feature source? Which provider? If file-based, is it connected to embedded data files or externally aliased files?

comment:2 by wrees, 13 years ago

Sorry, forgot to mention that.

The Feature Source that I'm using is shp files. I've tried both Managed Files and Unmanaged Files, both produce the same result. The SHP files work fine in MapGuide 2.1 / Maestro.

The provider I'm using is the default one - OSGeo FDO Provider for SHP.

I've tried running both the Windows and Linux version of the MapGuide server, both produce the same result.

comment:3 by wrees, 13 years ago

I can upload one of the sets of SHP files that I'm using if that'd help?

comment:4 by jng, 13 years ago

Is the connection to a single shp file or multiple shp files?

comment:5 by wrees, 13 years ago

single shp file

comment:6 by wrees, 13 years ago

I'm going to try and convert the SHP into a SDF and see if it produces the same error - might be a MapGuide 2.2 issue w/ SHP's?

comment:7 by jng, 13 years ago

Yeah I think you should attach one of the sets of SHP files in question

by wrees, 13 years ago

Attachment: Water Service PVC.rar added

Sample set of SHP files

comment:8 by jng, 13 years ago

Resolution: fixed
Status: newclosed

Fixed r6205

Note: See TracTickets for help on using tickets.