Community
Participate
Working Groups
In EjbClientProjectCreationOperation, the operation will fail if the project does not have target runtime. The code fails here: //Ensure Java DM has latest supported version try { IProjectFacetVersion oldVersion = (IProjectFacetVersion) javadm.getProperty(IFacetDataModelProperties.FACET_VERSION); IProjectFacetVersion newVersion = JavaFacet.FACET.getLatestSupportedVersion(runtime); <<<<<------ An exception is thrown here if runtime is null if (newVersion != null && (oldVersion == null || oldVersion.getVersionString().compareTo(newVersion.getVersionString()) < 0 || !runtime.supports(oldVersion))) { javadm.setProperty(IFacetDataModelProperties.FACET_VERSION, newVersion); } } catch (CoreException e) { ModulecorePlugin.logError(e); }
Created attachment 209043 [details] Patch for 3.3.2 and 3.4
Code committed to R3_3_maintenance and HEAD for WTP 3.3.2 and 3.4. Resolving defect.