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
  • 4266 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
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.

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

DEBAL_DAS
April 27, 2022

@nitrohazedev ,

 

I haven't received reply yet on AEM and acs common version.

I can recall few things , we were using AEM 6.5.5 and initial acs commons version was 4.3.2

 

We took the decision to upgrade acs commons version then we faced this issue (page just appears blank , a 500 error is thrown and null pointer exception) after upgrade. We had these issues on QA and local instances as well.

 

After several trying we just reverted to previous acs commons version[4.3.2].

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


Adobe Employee
August 7, 2022

Hi @akashdeepaem 

I am using AEM 6.5.9 (On-Prem) with ACS Commons 5.3.0 and facing the same issue.

 

I have a custom rewriter configuration with order 100. If I disable the rewriter or set the order to 1, Generic List works fine. However, this doesn't solve the issue as I need the custom Sling Transformer with an order greater than 1.

Downgrading is definitely not an option.

 

Not sure if this was ever addressed by the ACS Commons team. I went ahead and created an issue for the same: https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2928.

 

 

 

Adobe Employee
November 14, 2022

Thanks @ankita-das ,
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 have updated link for reference.
Thanks


@akashdeepaem The link you shared is throwing 404. However, https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2928 also has the updates.