Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-8829

ExpressionImpl cannot be cast to Activity while editing OnAlarm activity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.2.1.CR2
    • 3.2.0.Final
    • bpel
    • None

      Create an Event Handler for a process, and add an OnAlarm. Then switch to Source view and select the <repeatEvery> element. Stack trace shown below:

      java.lang.ClassCastException: org.eclipse.bpel.model.impl.ConditionImpl cannot be cast to org.eclipse.bpel.model.Activity
      at org.eclipse.bpel.ui.properties.JoinConditionSection.getExpressionTarget(JoinConditionSection.java:65)
      at org.eclipse.bpel.ui.properties.ExpressionSection.getExprFromModel(ExpressionSection.java:536)
      at org.eclipse.bpel.ui.properties.ExpressionSection.updateExpressionLanguageWidgets(ExpressionSection.java:387)
      at org.eclipse.bpel.ui.properties.ExpressionSection.basicSetInput(ExpressionSection.java:432)
      at org.eclipse.bpel.ui.properties.JoinConditionSection.basicSetInput(JoinConditionSection.java:101)
      at org.eclipse.bpel.ui.properties.BPELPropertySection.setInput(BPELPropertySection.java:221)
      at org.eclipse.ui.views.properties.tabbed.TabContents$5.run(TabContents.java:181)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      at org.eclipse.ui.views.properties.tabbed.TabContents.setInput(TabContents.java:184)
      at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage$SelectionChangedListener.selectionChanged(TabbedPropertySheetPage.java:212)
      at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)
      at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2167)
      at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1190)
      at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1220)
      at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:229)
      at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:223)
      at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:393)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
      at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
      at org.eclipse.ui.internal.views.properties.tabbed.view.TabbedPropertyList.select(TabbedPropertyList.java:664)
      at org.eclipse.ui.internal.views.properties.tabbed.view.TabbedPropertyViewer.setSelectionToWidget(TabbedPropertyViewer.java:122)
      at org.eclipse.jface.viewers.StructuredViewer.setSelectionToWidget(StructuredViewer.java:1746)
      at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1702)
      at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:394)
      at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.setInput(TabbedPropertySheetPage.java:736)
      at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.selectionChanged(TabbedPropertySheetPage.java:555)
      at org.eclipse.bpel.ui.BPELTabbedPropertySheetPage.selectionChanged(BPELTabbedPropertySheetPage.java:99)
      at org.eclipse.ui.views.properties.PropertySheet.selectionChanged(PropertySheet.java:365)
      at org.eclipse.ui.internal.AbstractSelectionService.firePostSelection(AbstractSelectionService.java:179)
      at org.eclipse.ui.internal.AbstractSelectionService$2.selectionChanged(AbstractSelectionService.java:71)
      at org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:110)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChange(MultiPageSelectionProvider.java:108)
      at org.eclipse.ui.part.MultiPageSelectionProvider.firePostSelectionChanged(MultiPageSelectionProvider.java:102)
      at org.eclipse.ui.part.MultiPageEditorSite.handlePostSelectionChanged(MultiPageEditorSite.java:428)
      at org.eclipse.ui.part.MultiPageEditorSite$3.selectionChanged(MultiPageEditorSite.java:340)
      at org.eclipse.bpel.common.ui.tray.MultiViewerSelectionProvider.fireSelectionChanged(MultiViewerSelectionProvider.java:147)
      at org.eclipse.bpel.ui.BPELAdaptingSelectionProvider.setSelection(BPELAdaptingSelectionProvider.java:64)
      at org.eclipse.bpel.ui.BPELMultipageEditorPart$TextEditorSelectionListener.selectionChanged(BPELMultipageEditorPart.java:296)
      at org.eclipse.wst.sse.ui.StructuredTextEditor$4.run(StructuredTextEditor.java:592)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.fireSelectionChanged(StructuredTextEditor.java:590)
      at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.handlePostSelectionChanged(StructuredTextEditor.java:671)
      at org.eclipse.wst.sse.ui.StructuredTextEditor$3.selectionChanged(StructuredTextEditor.java:564)
      at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2746)
      at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2694)
      at org.eclipse.jface.text.TextViewer$5.run(TextViewer.java:2673)
      at org.eclipse.swt.widgets.Display.runTimer(Display.java:4227)
      at org.eclipse.swt.widgets.Display.messageProc(Display.java:3314)
      at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
      at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2523)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3713)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2697)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2661)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2495)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

              bbrodt_jira Robert (Bob) Brodt (Inactive)
              bbrodt_jira Robert (Bob) Brodt (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: