Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to create a V7 designer #2443

Closed
szolo opened this issue Jan 18, 2023 · 3 comments
Closed

Error when trying to create a V7 designer #2443

szolo opened this issue Jan 18, 2023 · 3 comments
Labels
bug Severity: Major Severity - Middle out of blocker, major and minor

Comments

@szolo
Copy link
Contributor

szolo commented Jan 18, 2023

Steps to reproduce

  1. Use latest Vaadin 7 Designer and Eclipse.
  2. Try to create a new V7 designer.

Actual behavior

Nothing happens, exception in the log.

java.lang.NoSuchMethodError: 'org.eclipse.core.runtime.IPath[] org.eclipse.m2e.core.project.IMavenProjectFacade.getResourceLocations()'
	at com.vaadin.designer.eclipse.util.SourceFolderUtils.getResourcesRootFolder(SourceFolderUtils.java:135)
	at com.vaadin.designer.eclipse.wizards.NewDesignWizardPage.init(NewDesignWizardPage.java:478)
	at com.vaadin.designer.eclipse.wizards.NewDesignWizardPage.<init>(NewDesignWizardPage.java:148)
	at com.vaadin.designer.eclipse.wizards.NewDesignWizard.addPages(NewDesignWizard.java:128)
	at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:119)
	at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:98)
	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:911)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:469)
	at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619)
	at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4256)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4054)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3642)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
	at org.eclipse.jface.window.Window.open(Window.java:799)

Expected behavior

Designer should be created.

IDE, Designer and OS version

Eclipse IDE for Enterprise Java and Web Developers 2022-12, Vaadin Designer 1.4.4 for Vaadin 7, Windows 10.

@szolo szolo added bug Severity: Major Severity - Middle out of blocker, major and minor labels Jan 18, 2023
@lordmikefin
Copy link

I got same error (maybe).
I was trying to create new Vaadin 10+ design.

image

Eclipse error

!ENTRY org.eclipse.ui 4 0 2023-01-27 14:55:28.743
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoSuchMethodError: 'org.eclipse.core.runtime.IPath[] org.eclipse.m2e.core.project.IMavenProjectFacade.getCompileSourceLocations()'
	at com.vaadin.designer2.eclipse.util.SourceFolderUtils.getSourceRootFolder(SourceFolderUtils.java:170)
	at com.vaadin.designer2.eclipse.wizards.NewFlowWizardPage.getJavaSourcePath(NewFlowWizardPage.java:511)
	at com.vaadin.designer2.eclipse.wizards.NewFlowWizardPage.initializeCompanionFileLocation(NewFlowWizardPage.java:506)
	at com.vaadin.designer2.eclipse.wizards.NewFlowWizardPage.initializeFieldsWithDefaults(NewFlowWizardPage.java:473)
	at com.vaadin.designer2.eclipse.wizards.NewFlowWizardPage.initializeFields(NewFlowWizardPage.java:418)
	at com.vaadin.designer2.eclipse.wizards.NewFlowWizardPage.createAdvancedControls(NewFlowWizardPage.java:354)
	at org.eclipse.ui.dialogs.WizardNewFileCreationPage.createControl(WizardNewFileCreationPage.java:240)
	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:178)
	at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:744)
	at org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java:1182)
	at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1235)
	at org.eclipse.jface.wizard.WizardDialog.lambda$3(WizardDialog.java:1223)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1223)
	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:918)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:469)
	at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619)
	...

IDE, Designer and OS version

IDE Designer Vaadin OS
Eclipse 2022-12 4.6.20 23.3.5 Windows 10

@Lionel-Peyron-APS
Copy link

I've got the same error as @lordmikefin with Vaadin 10+ Design.

It seems related to the m2e plugin's major release: eclipse-m2e/m2e-core#918.

Workaround: Downgrading m2e allows to have a working Vaadin Designer: There was still m2e 1.x in Eclipse 2022-06.

IDE, Designer and OS version

Eclipse 2022-12, Vaadin Designer 4.6.20, Linux

@szolo
Copy link
Contributor Author

szolo commented Apr 10, 2023

Same problem as #2449. Has been fixed already for Vaadin 7 branch.

@szolo szolo closed this as completed Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Severity: Major Severity - Middle out of blocker, major and minor
Projects
None yet
Development

No branches or pull requests

3 participants