[mapguide-users] Trouble making web layout work from sessionrepository

Gord McKenzie gord.mckenzie at canam.com
Fri Aug 3 11:11:26 EDT 2007


Well, in the end it was a whitespace problem.  I was not preserving the
whitespace properly in the XML when I was altering it,

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Kenneth,
GEOGRAF A/S
Sent: Thursday, August 02, 2007 3:03 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Trouble making web layout work from
sessionrepository

There might be an UTF-8 header in the Xml.
Try downloading the modified file, and check it with a hex editor.
There should be no bytes before the "<" character.
I have filed a bug report on the problem.

Also, ensure that the document is encoded in UTF-8 (still without the 
header).


Regards, Kenneth, GEOGRAF A/S




gom skrev:
> I am trying to load a modified map and web layout from the session
> repository. I have had success up to the final step.
>
> I get the mapdefintion from the repository
> I modify the XML to change the extents and save it to the session
repository
> I get the weblayout from the repository
> I modify the XML to change the mapdefinition and save it to the session
> repository
> When I try to use the modified layout I get the following error.
>
> Argument is null.
> Argument is null. Exception occurred in method
MgWebLayout.ParsePrintCommand
> at line 880 in file
>
c:\build_bond_area\mapguide_open_source\build_3.1\mgdev\web\src\webapp\WebLa
yout.cpp 
>
> If I just get the webLayout from the repositry and stuff it into the
session
> repository I can then make that my current layout and it works great.  I
> call one function that changes the ResourceID under the Map node of the
XML
> and it generates the above error.  Comparing the weblayout XML before and
> after I change the ResourceID seems to indicate that the files are
identical
> except for the changed mapdefintion.  Any ideas what I might be doing
wrong?
>
> Thanks
>
>   
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users






More information about the mapguide-users mailing list