Closed GoogleCodeExporter closed 9 years ago
Original comment by A.Muel...@googlemail.com
on 30 Oct 2014 at 1:00
Dublicate of Issue 65. Adding files to reproduce:
Start the attached statechart (run as "Statechart Simulation") and trigger the
"keypress" event in the default package. (the also attached JavaClass must be
configured to be used).
You will get following Exception:
!ENTRY org.eclipse.ui 4 0 2014-10-28 10:58:20.004
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.ClassCastException:
org.yakindu.sct.simulation.core.sexec.container.CycleBasedSimulationEngine
cannot be cast to org.eclipse.debug.core.model.IDebugTarget)
at org.eclipse.swt.SWT.error(SWT.java:4441)
at org.eclipse.swt.SWT.error(SWT.java:4356)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:139)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
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:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Caused by: java.lang.ClassCastException:
org.yakindu.sct.simulation.core.sexec.container.CycleBasedSimulationEngine
cannot be cast to org.eclipse.debug.core.model.IDebugTarget
at org.yakindu.sct.simulation.ui.handler.TerminateLaunchStatusHandler$1.run(TerminateLaunchStatusHandler.java:40)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
... 24 more
Original comment by malkne...@gmail.com
on 30 Oct 2014 at 1:03
Attachments:
For the class cast Issue 63 is already created.
Original comment by markus.muehlbrandt
on 30 Oct 2014 at 1:07
For the upcoming release I updated the documentation with a Type System Mapping
from SCT Types to Java types.
Original comment by A.Muel...@googlemail.com
on 30 Oct 2014 at 3:21
This issue was closed by revision r6323.
Original comment by A.Muel...@googlemail.com
on 30 Oct 2014 at 3:21
Original issue reported on code.google.com by
camilo.l...@gmail.com
on 28 Oct 2014 at 10:16