[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-9111) Deadlock when creating a new JSF project

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Thu Jul 7 18:31:23 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613014#comment-12613014 ] 

Viacheslav Kabanovich commented on JBIDE-9111:
----------------------------------------------

After we configure Web Dynamic Project, jsdt in a facet listener (JsNatureInstaller) creates job to install js nature - that is run as a workspace job. At the same time we proceed to setting the selected runtime to the project - in the main thread, setting runtime invokes listeners that may wait for all pending jobs (e.g. J2EEFacetRuntimeChangedDelegate). I have tried to reproduce this issue by using debug mode and driving threads into the lock, but was not able to make Eclipse invoke org.eclipse.core.runtime.jobs.Job.yieldRule(). So, this issue must have very low probability but still it is possible.
I think that a simple and safe solution is to add runtime, and then server to the project in workspace jobs, in this case Eclipse will avoid running them in concurrent threads.

> Deadlock when creating a new JSF project
> ----------------------------------------
>
>                 Key: JBIDE-9111
>                 URL: https://issues.jboss.org/browse/JBIDE-9111
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 3.3.0.M1
>         Environment: Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> Java home: /usr/java/jdk1.6.0_24/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.38.6-27.fc15.x86_64", arch: "amd64", family: "unix"
> Eclipse Indigo Java EE RC3 20110602-0820
> JBoss tools plugins installed from http://download.jboss.org/jbosstools/updates/nightly/trunk/
>            Reporter: Fred Bricon
>            Assignee: Viacheslav Kabanovich
>            Priority: Critical
>             Fix For: 3.3.0.M3
>
>         Attachments: new-JSFproject-hangs.threaddump.txt
>
>
> After installing the JBT plugins from the nightly update site on a Eclipse JavaEE Indigo RC3,
> I created a new JSF project. The creation hanged indefinitely after clicking on finish. See attached threaddump
> Seems like an upstream issue to me.
> I couldn't not reproduce it after killing eclipse and restarting.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list