ACS-AEM-Generic list- 500 Error thrown | Community
Skip to main content
Level 9
April 25, 2022

ACS-AEM-Generic list- 500 Error thrown

  • April 25, 2022
  • 3 replies
  • 4299 views

All,

 

Is there a limit to the number of items in an ACS Commons generic list . The page just appears blank and a 500 error is thrown. Limiting to 6 entries or 4 helps. Anyway i can get around the issue? I am on aem 6.5.8 

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

3 replies

Ravi_Pampana
Community Advisor
Community Advisor
April 25, 2022

Hi,

 

I don't see any limitation , did you see any errors in logs? As per implementation it seems to be a straight forward of reading the values from a specific node. Can you check any if any of the special characters in the value is causing the issue.

Level 9
April 25, 2022

Totally, that is what makes me wonder, I see a Null pointer Exception but very unclear and version 4.10.0 acs commons. It does not appear to be special char issue
ERROR- GET /mnt/overlay/acs-commons/components/utilities/genericlist.html-    org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException 

java.lang.NullPointerException: null
WARN - GET /mnt/overlay/acs-commons/components/utilities/genericlist.html- org.apache.sling.engine.impl.SlingHttpservletresponseImpl Response already committed. Failed to set status code from 200 to 500. 


Updated- I did set up debug logging and found out NPE at 
org.apache.sling.rewriter.impl.ProcessorConfigurationImpl.match(ProcessorConfigurationImpl.java:465)

at org.apache.sling.rewriter.impl.RewriterResponse.getProcessor(RewriterResponse.java:170) 
and more

 

 

 

 

I also tried reducing entries to 4 and it worked fine. I see people complain of this online 
https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2503
https://stackoverflow.com/questions/68460284/aem-acs-commons-generic-list-editor-breaks-when-more-than-8-items-are-added

However , i see nothing with rewriter config in logs .. unsure how i could debug further

Ravi_Pampana
Community Advisor
Community Advisor
April 26, 2022

I am able to replicate the issue when adding below below string to either title or value field

 

#!!@#$%^&*())_?><"L"'{

 

Getting below exception in logs

 

Caused by: java.lang.NullPointerException: null
25.04.2022 21:50:06.503 *ERROR* [[0:0:0:0:0:0:0:1] [1650948606483] GET /mnt/overlay/acs-commons/components/utilities/genericlist.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException

While checking acs-commons seems to be with below code

/apps/acs-commons/components/utilities/genericlist/list.json.jsp 

Not able to create json attribute correctly. 

DEBAL_DAS
New Member
April 26, 2022

I have tried with below combinations to replicate the issue-

1. Adobe Experience Manager 6.5.11.0 and acs-commons 5.2.0 as shown below -

 

Created a generic list with 21 entries but I didn't face the above issue -

2. Adobe Experience Manager 6.5.9.0 and acs-commons 4.10.0 as shown below -

 

Created a generic list with 15 entries but I didn't face the above issue -

 

But we faced this issue in our last project. I will keep you posted with AEM and acs common version.

Debal Das, Senior AEM Consultant
Level 9
April 26, 2022

Hi @debal_das 

Thank you for your help with this.

As mentioned this is not a problem on local instance as many have noted but on higher env .Please find the links shared for more details. Assumed Rewriter is the culprit, but that solved the issue momentarily. Attached logs

Level 9
May 2, 2022

Hi @debal_das

 

We've recently upgraded to acs commons 5.2.0 (AEM version 6.4.8.4) and I can confirm we're experiencing the same problem. I used a workaround found elsewhere online whereby I renamed a node "/apps/platform-configuration/config/rewriter," then tested and renamed it back to "rewriter." This fixed the problem in production (at least for now), but it unfortunately did not work for some lower environments. I'm still trying to track down what differences could be causing that, but hope the context is useful. 

 

Thank you!


@debal_das @17535244  tried renaming and it did not work, infact knocking off the nodes did not help either. We had an in place upgrade not sure if that is the cause. Moving to lower version is a challenge at the moment. But glad to know that this is an issue and i can concur. I would most likely begin working towards a resolution, let's see if i can make it work
@17535244  do let me know if you get to notice any differences, will keep you posted. 

Level 3
July 8, 2022

Hi @nitrohazedev ,
cc @ravi_pampana @debal_das 
Issue: acs commons generic lists with more than 8 items gives 500. 

I am able to reproduce the issue with latest acs-commons 5.3.2 on latest AEM 6.5.13 having /apps/<project>/config/rewriter.

 

Note: 4.3.2 is a working version of acs-commons which supports classic and does not has this generic-lists issue. 

Update : ACS Commons Generic Lists 500 error issue is fixed with ACS-Commons v-5.3.4 and above.

https://github.com/Adobe-Consulting-Services/acs-aem-commons/commit/5d4de1e8d7e77c880da320a1508a33a9759c6799


Thanks


Level 9
July 8, 2022

Hi @akashdeepaem  , 4.3.2 may be the best, but compatibility wise there were issues with 6.5 , so we had to bump it up. We do not have any config/rewriter node to rename or temporarily delete. I hope this issue with varying fixes per acs version, where a solution works for one does not work for the other gets resolved at the root itself- i.e. ACS... I haven't had the time to debug it myself.