cancel
Showing results for 
Search instead for 
Did you mean: 

b2bregistration: Cannot find user with uid 'testRegister@test.it'] with root cause

crescenzorega
Active Participant
0 Kudos
1,064

Hi,

for our project we needed to use the secureportaladdon, but we needed to modify the impex since by default they refer to the powertools.

We created our addon by extending secureportaladdon,

adding the extgen.properties file
modifying the extensioninfo.xml file with <meta key = "extgen-template-extension" value = "true" />

when we try to make a registration we have the following error

gen 21, 2020 5:56:00 PM org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Servlet.service() for servlet [DispatcherServlet] in context with path [/mystorefront] threw exception [Request processing failed; nested exception is de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: Cannot find user with uid 'testRegister@test.it'] with root cause
de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: Cannot find user with uid 'testRegister@test.it'
at de.hybris.platform.servicelayer.user.impl.DefaultUserService.getUserForUID(DefaultUserService.java:95)
at de.hybris.platform.servicelayer.user.impl.DefaultUserService.getUserForUID(DefaultUserService.java:105)
at it.altea.my.workflows.actions.AbstractAutomatedWorkflowTemplateJob.getCustomer(AbstractAutomatedWorkflowTemplateJob.java:152)
at it.altea.my.workflows.actions.SendEmailAutomatedWorkflowTemplateJob.perform(SendEmailAutomatedWorkflowTemplateJob.java:60)
at de.hybris.platform.workflow.impl.DefaultWorkflowProcessingService.performAutomatedWorkflow(DefaultWorkflowProcessingService.java:122)
at de.hybris.platform.workflow.impl.DefaultWorkflowProcessingService.activate(DefaultWorkflowProcessingService.java:100)
at de.hybris.platform.workflow.impl.DefaultWorkflowProcessingService.startWorkflow(DefaultWorkflowProcessingService.java:230)
at it.altea.my.facades.impl.DefautB2BRegistrationWorkflowFacade.launchWorkflow(DefautB2BRegistrationWorkflowFacade.java:101)
at it.altea.my.facades.impl.DefaultB2BRegistrationFacade.register(DefaultB2BRegistrationFacade.java:178)
at it.altea.my.controllers.B2BRegistrationController.submitRegistration(B2BRegistrationController.java:93)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

the error is generated by the code statement

de.hybris.platform.servicelayer.user.impl.DefaultUserService.getUserForUID(DefaultUserService.java:95)
cannot find the user we are trying to register, the customer is saved as seen by the code

Accepted Solutions (0)

Answers (2)

Answers (2)

alex_alvarez
Product and Topic Expert
Product and Topic Expert
0 Kudos

Does the user exist locally? It could be a provisioning or impex encoding issue, check all the user fields in backoffice to see if they are identical.

crescenzorega
Active Participant
0 Kudos

I am registering the user is not there because I am creating it

alex_alvarez
Product and Topic Expert
Product and Topic Expert
0 Kudos

It looks like the user does not exist, can you verify with Backoffice? It is possible that the UID is slightly different due to a typo?

crescenzorega
Active Participant
0 Kudos

I deployed to the cloud and the problem does not occur while it does not work locally