Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » The User Operation is waiting for background work to complete
The User Operation is waiting for background work to complete [message #150868] Tue, 06 December 2005 02:42 Go to next message
Yusuf is currently offline YusufFriend
Messages: 6
Registered: July 2009
Junior Member
Hello, I don't know if this is the correct place to ask..

I am using wtp-all-in-one-0.7-win32.zip (Eclipse 3.1 plus WTP 0.7)
one-click installer and I've been using for quite a long time, but lately
I've oftenly encountered the MODAL dialog box :

"The User Operation is waiting for background work to complete"

everytime I'm trying to save a resource for about 10-30 minutes,
especially after editting some .xml files. If I cancelled the
so-called-background-work, then my resources cannot be saved..

I've read in some forums like myeclipse's forum, and the admin there said
its the crazy wtp indexing problem, and the only solution to this is not
to use wtp.. is there anybody with the same experience with me? and maybe
some solutions to disable this indexing feature?

Thank You.
Yusuf.
Re: The User Operation is waiting for background work to complete [message #150884 is a reply to message #150868] Tue, 06 December 2005 10:10 Go to previous messageGo to next message
Darryl Miles is currently offline Darryl MilesFriend
Messages: 123
Registered: July 2009
Senior Member
Yusuf wrote:
> Hello, I don't know if this is the correct place to ask..
>
> I am using wtp-all-in-one-0.7-win32.zip (Eclipse 3.1 plus WTP 0.7)
> one-click installer and I've been using for quite a long time, but
> lately I've oftenly encountered the MODAL dialog box :
> "The User Operation is waiting for background work to complete"
>
> everytime I'm trying to save a resource for about 10-30 minutes,
> especially after editting some .xml files. If I cancelled the
> so-called-background-work, then my resources cannot be saved..
> I've read in some forums like myeclipse's forum, and the admin there
> said its the crazy wtp indexing problem, and the only solution to this
> is not to use wtp.. is there anybody with the same experience with me?
> and maybe some solutions to disable this indexing feature?

FYI - 0.7.1 is the latest release but it might be worth trying out 1.0RC1.


First keep your settings an always restart eclipse with the "-clean"
option after an upgrade.


If that doesn't work, look at global preferences for validation, both
the JSP and XML validators have caused trouble for some folks. Try
disabling them but please spend some time trying to produce a test case
to post on bugzilla so the real problem can be fixed.


Darryl
Re: The User Operation is waiting for background work to complete [message #150976 is a reply to message #150884] Wed, 07 December 2005 03:04 Go to previous messageGo to next message
Yusuf is currently offline YusufFriend
Messages: 6
Registered: July 2009
Junior Member
Hello, thanks for your reply, but I have already tried both your solution
(disabling the validation, and always start with -clean), but that didn't
seem to work, it seems like my project still tries to validate jsp and xml
files even though i already disabled (and not allowing projects to
override settings)

oh and one other thing, my internet connection is very bad, so sometimes
when eclipse tried to load dtd files from the web, and my connection is
very slow, it sometimes take a long time to load the file (although if i
check from the internet cache, the dtd file already in the cache)

I will try the 0.7.1/1.0 RC1 though, and I'm really sorry but I didn't
really understand what you mean to produce a test case and post to
bugzilla because I'm just a regular user of eclipse, if you can tell me
the steps I will gladly help.. thank you
Re: The User Operation is waiting for background work to complete [message #151006 is a reply to message #150976] Wed, 07 December 2005 10:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marks.milleder.generali.at

Yusuf wrote:

> ... I didn't
> really understand what you mean to produce a test case and post to
> bugzilla because I'm just a regular user of eclipse, if you can tell me
> the steps I will gladly help.. thank you

Test case: The idea is to trim down your workspace as much as possible
while you still have the problem - ideally to one problematic file, but
more likely to (say) a directory full of XML files

Bugzilla: There is a "bugs" link on the eclipse.org main page, go there
and then to "Report a new bug". I guess you will need to create a Bugzilla
account before you can really report a bug. Post your description and
attach your trimmed down workspace (maybe unless it is still several
megabytes zipped)

You may want to post your experience producing the test case here before
opening a bug - something like "the problem goes away when I remove the 50
MB :-) XMLs I have in my project)"

Since you talk about "still validating" and "bad internet connection" -
are those 10-30 minutes with an idle processor (may be waiting for some
network interaction) or at 100% load (may be some crazy indexing) ?
Re: The User Operation is waiting for background work to complete [message #151009 is a reply to message #150868] Wed, 07 December 2005 10:47 Go to previous messageGo to next message
erwin de ley is currently offline erwin de leyFriend
Messages: 2
Registered: July 2009
Junior Member
We're having the same phenomenon sometimes, like RIGHT NOW! (also for wtp-all-in-one etc)

It always seems to happen when www.apache.org is unreachable.
E.g. when saving a struts-config.xml or a tiles-defs.xml or whatever kind of file that needs DTDs or other resources from an apache site.

It is NOT caused by huge workspaces or bad internet connections on our side, as we can get access to other sites without problems, it's just the Apache site that seems to be VERY unreliable nowadays.

Of course, it is a REAL problem if all eclipse J2EE developers are blocked when Apache is down...

Just another reason to hate all that nasty XML stuff :-(, but there should be something we can do in eclipse/WTP to remain operational when Apache is down. I've switched off ALL validations, but that doesn't help either.

One difference: otherwise I see that it's waiting to load a DTD from somewhere and this is blocking the user operation. With validations OFF, we just get very slow file saving or project building without any additional info (see attached screenshot). E.g. just saving a tiles-defs.xml (with NO automatic building) easily takes 5 - 15 minutes...

Is this a known issue in WTP 0.7 and resolved in more recent versions?
Re: The User Operation is waiting for background work to complete [message #151012 is a reply to message #151009] Wed, 07 December 2005 10:53 Go to previous messageGo to next message
Tomasz Pik is currently offline Tomasz PikFriend
Messages: 18
Registered: July 2009
Junior Member
erwin de ley wrote:
> We're having the same phenomenon sometimes, like RIGHT NOW! (also for
> wtp-all-in-one etc)
>
> It always seems to happen when www.apache.org is unreachable. E.g. when
> saving a struts-config.xml or a tiles-defs.xml or whatever kind of file that
> needs DTDs or other resources from an apache site.
>
> It is NOT caused by huge workspaces or bad internet connections on our side,
> as we can get access to other sites without problems, it's just the Apache
> site that seems to be VERY unreliable nowadays.
>
> Of course, it is a REAL problem if all eclipse J2EE developers are blocked
> when Apache is down...
>
> Just another reason to hate all that nasty XML stuff :-(, but there should be
> something we can do in eclipse/WTP to remain operational when Apache is down.
> I've switched off ALL validations, but that doesn't help either.

There's a solution for this in WTP: XML Catalog.
See
http://www.eclipse.org/webtools/community/tutorials/XMLCatal og/XMLCatalogTutorial.html

Regards,
Tomek
Re: The User Operation is waiting for background work to complete [message #151015 is a reply to message #151012] Wed, 07 December 2005 11:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: erwin.de.ley.isencia.be

Hi Tomek,

Thanks for the hint. I've read the tutorial quickly, and loaded the example project.

Do I understand it correctly that I should get the DTDs locally somewhere and add them to the catalog, and then also modify the relevant XML files to point to the local DTD?

Or can I keep for example

<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config.dtd">
[/xml]
but just add a DTD to the catalog with the key

"-//Apache Software Foundation//DTD Tiles Configuration//EN"

and then WTP will look in that catalog to find the DTD?

Cheers

Erwin
Re: The User Operation is waiting for background work to complete [message #151018 is a reply to message #150976] Wed, 07 December 2005 11:57 Go to previous messageGo to next message
Darryl Miles is currently offline Darryl MilesFriend
Messages: 123
Registered: July 2009
Senior Member
Yusuf wrote:
> Hello, thanks for your reply, but I have already tried both your
> solution (disabling the validation, and always start with -clean), but
> that didn't seem to work, it seems like my project still tries to
> validate jsp and xml files even though i already disabled (and not
> allowing projects to override settings)

Have you tried switching it off in the global preferences as well as the
project properties ?

Window -> Preferences -> Validation.

Darryl
Re: The User Operation is waiting for background work to complete [message #151021 is a reply to message #151015] Wed, 07 December 2005 12:16 Go to previous messageGo to next message
Tomasz Pik is currently offline Tomasz PikFriend
Messages: 18
Registered: July 2009
Junior Member
erwin de ley wrote:
> Hi Tomek,
>
> Thanks for the hint. I've read the tutorial quickly, and loaded the example
> project.
>
> Do I understand it correctly that I should get the DTDs locally somewhere and
> add them to the catalog, and then also modify the relevant XML files to point
> to the local DTD?
>
> Or can I keep for example <!DOCTYPE tiles-definitions PUBLIC "-//Apache
> Software Foundation//DTD Tiles Configuration//EN"
> "http://jakarta.apache.org/struts/dtds/tiles-config.dtd"> [/xml] but just add
> a DTD to the catalog with the key
>
> "-//Apache Software Foundation//DTD Tiles Configuration//EN"
>
> and then WTP will look in that catalog to find the DTD?

You need to get DTD locally somewhere, define a mapping between
"-//Apache Software Foundation//DTD Tiles Configuration//EN"
(that's idea of XML Catalog) and your local file in XML catalog
and WTP will use local file. Do not worry about SystemID (http://....).

I'm guessing that DTD is packaged somewhere in struts.jar.

HTH,
Tomek

> Cheers
>
> Erwin
Re: The User Operation is waiting for background work to complete [message #151087 is a reply to message #151006] Thu, 08 December 2005 09:08 Go to previous messageGo to next message
Yusuf is currently offline YusufFriend
Messages: 6
Registered: July 2009
Junior Member
> You may want to post your experience producing the test case here before
> opening a bug - something like "the problem goes away when I remove the 50
> MB :-) XMLs I have in my project)"

Hello.. I'm sorry for the late response, lately i've been experimenting
with eclipse.. and it seems the source cause of this problem is indeed the
xml dtd validator..
i just noticed that i can use xml catalogs to validate the xmls so i tried
to download manually the dtds from each lib i use
(spring/web.xml/ibatis/jasper/etc..) and registered the catalogs in
eclipse, and suddenly, all the waiting and hanging is gone! =)

> Bugzilla: There is a "bugs" link on the eclipse.org main page, go there
> and then to "Report a new bug". I guess you will need to create a Bugzilla
> account before you can really report a bug. Post your description and
> attach your trimmed down workspace (maybe unless it is still several
> megabytes zipped)

ok i will try to create account in bugzilla and then trying to reproduce
the error, i hope tomorrow i can

> Since you talk about "still validating" and "bad internet connection" -
> are those 10-30 minutes with an idle processor (may be waiting for some
> network interaction) or at 100% load (may be some crazy indexing) ?

those are 10-30 idle processor, i think only waiting for network
interaction, but the problem is even though i cancelled the dtd
validation, it still tries to validate and download the file (until maybe
it timed out in 10-30 minutes) and thus blocking other processes (like
saving, starting app. server, etc.)

anyway, i'm really glad that eclipse have a very responsive community, and
really2 thank you for your help, and I will try to reproduce the error
today or tomorrow..

Yusuf S.
Re: The User Operation is waiting for background work to complete [message #151095 is a reply to message #151018] Thu, 08 December 2005 09:10 Go to previous messageGo to next message
Yusuf is currently offline YusufFriend
Messages: 6
Registered: July 2009
Junior Member
Hi Darryl, yes i already tried that too, both in the project and the
global settings, but i have solved the problem with xmlcatalogs (see this
link:
http://www.eclipse.org/newsportal/article.php?id=8655&gr oup=eclipse.webtools#8655)

thank you for your time!

Yusuf S.
Re: The User Operation is waiting for background work to complete [message #151098 is a reply to message #151021] Thu, 08 December 2005 09:15 Go to previous messageGo to next message
Yusuf is currently offline YusufFriend
Messages: 6
Registered: July 2009
Junior Member
Hello, in addition to Tomasz' reply, I also have solved the problem with
xml catalogs.
Here's an example of how to do it:

1. i'm using ibatis' sqlMap definition:
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN"
"http://www.ibatis.com/dtd/sql-map-2.dtd">

2. just copy the url http://www.ibatis.com/dtd/sql-map-2.dtd, paste it in
your browser, and then save the file locally

3. copy the "-//iBATIS.com//DTD SQL Map 2.0//EN" entry (without the
quotes)

4. go to Window > Preferences > Web and XML > XML Catalog
Re: The User Operation is waiting for background work to complete [message #151106 is a reply to message #151098] Thu, 08 December 2005 09:18 Go to previous messageGo to next message
Yusuf is currently offline YusufFriend
Messages: 6
Registered: July 2009
Junior Member
Yusuf wrote:

> Hello, in addition to Tomasz' reply, I also have solved the problem with
> xml catalogs.
> Here's an example of how to do it:

> 1. i'm using ibatis' sqlMap definition:
> <!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN"
> "http://www.ibatis.com/dtd/sql-map-2.dtd">

> 2. just copy the url http://www.ibatis.com/dtd/sql-map-2.dtd, paste it in
> your browser, and then save the file locally

> 3. copy the "-//iBATIS.com//DTD SQL Map 2.0//EN" entry (without the
> quotes)

> 4. go to Window > Preferences > Web and XML > XML Catalog

oops sorry pressed Post button accidentally..

4. go to Window > Preferences > Web and XML > XML Catalog > Add

5. - URI : location of the local dtd file
- Key : -//iBATIS.com//DTD SQL Map 2.0//EN

6. press OK

i hope this helped.. because this hanging problem has been making me crazy
for the last few months and im very happy about this solution

Yusuf S.
Re: The User Operation is waiting for background work to complete [message #919173 is a reply to message #150868] Fri, 21 September 2012 19:01 Go to previous message
J.R. Willett is currently offline J.R. WillettFriend
Messages: 1
Registered: September 2012
Junior Member
I used to wait for the "User Operating is Waiting" dialog to go away on its own, but I recently realized that that in my version of eclipse (latest) I can just close the dialog and keep editing files.

This dialog is only modal until you close it. Closing it does not stop the queued actions from happening in the background while you continue working!
Previous Topic:JSDT extending indexer
Next Topic:3.4.0 of webtools shows as available for 3.7.2 Eclipse, but has dependencies on 3.8.
Goto Forum:
  


Current Time: Fri Dec 19 22:59:45 GMT 2014

Powered by FUDForum. Page generated in 0.12682 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software