Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.0.RC1
    • Fix Version/s: 2.7.0.RELEASE
    • Component/s: None
    • Labels:
      None

      Description

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

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

        Activity

        Hide
        Steffen Pingel added a comment -

        I have added a null check.

        Show
        Steffen Pingel added a comment - I have added a null check.

          People

          • Assignee:
            Steffen Pingel
            Reporter:
            Kris De Volder (c)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: