Announcement Announcement Module
Collapse
No announcement yet.
Initializing Bean Models NPE Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Initializing Bean Models NPE

    I'm using IBM Rational Application Developer which is based on Eclipse 3.4 I installed the following into it:

    1. Spring IDE from http://dist.springframework.org/release/IDE

    2. Spring Tool Suite from http://www.springsource.com/milestone/e3.4

    When I start Eclipse, I get the following error:

    Code:
    !ENTRY org.eclipse.core.jobs 4 2 2009-06-29 09:33:17.511
    !MESSAGE An internal error occurred during: "Initializing Beans Model".
    !STACK 0
    java.lang.NullPointerException
    	at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.ToolingAwareNamespacePlugins.getSystemCatalog(Unknown Source)
    	at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.ToolingAwareNamespacePlugins.addCatalogEntry(Unknown Source)
    	at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.ToolingAwareNamespacePlugins.addNamespaceDefinition(Unknown Source)
    	at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.ToolingAwareNamespacePlugins.addPlugin(Unknown Source)
    	at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.NamespaceManager.maybeAddNamespaceHandlerFor(Unknown Source)
    	at org.springframework.ide.eclipse.beans.core.BeansCorePlugin.maybeAddNamespaceHandlerFor(Unknown Source)
    	at org.springframework.ide.eclipse.beans.core.BeansCorePlugin.initNamespaceHandlers(Unknown Source)
    	at org.springframework.ide.eclipse.beans.core.BeansCorePlugin$1.run(Unknown Source)
    	at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)

  • #2
    msuiter,

    can you please open a JIRA against Spring IDE and run your RAD with a Sun JVM so that we can get line number information. Otherwise this is hard to debug.

    Maybe there is an option to turn debug information back on.

    Christian

    Comment


    • #3
      Here it is with line numbers. This install is Spring IDE 2.2.5.M1. I'll create a Jira for it.

      Code:
      !ENTRY org.eclipse.core.jobs 4 2 2009-07-01 08:31:03.792
      !MESSAGE An internal error occurred during: "Initializing Beans Model".
      !STACK 0
      java.lang.NullPointerException
      	at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.ToolingAwareNamespacePlugins.getSystemCatalog(ToolingAwareNamespacePlugins.java:209)
      	at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.ToolingAwareNamespacePlugins.addCatalogEntry(ToolingAwareNamespacePlugins.java:165)
      	at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.ToolingAwareNamespacePlugins.addNamespaceDefinition(ToolingAwareNamespacePlugins.java:120)
      	at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.ToolingAwareNamespacePlugins.addPlugin(ToolingAwareNamespacePlugins.java:69)
      	at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.NamespaceManager.maybeAddNamespaceHandlerFor(NamespaceManager.java:115)
      	at org.springframework.ide.eclipse.beans.core.BeansCorePlugin.maybeAddNamespaceHandlerFor(BeansCorePlugin.java:256)
      	at org.springframework.ide.eclipse.beans.core.BeansCorePlugin.initNamespaceHandlers(BeansCorePlugin.java:276)
      	at org.springframework.ide.eclipse.beans.core.BeansCorePlugin$1.run(BeansCorePlugin.java:123)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      
      !ENTRY org.eclipse.mylyn.tasks.ui 4 0 2009-07-01 08:31:08.292
      !MESSAGE Could not load repository template extension repository

      Comment


      • #4
        the problem still exists.

        Hi,
        i have installed Spring IDE 2.2.6-RELEASE.
        The above problem seems to still exist. I am getting following exception.

        java.lang.NullPointerException
        at org.springframework.ide.eclipse.beans.core.interna l.model.namespaces.ToolingAwareNamespacePlugins.ad dNamespaceDefinition(ToolingAwareNamespacePlugins. java:117)
        at org.springframework.ide.eclipse.beans.core.interna l.model.namespaces.ToolingAwareNamespacePlugins.ad dPlugin(ToolingAwareNamespacePlugins.java:79)
        at org.springframework.ide.eclipse.beans.core.interna l.model.namespaces.NamespaceManager.maybeAddNamesp aceHandlerFor(NamespaceManager.java:115)
        at org.springframework.ide.eclipse.beans.core.BeansCo rePlugin.maybeAddNamespaceHandlerFor(BeansCorePlug in.java:264)
        at org.springframework.ide.eclipse.beans.core.BeansCo rePlugin.initNamespaceHandlers(BeansCorePlugin.jav a:284)
        at org.springframework.ide.eclipse.beans.core.BeansCo rePlugin$1.run(BeansCorePlugin.java:131)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:55)

        Also, if i am getting a major issue with 2.2.6. When i try to create a bean definition file, the wizard doesnt come up throwing an NPE. is this an know issue ? Please find the NPE exception below.

        java.lang.NullPointerException
        at java.lang.String.compareTo(String.java:997)
        at org.springframework.ide.eclipse.beans.ui.namespace s.NamespaceUtils$1.compare(NamespaceUtils.java:191 )
        at org.springframework.ide.eclipse.beans.ui.namespace s.NamespaceUtils$1.compare(NamespaceUtils.java:1)
        at java.util.Arrays.mergeSort(Arrays.java:1284)
        at java.util.Arrays.mergeSort(Arrays.java:1295)
        at java.util.Arrays.mergeSort(Arrays.java:1295)
        at java.util.Arrays.sort(Arrays.java:1223)
        at java.util.Collections.sort(Collections.java:159)
        at org.springframework.ide.eclipse.beans.ui.namespace s.NamespaceUtils.getNamespaceDefinitions(Namespace Utils.java:189)
        at org.springframework.ide.eclipse.beans.ui.wizards.N amespaceSelectionWizardPage$XsdConfigContentProvid er.getElements(NamespaceSelectionWizardPage.java:7 5)
        at org.eclipse.jface.viewers.StructuredViewer.getRawC hildren(StructuredViewer.java:937)
        at org.eclipse.jface.viewers.ColumnViewer.getRawChild ren(ColumnViewer.java:703)
        at org.eclipse.jface.viewers.AbstractTableViewer.getR awChildren(AbstractTableViewer.java:1071)
        at org.eclipse.jface.viewers.StructuredViewer.getFilt eredChildren(StructuredViewer.java:871)
        at org.eclipse.jface.viewers.StructuredViewer.getSort edChildren(StructuredViewer.java:994)
        at org.eclipse.jface.viewers.AbstractTableViewer.inte rnalRefreshAll(AbstractTableViewer.java:685)
        at org.eclipse.jface.viewers.AbstractTableViewer.inte rnalRefresh(AbstractTableViewer.java:633)
        at org.eclipse.jface.viewers.AbstractTableViewer.inte rnalRefresh(AbstractTableViewer.java:620)
        at org.eclipse.jface.viewers.AbstractTableViewer$2.ru n(AbstractTableViewer.java:576)
        at org.eclipse.jface.viewers.StructuredViewer.preserv ingSelection(StructuredViewer.java:1365)
        at org.eclipse.jface.viewers.StructuredViewer.preserv ingSelection(StructuredViewer.java:1328)
        at org.eclipse.jface.viewers.CheckboxTableViewer.pres ervingSelection(CheckboxTableViewer.java:296)
        at org.eclipse.jface.viewers.AbstractTableViewer.inpu tChanged(AbstractTableViewer.java:574)
        at org.eclipse.jface.viewers.ContentViewer.setInput(C ontentViewer.java:274)
        at org.eclipse.jface.viewers.StructuredViewer.setInpu t(StructuredViewer.java:1603)
        at org.springframework.ide.eclipse.beans.ui.wizards.N amespaceSelectionWizardPage.createControl(Namespac eSelectionWizardPage.java:144)
        at org.eclipse.jface.wizard.Wizard.createPageControls (Wizard.java:170)
        at org.eclipse.jface.wizard.WizardDialog.createPageCo ntrols(WizardDialog.java:669)
        at org.eclipse.jface.wizard.WizardDialog.createConten ts(WizardDialog.java:543)
        at org.eclipse.jface.window.Window.create(Window.java :431)
        at org.eclipse.jface.dialogs.Dialog.create(Dialog.jav a:1089)
        at org.eclipse.ui.internal.navigator.wizards.WizardSh ortcutAction.run(WizardShortcutAction.java:91)
        at org.eclipse.jface.action.Action.runWithEvent(Actio n.java:498)
        at org.eclipse.jface.action.ActionContributionItem.ha ndleWidgetSelection(ActionContributionItem.java:58 3)
        at org.eclipse.jface.action.ActionContributionItem.ac cess$2(ActionContributionItem.java:500)
        at org.eclipse.jface.action.ActionContributionItem$5. handleEvent(ActionContributionItem.java:411)
        at org.eclipse.swt.widgets.EventTable.sendEvent(Event Table.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents( Display.java:3823)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3422)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Wor kbench.java:2384)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench. java:2348)
        at org.eclipse.ui.internal.Workbench.access$4(Workben ch.java:2200)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench. java:495)
        at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:288)
        at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:490)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplica tion.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:193)
        at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:386)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:179)
        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:585)
        at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:12 36)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1 212)


        Thanks for any help,
        Harsha.

        Comment


        • #5
          just to add if it helps, my eclipse env is 3.4.2.

          Comment


          • #6
            skopell,

            thanks for reporting those errors. Both of those are fixed in the latest nightly build and will be fixed on the next version of Spring IDE.

            The second issue is a side-effect of the first stacktrace.

            You can update your Spring IDE from the nightly update site to get started again: http://dist.springframework.org/snapshot/IDE/nightly (this update site only works in Eclipse; not in your web browser)

            HTH

            Christian

            Comment

            Working...
            X