Skip to main content
Level 2
Mar 14, 2017 8:40 AM UTC
Solved

Services were missing

Hi,

After installing a code package in the upgraded instance AEM 6.2(couple of author instances), seen some issue with number of services available.

I have compared the services by expanding the bundle-> used services block. Same code package has been installed in both the instances, it's our custom service. I have tried to delete the bundle and then re-install it several times but no luck, because of this I'm getting many exceptions while browsing the functionalities. Please help to resolve the issue?

Thanks,

Ayyappa

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Mar 22, 2017 8:58 PM UTC

That seems to be a specific metatype issue (which is worth to investigate, but that's another story then), but it should not prevent the service from starting.

Can you check in the OSGI webconsole, if the services are visible (check /system/console/components for it). You can see there, if the services are active or not active.

Jörg

12 replies

Feike_Visser1
Adobe Employee
Adobe Employee
Mar 14, 2017 10:50 AM UTC

Is the code package using the 6.2 uberjar?

Translate
Level 2
Mar 15, 2017 2:17 PM UTC

Yes, we are using the uberjar.

Translate
smacdonald2008
Level 10
Mar 15, 2017 4:35 PM UTC

Did you build the project with Maven 10 archetype? - try building the bundle and then install. 

Translate
joerghoh
Adobe Employee
Adobe Employee
Mar 15, 2017 7:23 PM UTC

Validate the error.log and check if there are some exceptions. Most likely these services are not started; either by unsatified dependencies or due to an exception.

Jörg

Translate
Level 2
Mar 22, 2017 8:03 AM UTC

It's an upgrade project from CQ 5.5 to AEM 6.2, so we are using only mvn clean install to create the snapshot. Earlier we have added uber jar dependency and the required dependencies to make the bundle 'Active' in felix console. All I'm confused is, the bundle is in 'Active' state in both the Author instances so there is nothing to resolve the dependencies further(according to my understanding). But when I check further in the bundle, some of the services were in unsatisfied state but the same services are in active state in another author instance.

Translate
Feike_Visser1
Adobe Employee
Adobe Employee
Mar 22, 2017 8:49 AM UTC

Like joerg said, doing see any exceptions in the error.log when deploying the bundle?

Translate
Level 2
Mar 22, 2017 11:14 AM UTC

Hi Feike,

All I can see is the below ERROR logs for that particular service :

17.03.2017 09:08:40.713 *ERROR* [qtp456959486-2595] org.apache.felix.metatype Missing element AD in element OCD : bundle://635.0:0/OSGI-INF/metatype/com.lcl.cc.common.tasks.ContentCachingTask.xml
17.03.2017 09:08:40.713 *ERROR* [qtp456959486-2595] org.apache.felix.metatype Missing element AD in element OCD : bundle://635.0:0/OSGI-INF/metatype/com.lcl.cc.common.tasks.ContentCachingTask.xml
17.03.2017 09:08:40.713 *ERROR* [qtp456959486-2595] org.apache.felix.metatype Missing element AD in element OCD : bundle://635.0:0/OSGI-INF/metatype/com.lcl.cc.common.tasks.ContentCachingTask.xml
17.03.2017 09:08:40.713 *ERROR* [qtp456959486-2595] org.apache.felix.metatype Missing element AD in element OCD : bundle://635.0:0/OSGI-INF/metatype/com.lcl.cc.common.tasks.ContentCachingTask.xml

Translate
Feike_Visser1
Adobe Employee
Adobe Employee
Mar 22, 2017 11:29 AM UTC

that seems indeed to be related.

Can you try to make sample out of this?

Translate
Level 2
Mar 22, 2017 1:03 PM UTC

Are asking me what's present in that xml related to this particular service, if yes below is the snippet:

<OCD id="com.lcl.cc.common.tasks.ContentCachingTask" name="LCL Content Cache Refresh Scheduler" description="LCL Content Cache Refresh Scheduler">
        <AD id="scheduler.expression" type="String" default="0 * * * * ? 2013" name="%scheduler.expression.name" description="Scheduler Cron Expressions. Follow the link http://www.docjar.com/docs/api/org/quartz/CronExpression.html for more details."/>
        <AD id="scheduler.concurrent" type="Boolean" default="false" name="%scheduler.concurrent.name" description="%scheduler.concurrent.description"/>
        <AD id="listing.page.path" type="String" name="%listing.page.path.name" description="Add content listing page paths for all supported banners" cardinality="2147483647"/>
        <AD id="replicate.listing.pages" type="Boolean" default="false" name="%replicate.listing.pages.name" description="%replicate.listing.pages.description"/>
    </OCD>
    <Designate pid="com.lcl.cc.common.tasks.ContentCachingTask">
        <Object ocdref="com.lcl.cc.common.tasks.ContentCachingTask"/>
    </Designate>

Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Mar 22, 2017 8:58 PM UTC

That seems to be a specific metatype issue (which is worth to investigate, but that's another story then), but it should not prevent the service from starting.

Can you check in the OSGI webconsole, if the services are visible (check /system/console/components for it). You can see there, if the services are active or not active.

Jörg

Translate