Ask - Test
RE: Can't create liferay module project in Eclipse (2023-12 (4.30.0))
Can't create liferay module project in Eclipse (2023-12 (4.30.0))
New Member Post: 1 Join Date: 2/4/25 Recent PostsHi, I'm currently using liferay dxp 7.4.13-u92 for my project. My current issue is that I'm unable to create a liferay module project in eclipse.
This is the exception stack trace:
java.lang.RuntimeException:
NewLiferayModuleProjectOp.ProjectTemplateName:
ProjectTemplateNameValidationService.compute() has failed
at
org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at
org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at
org.eclipse.sapphire.services.ValidationService.validation(ValidationService.java:49)
at
org.eclipse.sapphire.Property.refreshValidation(Property.java:254)
at org.eclipse.sapphire.Property.validation(Property.java:476)
at
org.eclipse.sapphire.ui.forms.PropertyEditorPart.computeValidation(PropertyEditorPart.java:565)
at
org.eclipse.sapphire.ui.SapphirePart.refreshValidation(SapphirePart.java:453)
at
org.eclipse.sapphire.ui.SapphirePart.validation(SapphirePart.java:424)
at
org.eclipse.sapphire.ui.assist.internal.PropertyEditorAssistDecorator.refresh(PropertyEditorAssistDecorator.java:421)
at
org.eclipse.sapphire.ui.assist.internal.PropertyEditorAssistDecorator.<init>(PropertyEditorAssistDecorator.java:320)
at
org.eclipse.sapphire.ui.assist.internal.PropertyEditorAssistDecorator.<init>(PropertyEditorAssistDecorator.java:106)
at
org.eclipse.sapphire.ui.forms.swt.PropertyEditorPresentation.createDecorator(PropertyEditorPresentation.java:498)
at
org.eclipse.sapphire.ui.forms.swt.internal.PopUpListFieldPropertyEditorPresentation.createContents(PopUpListFieldPropertyEditorPresentation.java:97)
at
org.eclipse.sapphire.ui.forms.swt.PropertyEditorPresentation.render(PropertyEditorPresentation.java:170)
at
org.eclipse.sapphire.ui.forms.swt.internal.CompositePresentation.renderChildren(CompositePresentation.java:212)
at
org.eclipse.sapphire.ui.forms.swt.internal.CompositePresentation.refresh(CompositePresentation.java:252)
at
org.eclipse.sapphire.ui.forms.swt.internal.CompositePresentation.render(CompositePresentation.java:170)
at
org.eclipse.sapphire.ui.forms.swt.internal.CompositePresentation.render(CompositePresentation.java:91)
at
org.eclipse.sapphire.ui.forms.swt.SapphireWizardPage.createControl(SapphireWizardPage.java:115)
at
org.eclipse.jface.wizard.WizardDialog.showStartingPage(WizardDialog.java:1276)
at
org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:638)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1094)
at
org.eclipse.ui.internal.navigator.wizards.WizardShortcutAction.run(WizardShortcutAction.java:99)
at
org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)
at
org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:414)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at
org.eclipse.swt.widgets.Display.sendEvent(Display.java:4273)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4071)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3659)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
at
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at
org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:648)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:555)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:651)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:588)
at org.eclipse.equinox.launcher.Main.run(Main.java:1459)
Caused by: java.lang.RuntimeException:
NewLiferayModuleProjectOp.LiferayVersion:
TargetLiferayVersionDefaultValueService.compute() has failed
at
org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at
org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at
org.eclipse.sapphire.DefaultValueService.value(DefaultValueService.java:34)
at
org.eclipse.sapphire.Value.refreshDefaultContent(Value.java:197)
at org.eclipse.sapphire.Value.content(Value.java:316)
at
org.eclipse.sapphire.Value.content(Value.java:297)
at
com.liferay.ide.core.util.SapphireContentAccessor.get(SapphireContentAccessor.java:26)
at
com.liferay.ide.project.core.modules.ProjectTemplateNameValidationService.compute(ProjectTemplateNameValidationService.java:81)
at
com.liferay.ide.project.core.modules.ProjectTemplateNameValidationService.compute(ProjectTemplateNameValidationService.java:1)
at
org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 52 more
Caused by: java.lang.NullPointerException: Cannot
invoke
"com.liferay.release.util.ReleaseEntry.getProductGroupVersion()"
because "releaseEntry" is null
at
com.liferay.ide.core.workspace.LiferayWorkspaceUtil.getLiferayWorkspaceProjectVersion(LiferayWorkspaceUtil.java:240)
at
com.liferay.ide.project.core.service.TargetLiferayVersionDefaultValueService.compute(TargetLiferayVersionDefaultValueService.java:39)
at
com.liferay.ide.project.core.service.TargetLiferayVersionDefaultValueService.compute(TargetLiferayVersionDefaultValueService.java:1)
at
org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 61 more
Session Data:
eclipse.buildId=4.30.0.20231201-1200
java.version=17.0.11
java.vendor=Oracle Corporation
BootLoader constants: OS=win32,
ARCH=x86_64, WS=win32, NL=en_SG
Framework arguments: -product
org.eclipse.epp.package.jee.product
Command-line arguments: -os
win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
gradle.properties
liferay.workspace.home.dir = C:/liferay-dxp-7.4.13.u92
liferay.workspace.bundle.dist.include.metadata = true
liferay.workspace.modules.dir = modules
liferay.workspace.themes.dir = themes
liferay.workspace.wars.dir = modules
microsoft.translator.subscription.key =
liferay.workspace.product = dxp-7.4-u92
target.platform.index.sources = false
RE: Can't create liferay module project in Eclipse (2023-12 (4.30.0))
Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent PostsU92 was not yet ready for Java 17.
RE: RE: Can't create liferay module project in Eclipse (2023-12 (4.30.0))
New Member Posts: 12 Join Date: 6/25/20 Recent PostsI know this is 6 months later but I am having exactly the same problem (only with 2024.q2.8 not u92), can you list the exact steps to resolve this?
Powered by Liferay™