[ 
https://issues.apache.org/jira/browse/FINERACT-1280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17248135#comment-17248135
 ] 

Francis Guchie commented on FINERACT-1280:
------------------------------------------

Looking at the catalina logs i see the following lines of interest

com.google.gson.JsonSyntaxException: 
com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 
column 47 path 
.....
at 
org.apache.fineract.useradministration.api.UsersApiResource.create(UsersApiResource.java:185)
....
The RuntimeException could not be mapped to a response, re-throwing to the HTTP 
container
 java.lang.IllegalStateException: {color:#00875a}*The mail session is already 
initialized*{color}
 at 
org.apache.commons.mail.Email.checkSessionAlreadyInitialized(Email.java:1994)
 at org.apache.commons.mail.Email.setSslSmtpPort(Email.java:1766)
 at 
org.apache.fineract.infrastructure.core.service.GmailBackedPlatformEmailService.sendDefinedEmail(GmailBackedPlatformEmailService.java:72)
 at 
org.apache.fineract.infrastructure.core.service.GmailBackedPlatformEmailService.sendToUserAccount(GmailBackedPlatformEmailService.java:52)
 at 
org.apache.fineract.useradministration.domain.JpaUserDomainService.create(JpaUserDomainService.java:56)

> Email failure - Internal Server error
> -------------------------------------
>
>                 Key: FINERACT-1280
>                 URL: https://issues.apache.org/jira/browse/FINERACT-1280
>             Project: Apache Fineract
>          Issue Type: Bug
>          Components: User Management
>            Reporter: Francis Guchie
>            Priority: Major
>         Attachments: image-2020-12-11-19-08-35-509.png, 
> image-2020-12-11-19-09-35-264.png
>
>
> I have tested 
> [https://mycloudvps/fineract-provider/api/v1/users|https://guchietech.pw/fineract-provider/api/v1/users]
>  
> using body 
> *{*
>     *"sendPasswordToEmail": true,*
>     *"roles": [*
>         *"1"*
>     *],*
>     *"username": "kargbo",*
>     *"firstname": "Francis",*
>     *"lastname": "Kargbo",*
>     *"email": "[email protected]",*
>     *"officeId": 1,*
>     *"staffId": 2*
> *}*
> and get error message
> *{*
>     *"timestamp": 1607709065267,*
>     *"status": 500,*
>     *"error": "Internal Server Error",*
>     *"message": "",*
>     *"path": "/fineract-provider/api/v1/users"*
> *}*
> I have also tried to create a user as in image below
> !image-2020-12-11-19-08-35-509.png!
> With password preference Settings as shown 
> !image-2020-12-11-19-09-35-264.png!
> But i still get the same error 
> this issue is related to issue 
> https://issues.apache.org/jira/browse/FINERACT-1070 which has been solved and 
> closed 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to