BundleContext不再有效

时间:2013-07-31 18:27:28

标签: osgi-bundle

我有一个在OSGi容器中运行的Java Web应用程序。我已经在Tomcat服务器上部署了我的应用程序。当我重新启动我的服务器时,有时我会随机获得多个错误“ BundleContext不再有效”,因此我无法部署该应用程序。当我们重新启动应用程序服务器时,它不会一直发生,但有时只会发生。我们找到的唯一解决方案就是重启服务器。以下是堆栈跟踪:

org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager] : Adding
OSGi service dependency for importer [&simplyticOsgiSaeAdapter] matching OSGi filter [(objectClass=c
om.moodysanalytics.sae.simplytic.adapter.SimplyticSaeAdapter)]
[org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean] : Creating a single
service proxy ...
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (
1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'dataSource
' threw exception; nested exception is java.lang.IllegalStateException: **BundleContext is no longer valid**
org.ops4j.pax.logging.pax-logging-api[org.springframework.beans.factory.xml.BeanDefinitionParserDele
gate] : No XML 'id' specified - using 'templateElement' as bean name and [] as aliases
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAcce
ssor.java:102)
[org.springframework.beans.factory.support.DefaultListableBeanFactory] : FactoryBean threw exception
 from getObjectType, despite the contract saying that it should return null if the type of its objec

0 个答案:

没有答案