-
Notifications
You must be signed in to change notification settings - Fork 82
netty error after plugin runs #191
Comments
@transamericamoon Could you also try an execution with the CLI scanner? |
This is what we see in jenkins console log:
I'm trying to get the jenkins server log from our devops. Is there some log i should look at in the sonar server? |
Are the logs really this garbled? |
sorry i formatted it wrong (fixed now). we are using a freestyle project with the "Invoke top-level maven target" |
Can you try it without the built-in maven support? |
When we run it directly on the jenkins build node from the commandline, i get the same error, when running locally the error does not occur. |
Where does "Notified Stash for commit id" from? |
that is from the notify stash plugin. When running directly from the commandline we only invoke sonar:sonar. Here is the tailed output from the commandline run:
|
Quick question, just so i understand this better, does sonarqube server send the request directly to bitbucket or does the client running sonar-runner send the http request? |
It is executed locally. |
Thanks. I do see some of our modules do use older versions of netty (netty-3.10.6.final.jar which do not comain "DefaultPromise"), but not sure how those would get on the plugin classpath, so this is unlikely. My other thought is maybe the process using AsyncHttpClient is ending before the connection is closed. This seems more probable as sometimes we only get one exception, and sometimes i see more (10 or more). AsyncHttpClient/async-http-client#1412 Just an FYI, this is a multi-module project. |
You could:
|
After doing some testing, single projects seem to work fine, i think with more projects (around 70) in the reactor it's more likely to happen. |
Same error someone else is having using asyncHttpClient: |
After looking at the source, it looks like you implement AutoClosable on StashClient, but you don't use try-with-resources when you instantiate it (ie. close is never called). sonar-stash/src/main/java/org/sonar/plugins/stash/StashIssueReportingPostJob.java Line 52 in 7ac1bd7
|
Hm, as far as I see this is a try-with-resources block. |
My bad. I'm at a loss as to what is causing it. |
If you experience multiple exceptions, do they all appear in the same Thread? |
When you run it outside of Jenkins, are you using the same SQ parameters/server and the same version of Java? |
I believe this is definitely the issue: AsyncHttpClient/async-http-client#1412 A PR was opened but is not accepted/un-mergable. |
@transamericamoon I am not sure this is the issue. |
You can also try to update async-httpclient to the latest version. |
Hi we are using the latest build 1.4.0 with sonar 7.2.1.14109.
We are invoking the sonar plugin (3.3.0.603) from maven using: mvn sonar:sonar
The plugin is working fine and sending notifications to bitbucket, but we are getting the following error in the jenkins log after maven finishes.
Exception in thread "AsyncHttpClient-2-1" java.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$1 at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:428) at io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:95) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:170) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: io.netty.util.concurrent.DefaultPromise$1 at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:39) at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87) at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76) ... 5 more
Any ideas what it could be?
The text was updated successfully, but these errors were encountered: