<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
"Invalid stream header exception" is usually an indication that you<br>
are using an incompatible version of the WebAPI dlls.<br>
<br>
Eg. You install MGOS 2.0, and copy the dll's to your project.<br>
You then upgrade to MGOS 2.1, but forget to upgrade the dll's.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
smeurant skrev:
<blockquote cite="mid:1259574718828-4086781.post@n2.nabble.com"
type="cite">
<pre wrap="">I made the change.
I still have a "Invalid stream header exception" but the new feature is
successfully added to the feature source .
I will check where the exception come from and I will update my post later.
Thanks for your help Kenneth.
Kenneth Skovhede, GEOGRAF A/S wrote:
</pre>
<blockquote type="cite">
<pre wrap="">MgLayer is the name of the class that is used for runtime layers.
Im guessing that layer.GetClassName() returns "MgLayer".
Have you tried with GetFeatureClassName():
<a class="moz-txt-link-freetext" href="http://mapguide.osgeo.net/files/mapguide/docs/webapi/d6/de2/class_mg_layer_a983e24398d337eff4809830993eb992.html#a983e24398d337eff4809830993eb992">http://mapguide.osgeo.net/files/mapguide/docs/webapi/d6/de2/class_mg_layer_a983e24398d337eff4809830993eb992.html#a983e24398d337eff4809830993eb992</a>
Regards, Kenneth Skovhede, GEOGRAF A/S
smeurant skrev:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,
I try to update a SHP feature source using the MapGuide Java API with a
servlet.
But i have a problem with this step :
featureService.UpdateFeatures(FeatureSourceID,featureCommandCollection,false);
Like say the API doc , it return a MgPropertyCollection.
And in this propertyCollection, i found a error msg sent by FDO :
An exception occurred in FDO component.
FDO class 'MgLayer' not found in schema.
Is the problem come from my implementation or, is it a bug in MGOS 2.1b?
Thanks for your help
P.S : You can find the full servlet implementation in the attached file
<a class="moz-txt-link-freetext" href="http://n2.nabble.com/file/n4076428/updateFeatureSource.java">http://n2.nabble.com/file/n4076428/updateFeatureSource.java</a>
updateFeatureSource.java
</pre>
</blockquote>
<pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>