We just upgraded our developer edition from 7.9 to 8.9.6 and now we are seeing errors in Jenkins.
SonarQube developer 8.9.6
Nothing tried since the upgrade
I am seeing these errors in the jenkins job logs:
11:21:21 [INFO] 209 source files to be analyzed
11:21:32 [INFO] 27/209 files analyzed, current file: src/main/java/com/sony/snei/wallet/resource/csi/v2/CsrWalletsController.java
11:21:37 Status ERROR: org.eclipse.jdt.core code=4 Could not retrieve declared methods java.lang.NullPointerException
11:21:37 Status ERROR: org.eclipse.jdt.core code=4 Could not retrieve declared methods java.lang.NullPointerException
11:21:37 Status ERROR: org.eclipse.jdt.core code=4 Could not retrieve declared methods java.lang.NullPointerException
11:21:42 [INFO] 55/209 files analyzed, current file: src/main/java/com/sony/snei/wallet/resource/WalletsResource.java
11:21:51 [INFO] 98/209 files analyzed, current file: src/main/java/com/sony/snei/wallet/sqs/WalletSqsEventConsumer.java
11:21:55 Status ERROR: org.eclipse.jdt.core code=4 Could not retrieve declared methods java.lang.NullPointerException
11:22:02 [INFO] 133/209 files analyzed, current file: src/main/java/com/sony/snei/wallet/resource/WalletsInstrumentResource.java
11:22:05 Status ERROR: org.eclipse.jdt.core code=4 Could not retrieve declared methods java.lang.NullPointerException
11:22:05 Status ERROR: org.eclipse.jdt.core code=4 Could not retrieve declared methods java.lang.NullPointerException
11:22:10 Status ERROR: org.eclipse.jdt.core code=4 Could not retrieve declared methods java.lang.NullPointerException
11:22:11 [INFO] 174/209 files analyzed, current file: src/main/java/com/sony/snei/wallet/status/WalletServiceExampleStatusCheckProvider.java
11:22:18 Status ERROR: org.eclipse.jdt.core code=4 Could not retrieve declared methods java.lang.NullPointerException
11:22:20 Status ERROR: org.eclipse.jdt.core code=4 Could not retrieve declared methods java.lang.NullPointerException
We are running Java11 on Linux, no NFS volumes and there’s not a lot of libraries. Didn’t have any issues with 7.9 version of SonarQube, something just does not seem right.
Keep in mind that the analyzer functionality advances significantly between LTS versions. Sometimes, with the advances in what we can detect come speed hits on that detection. And at the same time, we’ve been working on speed of analysis in the 9-series, and found ways to speed up Java analysis significantly. Why is why I asked you to check it out on 9.5.
If you can replicate the same problem on 9.5, then it’s something we can look at fixing, with a chance - depending on severity - that it might be back-ported to the LTS. If you can’t replicate it on 9.5, then… well, we’ve already fixed it.