geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Akimov (JIRA)" <>
Subject [jira] Commented: (GERONIMODEVTOOLS-215) Does not work right-clik's option "Remove" to remove project from Server ("Servers" View)
Date Thu, 25 Oct 2007 13:23:51 GMT


Alexei Akimov commented on GERONIMODEVTOOLS-215:

the problem mentioned above is caused by fuzzy contract of modifyModules method in org.eclipse.wst.server.core.IServerWorkingCopy.
The first two parameters of it are arrays of IModule and it is not clear if one of the arrays
may be null. Anyway, when you remove project from the server, then an instance of org.eclipse.wst.server.ui.internal.view.servers.RemoveModuleAction
is invoked:
IServerWorkingCopy wc = server.createWorkingCopy();
wc.modifyModules(null, new IModule[] { module }, null);
server =, null);
The call is delegated for several times and finally canModyfyModules method of;GeronimoServerDelegate
is invoked

public IStatus canModifyModules(IModule[] add, IModule[] remove) {
	for (int i = 0; i < add.length; i++) {
		IModule module = add[i];
		if (module.getProject() != null) {
			IStatus status = FacetUtil.verifyFacets(module.getProject(), getServer());
			if (status != null && !status.isOK())
				return status;
	return Status.OK_STATUS;

It is clear that the first line of implementation will resut in NullPointerException which
later will cause CoreException and invalid status of the operation.

> Does not work right-clik's option "Remove" to remove project from Server ("Servers" View)
> -----------------------------------------------------------------------------------------
>                 Key: GERONIMODEVTOOLS-215
>                 URL:
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 2.0.0
>            Reporter: Tomasz Mazan
>            Assignee: Tim McConnell
> Hi Tomasz, Sorry to be so dense but I'm missing something obvious.  Are you able/willing
to provide the artifacts that is causing the failure for you ?? If not, are these the correct
steps that is causing the failure (so I can try to reproduce) ?? 
> 1. Deploy your first ejb.jar
> 2. Deploy your ear, which contains other ejb.jar files
> 3. Then I assume you're attempting to undeploy the ear that was deployed in Step 2 ??

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message