OSGI Bundle get stopped after hitting url | Community
Skip to main content
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
Employee
Feb 11, 2023 4:03 PM UTC

I don't think that this call is the reason that any bundle gets non-active. While this is technically possible to do, I have yet to see code, which does that for a reason.

The only exception is the Bundle Disabler by ACS AEM Commons (https://adobe-consulting-services.github.io/acs-aem-commons/features/osgi-disablers/bundle-disabler/index.html), but if you configure that one, it will immediate deactivate a bundle as soon as you have activated it.

Please check the logs to get a better impression of the timing, because if a bundle is deactivated you should see a log message.

6 replies

joerghoh
joerghohAccepted solution
Employee
Feb 11, 2023 4:03 PM UTC

I don't think that this call is the reason that any bundle gets non-active. While this is technically possible to do, I have yet to see code, which does that for a reason.

The only exception is the Bundle Disabler by ACS AEM Commons (https://adobe-consulting-services.github.io/acs-aem-commons/features/osgi-disablers/bundle-disabler/index.html), but if you configure that one, it will immediate deactivate a bundle as soon as you have activated it.

Please check the logs to get a better impression of the timing, because if a bundle is deactivated you should see a log message.

Translate
Jagadeesh_Prakash
New Participant
Feb 10, 2023 10:06 AM UTC

@test566 I tried this in my local instance and its working fine. Issue could be from your project code. Once try on vineela instance. 

 

But point to worry is "this happened only when i access through ip address ." I am not sure how is this happening only on ip address.

Translate
Ritesh_Mittal
New Participant
Feb 10, 2023 8:30 AM UTC

Hi @test566 ,

 

Which bundle is going to resolved state? Do you have any custom servlet/service in your system which uses/invokes replication agent programmatically.

 

Thanks,

Ritesh Mittal

Translate
test566Author
Level 2
Feb 10, 2023 8:54 AM UTC

Hi @ritesh_mittal ,

Project core bundle

we have 40+ custom servlet having 

resourceTypes = NameConstants.NT_PAGE

but  no servlet  which handled replication agent .

Translate
Ritesh_Mittal
New Participant
Feb 10, 2023 9:58 AM UTC

Hi @test566 ,

 

Just try to stop/start the bundle and watch the logs while starting.

 

Thanks,

Ritesh Mittal

Translate