Skip to content

Internal Server Error while creating JIRA issues: Cannot invoke method replaceAll() on null object #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
argentra-kumar opened this issue Jan 22, 2019 · 6 comments
Assignees

Comments

@argentra-kumar
Copy link

image

Dear Team,

I am able to call "POST pushjobs" and status is as follows.
./pushjobs.sh data.json
{"id":"410204f8-a519-4d90-a160-aa2f27a0cfec","status":"Created"}

but When I call "GET pushjobs", I am getting following Error. Could you please advise on this error.
./getjobs.sh 410204f8-a519-4d90-a160-aa2f27a0cfec
{"id":"410204f8-a519-4d90-a160-aa2f27a0cfec","status":"Completed","errors":["Internal Server Error while creating JIRA issues: Cannot invoke method replaceAll() on null object"],"results":{}}

I am looking forward your favorable reply.

Thanks in advance

@jonathanjbutler
Copy link
Contributor

I'm guessing that it's an issue with the severitymap.

Are you providing one in your data.json file with the POST pushjobs requests?

If the severity that you get from an ASoC issue doesn't match up with an entry in the severity map you'll see this issue.

If this isn't the case then any more information would be helpful.

@jonathanjbutler jonathanjbutler self-assigned this Jan 22, 2019
@argentra-kumar
Copy link
Author

Dear Jonathan

Thanks for your reply. I have checked the severity map and it is fine. I am still having same error.
Note: I have severity custom field in Jira with the value "Highest".

POST pushjobs JSON is as follows.
{
"appscanData": {
"apikeyid": "",
"apikeysecret": "
",
"appid": "a5d6f75f-2111-4dce-b691-d2545dbdd81b",
"maxissues": 1,
"issuestates": "New,Open"
},
"imData": {
"provider": "jira",
"config": {
"url": "",
"username": "
",
"password": "
***",
"projectkey": "IB",
"issuetype":"Task",
"summary":"Testing 123",
"severityfield": "Severity",
"severitymap": {
"High": "Highest",
"Medium": "Highest",
"Low": "Highest",
"Informational": "Highest"
}
}
}
}

Please let me know, If you need any information from my side

Yours sincerely
S.Indirakumar

@jonathanjbutler
Copy link
Contributor

Hmm yep seems like theres nothing wrong with the severity map. Now thinking something is happening when parsing the ASoC issues. I added a null check when parsing the issues and put out another release (v0.0.11).

Please try this and see if you still see the same issue when you get a chance.

@argentra-kumar
Copy link
Author

Dear Jonathan,

Thanks for your reply. It now returns exact error , which is jira certificate issue. I am now able to create the jira ticket using Rest API.

Thanks a lot
Yours sincerely
S.Indirakumar

@vayalo
Copy link

vayalo commented Jun 1, 2021

When I am trying to create Azure DevOps bugs through issue gateway with ASE, I am getting following error. Any idea ?
{
"id": "xxxxx",
"status": "Complete - Failed with errors",
"errors": [
"Internal Server Error: null"
]
}

@vinitasanghi
Copy link

Could you confirm which operation throws this error? Also, hope you are able to access Azure DevOps server from ASE environment. There is video with ASoC integration: https://www.youtube.com/watch?v=y48wVBFZLoY&t=38s in case it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants