facebook

m2e error for any Maven project on CI 8 and CI 9

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #544440 Reply

    Piergiorgio Lucidi
    Participant

    Hi,

    after the upgrade on CI 8 it seems that the m2e plugin started to return the following exception.
    The problem here is that I have in MyEclipse, after the Maven Update project feature the popup with the NullPointException alert that is very annoying.

    I have to use Maven from bash because for some project I can’t

    The strange thing is that for any Maven project I have a similar exception and I don’t understand what is the real cause. From a Java point of view I should have any configuration correctly set.

    Could you please support me?
    Thank you.

    !ENTRY org.eclipse.m2e.core 4 0 2017-12-04 09:07:35.070
    !MESSAGE Could not update project XXXXX configuration
    !STACK 0
    java.lang.NullPointerException
    	at java.lang.String.compareTo(String.java:1155)
    	at com.genuitec.eclipse.runtime.internal.ExtPointRuntimeType.getLatestJavaVersion(ExtPointRuntimeType.java:369)
    	at com.genuitec.eclipse.runtime.internal.ExtPointRuntimeType.getRuntimeComponents(ExtPointRuntimeType.java:274)
    	at com.genuitec.eclipse.runtime.internal.Runtime.getComponents(Runtime.java:47)
    	at com.genuitec.eclipse.runtime.internal.RuntimeBridge$RuntimeStub.getRuntimeComponents(RuntimeBridge.java:49)
    	at org.eclipse.wst.common.project.facet.core.runtime.internal.BridgedRuntime.getRuntimeComponents(BridgedRuntime.java:61)
    	at org.eclipse.wst.common.project.facet.core.runtime.internal.BridgedRuntime.supports(BridgedRuntime.java:83)
    	at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.refreshTargetableRuntimes(FacetedProjectWorkingCopy.java:1151)
    	at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.setProjectFacets(FacetedProjectWorkingCopy.java:778)
    	at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.addProjectFacet(FacetedProjectWorkingCopy.java:809)
    	at com.genuitec.eclipse.maven.wtp.spring.internal.configurators.SpringProjectConfigurator.installSpringFacet(SpringProjectConfigurator.java:78)
    	at com.genuitec.eclipse.maven.wtp.spring.internal.configurators.SpringProjectConfigurator.configureFacets(SpringProjectConfigurator.java:69)
    	at com.genuitec.eclipse.maven.wtp.spring.internal.configurators.SpringProjectConfigurator.configure(SpringProjectConfigurator.java:53)
    	at org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:120)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$3.call(ProjectConfigurationManager.java:502)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$3.call(ProjectConfigurationManager.java:1)
    	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
    	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:495)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration0(ProjectConfigurationManager.java:433)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:346)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:1)
    	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
    	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
    	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
    	at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1351)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:343)
    	at org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob.runInWorkspace(UpdateMavenProjectJob.java:77)
    	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
    	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    #544446 Reply

    Piergiorgio Lucidi
    Participant

    It seems that the problem is related to facets, I can’t see the dialog for managing facets it is returning a black window with a NullPointerException:

    !ENTRY org.eclipse.wst.common.project.facet.core 4 0 2017-12-04 10:41:52.276
    !MESSAGE Failed to execute runnable (java.lang.NullPointerException)
    !STACK 0
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
    	at org.eclipse.swt.SWT.error(SWT.java:4533)
    	at org.eclipse.swt.SWT.error(SWT.java:4448)
    	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:255)
    	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)
    	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4806)
    	at org.eclipse.wst.common.project.facet.ui.internal.RuntimesPanel.handleRuntimeValidationResultChanged(RuntimesPanel.java:532)
    	at org.eclipse.wst.common.project.facet.ui.internal.RuntimesPanel.access$8(RuntimesPanel.java:519)
    	at org.eclipse.wst.common.project.facet.ui.internal.RuntimesPanel$RuntimeValidationAssistant$1.handleEvent(RuntimesPanel.java:1002)
    	at org.eclipse.wst.common.project.facet.core.runtime.events.internal.RuntimeLifecycleListenerRegistry.notifyListeners(RuntimeLifecycleListenerRegistry.java:76)
    	at org.eclipse.wst.common.project.facet.core.runtime.internal.RuntimeManagerImpl$RuntimeValidationThread.run(RuntimeManagerImpl.java:1088)
    Caused by: java.lang.NullPointerException
    #544448 Reply

    Brian Fernandes
    Moderator

    Piergiorgio,

    You mentioned both CI 8 and CI 9 in your title (CI 9 was released on Friday). Can you clarify what version you were on before you started experiencing issues – and did you run into this problem with both CI 8 and CI 9?

    Can you zip-up the .settings folder as well as the .project folder of your project and send it to us? We’ll take a look right away and see if your project metadata is bad, causing this problem. Apologies for the inconvenience caused.

    #544449 Reply

    Piergiorgio Lucidi
    Participant

    I’m using macOS Sierra 10.12.6, trying to create a new web app project using the standard Maven archetype provided by Apache (maven-archetype-webapp):

    
    !ENTRY com.genuitec.eclipse.j2eedt.ui 4 0 2017-12-04 10:52:54.805
    !MESSAGE <null>
    !STACK 0
    java.lang.NullPointerException
    	at java.lang.String.compareTo(String.java:1155)
    	at com.genuitec.eclipse.runtime.internal.ExtPointRuntimeType.getLatestJavaVersion(ExtPointRuntimeType.java:369)
    	at com.genuitec.eclipse.runtime.internal.ExtPointRuntimeType.getRuntimeComponents(ExtPointRuntimeType.java:274)
    	at com.genuitec.eclipse.runtime.internal.Runtime.getComponents(Runtime.java:47)
    	at com.genuitec.eclipse.runtime.internal.RuntimeBridge$RuntimeStub.getRuntimeComponents(RuntimeBridge.java:49)
    	at org.eclipse.wst.common.project.facet.core.runtime.internal.BridgedRuntime.getRuntimeComponents(BridgedRuntime.java:61)
    	at org.eclipse.wst.common.project.facet.core.runtime.internal.BridgedRuntime.supports(BridgedRuntime.java:83)
    	at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.refreshTargetableRuntimes(FacetedProjectWorkingCopy.java:1151)
    	at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.setProjectFacets(FacetedProjectWorkingCopy.java:778)
    	at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.setFixedProjectFacets(FacetedProjectWorkingCopy.java:508)
    	at org.eclipse.wst.common.componentcore.datamodel.FacetProjectCreationDataModelProvider.propertySet(FacetProjectCreationDataModelProvider.java:361)
    	at org.eclipse.jst.j2ee.project.facet.J2EEFacetProjectCreationDataModelProvider.propertySet(J2EEFacetProjectCreationDataModelProvider.java:140)
    	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelImpl.internalSetProperty(DataModelImpl.java:182)
    	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelImpl.setProperty(DataModelImpl.java:172)
    	at org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelProvider.setProperty(AbstractDataModelProvider.java:234)
    	at com.genuitec.eclipse.j2eedt.facet.internal.WebFacetProjectCreationDataModelProvider.init(WebFacetProjectCreationDataModelProvider.java:32)
    	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelImpl.init(DataModelImpl.java:71)
    	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelImpl.<init>(DataModelImpl.java:56)
    	at org.eclipse.wst.common.frameworks.datamodel.DataModelFactory.createDataModel(DataModelFactory.java:131)
    	at com.genuitec.eclipse.j2eedt.ui.wizard.WebProjectWizard.createDataModel(WebProjectWizard.java:39)
    	at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.<init>(NewProjectDataModelFacetWizard.java:77)
    	at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.<init>(NewProjectDataModelFacetWizard.java:88)
    	at com.genuitec.eclipse.j2eedt.facet.ui.MENewProjectDataModelFacetWizard.<init>(MENewProjectDataModelFacetWizard.java:30)
    	at com.genuitec.eclipse.j2eedt.facet.ui.MENewJavaProjectDataModelFacetWizard.<init>(MENewJavaProjectDataModelFacetWizard.java:29)
    	at com.genuitec.eclipse.j2eedt.ui.wizard.WebProjectWizard.<init>(WebProjectWizard.java:31)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    	at java.lang.Class.newInstance(Class.java:442)
    	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
    	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
    	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
    	at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:282)
    	at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createExecutableExtension(WorkbenchWizardElement.java:123)
    	at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createWizard(WorkbenchWizardElement.java:261)
    	at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:85)
    	at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
    	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
    	at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
    	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4248)
    	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1501)
    	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)
    	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1509)
    	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1313)
    	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3698)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
    	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
    	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
    	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
    	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
    
    !ENTRY org.eclipse.m2e.logback.appender 2 0 2017-12-04 10:53:53.943
    !MESSAGE Could not update project prova Maven Webapp configuration
    !STACK 0
    java.lang.NullPointerException
    
    !ENTRY org.eclipse.m2e.core 4 0 2017-12-04 10:53:53.986
    !MESSAGE Could not update project prova Maven Webapp configuration
    !STACK 0
    java.lang.NullPointerException
    
    !ENTRY com.genuitec.eclipse.migration 4 0 2017-12-04 10:53:54.375
    !MESSAGE Error while simulating list of facets to install.
    !STACK 0
    java.lang.NullPointerException
    #544450 Reply

    Piergiorgio Lucidi
    Participant

    Hi Brian,

    You mentioned both CI 8 and CI 9 in your title (CI 9 was released on Friday). Can you clarify what version you were on before you started experiencing issues – and did you run into this problem with both CI 8 and CI 9?

    I started to have some issues from CI8 but it was usable, starting from CI9 I can’t use it.
    I have attached a zip file with .settings and .project.

    Thank you for your support.

    Attachments:
    You must be logged in to view attached files.
    #544453 Reply

    Brian Fernandes
    Moderator

    Piergiorgio,

    What version of MyEclipse are you coming from – in which this project worked fine? It would appear that your project does not have enough metadata for Maven to work correctly – while the facet nature is present, the faceted project metadata is mostly missing from this project – so it looks like migration to a recent version was incorrectly performed. Did you modify the project properties or metadata yourself?

    Can you see your project listed in the Workspace Migration view? Window > Show View > General > Workspace Migration. If so, please refresh the view and go through the migration steps. From the error log you attached before, there’s a chance it isn’t visible, in which case we’ll give you some manual steps to perform.

    #544455 Reply

    Piergiorgio Lucidi
    Participant

    What version of MyEclipse are you coming from – in which this project worked fine?

    MyEclipse CI 7 worked very well, starting from CI 8 I saw problems.

    Did you modify the project properties or metadata yourself?

    No.

    Can you see your project listed in the Workspace Migration view? Window > Show View > General > Workspace Migration.

    The view is empty, I didn’t see any project to migrate.

    #544518 Reply

    support-swapna
    Moderator

    Piergiorgio,

    Attached is the zip containing the missing facet metadata files which you can copy into your project’s .settings folder.

    Shut down MyEclipse and in the file system explorer unzip the contents of the attached zip into your project’s .settings folder (leave the rest of files as it is). Once done, start MyEclipse and check if the problem still exists.

    If you are still seeing the issue, please clarify if you are seeing the problem in all the maven projects in the workspace. If possible, switch to a new workspace, check if the issue persists and send us the .log file located at workspace dir/.metadata/.log for further investigation.

    Apologies for inconvenience caused. Please let us know how it works for you.

    –Swapna
    MyEclipse Support

    Attachments:
    You must be logged in to view attached files.
    #613990 Reply

    Piergiorgio Lucidi
    Participant

    Unfortunately the problem is not solved also in the latest release, anyway you could take a look at the attached log snippet.
    My current version of MyEclipse is the following:
    Version: CI 2019.4.0
    Build id: 16.0.0-20190403

    
    !ENTRY org.eclipse.m2e.core 4 0 2019-05-09 10:22:23.907
    !MESSAGE Could not update project repository configuration
    !STACK 0
    java.lang.NullPointerException
    	at java.base/java.lang.String.compareTo(String.java:1196)
    	at com.genuitec.eclipse.runtime.internal.ExtPointRuntimeType.getLatestJavaVersion(ExtPointRuntimeType.java:369)
    	at com.genuitec.eclipse.runtime.internal.ExtPointRuntimeType.getRuntimeComponents(ExtPointRuntimeType.java:274)
    	at com.genuitec.eclipse.runtime.internal.Runtime.getComponents(Runtime.java:47)
    	at com.genuitec.eclipse.runtime.internal.RuntimeBridge$RuntimeStub.getRuntimeComponents(RuntimeBridge.java:49)
    	at org.eclipse.wst.common.project.facet.core.runtime.internal.BridgedRuntime.getRuntimeComponents(BridgedRuntime.java:61)
    	at org.eclipse.wst.common.project.facet.core.runtime.internal.BridgedRuntime.supports(BridgedRuntime.java:83)
    	at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.refreshTargetableRuntimes(FacetedProjectWorkingCopy.java:1151)
    	at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.setProjectFacets(FacetedProjectWorkingCopy.java:778)
    	at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.addProjectFacet(FacetedProjectWorkingCopy.java:809)
    	at com.genuitec.eclipse.maven.wtp.spring.internal.configurators.SpringProjectConfigurator.installSpringFacet(SpringProjectConfigurator.java:78)
    	at com.genuitec.eclipse.maven.wtp.spring.internal.configurators.SpringProjectConfigurator.configureFacets(SpringProjectConfigurator.java:69)
    	at com.genuitec.eclipse.maven.wtp.spring.internal.configurators.SpringProjectConfigurator.configure(SpringProjectConfigurator.java:53)
    	at org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:120)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$3.call(ProjectConfigurationManager.java:509)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$3.call(ProjectConfigurationManager.java:1)
    	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:178)
    	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:152)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:502)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration0(ProjectConfigurationManager.java:440)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:353)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:1)
    	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:178)
    	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:152)
    	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:100)
    	at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1332)
    	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:350)
    	at org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob.runInWorkspace(UpdateMavenProjectJob.java:77)
    	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:42)
    	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
    
    #613993 Reply

    support-swapna
    Moderator

    Piergiorgio,

    Sorry that you are still seeing this problem.

    1. Can you please clarify if you have copied the facet metadata files I sent in my previous response?
    2. In the latest MyEclipse 2019.4.0, do you see this problem if you create a new maven project (maven-archetype-webapp archetype)?
    3. If the issue is only with one particular project, then please share with us the zipped project (excluding the source files in case they are private), including the .settings folder, .classpath,.project files and the pom.xml.
    4. Please switch to a new workspace, import the troubled project, replicate the problem and share with us the full workspace log file which is located at workspace dir/.metadata/.log to help us get the full list of errors logged. If you are seeing the issue with a new project as well, then instead of importing the older project, create a new one and share the .log file (save the .log as .txt and attach it).

    Apologies for inconvenience caused.

    –Swapna
    Genuitec Support

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: m2e error for any Maven project on CI 8 and CI 9

You must be logged in to post in the forum log in