Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » NullPointerException in ElkGraphImporter when Use Sirius 6.0
NullPointerException in ElkGraphImporter when Use Sirius 6.0 [message #1794246] Tue, 28 August 2018 03:41 Go to next message
zhang ph is currently offline zhang phFriend
Messages: 43
Registered: March 2017
Member
When I use ELK Layered Algorithm in Sirius6.0 , there is a NullPointerException occur in ElkGraphImporter(603) (ELK version v0.3)

dummy.setProperty(LayeredOptions.SPACING_LABEL_PORT,
elkgraph.getParent().getProperty(LayeredOptions.SPACING_LABEL_PORT));

In that time elkgraph.getParent() == null;
index.php/fa/33731/0/

Caused by: java.lang.NullPointerException
	at org.eclipse.elk.alg.layered.graph.transform.ElkGraphImporter.transformExternalPort(ElkGraphImporter.java:603)
	at org.eclipse.elk.alg.layered.graph.transform.ElkGraphImporter.importGraph(ElkGraphImporter.java:94)
	at org.eclipse.elk.alg.layered.graph.transform.ElkGraphTransformer.importGraph(ElkGraphTransformer.java:34)
	at org.eclipse.elk.alg.layered.graph.transform.ElkGraphTransformer.importGraph(ElkGraphTransformer.java:1)
	at org.eclipse.elk.alg.layered.LayeredLayoutProvider.layout(LayeredLayoutProvider.java:53)
	at org.eclipse.elk.core.RecursiveGraphLayoutEngine.layoutRecursively(RecursiveGraphLayoutEngine.java:183)
	at org.eclipse.elk.core.RecursiveGraphLayoutEngine.layout(RecursiveGraphLayoutEngine.java:60)
	at org.eclipse.sirius.diagram.elk.ElkDiagramLayoutConnector.layout(ElkDiagramLayoutConnector.java:1167)
	at org.eclipse.sirius.diagram.elk.ELKLayoutNodeProvider.layoutEditParts(ELKLayoutNodeProvider.java:37)
	at org.eclipse.sirius.diagram.ui.tools.internal.layout.provider.ArrangeSelectionLayoutProvider.lauchPrimaryArrangeAll(ArrangeSelectionLayoutProvider.java:255)
	at org.eclipse.sirius.diagram.ui.tools.internal.layout.provider.ArrangeSelectionLayoutProvider.layoutEditParts(ArrangeSelectionLayoutProvider.java:171)
	at org.eclipse.sirius.diagram.ui.tools.api.layout.provider.AbstractLayoutProvider.getCommandFromDiagramLayoutProvider(AbstractLayoutProvider.java:168)
	at org.eclipse.sirius.diagram.ui.tools.api.layout.provider.AbstractLayoutProvider.layoutEditParts(AbstractLayoutProvider.java:117)
	at org.eclipse.gmf.runtime.diagram.ui.services.layout.AbstractLayoutEditPartProvider.layoutLayoutNodes(AbstractLayoutEditPartProvider.java:69)
	at org.eclipse.gmf.runtime.diagram.ui.internal.services.layout.LayoutNodesOperation.execute(LayoutNodesOperation.java:74)
	at org.eclipse.gmf.runtime.common.core.service.ExecutionStrategy$1.execute(ExecutionStrategy.java:70)
	at org.eclipse.gmf.runtime.common.core.service.Service.execute(Service.java:651)
	at org.eclipse.gmf.runtime.diagram.ui.services.layout.LayoutService.execute(LayoutService.java:66)
	at org.eclipse.gmf.runtime.diagram.ui.services.layout.LayoutService.layoutLayoutNodes(LayoutService.java:299)
	at org.eclipse.gmf.runtime.diagram.ui.commands.ArrangeCommand.getCommandForExecution(ArrangeCommand.java:124)
	at org.eclipse.gmf.runtime.diagram.ui.commands.ArrangeCommand.doExecuteWithResult(ArrangeCommand.java:93)
	at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand.doExecute(AbstractTransactionalCommand.java:247)
	at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
	at org.eclipse.emf.workspace.CompositeEMFOperation.doExecute(CompositeEMFOperation.java:217)
	at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
	at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:403)
	at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:134)
	at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:403)
	at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:134)
	at org.eclipse.sirius.diagram.ui.tools.internal.commands.WrappingCommandIgnoringAffectedFiles.execute(WrappingCommandIgnoringAffectedFiles.java:123)
	at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:488)
	... 41 more

Re: NullPointerException in ElkGraphImporter when Use Sirius 6.0 [message #1794288 is a reply to message #1794246] Tue, 28 August 2018 13:20 Go to previous messageGo to next message
Christoph Daniel Schulze is currently offline Christoph Daniel SchulzeFriend
Messages: 80
Registered: September 2015
Member
Let's keep discussing this on GitHub. :)
Re: NullPointerException in ElkGraphImporter when Use Sirius 6.0 [message #1794289 is a reply to message #1794288] Tue, 28 August 2018 13:29 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 238
Registered: July 2009
Senior Member
Hi,
So it seems that there is a bug in the Sirius integration of ELK.
Can you create a bugzilla [1] with the sample model and meta-model mentioned on GitHub?

Thanks

[1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: NullPointerException in ElkGraphImporter when Use Sirius 6.0 [message #1794293 is a reply to message #1794289] Tue, 28 August 2018 13:47 Go to previous messageGo to next message
Christoph Daniel Schulze is currently offline Christoph Daniel SchulzeFriend
Messages: 80
Registered: September 2015
Member
Oh, sorry, I didn't notice this was the Sirius forum. Ignore my answer. :D
Re: NullPointerException in ElkGraphImporter when Use Sirius 6.0 [message #1794322 is a reply to message #1794289] Wed, 29 August 2018 01:45 Go to previous messageGo to next message
Nicholas Kong is currently offline Nicholas KongFriend
Messages: 59
Registered: July 2016
Location: China
Member
Hi Laurent, thanks for you quick replay.
I have created a bug in Bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=538373
and attached the sample meta-model & model file in it.
Re: NullPointerException in ElkGraphImporter when Use Sirius 6.0 [message #1794324 is a reply to message #1794288] Wed, 29 August 2018 01:47 Go to previous message
Nicholas Kong is currently offline Nicholas KongFriend
Messages: 59
Registered: July 2016
Location: China
Member
Thanks ,Christoph.

I will discuss with you on GitHub.

You also can get the metamodel and model on the Bugizlla to:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=538373
Previous Topic:Copy diagram doesn't copy decoratins
Next Topic:Trace/debug/log mechanism for AQL
Goto Forum:
  


Current Time: Tue Nov 13 20:45:55 GMT 2018

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

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

Back to the top