Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: "Waiting for background work to complete" when Roo Shell open in STS

  1. #1
    Join Date
    Sep 2005
    Posts
    27

    Unhappy "Waiting for background work to complete" when Roo Shell open in STS

    I cannot seem to get a handle on using Roo effectively in STS. I like Roo. I want it to work, but the tooling is just not letting me use it. The Roo Shell seems to cause STS to hang for long periods of time, even when there are very few items for it to manage. I've made a couple of Roo-based projects in the past and just muscled through these types of delays, but I was hoping upon installing STS 2.6.1 with Roo 1.1.3, the problems would be resolved. I've created a new project. I have 4 entities. That's all Roo has to manage right now. After adding a custom finder to one of the entities, STS + Roo Shell has become unusable. That's all it took. Now every save causes a "waiting for background work to complete" message. Every Project->Clean is stalled indefinitely. The only escape is to Force Quit STS (because it will not shut down until the background work finishes, which never happens) and start anew without opening the Roo Shell. I then have to use Roo externally to STS and constantly refresh my project to pick up the changes. My machine is a MacBook Pro with a solid-state hard drive and 8GB of ram, so I know its not my machine's lack of "umph" that's slowing me down. Has anyone else had this problem? It has always existed for me with every version of STS + Roo Shell so far. It's like the project becomes "tainted," and there is no recovery. Once upon a time, clearing the sts-cache under the Roo directory might help temporarily, but ultimately, I always run into this time and time again. The proposed increased productivity that's supposed to come with using Roo is completely reversed by the required tools. Any ideas?
    -Matt

  2. #2

    Default

    we're facing the same problem here, using following versions:
    STS Version: 2.6.1.RELEASE Build Id: 201105041000
    ROO 1.1.3.RELEASE [rev 4404ffb]

    We have a project with 15 entities, using GWT.

    When starting the Roo-shell in STS it needs more then 10 minutes (consuming 100% CPU) until it executes a command (e.g. "hint");
    When starting the Roo-shell from command line (Win-XP), it's just a matter of < 30 seconds...

  3. #3

    Default

    with the metadata status command I see no big difference between external roo shell and sts-embedded one. maybe it's an STS/eclipse issue?

    here are the results of metadata status:

    sts:
    Code:
    roo> metadata status
    000003 ms; 003429 call(s): org.springframework.roo.project.AutomaticProjectUpgradeService
    000004 ms; 003429 call(s): org.springframework.roo.classpath.TypeLocationServiceImpl
    000132 ms; 002003 call(s): org.springframework.roo.addon.configurable.ConfigurableMetadataProviderImpl
    000142 ms; 002772 call(s): org.springframework.roo.addon.solr.SolrMetadataProvider
    000148 ms; 002772 call(s): org.springframework.roo.addon.solr.SolrWebSearchMetadataProvider
    000153 ms; 002772 call(s): org.springframework.roo.addon.entity.IdentifierMetadataProviderImpl
    000153 ms; 001720 call(s): org.springframework.roo.addon.solr.SolrMetadata
    000155 ms; 002672 call(s): org.springframework.roo.addon.serializable.SerializableMetadataProviderImpl
    000158 ms; 002772 call(s): org.springframework.roo.addon.web.mvc.controller.scaffold.json.WebJsonMetadataProviderImpl
    000160 ms; 001720 call(s): org.springframework.roo.addon.entity.IdentifierMetadata
    000161 ms; 001720 call(s): org.springframework.roo.addon.solr.SolrWebSearchMetadata
    000166 ms; 001720 call(s): org.springframework.roo.addon.serializable.SerializableMetadata
    000166 ms; 002772 call(s): org.springframework.roo.addon.web.mvc.controller.converter.ConversionServiceMetadataProvider
    000171 ms; 002772 call(s): org.springframework.roo.addon.property.editor.EditorMetadataProvider
    000177 ms; 001720 call(s): org.springframework.roo.addon.configurable.ConfigurableMetadata
    000184 ms; 001720 call(s): org.springframework.roo.addon.web.mvc.controller.converter.ConversionServiceMetadata
    000188 ms; 001720 call(s): org.springframework.roo.addon.dod.DataOnDemandMetadata
    000198 ms; 001720 call(s): org.springframework.roo.addon.web.mvc.controller.scaffold.mvc.WebScaffoldMetadata
    000203 ms; 001720 call(s): org.springframework.roo.addon.web.mvc.controller.scaffold.finder.WebFinderMetadata
    000210 ms; 001720 call(s): org.springframework.roo.addon.property.editor.EditorMetadata
    000239 ms; 002772 call(s): org.springframework.roo.addon.json.JsonMetadataProvider
    000244 ms; 001720 call(s): org.springframework.roo.addon.json.JsonMetadata
    000257 ms; 001720 call(s): org.springframework.roo.addon.web.mvc.controller.scaffold.json.WebJsonMetadata
    000261 ms; 002772 call(s): org.springframework.roo.addon.web.mvc.controller.scaffold.finder.WebFinderMetadataProviderImpl
    000329 ms; 006197 call(s): org.springframework.roo.addon.dod.DataOnDemandMetadataProvider
    000376 ms; 002770 call(s): org.springframework.roo.addon.test.IntegrationTestMetadataProvider
    000454 ms; 001720 call(s): org.springframework.roo.addon.test.IntegrationTestMetadata
    001194 ms; 001727 call(s): org.springframework.roo.addon.tostring.ToStringMetadata
    001427 ms; 001720 call(s): org.springframework.roo.addon.entity.EntityMetadata
    002061 ms; 001720 call(s): org.springframework.roo.addon.finder.FinderMetadata
    002463 ms; 001879 call(s): org.springframework.roo.addon.javabean.JavaBeanMetadataProvider
    002888 ms; 001720 call(s): org.springframework.roo.addon.plural.PluralMetadata
    003073 ms; 001793 call(s): org.springframework.roo.addon.plural.PluralMetadataProviderImpl
    003139 ms; 001720 call(s): org.springframework.roo.addon.javabean.JavaBeanMetadata
    003519 ms; 002772 call(s): org.springframework.roo.addon.dbre.DbreMetadataProviderImpl
    003527 ms; 001720 call(s): org.springframework.roo.addon.dbre.DbreMetadata
    003651 ms; 002252 call(s): org.springframework.roo.addon.entity.EntityMetadataProviderImpl
    003765 ms; 005616 call(s): org.springframework.roo.addon.finder.FinderMetadataProviderImpl
    005490 ms; 005423 call(s): org.springframework.roo.addon.tostring.ToStringMetadataProvider
    006709 ms; 003955 call(s): org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider
    008294 ms; 000372 call(s): org.springframework.roo.classpath.PhysicalTypeIdentifier
    010427 ms; 000002 call(s): org.springframework.roo.project.MavenProjectMetadataProvider
    013656 ms; 000041 call(s): org.springframework.roo.addon.gwt.GwtMetadataProviderImpl
    013855 ms; 006201 call(s): org.springframework.roo.addon.web.mvc.controller.scaffold.mvc.WebScaffoldMetadataProviderImpl
    027308 ms; 001720 call(s): org.springframework.roo.addon.gwt.GwtMetadata
    046831 ms; 003429 call(s): org.springframework.roo.project.ProjectPathMonitoringInitializer
    [DefaultMetadataService@19fa325 validGets = 163958, recursiveGets = 276, cachePuts = 6909, cacheHits = 111646, cacheMisses = 52312, cacheEvictions = 49365, cacheCurrentSize = 2308, cacheMaximumSize = 100000]
    command-line:
    Code:
    roo> metadata status
    000003 ms; 003458 call(s): org.springframework.roo.project.AutomaticProjectUpgradeService
    000004 ms; 003458 call(s): org.springframework.roo.classpath.TypeLocationServiceImpl
    000105 ms; 002009 call(s): org.springframework.roo.addon.configurable.ConfigurableMetadataProviderImpl
    000131 ms; 002805 call(s): org.springframework.roo.addon.solr.SolrMetadataProvider
    000132 ms; 002805 call(s): org.springframework.roo.addon.solr.SolrWebSearchMetadataProvider
    000133 ms; 002805 call(s): org.springframework.roo.addon.entity.IdentifierMetadataProviderImpl
    000138 ms; 002805 call(s): org.springframework.roo.addon.json.JsonMetadataProvider
    000141 ms; 002805 call(s): org.springframework.roo.addon.property.editor.EditorMetadataProvider
    000141 ms; 001720 call(s): org.springframework.roo.addon.configurable.ConfigurableMetadata
    000144 ms; 002702 call(s): org.springframework.roo.addon.serializable.SerializableMetadataProviderImpl
    000144 ms; 001720 call(s): org.springframework.roo.addon.solr.SolrMetadata
    000145 ms; 001720 call(s): org.springframework.roo.addon.web.mvc.controller.scaffold.json.WebJsonMetadata
    000146 ms; 002805 call(s): org.springframework.roo.addon.web.mvc.controller.scaffold.json.WebJsonMetadataProviderImpl
    000147 ms; 001720 call(s): org.springframework.roo.addon.solr.SolrWebSearchMetadata
    000147 ms; 001720 call(s): org.springframework.roo.addon.serializable.SerializableMetadata
    000147 ms; 002805 call(s): org.springframework.roo.addon.web.mvc.controller.scaffold.finder.WebFinderMetadataProviderImpl
    000149 ms; 001720 call(s): org.springframework.roo.addon.entity.IdentifierMetadata
    000149 ms; 001720 call(s): org.springframework.roo.addon.property.editor.EditorMetadata
    000151 ms; 002805 call(s): org.springframework.roo.addon.web.mvc.controller.converter.ConversionServiceMetadataProvider
    000164 ms; 001720 call(s): org.springframework.roo.addon.web.mvc.controller.scaffold.mvc.WebScaffoldMetadata
    000168 ms; 001720 call(s): org.springframework.roo.addon.web.mvc.controller.scaffold.finder.WebFinderMetadata
    000168 ms; 006263 call(s): org.springframework.roo.addon.web.mvc.controller.scaffold.mvc.WebScaffoldMetadataProviderImpl
    000173 ms; 001720 call(s): org.springframework.roo.addon.web.mvc.controller.converter.ConversionServiceMetadata
    000179 ms; 002803 call(s): org.springframework.roo.addon.test.IntegrationTestMetadataProvider
    000183 ms; 001720 call(s): org.springframework.roo.addon.dod.DataOnDemandMetadata
    000186 ms; 001720 call(s): org.springframework.roo.addon.test.IntegrationTestMetadata
    000295 ms; 001720 call(s): org.springframework.roo.addon.json.JsonMetadata
    000827 ms; 001727 call(s): org.springframework.roo.addon.tostring.ToStringMetadata
    001131 ms; 001720 call(s): org.springframework.roo.addon.entity.EntityMetadata
    001329 ms; 001720 call(s): org.springframework.roo.addon.finder.FinderMetadata
    002165 ms; 001885 call(s): org.springframework.roo.addon.javabean.JavaBeanMetadataProvider
    002707 ms; 001720 call(s): org.springframework.roo.addon.plural.PluralMetadata
    002730 ms; 001720 call(s): org.springframework.roo.addon.javabean.JavaBeanMetadata
    002733 ms; 001793 call(s): org.springframework.roo.addon.plural.PluralMetadataProviderImpl
    002779 ms; 002258 call(s): org.springframework.roo.addon.entity.EntityMetadataProviderImpl
    002919 ms; 001720 call(s): org.springframework.roo.addon.dbre.DbreMetadata
    002927 ms; 002805 call(s): org.springframework.roo.addon.dbre.DbreMetadataProviderImpl
    003126 ms; 005480 call(s): org.springframework.roo.addon.tostring.ToStringMetadataProvider
    004131 ms; 005617 call(s): org.springframework.roo.addon.finder.FinderMetadataProviderImpl
    005506 ms; 003955 call(s): org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider
    006417 ms; 000372 call(s): org.springframework.roo.classpath.PhysicalTypeIdentifier
    007402 ms; 000002 call(s): org.springframework.roo.project.MavenProjectMetadataProvider
    010047 ms; 000041 call(s): org.springframework.roo.addon.gwt.GwtMetadataProviderImpl
    010256 ms; 006259 call(s): org.springframework.roo.addon.dod.DataOnDemandMetadataProvider
    020806 ms; 001720 call(s): org.springframework.roo.addon.gwt.GwtMetadata
    036501 ms; 003458 call(s): org.springframework.roo.project.ProjectPathMonitoringInitializer
    [DefaultMetadataService@8d7ba4 validGets = 165153, recursiveGets = 304, cachePuts = 6965, cacheHits = 112369, cacheMisses = 52784, cacheEvictions = 49782, cacheCurrentSize = 2308, cacheMaximumSize = 1
    00000]

  4. #4

    Default Have got the same problem.

    It happens to me all the time it seems, which is very anonnying as i have to restart sts every time.

    My environment is:
    springsource-tool-suite-2.6.1.SR1-e3.6.2-win32
    spring-roo-1.1.4.RELEASE

  5. #5
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    667

    Default

    Please log a JIRA ticket to ensure this gets the attention it deserves.

  6. #6

    Default

    logged a JIRA ticket: ROO-2492

  7. #7

    Default

    No progress on this issue? we waiting for a fix to this, otherwise this is really annoying. Have to restart my sts every time.

  8. #8
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    667

    Default

    Does it still happen if you use Roo 1.1.4 with STS 2.6.1?

  9. #9

    Default

    I have to use Roo 1.1.0 for some reason. Mine is a maven project(base on maven 2.2.1).

  10. #10
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    667

    Default

    Quote Originally Posted by cheng View Post
    I have to use Roo 1.1.0 for some reason.
    Even if 1.1.4 fixes your problem?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •