Hi all,
i am calling to jira create issue api via java method .
when its success so i receive normal response and when one of needed components isnt right i receive this mesege
{"errorMessages":["No content to map to Object due to end of input"]}
when i run the api via SOAPUI i get this one
{
"errorMessages": [],
"errors": {"project": "project is required"}
}
how can i get the same message in java response
thank you
Jira does not have a Soap interface since 6.3, so could you confirm that you're looking at such an old unsupported version?
The REST response is probably correct though, it sounds like your data is not complete in the call.
SOAPUI is program that accept rest protocols.
and when i run it i receive a normal message that describes what is wrong
the same sentence i want to receive in java respons
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, then it is completely unclear as to what you are doing here.
Forget this soapui, it's an unknown. Your java is making a REST call to Jira and is getting a "no content to map" type error. This suggests your call does not have well formed data in it. You'll need to fix that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's what you are sending to Jira over the REST call you make.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok...
when i am using the google postman it response me with the same message
see the attachment
how can i get this message in java call?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your JSON does not appear to be complete. The first message in your original question tells you that. The second error is probably a direct consequence - if the JSON is not complete, Jira doesn't know how to read it, so it discards it, and then tells you that it can't import data that it doesn't know about.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, send it complete JSON.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.