Spring Framework
  1. Spring Framework
  2. SPR-6356

NPE in AbstractApplicationContext finishRefresh when initialized via Spring DM

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0 RC2
    • Fix Version/s: 3.0 RC3
    • Component/s: Core
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      I've just tried upgrading dm Server to run with Spring 3.0.0.RC2 and
      have encountered the following NPE whenever Spring DM tries to create an
      application context for a Bundle:

      java.lang.NullPointerException at
      org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:861) at
      org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235) at
      org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358) at
      org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at
      org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) at
      org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136) at
      com.springsource.kernel.agent.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:106) at
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at
      java.lang.Thread.run(Thread.java:637)
      

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Juergen Hoeller
              Reporter:
              Andy Wilkinson
              Last updater:
              Trevor Marshall
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 23 weeks, 4 days ago