Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 1.3.0
    • Fix Version/s: 1.4.0
    • Labels:
      None
    • Environment:
      Windows XP SP3

      Description

      This has happened to me a couple of times in both 1.2 and in 1.3 RC2.

      When I want to switch between active connections I get this error:

      !ENTRY org.eclipse.ui.workbench 4 2 2008-10-26 16:12:07.546
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
      !STACK 0
      java.lang.ArrayIndexOutOfBoundsException: 2
      at org.apache.directory.studio.ldapbrowser.common.widgets.browser.BrowserSearchResultPage.getChildren(BrowserSearchResultPage.java:113)
      at org.apache.directory.studio.ldapbrowser.common.widgets.browser.BrowserSearchResultPage.getParentOf(BrowserSearchResultPage.java:179)
      at org.apache.directory.studio.ldapbrowser.common.widgets.browser.BrowserContentProvider.getParent(BrowserContentProvider.java:252)
      at org.eclipse.jface.viewers.AbstractTreeViewer.getParentElement(AbstractTreeViewer.java:1646)
      at org.eclipse.jface.viewers.TreeViewer.getParentElement(TreeViewer.java:601)
      at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpand(AbstractTreeViewer.java:1573)
      at org.eclipse.jface.viewers.AbstractTreeViewer.setSelectionToWidget(AbstractTreeViewer.java:2463)
      at org.eclipse.jface.viewers.AbstractTreeViewer.setSelectionToWidget(AbstractTreeViewer.java:2861)
      at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1372)
      at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:397)
      at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1328)
      at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:1467)
      at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:251)
      at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1603)
      at org.apache.directory.studio.ldapbrowser.ui.views.browser.BrowserViewUniversalListener.setInput(BrowserViewUniversalListener.java:380)
      at org.apache.directory.studio.ldapbrowser.ui.views.browser.BrowserViewUniversalListener$1.selectionChanged(BrowserViewUniversalListener.java:115)
      at org.eclipse.ui.internal.AbstractPartSelectionTracker$2.run(AbstractPartSelectionTracker.java:142)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      at org.eclipse.core.runtime.Platform.run(Platform.java:880)
      at org.eclipse.ui.internal.AbstractPartSelectionTracker.firePostSelection(AbstractPartSelectionTracker.java:140)
      at org.eclipse.ui.internal.WindowPartSelectionTracker$2.selectionChanged(WindowPartSelectionTracker.java:47)
      at org.eclipse.ui.internal.AbstractPartSelectionTracker$2.run(AbstractPartSelectionTracker.java:142)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      at org.eclipse.core.runtime.Platform.run(Platform.java:880)
      at org.eclipse.ui.internal.AbstractPartSelectionTracker.firePostSelection(AbstractPartSelectionTracker.java:140)
      at org.eclipse.ui.internal.PagePartSelectionTracker$2.selectionChanged(PagePartSelectionTracker.java:52)
      at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      at org.eclipse.core.runtime.Platform.run(Platform.java:880)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)
      at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153)
      at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178)
      at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250)
      at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244)
      at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418)
      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.apache.directory.studio.Application.start(Application.java:61)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
      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:382)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

        Activity

        Hide
        Aleks M added a comment -

        It seems to occur when I have a entry selected under a search result and I click on another connection, if I select something else before selecting another connection (like the search itself or a entry under the DIT) it doesn't occur. The weird thing is if I create another search for the exact same entry, select it and try to switch it doesn't happen.

        Show
        Aleks M added a comment - It seems to occur when I have a entry selected under a search result and I click on another connection, if I select something else before selecting another connection (like the search itself or a entry under the DIT) it doesn't occur. The weird thing is if I create another search for the exact same entry, select it and try to switch it doesn't happen.
        Hide
        Stefan Seelmann added a comment -
        Show
        Stefan Seelmann added a comment - Fixed in trunk: http://svn.apache.org/viewvc?rev=748907&view=rev
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Apache Directory Studio version 1.4.0 has been released.

        Show
        Pierre-Arnaud Marcelot added a comment - Apache Directory Studio version 1.4.0 has been released.

          People

          • Assignee:
            Stefan Seelmann
            Reporter:
            Aleks M
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development