Hello,
With AEM 6.0, i am getting below error message intermittently. After restart everything is working without any issues
java.lang.IllegalStateException: Invalid BundleContext.
at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:514)
at org.apache.felix.framework.BundleContextImpl.getServiceReference(BundleContextImpl.java:358)
at <custom class>.Activator.getSlingRepository(Activator.java:80)
-------------
Below is the line which gets sling repository in custom class which implements BundleActivator
slingRepository = (SlingRepository) Activator.context.getService(Activator.context.getServiceReference(SlingRepository.class.getName()));
Appreciated for any help on above issue
Solved! Go to Solution.
Views
Replies
Total Likes
do you have (Immediate=true) for your services in the bundle ?
Views
Replies
Total Likes
Do you get this error when you have not deployed your custom OSGi bundle?
Views
Replies
Total Likes
Yeah. Bundle got deployed properly. I see the active status, but when i try to access something, gettng invalid bundle context for first time. After restart everything is works fine
Views
Replies
Total Likes
do you have (Immediate=true) for your services in the bundle ?
Views
Replies
Total Likes