[mapguide-users] Please try your operation later as the
resource was busy
dirk-64
dirk at ranglack.com
Fri Jun 27 02:56:31 EDT 2008
i'm using MGOS2.0 and got the same error when trying to update the feature
source i just had read from, by the feature service's UpdateFeature method.
I closed the feature reader and call the delete method of MgFeatureReader
before. Neither the Close nor the delete makes any difference, the error
stays the same:
MgFeatureReader locReader = featureService.SelectFeatures(featureId ....
locReader.ReadNext()
....
locReader.Close();
locReader.delete();
featureService.UpdateFeatures(featureId, cmdCollection, false);
did you found any solution to your issue - probably the same like i'm
looking for,
dirk.
A H wrote:
>
> i'm using MGOS1.2 and got the same error while trying to query a recently
> updated layer
>
>
> MgFeatureQueryOptions locQuery = new MgFeatureQueryOptions();
> locQuery.SetFilter("ID like '%'");
>
> MgFeatureReader locReader = locLayer.SelectFeatures(locQuery);
>
> MgSelection selection = new MgSelection(map);
> selection.AddFeatures(locLayer, locReader, 0);
> selectionXml = selection.ToXml();
>
>
> Please try your operation later as the resource was busy:
> Session:98c4f84e-ffff-ffff-8000-00508bbe3169_en_0A0223600AFC0AFB0AFA//Location.FeatureSource
> Please try your operation later as the resource was busy:
> Session:98c4f84e-ffff-ffff-8000-00508bbe3169_en_0A0223600AFC0AFB0AFA//Location.FeatureSource
> Exception occurred in method
> MgServerResourceService.RemoveCachedFdoConnection at line 2234 in file
> c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\server\src\services\resource\ServerResourceService.cpp
>
>
>
> Bruce Dechant wrote:
>>
>> Mark,
>>
>> The access is similar to a database, except is dependent on what the
>> underlying provider supports. In the SDF case I believe this is multiple
>> reads and single write is supported.
>>
>> Thanks,
>> Bruce
>>
>> -----Original Message-----
>> From: mapguide-users-bounces at lists.osgeo.org
>> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Mark
>> Pendergraft
>> Sent: Friday, May 16, 2008 1:03 PM
>> To: mapguide-users at lists.osgeo.org
>> Subject: RE: [mapguide-users] Please try your operation later as the
>> resource was busy
>>
>>
>> I'm a little confused here.
>> You make it sound as if only one person can update the library resource
>> (in
>> this case a .sdf file) at a time. I thought that multiple people could
>> interact with the file making changes at the same time more like a
>> database.
>> I get this error about every other time i try to add a feature to my
>> feature
>> source. There is a lot of code that could be suspect, i will try to
>> isolate
>> the error this weekend and if it's not my code i will submit a trac
>> ticket.
>>
>>
>> Bruce Dechant wrote:
>>>
>>> Mark,
>>>
>>> The error you see below is typically a result of the resource still
>>> being
>>> used by someone else. However, if a feature reader is not closed and you
>>> try to do something with the same resource (update) it can report that
>>> it
>>> is in use still and therefore busy.
>>>
>>> Since you are closing your feature reader I suspect the problem is most
>>> likely a defect if you are the only one that is using it.
>>>
>>> What provider is this happening with? Is this easily reproduced?
>>> If you could create a track ticket for this and include as much
>>> information as possible for someone to investigate the issue that would
>>> be
>>> great.
>>>
>>> Thanks,
>>> Bruce
>>>
>>> -----Original Message-----
>>> From: mapguide-users-bounces at lists.osgeo.org
>>> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Mark
>>> Pendergraft
>>> Sent: Friday, May 16, 2008 11:44 AM
>>> To: mapguide-users at lists.osgeo.org
>>> Subject: Re: [mapguide-users] Please try your operation later as the
>>> resource was busy
>>>
>>>
>>> I am getting this message too. I am closing my feature reader and
>>> disposing
>>> of it.
>>> The problem happens when the user adds features to one of the feature
>>> sources named "Jobs". We use our map primarily to track where we have
>>> worked, and users need to be able to add jobs to the map. Sometimes it
>>> works, other times it harrasses me about the resource being busy. I
>>> would
>>> have to use the library resource because the changes need to show up in
>>> everyones map.
>>>
>>> Am i missing something here? is there a way to possibly check if the
>>> resource is busy and force it to not be?
>>>
>>>
>>> zspitzer wrote:
>>>>
>>>> Are you closing your featureReader? show us some more code :)
>>>>
>>>> Also, you probably want to be using session resources rather than
>>>> library resources
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Please-try-your-operation-later-as-the-resource-was-busy-tp16392736p17280519.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
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Please-try-your-operation-later-as-the-resource-was-busy-tp16392736p17282025.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
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Please-try-your-operation-later-as-the-resource-was-busy-tp16392736p18134665.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list