invalid bundle context error
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