Results 1 to 4 of 4

Thread: STS hang-up when editing *.class files

  1. #1
    Join Date
    Mar 2012
    Location
    Vienna, Austria
    Posts
    14

    Default STS hang-up when editing *.class files

    Hi guys, i get the following error, when I am copying (or paste) a phrase from a domain class:


  2. #2
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    Before we can get any further, I'm going to need some more information:

    1. What kind of project is this? Grails? Spring? Roo?
    2. What kind of file are you working on? java, groovy, aspectj? Your title mentions .class file, but you can't really copy and paste to them (unless you are using a byte code editor) And class files are not domain classes.
    3. Any errors in the Eclipse error log? Window -> Show view -> other -> Error log
    4. Is this problem reproducible? Or did it only happen once?
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  3. #3
    Join Date
    Mar 2012
    Location
    Vienna, Austria
    Posts
    14

    Default

    1. It is a Grails project
    2. I am working on groovy. Yes I mean .groovy in the domain class, sorry for that
      Well it is that: I have the definition (String one, String two, ...) the mapping and the constraints.
      When I mark something f.e. in the mapping for example: street sqlType: "VARCHAR2(132)", then make STRG+C or right click copy, sts is frozen.
    3. I just did it. Made it frozen, and restarted STS. Here are the Error Logs:


    ERROR Log 1

    Code:
    eclipse.buildId=2.9.2.201205071000-RELEASE
    java.version=1.6.0_26
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_AT
    Framework arguments:  -product com.springsource.sts.ide
    Command-line arguments:  -os win32 -ws win32 -arch x86 -product com.springsource.sts.ide
    
    Warning
    Thu Jul 19 12:55:26 CEST 2012
    Getting a lock required more than 10000 ms. There might be a synchronization problem in this callstack or just the build/dispose process of some components took too long!
    
    java.lang.Exception: Debug stacktrace
    	at org.eclipse.equinox.internal.ds.InstanceProcess.getLock(InstanceProcess.java:119)
    	at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:528)
    	at org.eclipse.equinox.internal.ds.ServiceReg.getService(ServiceReg.java:53)
    	at org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(ServiceUse.java:138)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at org.eclipse.osgi.internal.serviceregistry.ServiceUse.getService(ServiceUse.java:136)
    	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:468)
    	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:467)
    	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:594)
    	at org.eclipse.equinox.internal.p2.core.ProvisioningAgent.addingService(ProvisioningAgent.java:159)
    	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:980)
    	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
    	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:262)
    	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:185)
    	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:348)
    	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:283)
    	at org.eclipse.equinox.internal.p2.core.ProvisioningAgent.getService(ProvisioningAgent.java:66)
    	at org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepositoryFactory.getLocalFile(CompositeMetadataRepositoryFactory.java:70)
    	at org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepositoryFactory.load(CompositeMetadataRepositoryFactory.java:98)
    	at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
    	at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:749)
    	at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:651)
    	at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
    	at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
    	at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker.getAvailableRepositories(UpdateChecker.java:150)
    	at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker.checkForUpdates(UpdateChecker.java:128)
    	at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker$UpdateCheckThread.run(UpdateChecker.java:72)
    
    ERROR Log 2
    
    eclipse.buildId=2.9.2.201205071000-RELEASE
    java.version=1.6.0_26
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_AT
    Framework arguments:  -product com.springsource.sts.ide
    Command-line arguments:  -os win32 -ws win32 -arch x86 -product com.springsource.sts.ide
    
    Warning
    Thu Jul 19 12:55:05 CEST 2012
    The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
    4. It is reproducible.
    Last edited by Andrew Eisenberg; Jul 19th, 2012 at 11:12 AM. Reason: formatting

  4. #4
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    Sorry...one more thing to ask. After the hang, can you run jps and then jstack on the command line? Paste the information here.

    (jps gets all java process ids. jstack prints the full stack trace of a single java process.)
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

Posting Permissions

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