[mapguide-users] MgSelection::AddFeatures locks FeatureSource
Benoit Begin
bbegin at geomapgis.ca
Mon Jun 22 15:46:35 EDT 2009
I was not able to extensively test this, but it seems as if when
MgSelection::AddFeatures is called, whatever FeatureSource was used for the
MgFeatureReader passed to the function will be locked and un-editable from
the various APIs, or from the Studio. This occurs using Mapguide 2.1 Beta 1,
using the OSGeo KingOracle provider.
The error looks like this in the log:
<2009-06-22T15:30:51> 4400 Autodesk MapGuide Studio v2.1.0.3001 127.0.0.1
Administrator
Error: Please try your operation later as the resource was busy:
Library://MyFS.FeatureSource
StackTrace:
- MgResourceServiceHandler.ProcessOperation() line 80 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\ResourceServiceHandler.cpp
- MgOpApplyResourcePackage.Execute() line 96 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\OpApplyResourcePackage.cpp
- MgServerResourceService.ApplyResourcePackage() line 526 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\ServerResourceService.cpp
- MgLibraryRepositoryManager.ApplyResourcePackage() line 141 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\LibraryRepositoryManager.cpp
- MgLibraryRepositoryManager.LoadResourcePackage() line 176 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\LibraryRepositoryManager.cpp
- MgResourcePackageLoader.Start() line 150 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\ResourcePackageLoader.cpp
- MgResourcePackageLoader.PerformOperation() line 228 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\ResourcePackageLoader.cpp
- MgResourcePackageLoader.SetResource() line 308 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\ResourcePackageLoader.cpp
- MgRepositoryManager.SetResource() line 859 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\RepositoryManager.cpp
- MgRepositoryManager.UpdateResource() line 996 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\RepositoryManager.cpp
- MgResourceDefinitionManager.UpdateResource
(MgLibraryResourceContents.dbxml)() line 261 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\ResourceDefinitionManager.cpp
- MgResourceContentManager.UpdateDocument() line 667 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\ResourceContentManager.cpp
- MgFdoConnectionManager.RemoveCachedFdoConnection() line 1049 file
c:\osgeo\mapguide_21\mgdev\server\src\common\manager\FdoConnectionManager.cpp
I managed to determine the source of the error by fiddling around with
Query.php in Fusion. As soon as you remove the $selection->AddFeatures line,
the FeatureSource won't get locked. The error in itself isn't a show
stopper, however, it does make me slightly worried as I don't know what else
it could break?
I've also tried to remove OSGeo.KingOracle from the
DataConnectionPoolExcludedProviders, but it didn't really changed anything.
At this point I'm not sure wether this is a Mapguide, FDO or a Fusion issue.
--
View this message in context: http://n2.nabble.com/MgSelection%3A%3AAddFeatures-locks-FeatureSource-tp3138306p3138306.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list