java.lang.NullPointerException

Spring JIRA | Pavel Kuzin | 7 years ago
  1. 0

    Error while deploing application. With RC1 - it was OK. SEVERE: Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=ndx.billing.DatabaseFunctions, config=osgibundle:/META-INF/spring/*.xml)) 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 java.lang.Thread.run(Thread.java:619) Nov 16, 2009 12:27:05 PM SEVERE: Exception in thread "SpringOsgiExtenderThread-14" Nov 16, 2009 12:27:05 PM SEVERE: 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 java.lang.Thread.run(Thread.java:619)

    Spring JIRA | 7 years ago | Pavel Kuzin
    java.lang.NullPointerException
  2. 0

    Error while deploing application. With RC1 - it was OK. SEVERE: Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=ndx.billing.DatabaseFunctions, config=osgibundle:/META-INF/spring/*.xml)) 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 java.lang.Thread.run(Thread.java:619) Nov 16, 2009 12:27:05 PM SEVERE: Exception in thread "SpringOsgiExtenderThread-14" Nov 16, 2009 12:27:05 PM SEVERE: 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 java.lang.Thread.run(Thread.java:619)

    Spring JIRA | 7 years ago | Pavel Kuzin
    java.lang.NullPointerException
  3. 0

    Hy Tracker, i my creating an Eclipse ECP with Spring-DM. Here i'll use Spring-DM for my Services. Therefore i create META-INF/spring and put the attached File on it. Here i got the Stack-Trace: --- cut --- 2009-11-14 09:58:50,486 INFO [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[preInstantiateSingletons] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@38d460: defining beans [DataSource,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0]; root of factory hierarchy 2009-11-14 09:58:50,486 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[getSingleton] - Creating shared instance of singleton bean 'DataSource' 2009-11-14 09:58:50,486 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[createBean] - Creating instance of bean 'DataSource' 2009-11-14 09:58:50,517 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[doCreateBean] - Eagerly caching bean 'DataSource' to allow for resolving potential circular references 2009-11-14 09:58:50,533 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[createBean] - Finished creating instance of bean 'DataSource' 2009-11-14 09:58:50,533 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[getSingleton] - Creating shared instance of singleton bean 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0' 2009-11-14 09:58:50,533 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[createBean] - Creating instance of bean 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0' 2009-11-14 09:58:50,548 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[doCreateBean] - Eagerly caching bean 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0' to allow for resolving potential circular references 2009-11-14 09:58:50,548 DEBUG [SpringOsgiExtenderThread-2] BeanUtils M[findEditorByConvention] - No property editor [org.springframework.osgi.service.exporter.support.ExportContextClassLoaderEditor] found for type org.springframework.osgi.service.exporter.support.ExportContextClassLoader according to 'Editor' suffix convention 2009-11-14 09:58:50,564 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[invokeInitMethods] - Invoking afterPropertiesSet() on bean with name 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0' 2009-11-14 09:58:50,564 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[doGetBean] - Returning cached instance of singleton bean 'DataSource' 2009-11-14 09:58:50,564 DEBUG [SpringOsgiExtenderThread-2] DefaultMandatoryDependencyManager M[addServiceExporter] - Exporter [&org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0] is being tracked for dependencies 2009-11-14 09:58:50,564 INFO [SpringOsgiExtenderThread-2] OsgiServiceFactoryBean M[registerService] - Publishing service under classes [{javax.sql.DataSource}] 2009-11-14 09:58:50,579 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[createBean] - Finished creating instance of bean 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0' 2009-11-14 09:58:50,579 DEBUG [SpringOsgiExtenderThread-2] OsgiBundleXmlApplicationContext M[completeRefresh] - Post refresh error java.lang.NullPointerException at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:861) at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:222) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:330) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:87) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:292) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138) at java.lang.Thread.run(Thread.java:595) 2009-11-14 09:58:50,579 ERROR [SpringOsgiExtenderThread-2] ContextLoaderListener M[onOsgiApplicationEvent] - Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=de.on_ergy.sova.paramtab.connection, config=osgibundle:/META-INF/spring/*.xml)) java.lang.NullPointerException at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:861) at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:222) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:330) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:87) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:292) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138) at java.lang.Thread.run(Thread.java:595) --- cut --- but the Service seems to be active (ss on Eclipse OSGI-Console): --- cut --- {javax.sql.DataSource}={org.springframework.osgi.bean.name=DataSource, osgi.service.blueprint.compname=DataSource, Bundle-SymbolicName=de.on_ergy.sova.paramtab.connection, Bundle-Version=1.0.0.qualifier, service.id=52} Registered by bundle: de.on_ergy.sova.paramtab.connection_1.0.0.qualifier [147] No bundles using service. --- cut --- Any hints? Robert

    Spring JIRA | 7 years ago | Robert Einsle
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hy Tracker, i my creating an Eclipse ECP with Spring-DM. Here i'll use Spring-DM for my Services. Therefore i create META-INF/spring and put the attached File on it. Here i got the Stack-Trace: --- cut --- 2009-11-14 09:58:50,486 INFO [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[preInstantiateSingletons] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@38d460: defining beans [DataSource,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0]; root of factory hierarchy 2009-11-14 09:58:50,486 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[getSingleton] - Creating shared instance of singleton bean 'DataSource' 2009-11-14 09:58:50,486 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[createBean] - Creating instance of bean 'DataSource' 2009-11-14 09:58:50,517 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[doCreateBean] - Eagerly caching bean 'DataSource' to allow for resolving potential circular references 2009-11-14 09:58:50,533 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[createBean] - Finished creating instance of bean 'DataSource' 2009-11-14 09:58:50,533 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[getSingleton] - Creating shared instance of singleton bean 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0' 2009-11-14 09:58:50,533 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[createBean] - Creating instance of bean 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0' 2009-11-14 09:58:50,548 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[doCreateBean] - Eagerly caching bean 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0' to allow for resolving potential circular references 2009-11-14 09:58:50,548 DEBUG [SpringOsgiExtenderThread-2] BeanUtils M[findEditorByConvention] - No property editor [org.springframework.osgi.service.exporter.support.ExportContextClassLoaderEditor] found for type org.springframework.osgi.service.exporter.support.ExportContextClassLoader according to 'Editor' suffix convention 2009-11-14 09:58:50,564 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[invokeInitMethods] - Invoking afterPropertiesSet() on bean with name 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0' 2009-11-14 09:58:50,564 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[doGetBean] - Returning cached instance of singleton bean 'DataSource' 2009-11-14 09:58:50,564 DEBUG [SpringOsgiExtenderThread-2] DefaultMandatoryDependencyManager M[addServiceExporter] - Exporter [&org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0] is being tracked for dependencies 2009-11-14 09:58:50,564 INFO [SpringOsgiExtenderThread-2] OsgiServiceFactoryBean M[registerService] - Publishing service under classes [{javax.sql.DataSource}] 2009-11-14 09:58:50,579 DEBUG [SpringOsgiExtenderThread-2] DefaultListableBeanFactory M[createBean] - Finished creating instance of bean 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0' 2009-11-14 09:58:50,579 DEBUG [SpringOsgiExtenderThread-2] OsgiBundleXmlApplicationContext M[completeRefresh] - Post refresh error java.lang.NullPointerException at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:861) at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:222) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:330) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:87) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:292) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138) at java.lang.Thread.run(Thread.java:595) 2009-11-14 09:58:50,579 ERROR [SpringOsgiExtenderThread-2] ContextLoaderListener M[onOsgiApplicationEvent] - Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=de.on_ergy.sova.paramtab.connection, config=osgibundle:/META-INF/spring/*.xml)) java.lang.NullPointerException at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:861) at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:222) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:330) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:87) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:292) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138) at java.lang.Thread.run(Thread.java:595) --- cut --- but the Service seems to be active (ss on Eclipse OSGI-Console): --- cut --- {javax.sql.DataSource}={org.springframework.osgi.bean.name=DataSource, osgi.service.blueprint.compname=DataSource, Bundle-SymbolicName=de.on_ergy.sova.paramtab.connection, Bundle-Version=1.0.0.qualifier, service.id=52} Registered by bundle: de.on_ergy.sova.paramtab.connection_1.0.0.qualifier [147] No bundles using service. --- cut --- Any hints? Robert

    Spring JIRA | 7 years ago | Robert Einsle
    java.lang.NullPointerException
  6. 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

    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.springframework.context.support.AbstractApplicationContext.finishRefresh()
    2. Spring Context
      AbstractApplicationContext.finishRefresh
      1. org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:861)
      1 frame
    3. Spring OSGi Core
      AbstractDelegatedExecutionApplicationContext.completeRefresh
      1. org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
      2. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
      3. org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
      4. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
      4 frames
    4. org.springframework.osgi
      DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run
      1. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
      1 frame
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame