Expand my Community achievements bar.

SOLVED

AEM communities questions: Getting "Unclosed ResourceResolver was created here:"

Avatar

Level 3

Hi,

I am facing below 2 issues while working with community components mainly Questions and Blogs.

1. I am trying to add an entry to community questions component. Question entered displays fine but getting below log error.

2. Also email that I receive is not specific to domain but always "localhost:4503" which I assume is picking from externalizer. Any configuration to have domain url to be in the link that comes in an email.

Unclosed ResourceResolver was created here:

java.lang.Exception: Opening Stacktrace

        at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl$ResolverReference.<init>(CommonResourceResolverFactoryImpl.java:514)

        at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.register(CommonResourceResolverFactoryImpl.java:217)

        at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:101)

        at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:94)

     at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:101)

        at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.<init>(ResourceResolverImpl.java:94)

        at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getResourceResolverInternal(CommonResourceResolverFactoryImpl.java:262)

        at org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getResourceResolver(CommonResourceResolverFactoryImpl.java:172)

        at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getResourceResolver(ResourceResolverFactoryImpl.java:101)

        at com.adobe.cq.social.commons.tagging.impl.SocialTagUtils.getResourceResolverFor(SocialTagUtils.java:657)

        at com.adobe.cq.social.commons.tagging.impl.SocialTagManagerImpl.<init>(SocialTagManagerImpl.java:116)

        at com.adobe.cq.social.commons.tagging.impl.SocialTagManagerFactoryImpl.getSocialTagManager(SocialTagManagerFactoryImpl.java:113)

        at com.adobe.cq.social.commons.tagging.impl.SocialTagAdapterFactory.getAdapter(SocialTagAdapterFactory.java:99)

        at com.adobe.cq.social.commons.tagging.impl.SocialTagAdapterFactory.getAdapter(SocialTagAdapterFactory.java:88)

        at org.apache.sling.adapter.internal.AdapterManagerImpl.getAdapter(AdapterManagerImpl.java:147)

        at org.apache.sling.api.adapter.SlingAdaptable.adaptTo(SlingAdaptable.java:104)

        at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.adaptTo(ResourceResolverImpl.java:815)

        at com.adobe.cq.social.commons.comments.api.AbstractComment.getTags(AbstractComment.java:991)

        at sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:664)

        at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:690)

        at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:155)

        at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:292)

        at com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:2493)

        at com.adobe.cq.social.scf.core.BaseSocialComponent.toJSONString(BaseSocialComponent.java:279)

        at com.adobe.cq.social.scf.core.operations.AbstractSocialOperation.sendResponse(AbstractSocialOperation.java:161)

        at com.adobe.cq.social.scf.core.operations.AbstractSocialOperation.run(AbstractSocialOperation.java:87)

        at org.apache.sling.servlets.post.impl.SlingPostServlet.doPost(SlingPostServlet.java:205)

        at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:149)

Any suggestions will be helpful.

Thanks,

Sagar Kumar

1 Accepted Solution

Avatar

Correct answer by
Level 1
3 Replies

Avatar

Administrator

I have asked internal experts to have a look at this.

~kautuk



Kautuk Sahni

Avatar

Correct answer by
Level 1