[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-8247) Error message after opening file after opening jbpm editor in Package Explorer

Koen Aers (JIRA) jira-events at lists.jboss.org
Wed Jun 22 13:43:23 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-8247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610446#comment-12610446 ] 

Koen Aers commented on JBIDE-8247:
----------------------------------

I have been able to consistently reproduce the bug on Fedora 15 by 
- creating a jBPM 3 project
- opening simple.jpdl.xml
- opening hibernate.cfg.db2.xml
I also noticed that the issue only happens once for each time a simple.jpdl.xml is opened.


However, the error message that I get is not the above. Instead I get:

java.lang.RuntimeException: WARNING: Prevented recursive attempt to activate part org.eclipse.jdt.ui.PackageExplorer while still in the middle of activating part org.jboss.tools.hibernate.ui.xml.editor.HibConfig3CompoundEditor
	at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3487)
	at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:3077)
	at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:279)
	at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:237)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263)
	at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1533)
	at org.eclipse.swt.widgets.Control.gtk_button_press_event(Control.java:2645)
	at org.eclipse.swt.widgets.Control.gtk_button_press_event(Control.java:2581)
	at org.eclipse.swt.widgets.Composite.gtk_button_press_event(Composite.java:681)
	at org.eclipse.swt.widgets.Tree.gtk_button_press_event(Tree.java:1865)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1731)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4796)
	at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:3485)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4360)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8189)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1238)
	at org.eclipse.swt.internal.gtk.OS._gtk_enumerate_printers(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_enumerate_printers(OS.java:9091)
	at org.eclipse.swt.printing.Printer.getPrinterList(Printer.java:91)
	at org.eclipse.gef.ui.actions.PrintAction.calculateEnabled(PrintAction.java:45)
	at org.eclipse.gef.ui.actions.WorkbenchPartAction.isEnabled(WorkbenchPartAction.java:123)
	at org.eclipse.jface.commands.ActionHandler.isEnabled(ActionHandler.java:141)
	at org.eclipse.core.commands.Command.isEnabled(Command.java:833)
	at org.eclipse.core.commands.Command.setHandler(Command.java:965)
	at org.eclipse.ui.internal.handlers.HandlerAuthority.updateCommand(HandlerAuthority.java:457)
	at org.eclipse.ui.internal.handlers.HandlerAuthority.processChangedCommands(HandlerAuthority.java:633)
	at org.eclipse.ui.internal.handlers.HandlerAuthority.access$1(HandlerAuthority.java:610)
	at org.eclipse.ui.internal.handlers.HandlerAuthority$1.propertyChange(HandlerAuthority.java:175)
	at org.eclipse.ui.internal.services.EvaluationAuthority$1.run(EvaluationAuthority.java:252)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.services.EvaluationAuthority.fireServiceChange(EvaluationAuthority.java:246)
	at org.eclipse.ui.internal.services.EvaluationAuthority.endSourceChange(EvaluationAuthority.java:197)
	at org.eclipse.ui.internal.services.EvaluationAuthority.sourceChanged(EvaluationAuthority.java:135)
	at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:311)
	at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:290)
	at org.eclipse.ui.AbstractSourceProvider.fireSourceChanged(AbstractSourceProvider.java:99)
	at org.eclipse.ui.internal.services.WorkbenchSourceProvider.checkActivePart(WorkbenchSourceProvider.java:401)
	at org.eclipse.ui.internal.services.WorkbenchSourceProvider.checkActivePart(WorkbenchSourceProvider.java:300)
	at org.eclipse.ui.internal.services.WorkbenchSourceProvider$1.partDeactivated(WorkbenchSourceProvider.java:247)
	at org.eclipse.ui.internal.PartListenerList$4.run(PartListenerList.java:117)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.runtime.Platform.run(Platform.java:888)
	at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
	at org.eclipse.ui.internal.PartListenerList.firePartDeactivated(PartListenerList.java:115)
	at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:238)
	at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:300)
	at org.eclipse.ui.internal.WWinPartService.updateActivePart(WWinPartService.java:134)
	at org.eclipse.ui.internal.WWinPartService.access$0(WWinPartService.java:125)
	at org.eclipse.ui.internal.WWinPartService$WWinListener.partDeactivated(WWinPartService.java:50)
	at org.eclipse.ui.internal.PartListenerList2$4.run(PartListenerList2.java:115)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.runtime.Platform.run(Platform.java:888)
	at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:55)
	at org.eclipse.ui.internal.PartListenerList2.firePartDeactivated(PartListenerList2.java:113)
	at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:242)
	at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:300)
	at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:57)
	at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136)
	at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3537)
	at org.eclipse.ui.internal.WorkbenchPage.internalActivate(WorkbenchPage.java:617)
	at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:589)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2875)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
	at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2682)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:365)
	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:168)
	at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:229)
	at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:208)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250)
	at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:373)
	at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:526)
	at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
	at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:845)
	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.StructuredViewer.fireOpen(StructuredViewer.java:843)
	at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1131)
	at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1235)
	at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:264)
	at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:258)
	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:298)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
	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:369)
	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:620)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

>From the stack trace, it seems the issue is related to the GEF print action. Effectively I was able to suppress the problem by disabling this print action. I have the impression it is a GEF bug but I have not been able to isolate it to prove it.

As to how to proceed there are a number of options:

1. I leave the situation as is and I close it with a 'won't fix' resolution
2. I disable the 'Print' action so that the issue doesn't show up anymore
3. I spend more time on it to try to isolate the problem.

My preference goes out to the first option for the following reasons:
- AFAICS it only happens on Linux platforms
- it is harmless
- disabling the 'Print' action removes a nice feature 
- I don't think spending any more time on the issue is valuable


> Error message after opening file after opening jbpm editor in Package Explorer
> ------------------------------------------------------------------------------
>
>                 Key: JBIDE-8247
>                 URL: https://issues.jboss.org/browse/JBIDE-8247
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jbpm
>    Affects Versions: 3.2.0.CR1
>         Environment: JBDS 4.0.0.CR1 H100, Linux 64
>            Reporter: Jiri Peterka
>            Assignee: Koen Aers
>            Priority: Minor
>             Fix For: 3.2.1.CR1, 3.3.0.M3
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> There is error message / warning after these steps:
> 1. Create sample jBPM Project, be in Package Explorer
> 2. Open simple.jpdl.xml in package explorer
> 3. (You can wait as long as you want)
> 4. Open hibernate.cfg.xml or any other file type (except jbpm process)
> java.lang.RuntimeException: WARNING: Prevented recursive attempt to activate part org.eclipse.ui.views.PropertySheet while still in the middle of activating part org.jbpm.gd.jpdl.editor
> 	at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3487)
> 	at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:3077)
> 	at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:279)
> 	at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:237)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263)
> 	at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1533)
> 	at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:3403)
> 	at org.eclipse.swt.widgets.Control.gtk_event_after(Control.java:2760)
> 	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1738)
> 	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4796)
> 	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4360)
> 	at org.eclipse.swt.internal.gtk.OS._gtk_widget_grab_focus(Native Method)
> 	at org.eclipse.swt.internal.gtk.OS.gtk_widget_grab_focus(OS.java:12672)
> 	at org.eclipse.swt.widgets.Control.forceFocus(Control.java:2170)
> 	at org.eclipse.swt.widgets.Composite.forceFocus(Composite.java:526)
> 	at org.eclipse.swt.widgets.Control.forceFocus(Control.java:2163)
> 	at org.eclipse.swt.widgets.Control.setFocus(Control.java:3760)
> 	at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1372)
> 	at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1370)
> 	at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1370)
> 	at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1370)
> 	at org.eclipse.swt.widgets.Control.fixFocus(Control.java:160)
> 	at org.eclipse.swt.widgets.Control.setVisible(Control.java:4156)
> 	at org.eclipse.ui.part.PageBook.showPage(PageBook.java:118)
> 	at org.eclipse.ui.part.PageBookView.showPageRec(PageBookView.java:977)
> 	at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:756)
> 	at org.eclipse.ui.views.properties.PropertySheet.partActivated(PropertySheet.java:325)
> 	at org.eclipse.ui.part.PageBookView$4.partActivated(PageBookView.java:1010)
> 	at org.eclipse.ui.internal.PartListenerList2$1.run(PartListenerList2.java:70)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.core.runtime.Platform.run(Platform.java:888)
> 	at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:55)
> 	at org.eclipse.ui.internal.PartListenerList2.firePartActivated(PartListenerList2.java:68)
> 	at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:192)
> 	at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:306)
> 	at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:57)
> 	at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136)
> 	at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3537)
> 	at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:3077)
> 	at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:279)
> 	at org.eclipse.ui.internal.EditorPane.requestActivation(EditorPane.java:98)
> 	at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:237)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list