Bug 582693 - Exception in "Create all Service Sequences" for a simple function bock
Summary: Exception in "Create all Service Sequences" for a simple function bock
Status: UNCONFIRMED
Alias: None
Product: 4DIAC
Classification: IoT
Component: 4DIAC-IDE (show other bugs)
Version: nightly   Edit
Hardware: PC Windows 10
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-30 09:07 EST by Michael Hansal CLA
Modified: 2023-11-30 09:07 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hansal CLA 2023-11-30 09:07:15 EST
Clicking "Create all Service Sequences" in the context menu of the "Service" tab of a Simple FB results in an exception:

Command 'org.eclipse.fordiac.ide.fbtypeeditor.servicesequence.createAllSequences' failed
Error executing 'org.eclipse.fordiac.ide.fbtypeeditor.servicesequence.createAllSequences': java.lang.ClassCastException: class org.eclipse.fordiac.ide.model.libraryElement.impl.SimpleFBTypeImpl cannot be cast to class org.eclipse.fordiac.ide.model.libraryElement.BasicFBType (org.eclipse.fordiac.ide.model.libraryElement.impl.SimpleFBTypeImpl and org.eclipse.fordiac.ide.model.libraryElement.BasicFBType are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @317d2951)
  org.eclipse.core.commands.ExecutionException: Error executing 'org.eclipse.fordiac.ide.fbtypeeditor.servicesequence.createAllSequences': java.lang.ClassCastException: class org.eclipse.fordiac.ide.model.libraryElement.impl.SimpleFBTypeImpl cannot be cast to class org.eclipse.fordiac.ide.model.libraryElement.BasicFBType (org.eclipse.fordiac.ide.model.libraryElement.impl.SimpleFBTypeImpl and org.eclipse.fordiac.ide.model.libraryElement.BasicFBType are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @317d2951)
  	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:170)
  	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
  	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:485)
  	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
  	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:438)
  	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:449)
  	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.lambda$2(AbstractContributionItem.java:475)
  	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
  	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4274)
  	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
  	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
  	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
  	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
  	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)
  	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
  	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
  	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:645)
  	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)
  	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:552)
  	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:171)
  	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:402)
  	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(Unknown Source)
  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
  	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:651)
  	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:588)
  	at org.eclipse.equinox.launcher.Main.run(Main.java:1459)
  Caused by: org.eclipse.e4.core.di.InjectionException: java.lang.ClassCastException: class org.eclipse.fordiac.ide.model.libraryElement.impl.SimpleFBTypeImpl cannot be cast to class org.eclipse.fordiac.ide.model.libraryElement.BasicFBType (org.eclipse.fordiac.ide.model.libraryElement.impl.SimpleFBTypeImpl and org.eclipse.fordiac.ide.model.libraryElement.BasicFBType are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @317d2951)
  	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68)
  	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:300)
  	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
  	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
  	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
  	... 32 more
  Caused by: java.lang.ClassCastException: class org.eclipse.fordiac.ide.model.libraryElement.impl.SimpleFBTypeImpl cannot be cast to class org.eclipse.fordiac.ide.model.libraryElement.BasicFBType (org.eclipse.fordiac.ide.model.libraryElement.impl.SimpleFBTypeImpl and org.eclipse.fordiac.ide.model.libraryElement.BasicFBType are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @317d2951)
  	at org.eclipse.fordiac.ide.fbtypeeditor.servicesequence.handler.CreateAllServiceSequencesHandler.execute(CreateAllServiceSequencesHandler.java:51)
  	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
  	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
  	at jdk.internal.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)
  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
  	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
  	... 36 more