wso2-extensions / mediation-utility-module

EI module for processing utility functions.
Apache License 2.0
0 stars 3 forks source link

Error when rendering the component #6

Open dbalasse opened 1 year ago

dbalasse commented 1 year ago

Description: When using this (very useful) extension, there is a rendering error

org.eclipse.core.commands.ExecutionException: While executing the operation, an exception occurred at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:504) at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack.execute(DiagramCommandStack.java:207) at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack.execute(DiagramCommandStack.java:170) at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack.execute(DiagramCommandStack.java:157) at org.wso2.integrationstudio.gmf.esb.diagram.custom.deserializer.DeserializerUtils.createNode(DeserializerUtils.java:86) at org.wso2.integrationstudio.gmf.esb.diagram.custom.deserializer.CloudConnectorOperationDeserializer.createNode(CloudConnectorOperationDeserializer.java:53) at org.wso2.integrationstudio.gmf.esb.diagram.custom.deserializer.CloudConnectorOperationDeserializer.createNode(CloudConnectorOperationDeserializer.java:1) at org.wso2.integrationstudio.gmf.esb.diagram.custom.deserializer.AbstractEsbNodeDeserializer.executeMediatorDeserializer(AbstractEsbNodeDeserializer.java:243) at org.wso2.integrationstudio.gmf.esb.diagram.custom.deserializer.AbstractEsbNodeDeserializer.deserializeSequence(AbstractEsbNodeDeserializer.java:199) at org.wso2.integrationstudio.gmf.esb.diagram.custom.deserializer.AbstractEsbNodeDeserializer.deserializeSequence(AbstractEsbNodeDeserializer.java:166) at org.wso2.integrationstudio.gmf.esb.diagram.custom.deserializer.SequenceDeserializer.createNode(SequenceDeserializer.java:104) at org.wso2.integrationstudio.gmf.esb.diagram.custom.deserializer.SequenceDeserializer.createNode(SequenceDeserializer.java:1) at org.wso2.integrationstudio.gmf.esb.diagram.custom.deserializer.Deserializer.updateDesign(Deserializer.java:160) at org.wso2.integrationstudio.gmf.esb.diagram.part.EsbMultiPageEditor$1.run(EsbMultiPageEditor.java:303) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4035) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3635) 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) Caused by: org.eclipse.swt.SWTException: i/o error (java.io.FileNotFoundException: null\icon\icon-large.gif (The system cannot find the path specified)) at org.eclipse.swt.SWT.error(SWT.java:4907) at org.eclipse.swt.SWT.error(SWT.java:4822) at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:184) at org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoader.java:29) at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:381) at org.eclipse.swt.graphics.Image.<init>(Image.java:648) at org.wso2.integrationstudio.gmf.esb.diagram.custom.EditPartDrawingHelper.getImage(EditPartDrawingHelper.java:45) at org.wso2.integrationstudio.gmf.esb.diagram.custom.EditPartDrawingHelper.getIconImageFigure(EditPartDrawingHelper.java:57) at org.wso2.integrationstudio.gmf.esb.diagram.edit.parts.CloudConnectorOperationEditPart$CloudConnectorOperationFigure.setCloudConnectorImage(CloudConnectorOperationEditPart.java:512) at org.wso2.integrationstudio.gmf.esb.diagram.custom.AbstractMediatorFlowCompartmentEditPart.addChild(AbstractMediatorFlowCompartmentEditPart.java:231) at org.wso2.integrationstudio.gmf.esb.diagram.edit.parts.MediatorFlowMediatorFlowCompartment5EditPart.addChild(MediatorFlowMediatorFlowCompartment5EditPart.java:190) at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:781) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.handleNotificationEvent(GraphicalEditPart.java:1462) at org.eclipse.gmf.runtime.diagram.ui.editparts.ResizableCompartmentEditPart.handleNotificationEvent(ResizableCompartmentEditPart.java:157) at org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart.handleNotificationEvent(ShapeCompartmentEditPart.java:582) at org.wso2.integrationstudio.gmf.esb.diagram.edit.parts.MediatorFlowMediatorFlowCompartment5EditPart.handleNotificationEvent(MediatorFlowMediatorFlowCompartment5EditPart.java:579) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.notifyChanged(GraphicalEditPart.java:1436) at org.eclipse.gmf.runtime.diagram.core.listener.DiagramEventBroker.fireNotification(DiagramEventBroker.java:505) at org.eclipse.gmf.runtime.diagram.core.listener.DiagramEventBroker.resourceSetChanged(DiagramEventBroker.java:400) at org.eclipse.gmf.runtime.diagram.ui.DiagramEventBrokerThreadSafe.resourceSetChanged(DiagramEventBrokerThreadSafe.java:74) at org.eclipse.gmf.runtime.diagram.core.DiagramEditingDomainFactory$DiagramEditingDomain.postcommit(DiagramEditingDomainFactory.java:215) 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.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:404) at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:135) at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:404) at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:135) at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:404) at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:135) at org.eclipse.gmf.runtime.diagram.ui.commands.CreateViewAndOptionallyElementCommand.doExecuteWithResult(CreateViewAndOptionallyElementCommand.java:259) at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:135) at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:496) ... 38 more Caused by: java.io.FileNotFoundException: null\icon\icon-large.gif (The system cannot find the path specified) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:219) at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112) at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:181) ... 69 more

This error seems to happens in an integration-studio class : CloudConnectorDirectoryTraverser

this image is a remote debug of the creation of connectorPath image

we see that at line 455 if (children[i].isDirectory() && connectorName.equalsIgnoreCase(children[i].getName().split("-")[0])) {

the connector name ('utility.string' in this case) must be equal to the first part of the one imported in the workspace ('utility-connector-1.0.1')

And obviously, this is not the case.

Suggested Labels: bug

Suggested Assignees:

Affected Product Version: 1.0.1 in latest Integration-Sutdio (8.1.0)

OS, DB, other environment details and versions:

Steps to reproduce:

  1. Create anything where we can use module. I used utility.string.UUID in an API.
  2. Close the Integration Studio and re-launch it
  3. When you try to open the API, the error is launch and the API drawing is broken

image

Related Issues:

dbalasse commented 1 year ago

This patch seems to be fixing the issue change_names_of_the_components.patch