[prev in list] [next in list] [prev in thread] [next in thread]
List: mifos-developer
Subject: [Mifos-developer] ClassCastException when trying to consume API clients (create) from Web Self Servi
From: Aaron <ao () elifewealth ! com>
Date: 2019-04-29 1:46:16
Message-ID: E1hKvN5-00018t-F2 () mx2 ! cleverspeed ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi Devs
I am trying to consume https://DomainName/api/v1/clients
https://demo.openmf.org/api-docs/apiLive.htm#clients_create
Steps performed:
Altered /api/*/clients permissions from fineract/securityContext.xml to per=
mitAll.
Created a webpage web-self-service-app/register1.html.
Filled up the webpage with a form with fields officeId, firstname, lastname=
, active.
Tried to invoke the clients API together with the webpage form.
Console Error:
"status":500,"error":"Internal Server Error","exception":"java.lang.ClassCa=
stException","message":"java.lang.String cannot be cast to org.apache.finer=
act.useradministration.domain.AppUser"
Thanks
Aaron
Sent from Mail for Windows 10
[Attachment #5 (unknown)]
<html xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type \
content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 \
(filtered medium)"><style><!-- /* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
h1
{mso-style-priority:9;
mso-style-link:"Heading 1 Char";
margin-top:12.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:16.0pt;
font-family:"Calibri Light",sans-serif;
color:#2F5496;
font-weight:normal;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.Heading1Char
{mso-style-name:"Heading 1 Char";
mso-style-priority:9;
mso-style-link:"Heading 1";
font-family:"Calibri Light",sans-serif;
color:#2F5496;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div \
class=WordSection1><p class=MsoNormal>Hi Devs</p><p \
class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am trying to consume <span \
style='font-size:9.0pt;font-family:Consolas;color:black;background:#F0F0FF'>https://DomainName/api/v1/clients</span></p><p \
class=MsoNormal><a href="https://demo.openmf.org/api-docs/apiLive.htm#clients_create">https://demo.openmf.org/api-docs/apiLive.htm#clients_create</a><o:p></o:p></p><p \
class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Steps \
performed:<o:p></o:p></p><p class=MsoNormal>Altered /api/*/clients permissions from \
fineract/securityContext.xml to permitAll.<o:p></o:p></p><div><p class=MsoNormal \
style='background:#F6F8FA'>Created a webpage <span \
style='font-family:Consolas;color:#24292E;border:none windowtext \
1.0pt;padding:0in'>web-self-service-app/register1.html.<o:p></o:p></span></p></div><p \
class=MsoNormal>Filled up the webpage with a form with fields officeId, firstname, \
lastname, active.<o:p></o:p></p><p class=MsoNormal>Tried to invoke the clients API \
together with the webpage form.<o:p></o:p></p><p \
class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Console \
Error:<o:p></o:p></p><p \
class=MsoNormal>"status":500,"error":"Internal Server \
Error","exception":"java.lang.ClassCastException","message":"java.lang.String \
cannot be cast to org.apache.fineract.useradministration.domain.AppUser"</p><p \
class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks</p><p \
class=MsoNormal>Aaron</p><p class=MsoNormal><o:p> </o:p></p><p \
class=MsoNormal>Sent from <a \
href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</p><p \
class=MsoNormal><o:p> </o:p></p></div></body></html>
Mifos-developer mailing list
mifos-developer@lists.sourceforge.net
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic