[mapguide-trac] #1774: Mapguide Maestro SimpleSymbolDefinition problem

MapGuide Open Source trac_mapguide at osgeo.org
Tue Aug 9 03:41:37 EDT 2011


#1774: Mapguide Maestro SimpleSymbolDefinition problem
--------------------------+-------------------------------------------------
   Reporter:  gabrimonfa  |       Owner:  jng
       Type:  defect      |      Status:  new
   Priority:  low         |   Milestone:     
  Component:  Maestro     |     Version:     
   Severity:  minor       |    Keywords:     
External_id:              |  
--------------------------+-------------------------------------------------
 Reproduced Mapguide Maestro 3.5b2 and current revision 6047 on Windows

 Mapguide {{{opensource}}} 2.2

 I have the following layer definition that uses
 {{{SimpleSymbolDefinition}}} (simplified to be shorter)

 {{{
 <?xml version="1.0" encoding="utf-8"?>
 <LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.3.0"
 xsi:noNamespaceSchemaLocation="LayerDefinition-1.3.0.xsd">
   <VectorLayerDefinition>
 <ResourceId>Library://vhproduction/grosseto/data/grosseto_autodesk.FeatureSource</ResourceId>
     <FeatureName>catasto:linee</FeatureName>
     <FeatureNameType>FeatureClass</FeatureNameType>
     <Geometry>the_geom</Geometry>
     <VectorScaleRange>
       <MaxScale>4001</MaxScale>
       <CompositeTypeStyle>
         <CompositeRule>
           <LegendLabel />
           <Filter>"codice"=1</Filter>
           <CompositeSymbolization>
             <SymbolInstance>
               <SimpleSymbolDefinition
 xsi:noNamespaceSchemaLocation="SymbolDefinition-1.1.0.xsd"
 version="1.1.0">
                 <Name>codice 1</Name>
                 <Graphics>
                   <Path>
                     <Geometry>M 0.0,0.0 L 1.0,0.0</Geometry>
                     <LineColor>ff000000</LineColor>
                   </Path>
                 </Graphics>
                 <LineUsage>
                   <Repeat>1</Repeat>
                 </LineUsage>
                 <ParameterDefinition />
               </SimpleSymbolDefinition>
               <ParameterOverrides />
             </SymbolInstance>
           </CompositeSymbolization>
         </CompositeRule>
       </CompositeTypeStyle>
     </VectorScaleRange>
   </VectorLayerDefinition>
 </LayerDefinition>
 }}}

 If I open it in the classic view I can modify it and save it without
 errors.

 If I open it in XML view and try to save it I have a server error.

 This is the stack trace printed in server Error.log

 {{{
 <2011-08-09T11:17:25>   -1357190288     MapGuide Maestro v3.5.0.6040
 10.1.1.91       Administrator
  Error: An exception occurred in DB XML component.
         Error: XML Indexer:  Parse error in document at line, 16, char
 114. Parser message: Attribute 'version' is not declared for element
 'SimpleSymbolDefinition'
  StackTrace:
   - MgResourceServiceHandler.ProcessOperation() line 80 file
 ResourceServiceHandler.cpp
   - MgOpSetResource.Execute() line 103 file OpSetResource.cpp
   - MgServerResourceService.SetResource(Id=Session:f3eeebd2-c25f-
 11e0-8000-5254000bc851_en_7F0000010AFC0AFB0AFA//1cfbcb40-fe64-42a5-8aed-
 bdb38422e8a4.LayerDefinition   ContentSize=12318   HeaderSize=0) line 751
 file ServerResourceService.cpp
   - MgRepositoryManager.SetResource() line 859 file RepositoryManager.cpp
   - MgRepositoryManager.UpdateResource() line 996 file
 RepositoryManager.cpp
   - MgResourceDefinitionManager.UpdateResource
 (MgSessionResourceContents.dbxml)() line 261 file
 ResourceDefinitionManager.cpp
   - MgResourceContentManager.UpdateDocument() line 667 file
 ResourceContentManager.cpp
   - MgResourceDefinitionManager.UpdateDocument
 (MgSessionResourceContents.dbxml)() line 592 file
 ResourceDefinitionManager.cpp
 }}}

 The element {{{'SimpleSymbolDefinition'}}} has indeed the attribute
 'version' so I would expect that the layer is saved without errors even
 from XML view

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1774>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list