IllegalStateException: Failed to upload report and 2 questions


After posting my question in I learnt that I need to use compilation database in my analysis thanks to @Abbas_Sabra. But I haven’t found out the correct way to use Soong and instead I generate the compilation database using ‘Bear’.

  1. First of all, will it be a problem for an Android AOSP project?

After using the compilation database, I started analyzing the code but it took too long, usually around a 3 day. Is this a normal duration depending on the project size? Moreover, I again had java.lang.OutOfMemoryError: Java heap space error.
2) Is there any documentation specifying the memory requirement for an analysis?
I am currently using a computer with 32 GB of RAM and 8 cores. Before the analysis, I specify export SONAR_SCANNER_OPTS="-Xmx28672m -XX:MaxPermSize=28672m -XX:ReservedCodeCacheSize=2048m"

Currently, the problem is having the following error after 2.5-3 days of analysis: java.lang.IllegalStateException: Failed to upload report: Failed to request http://sonar_address:9000/api/ce/submit?projectKey=correct_key_that_I_get_from_sonar.

Would you please guide me on solving the problem?


I can provide any log file if you need. I would like to have some feedback about the question.
Thank you