Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: org/springframework/ide/eclipse/beans/core/BeansCorePlugin

  1. #1
    Join Date
    May 2008
    Posts
    10

    Default org/springframework/ide/eclipse/beans/core/BeansCorePlugin

    Hi,

    I am using Eclipse 3.3.2 (Europa). I updated my Spring IDE using the springide.org/updatesite link.

    I get this error when I try to open any XML file in my application.

    Multiple errors have occured. Please see log file for more details.
    org/springframework/ide/eclipsbeans/core/BeansCoreUtils

    Here is the trace.

    !ENTRY org.eclipse.ui.workbench 4 2 2008-05-29 12:43:08.765
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
    !STACK 0
    java.lang.NoClassDefFoundError: org/springframework/ide/eclipse/beans/core/BeansCorePlugin
    at org.springframework.ide.eclipse.beans.ui.BeansUIUt ils.getConfigFile(BeansUIUtils.java:81)
    at org.springframework.ide.eclipse.beans.ui.actions.A bstractBeansConfigEditorAction.setActiveEditor(Abs tractBeansConfigEditorAction.java:49)
    at org.eclipse.ui.internal.EditorPluginAction.editorC hanged(EditorPluginAction.java:75)
    at org.eclipse.ui.internal.EditorActionBuilder$Editor Contribution.editorChanged(EditorActionBuilder.jav a:83)
    at org.eclipse.ui.internal.EditorActionBuilder$Extern alContributor.setActiveEditor(EditorActionBuilder. java:129)
    at org.eclipse.ui.internal.EditorActionBars.partChang ed(EditorActionBars.java:338)
    at org.eclipse.ui.internal.WorkbenchPage$3.run(Workbe nchPage.java:629)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.jav a:857)
    at org.eclipse.ui.internal.WorkbenchPage.activatePart (WorkbenchPage.java:618)
    at org.eclipse.ui.internal.WorkbenchPage.setActivePar t(WorkbenchPage.java:3398)
    at org.eclipse.ui.internal.WorkbenchPage.activate(Wor kbenchPage.java:611)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEdit orBatched(WorkbenchPage.java:2748)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEdit or(WorkbenchPage.java:2651)
    at org.eclipse.ui.internal.WorkbenchPage.access$13(Wo rkbenchPage.java:2643)
    at org.eclipse.ui.internal.WorkbenchPage$10.run(Workb enchPage.java:2595)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(Bus yIndicator.java:67)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(W orkbenchPage.java:2590)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(W orkbenchPage.java:2574)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(W orkbenchPage.java:2565)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:644)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:603)
    at org.eclipse.ui.actions.OpenFileAction.openFile(Ope nFileAction.java:98)
    at org.eclipse.ui.actions.OpenSystemEditorAction.run( OpenSystemEditorAction.java:98)
    at org.eclipse.ui.views.navigator.OpenActionGroup.run DefaultAction(OpenActionGroup.java:125)
    at org.eclipse.ui.views.navigator.MainActionGroup.run DefaultAction(MainActionGroup.java:328)
    at org.eclipse.ui.views.navigator.ResourceNavigator.h andleOpen(ResourceNavigator.java:690)
    at org.eclipse.ui.views.navigator.ResourceNavigator$6 .open(ResourceNavigator.java:433)
    at org.eclipse.jface.viewers.StructuredViewer$2.run(S tructuredViewer.java:820)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.jav a:857)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil. java:46)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnab le.java:199)
    at org.eclipse.jface.viewers.StructuredViewer.fireOpe n(StructuredViewer.java:818)
    at org.eclipse.jface.viewers.StructuredViewer.handleO pen(StructuredViewer.java:1079)
    at org.eclipse.jface.viewers.StructuredViewer$6.handl eOpen(StructuredViewer.java:1183)
    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent( OpenStrategy.java:263)
    at org.eclipse.jface.util.OpenStrategy.access$2(OpenS trategy.java:257)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent( OpenStrategy.java:297)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Event Table.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents( Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3293)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Wor kbench.java:2389)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench. java:2353)
    at org.eclipse.ui.internal.Workbench.access$4(Workben ch.java:2219)
    at org.eclipse.ui.internal.Workbench$4.run(Workbench. java:466)
    at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:289)
    at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:461)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplica tion.start(IDEApplication.java:106)
    at org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:11 73)

    Can someone pleae help me why is this happening. I have tried deleting all the org.springframework folders and jars from features and plugins folders and reinstall but the problem remains.

    Thanks
    Ritesh

  2. #2
    Join Date
    Dec 2006
    Location
    Karlsruhe, Germany
    Posts
    47

    Default

    Hi,
    same scenario for me I've update to 2.0.5
    In eclipse .log there is an ConcurrentModificationException prior to the NoClassDefFoundError

    Code:
    !ENTRY org.eclipse.osgi 4 0 2008-05-30 08:13:22.953
    !MESSAGE An error occurred while automatically activating bundle org.springframework.ide.eclipse.beans.core (636).
    !STACK 0
    org.osgi.framework.BundleException: Exception in org.springframework.ide.eclipse.beans.core.BeansCorePlugin.start() of bundle org.springframework.ide.eclipse.beans.core.
    	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1018)
    	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
    	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
    	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
    	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
    	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:417)
    	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189)
    	at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:340)
    	at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37)
    	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:405)
    	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
    	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
    	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    	at org.springframework.ide.eclipse.beans.ui.BeansUIUtils.getConfigFile(BeansUIUtils.java:81)
    	at org.springframework.ide.eclipse.beans.ui.actions.AbstractBeansConfigEditorAction.setActiveEditor(AbstractBeansConfigEditorAction.java:49)
    	at org.eclipse.ui.internal.EditorPluginAction.initDelegate(EditorPluginAction.java:56)
    	at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:125)
    	at org.eclipse.ui.internal.EditorPluginAction.editorChanged(EditorPluginAction.java:72)
    	at org.eclipse.ui.internal.EditorActionBuilder$EditorContribution.editorChanged(EditorActionBuilder.java:83)
    	at org.eclipse.ui.internal.EditorActionBuilder$ExternalContributor.setActiveEditor(EditorActionBuilder.java:129)
    	at org.eclipse.ui.internal.EditorActionBars.partChanged(EditorActionBars.java:338)
    	at org.eclipse.ui.internal.WorkbenchPage$3.run(WorkbenchPage.java:629)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    	at org.eclipse.core.runtime.Platform.run(Platform.java:857)
    	at org.eclipse.ui.internal.WorkbenchPage.activatePart(WorkbenchPage.java:618)
        [...]
    Caused by: java.util.ConcurrentModificationException
    	at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373)
    	at java.util.LinkedHashMap$ValueIterator.next(LinkedHashMap.java:388)
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.populateModel(BeansProject.java:777)
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getVersion(BeansProject.java:900)
    	at org.springframework.ide.eclipse.beans.core.internal.model.update.UpdateFor203.requiresUpdate(UpdateFor203.java:38)
    	at org.springframework.ide.eclipse.beans.core.internal.model.update.BeansModelUpdater.updateProject(BeansModelUpdater.java:58)
    	at org.springframework.ide.eclipse.beans.core.internal.model.update.BeansModelUpdater.updateModel(BeansModelUpdater.java:49)
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.startup(BeansModel.java:115)
    	at org.springframework.ide.eclipse.beans.core.BeansCorePlugin.start(BeansCorePlugin.java:79)
    	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
    	... 62 more
    Root exception:
    java.util.ConcurrentModificationException
    	at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373)
    	at java.util.LinkedHashMap$ValueIterator.next(LinkedHashMap.java:388)
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.populateModel(BeansProject.java:777)
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansProject.getVersion(BeansProject.java:900)
    	at org.springframework.ide.eclipse.beans.core.internal.model.update.UpdateFor203.requiresUpdate(UpdateFor203.java:38)
    	at org.springframework.ide.eclipse.beans.core.internal.model.update.BeansModelUpdater.updateProject(BeansModelUpdater.java:58)
    	at org.springframework.ide.eclipse.beans.core.internal.model.update.BeansModelUpdater.updateModel(BeansModelUpdater.java:49)
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.startup(BeansModel.java:115)
    	at org.springframework.ide.eclipse.beans.core.BeansCorePlugin.start(BeansCorePlugin.java:79)
    	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
    	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
    	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
    	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
    	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
    	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:417)
    	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189)
    	at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:340)
    	at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37)
    	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:405)
    	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
    	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
    	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    	at org.springframework.ide.eclipse.beans.ui.BeansUIUtils.getConfigFile(BeansUIUtils.java:81)
    	at org.springframework.ide.eclipse.beans.ui.actions.AbstractBeansConfigEditorAction.setActiveEditor(AbstractBeansConfigEditorAction.java:49)
    	at org.eclipse.ui.internal.EditorPluginAction.initDelegate(EditorPluginAction.java:56)
    	at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:125)
    	at org.eclipse.ui.internal.EditorPluginAction.editorChanged(EditorPluginAction.java:72)
    	at org.eclipse.ui.internal.EditorActionBuilder$EditorContribution.editorChanged(EditorActionBuilder.java:83)
    	at org.eclipse.ui.internal.EditorActionBuilder$ExternalContributor.setActiveEditor(EditorActionBuilder.java:129)
    	at org.eclipse.ui.internal.EditorActionBars.partChanged(EditorActionBars.java:338)
    	at org.eclipse.ui.internal.WorkbenchPage$3.run(WorkbenchPage.java:629)
    [...]
    !ENTRY org.eclipse.ui 4 4 2008-05-30 08:13:23.046
    !MESSAGE Could not create action delegate for id: org.springframework.ide.eclipse.beans.ui.editor.actions.searchBeanReferencesAction
    
    !ENTRY org.eclipse.ui 4 4 2008-05-30 08:13:23.046
    !MESSAGE Internal plug-in action delegate error on creation.
    !STACK 0
    java.lang.NoClassDefFoundError: org/springframework/ide/eclipse/beans/core/BeansCorePlugin
    	at org.springframework.ide.eclipse.beans.ui.BeansUIUtils.getConfigFile(BeansUIUtils.java:81)
    	at org.springframework.ide.eclipse.beans.ui.actions.AbstractBeansConfigEditorAction.setActiveEditor(AbstractBeansConfigEditorAction.java:49)
    	at org.eclipse.ui.internal.EditorPluginAction.initDelegate(EditorPluginAction.java:56)
    	at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:125)
    	at org.eclipse.ui.internal.EditorPluginAction.editorChanged(EditorPluginAction.java:72)
    	at org.eclipse.ui.internal.EditorActionBuilder$EditorContribution.editorChanged(EditorActionBuilder.java:83)
    	at org.eclipse.ui.internal.EditorActionBuilder$ExternalContributor.setActiveEditor(EditorActionBuilder.java:129)
    	at org.eclipse.ui.internal.EditorActionBars.partChanged(EditorActionBars.java:338)

  3. #3
    Join Date
    May 2008
    Posts
    10

    Default

    Hi,

    I was able to resolve my problem after trying various possibilities.

    This is what I did.
    1. Updated the EMF SDO library from the update site.
    2. Verified that the GEF was latest version.
    3. Reinstalled Spring IDE from the update site.

    The Spring IDE works fine now for me.

    Please see that the above steps are actually specified in the Installation Instructions post. I guess, just installing the latest version of Eclipse is not enough. You also need to update this libraries for Spring IDE to work.

    Thanks
    Ritesh
    Last edited by ritesh; May 30th, 2008 at 09:36 AM.

  4. #4
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    JimTonic,

    thanks for reporting the complete stacktrace. That is indeed a bug:

    IDE-876: Concurrency problem with invalid config files in .springBeans
    http://jira.springframework.org/browse/IDE-876

    To work around this remove the .springBeans config files as the error occurs only because you have config files configured in there that don't exist in your workspace.

    HTH

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  5. #5
    Join Date
    Dec 2006
    Location
    Karlsruhe, Germany
    Posts
    47

    Default

    Hello,

    Quote Originally Posted by Christian Dupuis View Post
    To work around this remove the .springBeans config files as the error occurs only because you have config files configured in there that don't exist in your workspace.
    If I'm having a wish, I would ask that non existing config files are just ignored, and are not considered as an error.

    In our project we generate a lot of spring context files, and we generate the .springBeans config files too. And not always everything is generated, so we end up having .springBeans with too much files in it.

    Alternatively multiple .springBeans would be nice.

    But thanks for your great work.

  6. #6
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    JimTonic,

    If I'm having a wish, I would ask that non existing config files are just ignored, and are not considered as an error.
    Sorry for not making that clear previously: you don't make anything wrong. Spring IDE normally just ignores invalid configuration files on .springBeans as you wished. But in that case here this "ignore" was creating the concurrent modification issue. That is why I suggested to just remove the invalid files from the configuration until the problem is fixed.

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  7. #7
    Join Date
    May 2008
    Posts
    10

    Default

    Is it possible that when a Java Project is assigned Spring Nature the .springBeans file is automatically created by searching for Spring bean configuration files?

    Currently, the user has to go to the Project Properties page and enable "Beans Support" manually by selecting the relevant XML files and then the .springBeans file is created automatically.

    I feel it would be a nice feature if the bean files are searched automatically and the .springBeans file is created when the Spring Nature is assigned.

  8. #8
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Are you looking for something like this: http://jira.springframework.org/browse/IDE-749

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  9. #9
    Join Date
    May 2008
    Posts
    10

    Default

    Yes, this is what I was actually looking for.

    I tried the "scan" button in the Properties->Spring->Beans Support->Config files tab. But it doesn't find any. Does the bean files need to be in a specific folder for being searchable/scannable.

    I am a newbie to Spring. So, please bear with me if my questions sound too naive.

  10. #10
    Join Date
    Jul 2012
    Location
    Mumbai India
    Posts
    10

    Default

    When i try to rename any files that time STS gives me following Refactoring Error!!!!!

    An unexpected exception occurred while performing the refactoring. see the error log for more details.

    org/springframework/ide/eclipse/beans/core/BeansCoreUtils

    plz help me...................

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •