[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3414) Trouble during expanding project view in package explorer.

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Mon Jan 19 19:46:04 EST 2009


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

Snjezana Peco commented on JBIDE-3414:
--------------------------------------

Here is a description of this issue http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg20024.html .
It is easier to reproduce it on slower machines, but you can reproduce it while debugging the New Seam Project wizard.
The problem also occurs within WTP classcontainers that use JavaProject.getPackageFragmentRoots() (EAR container, Web container), within the ClasspathDependencyValidator class...

I have created a patched jdt.ui plugin that fixes the issue within the Package Explorer.
The size of the new plugin is 9193KB and is placed in https://svn.jboss.org/repos/jbosstools/workspace/snjeza/jdt.ui.patch/patch2/org.eclipse.jdt.ui_3.4.1.r341_v20080827-1100.jar

Aliaksey, Anton,
Could you please add the new patched plugin and try to reproduce this issue?

Within a seam plugin, the fix is adding the following code after creating a WAR project (or after SeamProjectCreator.execute()) :

IJavaProject javaProject = JavaCore.create(project);
if (javaProject != null) {
	Object object = ((JavaProject) javaProject).getElementInfo();
	if (object instanceof JavaElementInfo && javaProject instanceof JavaProject) {
		// copied from JavaProject.buildStructure(...)
		JavaElementInfo info = (JavaElementInfo) object;
		IClasspathEntry[] resolvedClasspath = ((JavaProject) javaProject).getResolvedClasspath();
		info.setChildren(((JavaProject) javaProject).computePackageFragmentRoots(resolvedClasspath,false, null /* no reverse map */));
		((JavaProject) javaProject).getPerProjectInfo().rememberExternalLibTimestamps();
	}
}

Max,
I think that this fix is reliable. Can I commit it to CR2?


> Trouble during expanding project view in package explorer.
> ----------------------------------------------------------
>
>                 Key: JBIDE-3414
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3414
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Archives
>    Affects Versions: 3.0.0.cr1
>         Environment: WindowsXP SP2
> JBoss Developer Studio
> Version: 2.0.0.CR1
> Build id: jbdevstudio-eap-win32-2.0.0.CR1-N200812150006.jar
> JDK 1.5_08
>            Reporter: Aliaksey Nis
>            Assignee: Snjezana Peco
>            Priority: Critical
>             Fix For: 3.0.0.CR2
>
>         Attachments: exception.txt, expand.JPG
>
>
> EXECUTE: Create Seam 1.2 war project.
> EXECUTE: Open archives view, create zipped WAR archive.
> FAILURE: In package explorer now impossible to see project structure (look at screenshot).
> This issue sometimes appears, usually on Seam War projects. Usually when creating archive, or expanding in view project during build workspace opration.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list