java.lang.NullPointerException

SpringSource Issue Tracker | Kris De Volder (c) | 5 years ago
  1. 0

    When running tests or a runtime eclipse workspace on my machine locally, I get a stream of NPE errors. Doesn't seem too concerningas it is most likely only a problem because of the Eclipse runtime/debug environment and doesn't happen in a 'production' STS. Still, this is mighty annoying for me personally, since it messes with my ability to run and debug tests. The first of many errors (which I think causes subequent ones): {noformat} !ENTRY org.eclipse.equinox.ds 4 0 2011-06-22 13:31:03.169 !MESSAGE Exception occurred while creating new instance of component Component[ name = com.springsource.sts.p2.policy activate = activate deactivate = deactivate modified = configuration-policy = optional factory = null autoenable = true immediate = false implementation = com.springsource.sts.internal.policy.NoApplyPolicy state = Unsatisfied properties = {service.ranking=1000} serviceFactory = false serviceInterface = [org.eclipse.equinox.p2.ui.Policy] references = null located in bundle = com.springsource.sts_2.7.0.qualifier [25] ] !STACK 0 java.lang.NullPointerException at com.springsource.sts.internal.policy.NoApplyPolicy.<init>(NoApplyPolicy.java:24) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.eclipse.equinox.internal.ds.model.ServiceComponent.createInstance(ServiceComponent.java:480) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.createInstance(ServiceComponentProp.java:271) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:332) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588) at org.eclipse.equinox.internal.ds.ServiceReg.getService(ServiceReg.java:53) at org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(ServiceUse.java:138) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.internal.serviceregistry.ServiceUse.getService(ServiceUse.java:136) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:468) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:467) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:594) at org.eclipse.equinox.internal.p2.core.helpers.ServiceHelper.getService(ServiceHelper.java:66) at org.eclipse.equinox.internal.p2.ui.ProvUIActivator.getProvisioningUI(ProvUIActivator.java:137) at org.eclipse.equinox.p2.ui.ProvisioningUI.getDefaultUI(ProvisioningUI.java:58) at org.eclipse.mylyn.internal.discovery.ui.PrepareInstallProfileJob_e_3_6.<init>(PrepareInstallProfileJob_e_3_6.java:77) at org.eclipse.mylyn.internal.discovery.ui.DiscoveryUi.createInstallJob(DiscoveryUi.java:58) at org.eclipse.mylyn.internal.discovery.ui.DiscoveryUi.createInstallJob(DiscoveryUi.java:47) at com.springsource.sts.internal.ide.ui.editors.AggregateFeedJob.updateNotifications(AggregateFeedJob.java:193) at com.springsource.sts.internal.ide.ui.editors.AggregateFeedJob.run(AggregateFeedJob.java:166) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {noformat}

    SpringSource Issue Tracker | 5 years ago | Kris De Volder (c)
    java.lang.NullPointerException
  2. 0

    When running tests or a runtime eclipse workspace on my machine locally, I get a stream of NPE errors. Doesn't seem too concerningas it is most likely only a problem because of the Eclipse runtime/debug environment and doesn't happen in a 'production' STS. Still, this is mighty annoying for me personally, since it messes with my ability to run and debug tests. The first of many errors (which I think causes subequent ones): {noformat} !ENTRY org.eclipse.equinox.ds 4 0 2011-06-22 13:31:03.169 !MESSAGE Exception occurred while creating new instance of component Component[ name = com.springsource.sts.p2.policy activate = activate deactivate = deactivate modified = configuration-policy = optional factory = null autoenable = true immediate = false implementation = com.springsource.sts.internal.policy.NoApplyPolicy state = Unsatisfied properties = {service.ranking=1000} serviceFactory = false serviceInterface = [org.eclipse.equinox.p2.ui.Policy] references = null located in bundle = com.springsource.sts_2.7.0.qualifier [25] ] !STACK 0 java.lang.NullPointerException at com.springsource.sts.internal.policy.NoApplyPolicy.<init>(NoApplyPolicy.java:24) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.eclipse.equinox.internal.ds.model.ServiceComponent.createInstance(ServiceComponent.java:480) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.createInstance(ServiceComponentProp.java:271) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:332) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588) at org.eclipse.equinox.internal.ds.ServiceReg.getService(ServiceReg.java:53) at org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(ServiceUse.java:138) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.internal.serviceregistry.ServiceUse.getService(ServiceUse.java:136) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:468) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:467) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:594) at org.eclipse.equinox.internal.p2.core.helpers.ServiceHelper.getService(ServiceHelper.java:66) at org.eclipse.equinox.internal.p2.ui.ProvUIActivator.getProvisioningUI(ProvUIActivator.java:137) at org.eclipse.equinox.p2.ui.ProvisioningUI.getDefaultUI(ProvisioningUI.java:58) at org.eclipse.mylyn.internal.discovery.ui.PrepareInstallProfileJob_e_3_6.<init>(PrepareInstallProfileJob_e_3_6.java:77) at org.eclipse.mylyn.internal.discovery.ui.DiscoveryUi.createInstallJob(DiscoveryUi.java:58) at org.eclipse.mylyn.internal.discovery.ui.DiscoveryUi.createInstallJob(DiscoveryUi.java:47) at com.springsource.sts.internal.ide.ui.editors.AggregateFeedJob.updateNotifications(AggregateFeedJob.java:193) at com.springsource.sts.internal.ide.ui.editors.AggregateFeedJob.run(AggregateFeedJob.java:166) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {noformat}

    SpringSource Issue Tracker | 5 years ago | Kris De Volder (c)
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 com.springsource.sts.internal.policy.NoApplyPolicy.<init>()
    2. com.springsource.sts
      NoApplyPolicy.<init>
      1. com.springsource.sts.internal.policy.NoApplyPolicy.<init>(NoApplyPolicy.java:24)
      1 frame
    3. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      5. java.lang.Class.newInstance0(Class.java:355)
      6. java.lang.Class.newInstance(Class.java:308)
      6 frames
    4. org.eclipse.equinox
      ServiceReg.getService
      1. org.eclipse.equinox.internal.ds.model.ServiceComponent.createInstance(ServiceComponent.java:480)
      2. org.eclipse.equinox.internal.ds.model.ServiceComponentProp.createInstance(ServiceComponentProp.java:271)
      3. org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:332)
      4. org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
      5. org.eclipse.equinox.internal.ds.ServiceReg.getService(ServiceReg.java:53)
      5 frames
    5. Eclipse OSGi
      ServiceUse$1.run
      1. org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(ServiceUse.java:138)
      1 frame
    6. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    7. Eclipse OSGi
      ServiceRegistry.getService
      1. org.eclipse.osgi.internal.serviceregistry.ServiceUse.getService(ServiceUse.java:136)
      2. org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:468)
      3. org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:467)
      3 frames
    8. Eclipse OSGi
      BundleContextImpl.getService
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:594)
      1 frame
    9. org.eclipse.equinox
      ProvisioningUI.getDefaultUI
      1. org.eclipse.equinox.internal.p2.core.helpers.ServiceHelper.getService(ServiceHelper.java:66)
      2. org.eclipse.equinox.internal.p2.ui.ProvUIActivator.getProvisioningUI(ProvUIActivator.java:137)
      3. org.eclipse.equinox.p2.ui.ProvisioningUI.getDefaultUI(ProvisioningUI.java:58)
      3 frames
    10. org.eclipse.mylyn
      DiscoveryUi.createInstallJob
      1. org.eclipse.mylyn.internal.discovery.ui.PrepareInstallProfileJob_e_3_6.<init>(PrepareInstallProfileJob_e_3_6.java:77)
      2. org.eclipse.mylyn.internal.discovery.ui.DiscoveryUi.createInstallJob(DiscoveryUi.java:58)
      3. org.eclipse.mylyn.internal.discovery.ui.DiscoveryUi.createInstallJob(DiscoveryUi.java:47)
      3 frames
    11. com.springsource.sts
      AggregateFeedJob.run
      1. com.springsource.sts.internal.ide.ui.editors.AggregateFeedJob.updateNotifications(AggregateFeedJob.java:193)
      2. com.springsource.sts.internal.ide.ui.editors.AggregateFeedJob.run(AggregateFeedJob.java:166)
      2 frames
    12. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame