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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

OSGI - Refrence unsatisfied

jerrys49113842
Level 3
Level 3

Hi everyone,

AEM 6.1

 

I'm trying to the example Media Handler from:

https://helpx.adobe.com/experience-manager/using/damhandler.html

Maven deploys the bundle and starts the bundle.

But the Declarative Service Component   stays on "state unsatisfied (reference)".

Two of the references are unsatisfied (see picture).

 

How can I solve this problem?

1 Accepted Solution
kautuk_sahni
Correct answer by
Employee
Employee

Hi jerrys49113842

If I read this correctly, then your problem is not an unsatisfied bundle, but an unsatisfied service. If it so far that the SCR picked up your service, then your bundle must already be active.

With declarative services, I have seen similar behavior when a service with configuration-policy=require is missing a configuration. Another possibility is that the activate-method threw an exception.

 

Please verify it.

 

Thanks and Regards

Kautuk Sahni

View solution in original post

2 Replies
smacdonald2008
Level 10
Level 10

What version of AEM Are you using - this is a 5.x article. 

kautuk_sahni
Correct answer by
Employee
Employee

Hi jerrys49113842

If I read this correctly, then your problem is not an unsatisfied bundle, but an unsatisfied service. If it so far that the SCR picked up your service, then your bundle must already be active.

With declarative services, I have seen similar behavior when a service with configuration-policy=require is missing a configuration. Another possibility is that the activate-method threw an exception.

 

Please verify it.

 

Thanks and Regards

Kautuk Sahni