java.lang.NullPointerException

SpringSource Issue Tracker | Nieraj Singh (c) | 4 years ago
  1. 0

    - Create a Java project. - Add and then remove the "Cloud Foundry Standalone Application" facet. - In both cases, facet is added and removed correctly, but NPE is thrown, as shown below. - Does not affect ability to drop and deploy the Standalone app, thus marked as minor bug. Failed to load class "null" from plugin "org.cloudfoundry.ide.eclipse.server.branding". java.lang.NullPointerException at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338) at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212) at org.eclipse.wst.common.project.facet.core.util.internal.PluginUtil.loadClass(PluginUtil.java:197) at org.eclipse.wst.common.project.facet.core.util.internal.PluginUtil.instantiate(PluginUtil.java:250) at org.eclipse.wst.common.project.facet.core.internal.ActionDefinition.getDelegate(ActionDefinition.java:164) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:433) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1099) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1109) at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:2020) at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage$4.run(FacetsPropertyPage.java:232) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344) at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage$5.run(FacetsPropertyPage.java:246) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

    SpringSource Issue Tracker | 4 years ago | Nieraj Singh (c)
    java.lang.NullPointerException
  2. 0

    - Create a Java project. - Add and then remove the "Cloud Foundry Standalone Application" facet. - In both cases, facet is added and removed correctly, but NPE is thrown, as shown below. - Does not affect ability to drop and deploy the Standalone app, thus marked as minor bug. Failed to load class "null" from plugin "org.cloudfoundry.ide.eclipse.server.branding". java.lang.NullPointerException at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338) at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212) at org.eclipse.wst.common.project.facet.core.util.internal.PluginUtil.loadClass(PluginUtil.java:197) at org.eclipse.wst.common.project.facet.core.util.internal.PluginUtil.instantiate(PluginUtil.java:250) at org.eclipse.wst.common.project.facet.core.internal.ActionDefinition.getDelegate(ActionDefinition.java:164) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:433) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1099) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344) at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1109) at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:2020) at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage$4.run(FacetsPropertyPage.java:232) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344) at org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage$5.run(FacetsPropertyPage.java:246) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

    SpringSource Issue Tracker | 4 years ago | Nieraj Singh (c)
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Contributions to 'org.springframework.ide.eclipse.beans.core.namespaces' extension point are incorrectly processed resulting in NPE. Specifically, instead of loading the class (org.springframework.beans.factory.xml.NamespaceHandler implementation) identified by namespaceHandler attribute it queries the extenspoint contribution for a non-existent 'class' attribute. 1. Exception Stack Trace: java.lang.NullPointerException at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:336) at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1197) at org.springframework.ide.eclipse.beans.core.namespaces.NamespaceUtils.loadHandler(NamespaceUtils.java:236) at org.springframework.ide.eclipse.beans.core.namespaces.NamespaceUtils.getNamespaceHandlers(NamespaceUtils.java:94) at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.DelegatingNamespaceHandlerResolver.<init>(DelegatingNamespaceHandlerResolver.java:64) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.readConfig(BeansConfig.java:401) at org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getBeans(AbstractBeansConfig.java:268) at org.springframework.ide.eclipse.beans.ui.navigator.BeansNavigatorContentProvider$ModelJob.run(BeansNavigatorContentProvider.java:269) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    Spring JIRA | 6 years ago | Mohammed Siraj Ahmed
    java.lang.NullPointerException
  5. 0

    Contributions to 'org.springframework.ide.eclipse.beans.core.namespaces' extension point are incorrectly processed resulting in NPE. Specifically, instead of loading the class (org.springframework.beans.factory.xml.NamespaceHandler implementation) identified by namespaceHandler attribute it queries the extenspoint contribution for a non-existent 'class' attribute. 1. Exception Stack Trace: java.lang.NullPointerException at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:336) at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1197) at org.springframework.ide.eclipse.beans.core.namespaces.NamespaceUtils.loadHandler(NamespaceUtils.java:236) at org.springframework.ide.eclipse.beans.core.namespaces.NamespaceUtils.getNamespaceHandlers(NamespaceUtils.java:94) at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.DelegatingNamespaceHandlerResolver.<init>(DelegatingNamespaceHandlerResolver.java:64) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.readConfig(BeansConfig.java:401) at org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getBeans(AbstractBeansConfig.java:268) at org.springframework.ide.eclipse.beans.ui.navigator.BeansNavigatorContentProvider$ModelJob.run(BeansNavigatorContentProvider.java:269) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    Spring JIRA | 6 years ago | Mohammed Siraj Ahmed
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.eclipse.osgi.internal.loader.BundleLoader.loadClass()
    2. Eclipse OSGi
      BundleLoader.loadClass
      1. org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)
      1 frame
    3. Eclipse OSGi
      AbstractBundle.loadClass
      1. org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
      2. org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
      2 frames
    4. org.eclipse.wst
      PluginUtil.instantiate
      1. org.eclipse.wst.common.project.facet.core.util.internal.PluginUtil.loadClass(PluginUtil.java:197)
      2. org.eclipse.wst.common.project.facet.core.util.internal.PluginUtil.instantiate(PluginUtil.java:250)
      2 frames
    5. Project Facet Core
      FacetedProject$5.run
      1. org.eclipse.wst.common.project.facet.core.internal.ActionDefinition.getDelegate(ActionDefinition.java:164)
      2. org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:433)
      3. org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181)
      4. org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117)
      5. org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1099)
      5 frames
    6. Core Resource Management
      Workspace.run
      1. org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
      1 frame
    7. Project Facet Core
      FacetedProjectWorkingCopy.commitChanges
      1. org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1109)
      2. org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:2020)
      2 frames
    8. Project Facet UI
      FacetsPropertyPage$4.run
      1. org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage$4.run(FacetsPropertyPage.java:232)
      1 frame
    9. Core Resource Management
      Workspace.run
      1. org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
      1 frame
    10. Project Facet UI
      FacetsPropertyPage$5.run
      1. org.eclipse.wst.common.project.facet.ui.internal.FacetsPropertyPage$5.run(FacetsPropertyPage.java:246)
      1 frame
    11. JFace
      ModalContext$ModalContextThread.run
      1. org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      1 frame