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

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

Avatar

Avatar
Boost 1
Level 1
hptarora
Level 1

Like

1 like

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Validate 1
View profile

Avatar
Boost 1
Level 1
hptarora
Level 1

Like

1 like

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Validate 1
View profile
hptarora
Level 1

28-04-2021

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 25
Employee
markus_bulla_adobe
Employee

Likes

40 likes

Total Posts

46 posts

Correct Reply

18 solutions
Top badges earned
Boost 25
Affirm 10
Applaud 5
Affirm 5
Establish
View profile

Avatar
Boost 25
Employee
markus_bulla_adobe
Employee

Likes

40 likes

Total Posts

46 posts

Correct Reply

18 solutions
Top badges earned
Boost 25
Affirm 10
Applaud 5
Affirm 5
Establish
View profile
markus_bulla_adobe
Employee

29-04-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.

Answers (2)

Answers (2)

Avatar

Avatar
Affirm 100
Level 10
asutosh_jena
Level 10

Likes

373 likes

Total Posts

480 posts

Correct Reply

133 solutions
Top badges earned
Affirm 100
Ignite 1
Establish
Give Back 50
Give Back 5
View profile

Avatar
Affirm 100
Level 10
asutosh_jena
Level 10

Likes

373 likes

Total Posts

480 posts

Correct Reply

133 solutions
Top badges earned
Affirm 100
Ignite 1
Establish
Give Back 50
Give Back 5
View profile
asutosh_jena
Level 10

29-04-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!

 

Avatar

Avatar
Springboard
MVP
Suraj_Kamdi
MVP

Likes

142 likes

Total Posts

155 posts

Correct Reply

41 solutions
Top badges earned
Springboard
Validate 1
Establish
Contributor
Ignite 3
View profile

Avatar
Springboard
MVP
Suraj_Kamdi
MVP

Likes

142 likes

Total Posts

155 posts

Correct Reply

41 solutions
Top badges earned
Springboard
Validate 1
Establish
Contributor
Ignite 3
View profile
Suraj_Kamdi
MVP

29-04-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.