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

Opening Agenda view throws DebugException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 3.3.0.Beta2-SOA
    • None
    • drools
    • None
    • Hide

      1. Start JBDS with parameters -console -consolelog -debug
      2. Create new Drools project and add all sample source code.
      3. Add breakpoint at line 12 in file src/main/rules/Sample.drl
      4. Debug src/main/java/com/sample/DroolsTest.java as Drools application
      5. When debugging stops at breakpoint open Drools Agenda view
      6. On console can be seen following exception and it is thrown by changing Agenda focus state

      Show
      1. Start JBDS with parameters -console -consolelog -debug 2. Create new Drools project and add all sample source code. 3. Add breakpoint at line 12 in file src/main/rules/Sample.drl 4. Debug src/main/java/com/sample/DroolsTest.java as Drools application 5. When debugging stops at breakpoint open Drools Agenda view 6. On console can be seen following exception and it is thrown by changing Agenda focus state

      DebugException is thrown when Agenda view change focus while debugging:

      !ENTRY org.drools.eclipse 4 120 2012-01-20 16:38:52.473
      !MESSAGE Internal error in Drools Plugin:
      !STACK 1
      org.eclipse.debug.core.DebugException: Error when compiling snippet return getAgenda().getFocus();: The method getFocus() is undefined for the type Agenda

      at org.drools.eclipse.debug.DebugUtil$EvaluationBlock.evaluate(DebugUtil.java:194)
      at org.drools.eclipse.debug.DebugUtil.getValueByExpression(DebugUtil.java:116)
      at org.drools.eclipse.debug.AgendaViewContentProvider.getAgendaElements(AgendaViewContentProvider.java:86)
      at org.drools.eclipse.debug.AgendaViewContentProvider.getChildren(AgendaViewContentProvider.java:54)
      at org.drools.eclipse.debug.DroolsDebugViewContentProvider.getElements(DroolsDebugViewContentProvider.java:52)
      at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:1010)
      at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:703)
      at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1336)
      at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:391)
      at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:917)
      at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:605)
      at org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:2622)
      at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:1908)
      at org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:721)
      at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1883)
      at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1840)
      at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1826)
      at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1508)
      at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)
      at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:403)
      at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
      at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1506)
      at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:537)
      at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1465)
      at org.drools.eclipse.debug.actions.ShowLogicalStructureAction$1.run(ShowLogicalStructureAction.java:55)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      at org.drools.eclipse.debug.actions.ShowLogicalStructureAction.valueChanged(ShowLogicalStructureAction.java:53)
      at org.drools.eclipse.debug.actions.ShowLogicalStructureAction.run(ShowLogicalStructureAction.java:45)
      at org.eclipse.debug.ui.AbstractDebugView$3.run(AbstractDebugView.java:612)
      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
      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:123)
      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:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      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)
      !SUBENTRY 1 org.drools.eclipse 4 120 2012-01-20 16:38:52.474
      !MESSAGE Error when compiling snippet return getAgenda().getFocus();: The method getFocus() is undefined for the type Agenda

              kverlaen@redhat.com Kris Verlaenen
              jgargula_jira Juraj Gargulak (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: