Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Generating Java class wFP_V2.impl.WFP_V2PackageImpl failed with an unhandled exception(Error handling and troubleshooting)
Generating Java class wFP_V2.impl.WFP_V2PackageImpl failed with an unhandled exception [message #1837531] Mon, 01 February 2021 21:47 Go to next message
Thomas Chiang is currently offline Thomas ChiangFriend
Messages: 83
Registered: March 2020

During my project dev life-cycle we found that we had a class in our ecore metamodel that we didn't need anymore so we removed it. As far as I have understood when generating the files for Sirius, upon deleting a class you have to delete all of the previously generated projects and the generate all again. So I did that. And ever since trying to delete that class project has imploded and I can't seem to generate the project to run sirius anymore because I get the error in the title.

Here is a screenshot of the error that seems to be the cause of all the issues in my project, that otherwise seemed to work just fine until I removed one class.

Any assistance would be awesome because I am starting to wonder if I am going to have to recreate the entire project from scratch now.

It seems adding another random class to my ecore metamodel allows the generation of the sirius projects again, but when I try to run the model as an eclipse project to access my VSM and generated projects I get this error:

As well as this one when I try open my representations.aird when I notice that none of my projects seem to be models anymore:


After ignoring the error, I can open up representations.aird to see this:

It seems that none of my previously created projects using my editor are recognized as valid project. But then when I click new and use my Ecore metamodel to generate a new modeling file, all of them pop back in. However all the diagram viewers are greyed out. When I click on them they open up, however I can no longer edit them at all as I get another error: eclipse.buildId=4.18.0.I20201202-1800
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.platform.ide
Command-line arguments: -product org.eclipse.platform.ide -data C:\Users\sirch\eclipse-workspace/../runtime-EclipseApplication -dev file:C:/Users/sirch/eclipse-workspace/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/ -os win32 -ws win32 -arch x86_64 -consoleLog

Mon Feb 01 17:01:33 EST 2021

org.eclipse.core.commands.ExecutionException: While executing the operation, an exception occurred
at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(
at org.eclipse.gef.EditDomain.mouseUp(
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseUp(
at org.eclipse.swt.widgets.TypedListener.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Display.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
at org.eclipse.ui.internal.Workbench.lambda$3(
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at org.eclipse.ui.internal.ide.application.IDEApplication.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
at java.base/java.lang.reflect.Method.invoke(
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(
Caused by: java.lang.NullPointerException: Cannot invoke "" because the return value of "" is null
at org.eclipse.emf.transaction.RecordingCommand.execute(
at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand.doExecute(
at org.eclipse.emf.workspace.AbstractEMFOperation.execute(
at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(
at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(
at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(
... 39 more

[Updated on: Mon, 01 February 2021 22:03]

Report message to a moderator

Re: Generating Java class wFP_V2.impl.WFP_V2PackageImpl failed with an unhandled exception [message #1837532 is a reply to message #1837531] Mon, 01 February 2021 21:51 Go to previous messageGo to next message
Thomas Chiang is currently offline Thomas ChiangFriend
Messages: 83
Registered: March 2020
Any help in trying to make sense of this series of unfortunate errors would be fantastic. I suspect it mainly has to do with the original index error, in which case my first question is if there is a way to manually change the maximum allowed classes in an ecore model?

[Updated on: Mon, 01 February 2021 22:04]

Report message to a moderator

Re: Generating Java class wFP_V2.impl.WFP_V2PackageImpl failed with an unhandled exception [message #1837643 is a reply to message #1837532] Wed, 03 February 2021 14:46 Go to previous message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
Your first question is about EMF generation which is not specific to Sirius. If your metamodel has evolved, you do not necessarily have to remove all previous generated code. EMF supports incremental generation.
Your existing model based on this previous version of your metamodel may need to be migrated to be compatible with the new version. Sirius does not provide any facilities for that. In addition, if you have defined mapping rules in your VSM that depend on the previous version of your metamodel, you will have to modify your VSM, there is no automatic migration.


Previous Topic:Automatic direct-label edit
Next Topic:BorderedNode Label not shown after creation
Goto Forum:

Current Time: Mon Nov 28 01:55:45 GMT 2022

Powered by FUDForum. Page generated in 0.02633 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top