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

SOLVED

Service unsatisfied

keerthana_hn
Level 3
Level 3

The request failed:

{
"servlet":"org.apache.felix.http.base.internal.dispatch.DispatcherServlet-22bb003a",
"message":"Not Found",
"url":"/system/console/components/3376.json",
"status":"404"
}

 

keerthana_hn_0-1620048531190.png

I'm getting this error for the service I wrote. How to resolve this? Is it because of the code?

 

1 Accepted Solution
snbaem
Correct answer by
Community Advisor
Community Advisor

This looks like an issue with custom code with class AssetsReportServiceImpl. Can you add a code snippet for the service annotations that you have used?

 

//Eg
@Component(service = CustomService.class)
public class CustomServiceImpl implements CustomService 

View solution in original post

6 Replies
asutosh_jena
Community Advisor
Community Advisor

Hi @keerthana_hn 

 

@Reference annotation should be used for a service reference. If any @Reference annotation is not able to pick the correct service, bundle will throw unsatisfied service error. Please check if the highlighted property is properly initialized as a service and is available in the Felix console as a service.

 

Thanks

snbaem
Correct answer by
Community Advisor
Community Advisor

This looks like an issue with custom code with class AssetsReportServiceImpl. Can you add a code snippet for the service annotations that you have used?

 

//Eg
@Component(service = CustomService.class)
public class CustomServiceImpl implements CustomService 

View solution in original post

keerthana_hn
Level 3
Level 3
@component(service= AssetReportExportService.class) public class AssetReportExportServiceImpl implements AssetReportExportService {
Anudeep_Garnepudi
Community Advisor
Community Advisor

@keerthana_hn 

Seems you are using @Reference annotation on implementation class(com.rrd.dam.core.services.impl.AssetReportExportServiveImpl). Try using interface.