Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

My local Author instance is getting down automatically

Avatar

Avatar
Validate 1
Level 2
Srinin
Level 2

Like

1 like

Total Posts

22 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
Srinin
Level 2

Like

1 like

Total Posts

22 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Srinin
Level 2

30-03-2017

Hi,

I am trying to make some of the Amazon Web Services jars available to AEM by adding them in the dependency bundle pom file. I am almost succeeded in this process except one/two issues.

But my local author instance is getting down automatically. Probably it doesn't like some of the changes I made to the pom files. But it is not complaining with any errors, except the following error.  

java.lang.IllegalStateException: Invalid BundleContext.

        at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:514)

        at org.apache.felix.framework.BundleContextImpl.ungetService(BundleContextImpl.java:473)

        at org.apache.felix.scr.impl.manager.DependencyManager$AbstractCustomizer.ungetService(DependencyManager.java:240)

        at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.removedService(DependencyManager.java:390)

        at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.removedService(DependencyManager.java:304)

        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1506)

        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1401)

        at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.untrack(ServiceTracker.java:1261)

        at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1440)

        at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:940)

        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794)

        at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)

        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4425)

        at org.apache.felix.framework.Felix.access$000(Felix.java:75)

        at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:402)

        at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:153)

        at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:128)

        at org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:195)

        at org.apache.felix.framework.Felix.stopBundle(Felix.java:2561)

        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1315)

        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)

 

Need help to debug this.

thanks

Srini

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,162 likes

Total Posts

6,265 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,162 likes

Total Posts

6,265 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

03-04-2017

Hi, Can you please let us know the AEM version and share with us AEM error.log?

From top level: The error indicates there is another process in the middle of using the BundleContext and other thread trying to stops the bundle, hence the BundleContext will become invalid. Complete logs could give better picture or you can find yourself by analyzing what is happening in parallel. 

I feel like this question is beyond the scope of the community as it required much of debugging. But if you will not get response in few days, then i would suggest you to File a daycare for further assistance.

~kautuk

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 8
MC_Stuff
Level 8

Likes

78 likes

Total Posts

467 posts

Correct Reply

158 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
Level 8
MC_Stuff
Level 8

Likes

78 likes

Total Posts

467 posts

Correct Reply

158 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
MC_Stuff
Level 8

30-03-2017

Hi Srini,

Attach complete logs folder. 

Regards,