The AEM is not accessible after addind the url mapping to in the org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl | Community
Skip to main content
New Participant
September 24, 2024
Solved

The AEM is not accessible after addind the url mapping to in the org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl

  • September 24, 2024
  • 3 replies
  • 745 views

Hello,

The AEM publish server is not accessible after the we adding the URL Mappings in the org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl OSGi configuration. Also the server itself unresponsive after the configuration changes. Verified all the bundles are active.

Please suggest.

Log statement is below.

* [CM Event Dispatcher (Fire ConfigurationEvent: pid=org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl)] org.apache.sling.servlets.post Service [Apache Sling POST Servlet Operation move,257012, [org.apache.sling.servlets.post.PostOperation]] ServiceEvent REGISTERED

 

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

@beaula123 : would recommend checking the rewriter configurations - AEM Guides also uses rewriter - read more about this in documentation.

You may also disable rewriter available at:/apps/fmdita/config/rewriter/fmdita-crossmap-link-patcher and if that solves the problem then the configurations under this have to be tuned with other rewriter configuration on your setup

3 replies

kautuk_sahni
Employee
October 16, 2024

@beaula123 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
DivrajSingh
DivrajSinghAccepted solution
Employee
September 25, 2024

@beaula123 : would recommend checking the rewriter configurations - AEM Guides also uses rewriter - read more about this in documentation.

You may also disable rewriter available at:/apps/fmdita/config/rewriter/fmdita-crossmap-link-patcher and if that solves the problem then the configurations under this have to be tuned with other rewriter configuration on your setup

Beaula123Author
New Participant
September 24, 2024

These are the errors we observed in error.log file.

 

24.09.2024 05:44:56.144 *WARN* [Apache Sling Resource Resolver Finalizer Thread] org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl Closed unclosed ResourceResolver. The creation stacktrace is available on info log level.
24.09.2024 05:44:56.144 *INFO* [Apache Sling Resource Resolver Finalizer Thread] org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl Unclosed ResourceResolver was created here: 
java.lang.Exception: Opening Stacktrace
	at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl$ResolverReference.<init>(CommonResourceResolverFactoryImpl.java:543) [org.apache.sling.resourceresolver:1.10.0]
	at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.register(CommonResourceResolverFactoryImpl.java:228) [org.apache.sling.resourceresolver:1.10.0]
	at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:114) [org.apache.sling.resourceresolver:1.10.0]
	at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:107) [org.apache.sling.resourceresolver:1.10.0]
	at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getResourceResolverInternal(CommonResourceResolverFactoryImpl.java:273) [org.apache.sling.resourceresolver:1.10.0]
	at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getServiceResourceResolver(ResourceResolverFactoryImpl.java:89) [org.apache.sling.resourceresolver:1.10.0]
	at com.day.cq.dam.core.impl.omnisearch.CollectionOmniSearchHandler.getResourceResolver(CollectionOmniSearchHandler.java:157) [com.day.cq.dam.cq-dam-core:5.12.392]
	at com.day.cq.dam.core.impl.omnisearch.CollectionOmniSearchHandler.deactivate(CollectionOmniSearchHandler.java:220) [com.day.cq.dam.cq-dam-core:5.12.392]
	at jdk.internal.reflect.GeneratedMethodAccessor10558.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:244) [org.apache.felix.scr:2.1.30]
	at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41) [org.apache.felix.scr:2.1.30]
	at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:685) [org.apache.felix.scr:2.1.30]
	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:529) [org.apache.felix.scr:2.1.30]
	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:318) [org.apache.felix.scr:2.1.30]
	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:308) [org.apache.felix.scr:2.1.30]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.disposeImplementationObject(SingleComponentManager.java:421) [org.apache.felix.scr:2.1.30]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.deleteComponent(SingleComponentManager.java:165) [org.apache.felix.scr:2.1.30]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.doDeactivate(AbstractComponentManager.java:853) [org.apache.felix.scr:2.1.30]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:825) [org.apache.felix.scr:2.1.30]
	at org.apache.felix.scr.impl.manager.DependencyManager.deactivateComponentManager(DependencyManager.java:2580) [org.apache.felix.scr:2.1.30]
	at org.apache.felix.scr.impl.manager.DependencyManager.access$400(DependencyManager.java:59) [org.apache.felix.scr:2.1.30]
	at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.removedService(DependencyManager.java:1353) [org.apache.felix.scr:2.1.30]
	at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.removedService(DependencyManager.java:1222) [org