since ‎18-12-2017
‎10-12-2019
leopor
Level 2
Re: AEM 6.3 OSGI Filter Component with satisfied status
Avatar

leopor

leopor
- Adobe Experience Manager
Thank you smacdonald for you response.I did the same, I moved the ResourceResolver to 158 line before I deployed the bundle the first time.Actually, my problem is not with the bundleMy problem is with the service with this name "SampleSerletFilter" it appears with the satisfied status.smacdonald Could you check on your local "/system/console/components/" if this SampleServletFilter appears with the same status?Thank you

Views

451

Likes

0

Replies

0
Re: AEM 6.3 OSGI Filter Component with satisfied status
Avatar

leopor

leopor
- Adobe Experience Manager
This is the information:I wasn't able to find a clue.

Views

458

Likes

0

Replies

0
Re: AEM 6.3 OSGI Filter Component with satisfied status
Avatar

leopor

leopor
- Adobe Experience Manager
I'm using AEM 6.3This is the bundle info:

Views

453

Likes

0

Replies

0
AEM 6.3 OSGI Filter Component with satisfied status
Avatar

leopor

leopor
- Adobe Experience Manager
Hi everyone,I'm trying to implement OSGI Filter Components, I deployed this bundle on my local: GitHub - Adobe-Consulting-Services/acs-aem-samples: AEM Code Samples repository and I'm testing this example: acs-aem-samples/SampleServletFilter.java at master · Adobe-Consulting-Services/acs-aem-samples · GitHubBut when I look for the component in the osgi console I figured out that it has satisfied status.I also tried to debug, I put a breakpoint inside doFilter method but nothing happens.I'm testi...

Views

1.7K

Likes

0

Replies

9
Re: Problem with @inject annotation in a sling model
Avatar

leopor

leopor
- Adobe Experience Manager
I found a solution to my problem, it was related with de Sling Models Injectors.The solution was install the ACS Commons content package from here: Adobe AEM Commons This package add a new in injector into AEM, and this inject the Resource Object into the sling model.Thank you for your answers, they were useful to fix another parts of my sling model.

Views

3.4K

Like

1

Replies

0
Re: Problem with @inject annotation in a sling model
Avatar

leopor

leopor
- Adobe Experience Manager
Hi @smacldonald2008 When i use the injection by constructor i can see that t's pointing to the node that containt the component that use the sling model, i think that it's pointing well.Debug screen:You will have to made zoom with the explorer, because this editor reduce the image size.is the path well or i'm wrong?Thanks!!

Views

3.1K

Like

1

Replies

0
Re: Problem with @inject annotation in a sling model
Avatar

leopor

leopor
- Adobe Experience Manager
Feike Visser I leave only one adaptable andsmacdonald2008​ i insert the @optional annotation and I change de javax.inject dependency with this dependency: org.apache.geronimo.specs geronimo-atinject_1.0_spec 1.0 provided But nothing works, the Resource propertie is still null.On the other hand, if I made the Inject with a constructor it´s work well.Like this:But i need to know why @Inject annotation is not working.There is something else to try?

Views

3.1K

Like

1

Replies

0
Problem with @inject annotation in a sling model
Avatar

leopor

leopor
- Adobe Experience Manager
Hi everyone,I have a issue with @inject annotation, I try to inject the Resource object inside a Sling Model, but when I debug the code it's null.This is part of my code:import org.apache.sling.api.SlingHttpServletRequest;import org.apache.sling.api.resource.Resource;import org.apache.sling.api.resource.ResourceResolver;import org.apache.sling.api.resource.ValueMap;import org.apache.sling.commons.json.JSONArray;import org.apache.sling.commons.json.JSONException;import org.apache.sling.commons.js...

Views

9.5K

Likes

0

Replies

10
Re: How to identify which of the inject is failing the sling model to instantiate
Avatar

leopor

leopor
- Adobe Experience Manager
Yo have to debug the java class and chek wich of the attributes with the @Inject notation are null.

Views

429

Likes

0

Replies

0
Likes from