12 Replies Latest reply on Jul 25, 2012 5:49 AM by mickael_istria

    Error after latest update

    reschifl

      Hello,

       

      I used an Eclipse JEE 3.7.2 with installed JBoss Tools 3.3.0 Final. Everything was fine.

       

      Yesterday I checked for updates and there where some for JBoss Tools (version 3.3.1?).

       

      After performing the successful update, my Eclipse is no longer usable. Every doubleclick on a file results in an error like this:

       

      java.lang.NoClassDefFoundError: org/eclipse/jpt/common/utility/internal/StatefulCommandExecutor

          at org.eclipse.jpt.jpa.core.JptJpaCorePlugin.buildJpaProjectManager(JptJpaCorePlugin.java:791)

          at org.eclipse.jpt.jpa.core.JptJpaCorePlugin.getJpaProjectManager_(JptJpaCorePlugin.java:784)

          at org.eclipse.jpt.jpa.core.JptJpaCorePlugin.getJpaProjectManager(JptJpaCorePlugin.java:248)

          at org.eclipse.jpt.jpa.core.JptJpaCorePlugin.getJpaFile(JptJpaCorePlugin.java:265)

          at org.eclipse.jpt.jpa.core.internal.resource.xml.JpaXmlResourceAdapterFactory.getAdapter(JpaXmlResourceAdapterFactory.java:38)

          at org.eclipse.jpt.jpa.core.internal.resource.xml.JpaXmlResourceAdapterFactory.getAdapter(JpaXmlResourceAdapterFactory.java:31)

          at org.eclipse.core.internal.adapter.AdapterFactoryProxy.getAdapter(AdapterFactoryProxy.java:80)

          at org.eclipse.core.internal.runtime.AdapterManager.getAdapter(AdapterManager.java:326)

          at org.eclipse.core.internal.runtime.AdapterManager.getAdapter(AdapterManager.java:307)

          at org.eclipse.core.internal.expressions.AdaptExpression.evaluate(AdaptExpression.java:80)

          at org.eclipse.core.internal.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)

          at org.eclipse.core.internal.expressions.OrExpression.evaluate(OrExpression.java:21)

          at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)

          at org.eclipse.core.internal.expressions.IterateExpression.evaluate(IterateExpression.java:150)

          at org.eclipse.ui.internal.services.EvaluationResultCache.evaluate(EvaluationResultCache.java:74)

          at org.eclipse.ui.internal.services.ExpressionAuthority.evaluate(ExpressionAuthority.java:165)

          at org.eclipse.ui.internal.services.EvaluationAuthority.refsWithSameExpression(EvaluationAuthority.java:155)

          at org.eclipse.ui.internal.services.EvaluationAuthority.sourceChanged(EvaluationAuthority.java:129)

          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.handleCheck(WorkbenchSourceProvider.java:286)

          at org.eclipse.ui.internal.services.WorkbenchSourceProvider.checkOtherSources(WorkbenchSourceProvider.java:855)

          at org.eclipse.ui.internal.services.WorkbenchSourceProvider$6.handleEvent(WorkbenchSourceProvider.java:839)

          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

          at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)

          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)

          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)

          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)

          at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1647)

          at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2137)

          at org.eclipse.swt.widgets.Control.windowProc(Control.java:4525)

          at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)

          at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1610)

          at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2061)

          at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)

          at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)

          at org.eclipse.swt.widgets.Control.forceFocus(Control.java:1098)

          at org.eclipse.swt.widgets.Control.setFocus(Control.java:3303)

          at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1040)

          at org.eclipse.ui.texteditor.AbstractTextEditor.setFocus(AbstractTextEditor.java:6189)

          at org.eclipse.ui.texteditor.StatusTextEditor.setFocus(StatusTextEditor.java:122)

          at org.eclipse.ui.part.MultiPageEditorPart.setFocus(MultiPageEditorPart.java:1110)

          at org.eclipse.ui.part.MultiPageEditorPart.setFocus(MultiPageEditorPart.java:1092)

          at org.eclipse.pde.internal.ui.editor.PDEFormEditor.setFocus(PDEFormEditor.java:274)

          at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:332)

          at org.eclipse.ui.internal.EditorPane.setFocus(EditorPane.java:127)

          at org.eclipse.ui.internal.WorkbenchPage$3.run(WorkbenchPage.java:703)

          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.WorkbenchPage.activatePart(WorkbenchPage.java:698)

          at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3632)

          at org.eclipse.ui.internal.WorkbenchPage.internalActivate(WorkbenchPage.java:691)

          at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:663)

          at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2957)

          at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)

          at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)

          at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)

          at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

          at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)

          at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)

          at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)

          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:355)

          at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)

          at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)

          at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)

          at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)

          at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)

          at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50)

          at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)

          at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)

          at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)

          at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)

          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:864)

          at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)

          at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)

          at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)

          at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)

          at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)

          at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)

          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.Display.runDeferredEvents(Display.java:4165)

          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)

          at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)

          at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)

          at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)

          at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)

          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)

          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: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)

      Caused by: java.lang.ClassNotFoundException: org.eclipse.jpt.common.utility.internal.StatefulCommandExecutor

          at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)

          at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

          at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

          ... 111 more

       

      Can someone confirm this effekt?

       

       

      Regards,

      Lars

        • 1. Re: Error after latest update
          snjeza

          It seems you have also updated WTP to the 3.4.0 version (WTP Juno).

          This is only possible if your distribution includes some Juno update site.

          JBoss Tools 3.3.1 isn't compatible with WTP 3.4.0.

          You can roll back the configuration to the configuration before updating JBoss Tools to 3.3.1, remove Juno update sites and update JBoss Tools again.

          • 2. Re: Error after latest update
            rcernich

            Lars,

             

            Make sure you don't also have an update site for JBoss Tools nightly enabled.  The nightly release is built atop Eclipse Juno.

             

            Hope that helps,

            Rob

            • 3. Re: Error after latest update
              gdube

              I have a similar problem. I installed Eclipse Indigo Release 2, and then JBoss Tools 3.3.1. I added a local JBoss AS 7.1.1 Final instance to Servers. I created a new Java EE Project.

               

              Almost everytime I click on a file I get a pop-up where the details read:

              "An error has occurred when activating this view

              org/eclipse/jpt/common/utility/internal/StatefulCommandExecutor"

               

              My WDT version is 3.3.2 (v201111030500-7O7IFj6EMjB7yO1Xs_G1kMtQeOye6HTXFWve95_R), my automatic updates are disabled, and no sites appear Available Software Sites when 'juno' is used as a filter.

              • 4. Re: Error after latest update
                snjeza

                The org/eclipse/jpt/common/utility/internal/StatefulCommandExecutor class is included in the org.eclipse.jpt.common.utility plugin, version 2.0.x that is part of WTP 3.3.x.

                This class has been renamed to org.eclipse.jpt.common.utility.command.StatefulCommandExecutor in the org.eclipse.jpt.common.utility plugin, version 2.1.0 which is part of WTP 3.4.0

                In order to check the version of this plugin, you can do the following:

                - open the Console View

                - select Host OSGi Console from the view's context menu

                - enter ss org.eclipse.jpt.common.utility

                • 5. Re: Error after latest update
                  rcernich

                  This seems to be a pretty common problem.  I've had another report of someone using a clean 3.7.2 install, then using market place to install jbt and boom!

                  • 6. Re: Error after latest update
                    rcernich

                    All please check your configured update sites (preferences, Install/Update => Available  Software Sites) to make sure only Indigo related sites are enabled (i.e. checked).

                     

                    The following has worked for me:

                    1. Clean Eclipse JEE 3.7.2 install
                    2. About => Install New Software...
                    3. Add..., http://download.jboss.org/jbosstools/updates/stable/indigo/
                    4. Check Abridged JBoss Tools 3.3
                    5. All is well

                     

                    This install gives you everything but GWT, BIRT, Struts and source code.

                     

                    The following is a list of enabled update sites in my install (note, the JBT related sites will appear automatically after the install):

                    update_sites.gif

                     

                    Hope that helps,

                    Rob

                    • 7. Re: Error after latest update
                      rcernich

                      I've since installed everything except the source plugins, all without problems.

                      • 8. Re: Error after latest update
                        reschifl

                        Hello,

                         

                        I think I have found the reason. I installed some extensions (subversive) through the Eclipse Marketplace.

                        This added the following update site:

                         

                        http://marketplace.eclipse.org/repo/

                         

                        Removing this update site, upgrading to JBoss Tools 3.3.1 works without any problem.

                         

                        Regards,

                        Lars

                        1 of 1 people found this helpful
                        • 9. Re: Error after latest update
                          mickael_istria

                          @Lars: That's indeed a good spot. this marketplace repo contains a lot of unmanaged stuff that comes later to pollute installations.

                          We reported this issue to Eclipse Marketplace: see https://bugs.eclipse.org/bugs/show_bug.cgi?id=385334

                          You can also update directly JBoss Tools via the update-site, ansuring you unchecked the "Contact all updates sites during install to find required software".

                          • 10. Re: Error after latest update
                            rcernich

                            Another thread with the same issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=379473

                            • 11. Re: Error after latest update
                              rcernich

                              Great sluething Lars!

                              • 12. Re: Error after latest update
                                mickael_istria

                                Thanks to your report, there has been some improvements on Eclipse MarketPlace so that it should not install you silently stuff you don't want from Juno