[mapguide][MG440][New] Exception in XML Parser When Saving Changes When Map Opened ...
Stephen Park
parkst at shaw.ca
Fri Oct 27 12:41:52 EDT 2006
You can view the artifact detail at the following URL:
https://mapguide.osgeo.org/servlets/Scarab/id/MG440
Type
Defect
Artifact ID
MG440 (Exception in XML Parser When Saving Changes When Map Opened Via MgMap.Create())
Reported by
Stephen Park
wct (parkst at shaw.ca)
New artifact details:
---------------------------------------------------------
- Operating system set to new value
Windows XP
- Platform set to new value
PC
- Summary set to new value
Exception in XML Parser When Saving Changes When Map Opened Via MgMap.Create()
- Artifact Status set to new value
New
- Component set to new value
Web Server Extensions
- Description set to new value
XML Parser Exception when Attempting to save a map permanently to the repository if the map has
been opened via the MgMap.Create(.) API (this is happening with MapGuideDotNetApi).
The specific change was to add a layer to the map. Adding the same layer to the map via Studio works fine. Using the .Save() method that accepts a single argument (resource service) results in a null reference exception.
Exception Information:
OSGeo.MapGuide.MgXmlParserException: An exception occurred in the XML
parser.
- MgResourceServiceHandler.ProcessOperation line 80 file
c:\build_tux_area\mgdev_opensource\server\src\services\resource\ResourceServ
iceHandler.cpp
- MgOpSetResource.Execute line 109 file
c:\build_tux_area\mgdev_opensource\server\src\services\resource\OpSetResourc
e.cpp
- MgServerResourceService.SetResource line 712 file
c:\build_tux_area\mgdev_opensource\server\src\services\resource\ServerResour
ceService.cpp
- MgRepositoryManager.SetResource line 867 file
c:\build_tux_area\mgdev_opensource\server\src\services\resource\RepositoryMa
nager.cpp
- MgRepositoryManager.UpdateResource line 1004 file
c:\build_tux_area\mgdev_opensource\server\src\services\resource\RepositoryMa
nager.cpp
- MgResourceDefinitionManager.UpdateResource line 261 file
c:\build_tux_area\mgdev_opensource\server\src\services\resource\ResourceDefi
nitionManager.cpp
- MgResourceContentManager.UpdateDocument line 647 file
c:\build_tux_area\mgdev_opensource\server\src\services\resource\ResourceCont
entManager.cpp
- MgResourceDefinitionManager.UpdateDocument line 601 file
c:\build_tux_area\mgdev_opensource\server\src\services\resource\ResourceDefi
nitionManager.cpp
- MgResourceDefinitionManager.ValidateDocument line 429 file
c:\build_tux_area\mgdev_opensource\server\src\services\resource\ResourceDefi
nitionManager.cpp
- MgResourceContentManager.ValidateDocument line 536 file
c:\build_tux_area\mgdev_opensource\server\src\services\resource\ResourceCont
entManager.cpp
- Defect Severity set to new value
High
- Steps to Reproduce set to new value
Open an existing map via MgMap.Create(.) API
//Resource Id is of form Library://.../MyMap.MapDefinition
Add layer created previously via Studio 2K7 R1 to the map
MgMap.GetLayers().Add(newLayer);
Save the Map back to the repository:
MgMap.Save(_resourceService, resourceId);
**Exception Here**
- OS Distribution and Version set to new value
Win2k3 Server Enterprise Edition SP1, 32 Bit
- Version set to new value
1.0.1
- Artifact created
- Subcomponent set to new value
Resource Service
---------------------------------------------------------
This message was automatically generated by Project Tracker.
More information about the Mapguide_issues
mailing list