Please try your operation later as the resource was busy

View: New views
11 Messages — Rating Filter:   Alert me  

Please try your operation later as the resource was busy

by adman666 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

We are having problems since upgrading to MGOS2.
Our app creates FeatureSources on the fly as a user needs them:
featureService.CreateFeatureSource(markupSdfResId, sdfParams)

and then they can draw on the layer and the Feature Source is updated:
featureService.UpdateFeatures(resourceIdentifier, markupCommands, False)

This was all good under 1.2. The Resources are not ReadOnly. When we execute the code now we get this error:

<2008-03-31T16:49:32> Administrator
 Error: Please try your operation later as the resource was busy: Library://AEMSDB/Actions/487/Data/11504.FeatureSource
 StackTrace:
  - MgFeatureServiceHandler.ProcessOperation line 83 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\server\src\services\feature\FeatureServiceHandler.cpp
  - MgOpUpdateFeatures.Execute line 111 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\server\src\services\feature\OpUpdateFeatures.cpp
  - MgServerUpdateFeatures.UpdateFeatures line 131 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\server\src\services\feature\ServerUpdateFeatures.cpp
  - MgFdoConnectionManager.RemoveCachedFdoConnection line 1006 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\server\src\common\manager\FdoConnectionManager.cpp Please try your operation later as the resource was busy: Library://AEMSDB/Actions/487/Data/11504.FeatureSource

We have never seen this before upgrading to 2.0. Do we need to set some extra permissions somewhere or something like that?

Any ideas would be most appreciated.

Thanks.

Re: Please try your operation later as the resource was busy

by zspitzer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are you closing your featureReader? show us some more code :)

Also, you probably want to be using session resources rather than
library resources

On Mon, Mar 31, 2008 at 6:08 PM, adman666 <adam@...> wrote:

>
>  Hi,
>
>  We are having problems since upgrading to MGOS2.
>  Our app creates FeatureSources on the fly as a user needs them:
>  featureService.CreateFeatureSource(markupSdfResId, sdfParams)
>
>  and then they can draw on the layer and the Feature Source is updated:
>  featureService.UpdateFeatures(resourceIdentifier, markupCommands, False)
>
>  This was all good under 1.2. The Resources are not ReadOnly. When we execute
>  the code now we get this error:
>
>  <2008-03-31T16:49:32>                   Administrator
>   Error: Please try your operation later as the resource was busy:
>  Library://AEMSDB/Actions/487/Data/11504.FeatureSource
>   StackTrace:
>   - MgFeatureServiceHandler.ProcessOperation line 83 file
>  d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\server\src\services\feature\FeatureServiceHandler.cpp
>   - MgOpUpdateFeatures.Execute line 111 file
>  d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\server\src\services\feature\OpUpdateFeatures.cpp
>   - MgServerUpdateFeatures.UpdateFeatures line 131 file
>  d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\server\src\services\feature\ServerUpdateFeatures.cpp
>   - MgFdoConnectionManager.RemoveCachedFdoConnection line 1006 file
>  d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\server\src\common\manager\FdoConnectionManager.cpp
>  Please try your operation later as the resource was busy:
>  Library://AEMSDB/Actions/487/Data/11504.FeatureSource
>
>  We have never seen this before upgrading to 2.0. Do we need to set some
>  extra permissions somewhere or something like that?
>
>  Any ideas would be most appreciated.
>
>  Thanks.
>
>  --
>  View this message in context: http://www.nabble.com/Please-try-your-operation-later-as-the-resource-was-busy-tp16392736s16610p16392736.html
>  Sent from the MapGuide Users mailing list archive at Nabble.com.
>
>  _______________________________________________
>  mapguide-users mailing list
>  mapguide-users@...
>  http://lists.osgeo.org/mailman/listinfo/mapguide-users
>



--
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
_______________________________________________
mapguide-users mailing list
mapguide-users@...
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: Please try your operation later as the resource was busy

by Mark Pendergraft :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

RE: Please try your operation later as the resource was busy

by Bruce Dechant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... [mailto:mapguide-users-bounces@...] On Behalf Of Mark Pendergraft
Sent: Friday, May 16, 2008 11:44 AM
To: mapguide-users@...
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@...
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users@...
http://lists.osgeo.org/mailman/listinfo/mapguide-users

RE: Please try your operation later as the resource was busy

by Mark Pendergraft :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@lists.osgeo.org [mailto:mapguide-users-bounces@lists.osgeo.org] On Behalf Of Mark Pendergraft
Sent: Friday, May 16, 2008 11:44 AM
To: mapguide-users@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

RE: Please try your operation later as the resource was busy

by Bruce Dechant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... [mailto:mapguide-users-bounces@...] On Behalf Of Mark Pendergraft
Sent: Friday, May 16, 2008 1:03 PM
To: mapguide-users@...
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@...
> [mailto:mapguide-users-bounces@...] On Behalf Of Mark
> Pendergraft
> Sent: Friday, May 16, 2008 11:44 AM
> To: mapguide-users@...
> 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@...
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> _______________________________________________
> mapguide-users mailing list
> mapguide-users@...
> 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@...
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users@...
http://lists.osgeo.org/mailman/listinfo/mapguide-users

RE: Please try your operation later as the resource was busy

by A H :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@lists.osgeo.org [mailto:mapguide-users-bounces@lists.osgeo.org] On Behalf Of Mark Pendergraft
Sent: Friday, May 16, 2008 1:03 PM
To: mapguide-users@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@lists.osgeo.org
> [mailto:mapguide-users-bounces@lists.osgeo.org] On Behalf Of Mark
> Pendergraft
> Sent: Friday, May 16, 2008 11:44 AM
> To: mapguide-users@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@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> _______________________________________________
> mapguide-users mailing list
> mapguide-users@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

RE: Please try your operation later as the resource was busy

by dirk-64 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.


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@lists.osgeo.org [mailto:mapguide-users-bounces@lists.osgeo.org] On Behalf Of Mark Pendergraft
Sent: Friday, May 16, 2008 1:03 PM
To: mapguide-users@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@lists.osgeo.org
> [mailto:mapguide-users-bounces@lists.osgeo.org] On Behalf Of Mark
> Pendergraft
> Sent: Friday, May 16, 2008 11:44 AM
> To: mapguide-users@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@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> _______________________________________________
> mapguide-users mailing list
> mapguide-users@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: Please try your operation later as theresource was busy

by Mark Pendergraft :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have not found a solution to the issue, it's a bug in 2.0 and there is
already a trac ticket for it(http://trac.osgeo.org/mapguide/ticket/524)

The solution I have come up with, is to roll back my map to 1.2.
Sorry for the bad news
-Mark Pendergraft.

-----Original Message-----
From: mapguide-users-bounces@...
[mailto:mapguide-users-bounces@...] On Behalf Of dirk-64
Sent: Thursday, June 26, 2008 11:57 PM
To: mapguide-users@...
Subject: RE: [mapguide-users] Please try your operation later as
theresource was busy


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//Lo
cation.FeatureSource
> Please try your operation later as the resource was busy:
>
Session:98c4f84e-ffff-ffff-8000-00508bbe3169_en_0A0223600AFC0AFB0AFA//Lo
cation.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@...
>> [mailto:mapguide-users-bounces@...] On Behalf Of Mark
>> Pendergraft
>> Sent: Friday, May 16, 2008 1:03 PM
>> To: mapguide-users@...
>> 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@...
>>> [mailto:mapguide-users-bounces@...] On Behalf Of Mark
>>> Pendergraft
>>> Sent: Friday, May 16, 2008 11:44 AM
>>> To: mapguide-users@...
>>> 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-wa
s-busy-tp16392736p17280519.html

>>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users@...
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users@...
>>> 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-wa
s-busy-tp16392736p17282025.html

>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users@...
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users@...
>> 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-wa
s-busy-tp16392736p18134665.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________
mapguide-users mailing list
mapguide-users@...
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users@...
http://lists.osgeo.org/mailman/listinfo/mapguide-users

RE: Please try your operation later as theresource was busy

by bjeffers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try changing the server settings.  In the IIS settings, open up the properties for the default web site and go to the HTTP headers tab.  Enable Content Expiration, and set it to expire immediately.  On the Web Site tab, please also disable the "HTTP Keep-Alives Enabled" box.  Restart the MapGuide service.  This worked for me.

Re: Please try your operation later as theresource was busy

by George McLean :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am also seeing this problem Apache-PHP running on XP SP2 with MG 2.0.

I am confident I am closing the feature reader before calling the
update. At this point this is the only thing keeping me from putting MG
2.0 into production. I saw a comment that suggested setting the content
expiration to immediate. The suggestion was from an IIS user. So far I
have not figured out how to set this in Apache in Windows.

Any suggestions?

Thanks

George McLean


Mark Pendergraft wrote:

> I have not found a solution to the issue, it's a bug in 2.0 and there is
> already a trac ticket for it(http://trac.osgeo.org/mapguide/ticket/524)
>
> The solution I have come up with, is to roll back my map to 1.2.
> Sorry for the bad news
> -Mark Pendergraft.
>
> -----Original Message-----
> From: mapguide-users-bounces@...
> [mailto:mapguide-users-bounces@...] On Behalf Of dirk-64
> Sent: Thursday, June 26, 2008 11:57 PM
> To: mapguide-users@...
> Subject: RE: [mapguide-users] Please try your operation later as
> theresource was busy
>
>
> 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//Lo
> cation.FeatureSource
>  
>> Please try your operation later as the resource was busy:
>>
>>    
> Session:98c4f84e-ffff-ffff-8000-00508bbe3169_en_0A0223600AFC0AFB0AFA//Lo
> cation.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@...
>>> [mailto:mapguide-users-bounces@...] On Behalf Of Mark
>>> Pendergraft
>>> Sent: Friday, May 16, 2008 1:03 PM
>>> To: mapguide-users@...
>>> 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@...
>>>> [mailto:mapguide-users-bounces@...] On Behalf Of Mark
>>>> Pendergraft
>>>> Sent: Friday, May 16, 2008 11:44 AM
>>>> To: mapguide-users@...
>>>> 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-wa
> s-busy-tp16392736p17280519.html
>  
>>>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>>>
>>>> _______________________________________________
>>>> mapguide-users mailing list
>>>> mapguide-users@...
>>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>> _______________________________________________
>>>> mapguide-users mailing list
>>>> mapguide-users@...
>>>> 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-wa
> s-busy-tp16392736p17282025.html
>  
>>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users@...
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users@...
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>>
>>>      
>>    
>
>  
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 8.0.101 / Virus Database: 270.4.1/1522 - Release Date: 6/27/2008 8:27 AM
>  

_______________________________________________
mapguide-users mailing list
mapguide-users@...
http://lists.osgeo.org/mailman/listinfo/mapguide-users