[mapguide-users] UpdateFeatures on temporary SDF feature source, MgConnectionFailedException

Zac Spitzer zac.spitzer at gmail.com
Tue Feb 7 19:34:57 EST 2012


are the SDF features sources being accessed by other maps
or layers?

perhaps you have an unclosed feature reader which is blocking?

On Tue, Feb 7, 2012 at 1:10 AM, morkl <mapguide at morkl.se> wrote:
> Hi all!
>
> I have the following problem in both MGOS 2.2 and MGE2011.
>
> My application creates SDF feature sources and layer definitions in the
> session repository to display search results, extracted from the standard
> layer. However, in one environment, *sometimes* when adding features to the
> SDF feature sources, MgFeatureService.UpdateFeatures fails (after ~30
> seconds) with an OSGeo.MapGuide.MgConnectionFailedException:
>
> I followed the stack trace back to ServerConnectionStack.cpp and the only
> MgConnectionFailedException there seems to be thrown when it is unable to
> obtain a connection within 30 seconds. That explains the 30 seconds it takes
> to fail, but I still don't understand why it can't acquire a connection in
> the first place? Especially since when I make the application catch the
> exception and immediately retry the UpdateFeatures call, it always succeeds
> on the second try.
>
> Has anyone else experienced this kind of problem? Am I doing something
> terribly wrong?
>
> Best regards,
> Patrik Johansson
>
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/UpdateFeatures-on-temporary-SDF-feature-source-MgConnectionFailedException-tp4369454p4369454.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users



-- 
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168


More information about the mapguide-users mailing list