by accident errors: java.lang.IllegalStateException: Fail to request xxxx

724 views
Skip to first unread message

dreaminv...@gmail.com

unread,
Jul 19, 2017, 5:48:15 AM7/19/17
to SonarQube
Recently I meet with this error:
 java.lang.IllegalStateException: Fail to request http://xxxxx/api/ce/submit?projectKey=project_key&project_name=xxxx

After I analyzed the logs from server, it's so strange..
Normally, the client(sonar-scanner) should send the POST request(when succeed)..
but the error event is from GET request(when failed), the log msg is:

GET .../api/ce/submit?xxxx 405 51 xxxxx


Look forward to your help

G. Ann Campbell

unread,
Jul 19, 2017, 8:03:20 AM7/19/17
to SonarQube
Hi,

First, please be aware that the standard courtesies (Hi, Thanks, ...) are appreciated in this group.

It's going to be hard to help you without more information, such as: 
* SonarQube version
* Which scanner (and version) you use 
* Analysis log snippets
* Server log snippets (maybe)


Ann 

dreaminv...@gmail.com

unread,
Jul 20, 2017, 7:44:12 AM7/20/17
to SonarQube
hi, Ann;
   As you said:
* SonarQube 5.6
* sonar-scanner 2.6
* Analysis log: 
"""
INFO: Analysis report generated in 3261ms, dir size=28 MB
INFO: Analysis reports compressed in 8961ms, zip size=9 MB
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 2:25:27.334s
INFO: Final Memory: 81M/1580M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Fail to request http://xxxxxx/quality1/api/ce/submit?projectKey=xxx_Key&projectName=xxx
at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:212)
at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:146)
at org.sonar.batch.bootstrap.BatchWsClient.call(BatchWsClient.java:67)
"""

Server log snippets:
"""
"GET /quality1/api/ce/submit?projectKey=xxx&projectName=xxx HTTP/1.0" 405 51 "http://***/ci-portal/project/***/pipeline/build" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"

"""

It happened a few times in these days... Today, 2/435(2 tasks failed like above, 435 tasks OK POST ** 200 44 **)

If what I said is not clear for this question, please let me know~


Best
Regards

在 2017年7月19日星期三 UTC+8下午8:03:20,G. Ann Campbell写道:

G. Ann Campbell

unread,
Jul 20, 2017, 7:59:14 AM7/20/17
to dreaminv...@gmail.com, SonarQube
Hi,

I should have been more specific. Is there anything interesting/relevant-seeming in sonar.log, ce.log, or web.log?


Ann



---
G. Ann Campbell | SonarSource
Product Manager
@GAnnCampbell

--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/cgr0j0FACvk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/08b21fee-99af-4c04-93a8-802e54590739%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages