[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7860) EJB wizard is hanging

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Fri Dec 17 08:21:18 EST 2010


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

Snjezana Peco commented on JBIDE-7860:
--------------------------------------

I can't reproduce the problem with creating an ejb project, but have noticed that creating a new Seam EAR project in JBT 3.2.0.Beta2 is very slow.

I think the problem is caused by fixing JBIDE-7085.
The ClientAllRuntimeClasspathProvider.resolveClasspathContainer method is often called (about twenty times when creating ejb project). This method creates a list containing 393 entries for JBoss AS 6.0 CR 1 .
The addSinglePath method, introduced by JBIDE-7805 checks the size and name of  the entries and very often accesses the filesystem.

The attached patch optimizes the ClientAllRuntimeClasspathProvider.resolveClasspathContainer  method in two ways:
- the number of round-trip operations to the filesystem is reduced  (the size of a file is cached and the p.toFile().exists isn't called unnecessarily)
- the list of entries for a runtime is cached and is created only once in one Eclipse session
 
This significantly speeds up creating a Seam Web project.

Juergen,

Do you have any specific EAR/EJB project in the workspace? If so, could you attach it to the jira?
I have attached a patched org.jboss.ide.eclipse.as.classpath.core plugin. Could you replace the same plugin (with the same version) that already exists in your plugins directory with the attached plugin, restart Eclipse using the -clean option and try to reproduce the problem again?
Note: You have to ensure that you have only one version of the org.jboss.ide.eclipse.as.classpath.core plugin in the plugins directory.
 

> EJB wizard is hanging
> ---------------------
>
>                 Key: JBIDE-7860
>                 URL: https://issues.jboss.org/browse/JBIDE-7860
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>    Affects Versions: 3.2.0.Beta2
>            Reporter: Juergen Zimmermann
>            Assignee: Snjezana Peco
>             Fix For: 3.2.0.CR1
>
>         Attachments: jstack.log, screenshot-ejb-wizard.jpg
>
>
> eclipse-jee-helios-SR1-win32 is fresh installed with JBossTools 3.2.0.Beta2 (plus some other plugins, see below). After creating an EAR project for JBossAS 6.0.0.CR1 I tried to create an EJB project, but the wizard is hanging (screenshot will be provided). Nothing is in the log file.
> Then I removed the eclipse directory and installed the same set of plugins, but JBossTools 3.2.0.Beta1 : the EJB wizard works fine.
> The set of plugins:
> classlocator 1.0.8
> csv-editor 0.2.0
> easy_shell 1.3.4
> egit 0.9.3
> hash-me 2.7.0
> m2e 0.10.2
> message-editor 0.8
> quickimage 1.0.3.2
> regexutil 1.2.4
> subclipse 1.6.16

-- 
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