My Maven project works fine using the local SDK or Dev environment, but encounters errors in the RDE environment. | Community
Skip to main content
Level 2
November 28, 2023

My Maven project works fine using the local SDK or Dev environment, but encounters errors in the RDE environment.

  • November 28, 2023
  • 2 replies
  • 1161 views

The error I encountered is: 

 *ERROR* [FelixLogListener] com.adobe.granite.optout.impl.OptOutServiceImpl bundle com.adobe.granite.optout:1.0.0 (255)[com.adobe.granite.optout.impl.OptOutServiceImpl(686)] : factory pid com.adobe.granite.optout.impl.OptOutServiceImpl, but this pid is already supplied as a singleton: [com.adobe.granite.optout.impl.OptOutServiceImpl] at index 0

 

*ERROR* [FelixLogListener] LogService.org.apache.felix.configadmin Service [org.apache.felix.cm.ConfigurationAdmin,36,

[org.osgi.service.cm.ConfigurationAdmin]] Unexpected problem delivering configuration event to [org.osgi.service.cm.ConfigurationListener, id=39, bundle=13/reference:file:/opt/aem/launcher/cache/org/apache/felix/org.apache.felix.configadmin/1.9.24/org.apache.felix.configadmin-1.9.24.jar] (java.lang.IllegalStateException: Factory pid supplied after all non-factory configurations supplied com.adobe.granite.optout.impl.OptOutServiceImpl)
java.lang.IllegalStateException: Factory pid supplied after all non-factory configurations supplied com.adobe.granite.optout.impl.OptOutServiceImpl

 

The following error repeatedly occurs multiple times:

*ERROR* [FelixLogListener] org.apache.sling.servlets.resolver.internal.resource.ServletMounter bundle org.apache.sling.servlets.resolver:2.9.14 (352)[org.apache.sling.servlets.resolver.internal.resource.ServletMounter(1236)] : The unbindServlet method has thrown an exception (java.lang.IllegalStateException: Invalid BundleContext.)
java.lang.IllegalStateException: Invalid BundleContext.

 

Additionally, I noticed a difference in the 'Bundles Status' values in the Developer Console between these two environments. However, I am unsure why there is a difference and how to resolve it.

 

The image below is from the RDE environment

The image below is from the Dev environment.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

arunpatidar
Community Advisor
Community Advisor
November 28, 2023

Hi @reno1 
Are you deploying thjose configurations from your code?

 

I can see that the config name in local has factoryconfig pattern but in dev it is singleton.

Arun Patidar
reno1Author
Level 2
November 29, 2023

Hi @arunpatidar 

I took over this project midway and deployed it using the same [all.zip]. It works fine in the SDK, but there are errors in the RDE. Do I need to perform any additional deployment actions besides installing [all.zip]?

reno1Author
Level 2
November 30, 2023

You can try deploying osgi config again

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/developing/rapid-development-environments.html?lang=en#deploying-to-rde

 

If nothing works then you can raise Adobe ticket.


I have tried redeploying OSGi configurations, but it didn't work, and All.7z also includes Config.7z.

kautuk_sahni
Community Manager
Community Manager
November 28, 2023

@reno1 

Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni