cancel
Showing results for 
Search instead for 
Did you mean: 

Exception while creating dynamic attribute

y_elpyaz
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member

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>" 

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

let me know if that works.

Former Member
0 Kudos

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.

christianbayha
Explorer
0 Kudos

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.

former_member612426
Discoverer
0 Kudos

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

Former Member
0 Kudos

ant clean all && ant initialize should help

Former Member

'ant initialize' should never be part of a real solution.