Skip to Content

Exception while creating dynamic attribute

I was created one dynamic attribute for the customer and created handle class for that,but i get an exception "Caused by: de.hybris.platform.servicelayer.exceptions.SystemException: cannot find spring bean [Customer_longNameAttributeHandler] configured for dynamic attribute [Customer.longName] from extension [lycamobilecore] " like this.I remove the created dynamic attribute and all related class and bean configurations and trying to start server.but still getting same exception.can anyone tell why that exception coming

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • Posted on Feb 18, 2016 at 08:32 AM

    Please try ant clean then refresh the workspace (clean the projects(esp. platform) ) then, ant all start server

    let me know if that works.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 06, 2018 at 02:41 PM

    you have changed the "items.xml" so to reflect the values, you need perform "ant clean all" before starting server, please do build

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2018 at 04:01 AM

    The only solution to remove attribute handler without getting an error, delete the attribute from the database. It is store in the attributedescriptors table. You can delete the attribute via this sql query:

      "delete from attributedescriptors where QualifierInternal = "<your attribute>" 
    
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 02, 2018 at 02:31 PM

    I had the same problem. The temporary definition of the mentioned dynamic spring bean, e.g. Customer_longNameAttributeHandler and an updatesystem solves the problem.

    Afterwards the updatesystem the spring bean could be removed.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2019 at 10:55 PM

    Had the same issue. It happens due to not matching handler name in items.xml with bean in spring.xml. So it is not possible to match a handler required for the attribute with handler bean. To resolve it - verify that bean name is the same in both files.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 11, 2016 at 03:29 PM
    -1

    ant clean all && ant initialize should help

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.