felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andras Szerdahelyi <andras.szerdahe...@gmail.com>
Subject Dependency Manager Shell - IllegalStateException: Invalid BundleContext after update of some bundles
Date Wed, 25 Jun 2014 12:54:28 GMT
hello list,

 i use the DM Shell bundle to debug service dependency problems in my
DM-managed components. Its been working great for the most part, that is
until i try to update an active bundle in the framework. I see the expected
framework events logged in "log debug", DM or the DM shell bundle is never
stopped. Yet after the update, the "dm" gogo command returns with

g! dm

gogo: IllegalStateException: Invalid BundleContext.

g!


the full output of "log debug" for reference:

2014.06.25 14:47:38 INFO - Bundle: myproduct-service-budgeting-memcached -
[com.mycompany.myproduct.service.budgeting.api.BudgetingService] -
ServiceEvent REGISTERED

2014.06.25 14:47:38 INFO - Bundle: myproduct-channel-http -
[com.mycompany.myproduct.channel.api.myproductChannel] - ServiceEvent
REGISTERED

2014.06.25 14:47:38 INFO - Bundle: myproduct-processor-jul-concurrent -
[com.mycompany.myproduct.processor.api.ProcessorService] - ServiceEvent
REGISTERED

2014.06.25 14:47:38 INFO - Bundle: myproduct-service-budgeting-memcached -
BundleEvent STARTED

2014.06.25 14:47:38 INFO - Bundle: myproduct-service-budgeting-memcached -
[org.osgi.service.cm.ManagedServiceFactory] - ServiceEvent REGISTERED

2014.06.25 14:47:38 INFO - Bundle: myproduct-service-budgeting-memcached -
[com.mycompany.myproduct.configuration.myproductConfigurationFactory] -
ServiceEvent REGISTERED

2014.06.25 14:47:38 INFO - Bundle: myproduct-service-budgeting-memcached -
BundleEvent RESOLVED

2014.06.25 14:47:38 INFO - Bundle: org.apache.felix.framework -
FrameworkEvent PACKAGES REFRESHED

2014.06.25 14:47:38 INFO - Bundle: org.apache.felix.framework -
FrameworkEvent PACKAGES REFRESHED

2014.06.25 14:47:38 INFO - Bundle: myproduct-service-budgeting-memcached -
BundleEvent UPDATED

2014.06.25 14:47:38 INFO - Bundle: myproduct-service-budgeting-memcached -
BundleEvent UNRESOLVED

2014.06.25 14:47:38 INFO - Bundle: myproduct-service-budgeting-memcached -
BundleEvent STOPPED

2014.06.25 14:47:38 INFO - Bundle: myproduct-service-budgeting-memcached -
[com.mycompany.myproduct.service.budgeting.api.BudgetingService] -
ServiceEvent UNREGISTERING

2014.06.25 14:47:37 INFO - Bundle: myproduct-channel-http -
[com.mycompany.myproduct.channel.api.myproductChannel] - ServiceEvent
UNREGISTERING

2014.06.25 14:47:37 INFO - Bundle: myproduct-processor-jul-concurrent -
[com.mycompany.myproduct.processor.api.ProcessorService] - ServiceEvent
UNREGISTERING

2014.06.25 14:47:37 INFO - Bundle: myproduct-service-budgeting-memcached -
[com.mycompany.myproduct.configuration.myproductConfigurationFactory] -
ServiceEvent UNREGISTERING

2014.06.25 14:47:37 INFO - Bundle: myproduct-service-budgeting-memcached -
[org.osgi.service.cm.ManagedServiceFactory] - ServiceEvent UNREGISTERING

2014.06.25 14:47:36 INFO - Bundle: myproduct-service-budgeting-memcached -
[com.mycompany.myproduct.service.budgeting.api.BudgetingService] -
ServiceEvent REGISTERED

2014.06.25 14:47:36 INFO - Bundle: myproduct-channel-http -
[com.mycompany.myproduct.channel.api.myproductChannel] - ServiceEvent
REGISTERED

2014.06.25 14:47:36 INFO - Bundle: myproduct-processor-jul-concurrent -
[com.mycompany.myproduct.processor.api.ProcessorService] - ServiceEvent
REGISTERED

2014.06.25 14:47:36 INFO - Bundle: myproduct-service-budgeting-memcached -
BundleEvent STARTED

2014.06.25 14:47:36 INFO - Bundle: myproduct-service-budgeting-memcached -
[org.osgi.service.cm.ManagedServiceFactory] - ServiceEvent REGISTERED

2014.06.25 14:47:36 INFO - Bundle: myproduct-service-budgeting-memcached -
[com.mycompany.myproduct.configuration.myproductConfigurationFactory] -
ServiceEvent REGISTERED

2014.06.25 14:47:36 INFO - Bundle: myproduct-service-budgeting-memcached -
BundleEvent RESOLVED

2014.06.25 14:47:36 INFO - Bundle: org.apache.felix.framework -
FrameworkEvent PACKAGES REFRESHED

2014.06.25 14:47:36 INFO - Bundle: org.apache.felix.framework -
FrameworkEvent PACKAGES REFRESHED

2014.06.25 14:47:36 INFO - Bundle: myproduct-service-budgeting-memcached -
BundleEvent UPDATED

2014.06.25 14:47:36 INFO - Bundle: myproduct-service-budgeting-memcached -
BundleEvent UNRESOLVED

2014.06.25 14:47:36 INFO - Bundle: myproduct-service-budgeting-memcached -
BundleEvent STOPPED

2014.06.25 14:47:36 INFO - Bundle: myproduct-service-budgeting-memcached -
[com.mycompany.myproduct.service.budgeting.api.BudgetingService] -
ServiceEvent UNREGISTERING

2014.06.25 14:47:35 INFO - Bundle: myproduct-channel-http -
[com.mycompany.myproduct.channel.api.myproductChannel] - ServiceEvent
UNREGISTERING

2014.06.25 14:47:35 INFO - Bundle: myproduct-processor-jul-concurrent -
[com.mycompany.myproduct.processor.api.ProcessorService] - ServiceEvent
UNREGISTERING

2014.06.25 14:47:35 INFO - Bundle: myproduct-service-budgeting-memcached -
[org.osgi.service.cm.ManagedServiceFactory] - ServiceEvent UNREGISTERING

2014.06.25 14:47:35 INFO - Bundle: myproduct-service-budgeting-memcached -
[com.mycompany.myproduct.configuration.myproductConfigurationFactory] -
ServiceEvent UNREGISTERING


i'm a bit stuck on this at the moment -  the BundleContext javadocs suggest
that BundleContext may be considered invalid if the bundle leaves the
ACTIVE state, which DM Shell never did ( according to the above logs )

Any clues as to how to resolve this are greatly appreciated.

I'm using 3.0.1.

thanks,

Andras

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message