Project bundles does not start after couple of builds on local AEM instance | Community
Skip to main content
Level 3
April 29, 2021
Solved

Project bundles does not start after couple of builds on local AEM instance

  • April 29, 2021
  • 3 replies
  • 3307 views

Hi,

 

I have AEM 6.5 local instance. After couple of builds, it stops loading pages in edit mode and after checking bundles I found that project bundle not started and has couple service showing in red.

Sometimes restarting the local AEM instance solves the problem but sometime it just get stuck and I have to re setup local instance.

 

Any help on why it happens and how to solve it.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by MarkusBullaAdobe

Hi @hptarora!

 

If your project bundle is not able to resolve all required dependencies/services it will not be able to start.

Please check the services that are marked in red on the detail view of your bundle and make sure that the according services are available. Once all required dependencies are available, the bundle should be able to start. You may also try to start the bundle manually through Web Console (/system/console/bundles). If it fails (e. g. due to missing dependencies) this will throw an exception, so please check your error.log for the stacktrace.

 

Are these your own, custom services or are these services from the product/framework?
Could you share a screenshot of the missing services and a stacktrace from an unsuccessful attempt to start the bundle?

 

If your bundle/services have mandatory dependencies to other, volatile services this may lead to issues if not done right.

3 replies

Suraj_Kamdi
Community Advisor
Community Advisor
April 29, 2021

@hptarora 

Yeah, this is a known issue whenever you hit mvn clean install -PautoInstallBundle command. AEM shows the blank screen in edit mode and this mainly because the project bundle goes to the installed state. To overcome this problem just wait for 5-10 min to activate the project bundle from the installed state. If this does not solve the problem then go to http://localhost:4502/system/console/bundles and then project bundle, then action and click on the active button (Play icon). It will restart and activate the project bundle.

Asutosh_Jena_
Community Advisor
Community Advisor
April 29, 2021

Hi @hptarora 

 

Are you running AEM 6.5 on JDK 11? Or this is on JDK 8?

 

If it's on JDK 11

Please update the below line in sling.properties file:

from sling.bootdelegation.sun=sun.*,com.sun.*

to sling.bootdelegation.sun=sun.*,com.sun.*,jdk.internal.reflect,jdk.internal.reflect.*

 

Thanks!

 

hptaroraAuthor
Level 3
April 29, 2021
JDK11
MarkusBullaAdobe
Adobe Employee
MarkusBullaAdobeAdobe EmployeeAccepted solution
Adobe Employee
April 29, 2021

Hi @hptarora!

 

If your project bundle is not able to resolve all required dependencies/services it will not be able to start.

Please check the services that are marked in red on the detail view of your bundle and make sure that the according services are available. Once all required dependencies are available, the bundle should be able to start. You may also try to start the bundle manually through Web Console (/system/console/bundles). If it fails (e. g. due to missing dependencies) this will throw an exception, so please check your error.log for the stacktrace.

 

Are these your own, custom services or are these services from the product/framework?
Could you share a screenshot of the missing services and a stacktrace from an unsuccessful attempt to start the bundle?

 

If your bundle/services have mandatory dependencies to other, volatile services this may lead to issues if not done right.