java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Robert Einsle,
  • 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
    via by Robert Einsle,
  • 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)
    via by Pavel Kuzin,
  • 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)
    via by Pavel Kuzin,
    • 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)
    No Bugmate found.