SAP Knowledge Base Article - Preview

2911164 - Compile error in AnonymousConsentController

Symptom

You may run into the aforementioned compile error if you update from a previous 1905.x installation to the 1905.13 (or higher) patch release.
You will only run into this issue if you have created your own custom extensions based on the yacceleratorstorefront template extension. In that case you most likely have a copy of the AnonymousConsentController class in your extension which still contains the now unreachable catch block.

The error will look similar to this:

----------
1. ERROR in hybris/bin/modules/base-accelerator/yacceleratorstorefront/web/src/de/hybris/platform/yacceleratorstorefront/controllers/misc/AnonymousConsentController.java (at line 75)
        catch (final UnsupportedEncodingException e)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Unreachable catch block for UnsupportedEncodingException. This exception is never thrown from the try statement body
----------
1 problem (1 error)


Read more...

Environment

Commerce version 1905.13 and later patch release

Product

SAP Commerce 1905

Keywords

AnonymousConsentController, jackson-databind, ECP-4789, ECP-4904 , KBA , CEC-SCC-PLA-PL , Platform , Known Error

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.