Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-2069

It will show errors when create maven project using wizard that doesn't use default location

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0 M1
    • None
    • Wizards > Project
    • None

    Description

      1.create project then choose maven,and input project name lick "maven"
      2.click "Use default location"
      3.choose another location such as:"E:\eclipse"("eclipse" is not an empty folder)
      notice:sometimes the location will show such as "E:/eclipse/maven" in IDE-3.0,then you could delete "/maven" (maven is my project name)

      on our IDE-223,when we select location "E:\eclipse" , it will has error message "Project location is not empty or a parent pom." , but on our IDE-3.0 , it doesn't have message and it will show errors in error log

      Error Log:
      RuntimeException: NewLiferayPluginProjectOp.GroupId: GroupIdDefaultValueService.compute() has failed

      java.lang.RuntimeException: NewLiferayPluginProjectOp.GroupId: GroupIdDefaultValueService.compute() has failed
      at org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
      at com.liferay.ide.project.core.model.internal.GroupIdDefaultValueService.access$1(GroupIdDefaultValueService.java:1)
      at com.liferay.ide.project.core.model.internal.GroupIdDefaultValueService$1.handleTypedEvent(GroupIdDefaultValueService.java:88)
      at com.liferay.ide.project.core.model.internal.GroupIdDefaultValueService$1.handleTypedEvent(GroupIdDefaultValueService.java:1)
      at org.eclipse.sapphire.FilteredListener.handle(FilteredListener.java:35)
      at org.eclipse.sapphire.EventDeliveryJob.run(EventDeliveryJob.java:52)
      at org.eclipse.sapphire.JobQueue.process(JobQueue.java:94)
      at org.eclipse.sapphire.ListenerContext.broadcast(ListenerContext.java:126)
      at org.eclipse.sapphire.ListenerContext.broadcast(ListenerContext.java:132)
      at org.eclipse.sapphire.Property.broadcast(Property.java:780)
      at org.eclipse.sapphire.Value.refreshContent(Value.java:159)
      at org.eclipse.sapphire.Value.refresh(Value.java:73)
      at org.eclipse.sapphire.Value.write(Value.java:458)
      at org.eclipse.sapphire.ui.forms.swt.internal.TextFieldBinding.doUpdateModel(TextFieldBinding.java:98)
      at org.eclipse.sapphire.ui.forms.swt.AbstractBinding.updateModel(AbstractBinding.java:98)
      at org.eclipse.sapphire.ui.forms.swt.internal.TextFieldBinding$1.run(TextFieldBinding.java:60)
      at org.eclipse.sapphire.ui.DelayedTasksExecutor$WorkerThread$1.run(DelayedTasksExecutor.java:212)
      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4155)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3772)
      at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
      at org.eclipse.jface.window.Window.open(Window.java:803)
      at com.liferay.ide.project.ui.action.NewWizardAction.run(NewWizardAction.java:131)
      at com.liferay.ide.project.ui.action.NewPluginProjectDropDownAction.run(NewPluginProjectDropDownAction.java:351)
      at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:247)
      at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:228)
      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
      at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:462)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
      at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
      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:380)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
      Caused by: java.lang.NullPointerException
      at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.getMavenParentPomGroupId(NewLiferayPluginProjectOpMethods.java:125)
      at com.liferay.ide.project.core.model.internal.GroupIdDefaultValueService.compute(GroupIdDefaultValueService.java:53)
      at com.liferay.ide.project.core.model.internal.GroupIdDefaultValueService.compute(GroupIdDefaultValueService.java:1)
      at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
      ... 56 more

      Attachments

        1. IDE-223.png
          IDE-223.png
          44 kB
        2. IDE-30.jpg
          IDE-30.jpg
          71 kB

        Issue Links

          Activity

            People

              lu.li Lu Li (Inactive)
              ying.xu Ying Xu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                7 years, 23 weeks, 5 days ago

                Packages

                  Version Package