Defects

SBM: Email recorder error " Failed to attach note to item x:xxxx WSFault message is: Username cannot be empty"
Your subscription to document D27994 will expire in 281 days (Renew).  To cancel this subscription, click Cancel Subscription above.



ID:    D27994
Published:    10 August 2023
Updated:    07 November 2023
 

Defect Id

DEF348721

Originally Reported Against

SBM 12.1

Also Affects

SBM 12.1 Hotfix
SBM 12.1 Hotfix
SBM 12.1 Hotfix
SBM SBM 12.1 Hotfix

Resolved In

SBM 12.1 Hotfix

Description

When a person (who is not a user in SBM) sends an email reply, the email recorder will fail and the reply will not be attached to the item.

The ns.log will give errors such as:

ERROR 15-05-2023 10:56:00 [MailClient] -- Failed to attach note to item x:xxxx WSFault message is: Username cannot be empty
Incoming message subject was Re: Note from Jane Doe about XXXXX [ttid: XXX,X]
java.lang.IllegalArgumentException: Username cannot be empty

A related error is:
2023-05-06 18:16:30,033 QuartzScheduler_Worker-41 ERROR Could not instantiate class [com.serena.sbm.ns.service.EmailLoggerCallback]. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.serena.sbm.ns.service.EmailLoggerCallback': Unsatisfied dependency expressed through field 'mailSender'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.serena.core.email.SerenaMailSender' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:
This will happen even if the "Only if From matches an SBM user" is unchecked.

Resolution

Workaround:
  1. Create a system user inside SBM which has permissions to attach files to the items.
  2. Open C:\Program Files\Micro Focus\SBM\Common\tomcat\server\default\webapps\notificationsrv\WEB-INF\classes\config.properties
  3. Set the value for  web.service.username to the username created is step 1.
    Note: The username should be enough, but it is not, you may also set the web.service.password.
  4. Restart Tomcat

Find Answers

Type a question or describe what you are looking for below

My Recent Searches

Welcome kb sso

Additional Assistance

  • Submit a Case Online
  • FAQs