Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

sd45 sp19 web-api error

Highlighted
Radko
Member

sd45 sp19 web-api error

hello,

i just found out, that there is some kind of error in web-api when i try to use getGender() method i recieve exception
java.lang.Long, but in web-api javadoc is mentioned, that integer is used.

did somebody found solution how to solve this problem ?

or is there some way how to regenerate/change web-api ?

thanks
4 REPLIES
Prasanna_M
Super Collector

Re: sd45 sp19 web-api error

Hello Radko,

Can you post the exact error message you get?

Regards,
Prasanna.
Radko
Member

Re: sd45 sp19 web-api error

exception:
java.lang.Long

it is error in web-api in method getGender() where it's retyped (from Long probably)
Vasily Kamenev
Honored Contributor

Re: sd45 sp19 web-api error

Hi
In my doc getGender() the java.lang.Integer.

Vasily
Radko
Member

Re: sd45 sp19 web-api error

that's the point
- in doc, it is integer
- in web-api it is retyped to integer
- but it is Long

that's why i allways get exception, when i try use getGender() method
//Add this to "OnDomLoad" event