|
Re: About ATL engine [message #1850407 is a reply to message #1850394] |
Tue, 01 March 2022 20:30 |
|
Your error happened when running EMFTVM within Eclipse, but it cannot find the "org.eclipse.m2m.atl.emftvm.modelfactory" extension point. It's as if the "org.eclipse.m2m.atl.emftvm" plug-in is not properly installed in Eclipse.
Cheers,
Dennis
|
|
|
|
Re: About ATL engine [message #1850577 is a reply to message #1850519] |
Tue, 08 March 2022 20:05 |
|
There could be many reasons, depending on the context of the software project you're developing. Can you tell me if you're developing an Eclipse plug-in, RCP project, or regular Java project?
Cheers,
Dennis
|
|
|
|
Re: About ATL engine [message #1850646 is a reply to message #1850583] |
Fri, 11 March 2022 18:14 |
|
OK, that clears up what you're doing:
- you're writing an Eclipse plug-in
- you're importing another Eclipse plug-in (EMFTVM) as a regular Java library instead of directly as a plug-in
As a consequence, EMFTVM detects that Eclipse is running, and assumes its plug-in initialisation code has run (registering the "org.eclipse.m2m.atl.emftvm.modelfactory" extension point, and adding the default model factory to it).
Even though this is probably not the way you want to use EMFTVM, the error message is not helpful. Can you report a bug at https://bugs.eclipse.org/ ?
Cheers,
Dennis
|
|
|
|
|
|
Re: About ATL engine [message #1850666 is a reply to message #1850661] |
Sun, 13 March 2022 15:22 |
|
Yanhong Dong wrote on Sun, 13 March 2022 09:47Oh, I have tried to run your program, but I am getting this error. After researching for a long time I didn't find a proper solution.
My counteobjects2 plug-in did not work - or rather - did not fail in the way I wanted ;-). It was supposed to reproduce your issue. I've attached a new version that will generate the following error:
!ENTRY org.eclipse.ui 4 4 2022-03-13 16:16:51.429
!MESSAGE Could not create action delegate for id: org.eclipse.m2m.atl.examples.counteobjects2.objectContribution.action
!SUBENTRY 1 org.eclipse.equinox.registry 4 1 2022-03-13 16:16:51.429
!MESSAGE Plug-in "org.eclipse.m2m.atl.examples.counteobjects2" was unable to instantiate class "org.eclipse.m2m.atl.examples.counteobjects2.PopupAction".
!STACK 0
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:204)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:920)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
at org.eclipse.ui.internal.WorkbenchPlugin.lambda$0(WorkbenchPlugin.java:287)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:285)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:126)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:214)
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:5895)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1515)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5126)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4581)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
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:401)
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:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
Caused by: java.lang.NullPointerException
at org.eclipse.m2m.atl.emftvm.util.PluginExtensionUtilImpl.createModelFactoryRegistry(PluginExtensionUtilImpl.java:39)
at org.eclipse.m2m.atl.emftvm.impl.EmftvmFactoryImpl.createModelFactoryRegistry(EmftvmFactoryImpl.java:1591)
at org.eclipse.m2m.atl.emftvm.impl.EmftvmFactoryImpl.getModelFactoryRegistry(EmftvmFactoryImpl.java:1582)
at org.eclipse.m2m.atl.emftvm.impl.EmftvmFactoryImpl.createMetamodel(EmftvmFactoryImpl.java:1569)
at org.eclipse.m2m.atl.emftvm.util.EMFTVMUtil.getEcoreMetamodel(EMFTVMUtil.java:283)
at org.eclipse.m2m.atl.examples.counteobjects2.CountEObjects.<init>(CountEObjects.java:25)
at org.eclipse.m2m.atl.examples.counteobjects2.PopupAction.<init>(PopupAction.java:18)
... 42 more
Cheers,
Dennis
|
|
|
Re: About ATL engine [message #1850667 is a reply to message #1850666] |
Sun, 13 March 2022 16:29 |
|
As for the errors you're getting: they're errors pertaining to your entire Eclipse configuration + workspace, not just the plug-in you're trying to run. The errors you've shown are not relevant for the plug-ins I've submitted, so you can just continue (the two mentioned plug-ins will just not be available in your Eclipse Application).
Cheers,
Dennis
|
|
|
|
Re: About ATL engine [message #1850748 is a reply to message #1850714] |
Tue, 15 March 2022 21:48 |
|
I've read your problem.docx document, in which you mention an error triggered from the com.nuaa.mst.convert.process.Composed2Simple class. However, the org.eclipse.m2m.atl.examples.rar Eclipse project you attached does not contain a class by that name. It looks to be an entirely different project. The project you've attached has many things wrong with it and will be hard to fix, so I'd rather not.
Instead, I have two questions:
Cheers,
Dennis
|
|
|
|
Powered by
FUDForum. Page generated in 0.05392 seconds