Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » SVGs throwing uncaught exceptions in papyrus.infra.core plugin
SVGs throwing uncaught exceptions in papyrus.infra.core plugin [message #1755405] Fri, 03 March 2017 03:15 Go to next message
Simos Gerasimou is currently offline Simos GerasimouFriend
Messages: 3
Registered: March 2017
Junior Member
Hi,

I'm trying to customise a palette associated with a UML profile using custom SVG shapes with CSS (as suggested in this video tutorial: www.youtube.com/watch?v=90Qt9a_0c-k).

However, similarly to another related thread, I get a NullPointerException with the stack trace shown below. The exception says that there is an "Uncaught exception in transaction pre-commit task" caused by the org.eclipse.papyrus.infra.core plugin.

Any idea about this? Is this a known bug or did I miss anything when defining the SVG file for the stereotype?


Thanks,
Simos

java.lang.NullPointerException
	at org.apache.batik.dom.svg.AbstractSVGLength$DefaultContext.getViewportWidth(Unknown Source)
	at org.apache.batik.parser.UnitProcessor.percentagesToPixels(Unknown Source)
	at org.apache.batik.parser.UnitProcessor.svgToUserSpace(Unknown Source)
	at org.apache.batik.dom.svg.AbstractSVGLength.getValue(Unknown Source)
	at org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SVGNodePlateFigure.getValueOf(SVGNodePlateFigure.java:197)
	at org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SVGNodePlateFigure.getSvgDimension(SVGNodePlateFigure.java:212)
	at org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SVGNodePlateFigure.setSVGDocument(SVGNodePlateFigure.java:160)
	at org.eclipse.papyrus.infra.gmfdiag.common.editpart.NodeEditPart.refreshSVGPath(NodeEditPart.java:107)
	at org.eclipse.papyrus.infra.gmfdiag.common.editpart.NodeEditPart.refreshVisuals(NodeEditPart.java:178)
	at org.eclipse.papyrus.uml.diagram.common.editparts.UMLNodeEditPart.refreshVisuals(UMLNodeEditPart.java:254)
	at org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart.refreshVisuals(NamedElementEditPart.java:118)
	at org.eclipse.papyrus.uml.diagram.common.editparts.RoundedCompartmentEditPart.refreshVisuals(RoundedCompartmentEditPart.java:181)
	at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:725)
	at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:644)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$3(GraphicalEditPart.java:1)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart$3.run(GraphicalEditPart.java:861)
	at org.eclipse.papyrus.infra.emf.readonly.PapyrusROTransactionalEditingDomain.runExclusive(PapyrusROTransactionalEditingDomain.java:271)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.refresh(GraphicalEditPart.java:851)
	at org.eclipse.papyrus.uml.diagram.common.editparts.UMLNodeEditPart.refresh(UMLNodeEditPart.java:99)
	at org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart.refresh(NamedElementEditPart.java:108)
	at org.eclipse.papyrus.infra.gmfdiag.common.helper.DiagramHelper.refresh(DiagramHelper.java:87)
	at org.eclipse.papyrus.infra.gmfdiag.common.helper.DiagramHelper.refresh(DiagramHelper.java:116)
	at org.eclipse.papyrus.infra.gmfdiag.common.helper.DiagramHelper$2.run(DiagramHelper.java:181)
	at org.eclipse.papyrus.infra.core.utils.TransactionPrecommitExecutor$1.doExecute(TransactionPrecommitExecutor.java:133)
	at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
	at org.eclipse.emf.transaction.util.TriggerCommand.execute(TriggerCommand.java:113)
	at org.eclipse.papyrus.infra.emf.gmf.command.NotifyingWorkspaceCommandStack.executeTriggers(NotifyingWorkspaceCommandStack.java:418)
	at org.eclipse.papyrus.infra.core.utils.TransactionPrecommitExecutor.transactionClosing(TransactionPrecommitExecutor.java:164)
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl$LifecycleImpl.fireLifecycleEvent(TransactionalEditingDomainImpl.java:1380)
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl$LifecycleImpl.transactionClosing(TransactionalEditingDomainImpl.java:1406)
	at org.eclipse.emf.transaction.impl.TransactionImpl.commit(TransactionImpl.java:398)
	at org.eclipse.papyrus.infra.emf.readonly.PapyrusROTransactionalEditingDomain.runExclusive(PapyrusROTransactionalEditingDomain.java:276)
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.postcommit(TransactionalEditingDomainImpl.java:771)
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.deactivate(TransactionalEditingDomainImpl.java:543)
	at org.eclipse.emf.transaction.impl.TransactionImpl.close(TransactionImpl.java:712)
	at org.eclipse.emf.transaction.impl.TransactionImpl.commit(TransactionImpl.java:474)
	at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:155)
	at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:488)
	at org.eclipse.papyrus.infra.emf.gmf.command.CheckedOperationHistory.doExecute(CheckedOperationHistory.java:206)
	at org.eclipse.papyrus.infra.emf.gmf.command.CheckedOperationHistory.execute(CheckedOperationHistory.java:195)
	at org.eclipse.papyrus.infra.emf.gmf.command.NotifyingWorkspaceCommandStack.doExecute(NotifyingWorkspaceCommandStack.java:264)
	at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:165)
	at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219)
	at org.eclipse.papyrus.infra.emf.gmf.command.NestingNotifyingWorkspaceCommandStack.execute(NestingNotifyingWorkspaceCommandStack.java:130)
	at org.eclipse.papyrus.uml.properties.profile.ui.compositesformodel.AppliedStereotypeCompositeOnModel$1$1.run(AppliedStereotypeCompositeOnModel.java:482)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4024)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3700)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
Re: SVGs throwing uncaught exceptions in papyrus.infra.core plugin [message #1755727 is a reply to message #1755405] Tue, 07 March 2017 09:18 Go to previous messageGo to next message
Benoit Maggi is currently offline Benoit MaggiFriend
Messages: 129
Registered: March 2013
Location: Bordeaux, France
Senior Member
Hi Simos,

The problem is the same as the one in your other thread.

Batik can't parse your svg.

Regards,
BenoƮt
Re: SVGs throwing uncaught exceptions in papyrus.infra.core plugin [message #1756037 is a reply to message #1755727] Fri, 10 March 2017 10:02 Go to previous messageGo to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 238
Registered: July 2009
Location: Paris Saclay, France
Senior Member
Use inkscape ti clean your svg files.
Patrick
Re: SVGs throwing uncaught exceptions in papyrus.infra.core plugin [message #1756067 is a reply to message #1756037] Fri, 10 March 2017 14:37 Go to previous messageGo to next message
Thanos Zolotas is currently offline Thanos ZolotasFriend
Messages: 51
Registered: November 2016
Location: York
Member
Hi Patrick,

If you mean File->Clean up document then this doesn't solve the problem (in my configuration at least).
Re: SVGs throwing uncaught exceptions in papyrus.infra.core plugin [message #1756078 is a reply to message #1756067] Fri, 10 March 2017 16:24 Go to previous message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 238
Registered: July 2009
Location: Paris Saclay, France
Senior Member
see information about the clean of a svg with inkscape
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Web-Inkscape.html
Patrick
Previous Topic:Sequence Diagram Not Opened
Next Topic:Offline Papyrus installation starting from eclipse-MDT
Goto Forum:
  


Current Time: Mon Jan 20 14:09:03 GMT 2020

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

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

Back to the top