| Issue 664: | NullPointerException in httpd_log | |
| 9 people starred this issue and may be notified of changes. | Back to list |
Affected Version: 2.1.4
What steps will reproduce the problem?
1. Run Gerrit daemon *not* in reverse-proxy mode.
2. Login with OpenID.
3. /gerrit/clear.cache.gif fails to log to httpd_log.
[2010-08-17 14:41:30,983] WARN org.eclipse.jetty.util.log : /gerrit/clear.cache.gif: com.google.inject.ProvisionException: Guice provision errors:
1) Error injecting constructor, java.lang.NullPointerException
at com.google.gerrit.httpd.WebSession.<init>(WebSession.java:77)
while locating com.google.gerrit.httpd.WebSession
for parameter 0 at com.google.gerrit.httpd.HttpCurrentUserProvider.<init>(HttpCurrentUserProvider.java:27)
while locating com.google.gerrit.httpd.HttpCurrentUserProvider
while locating com.google.gerrit.server.CurrentUser
1 error
Aug 23, 2010
I saw a very similar error, no idea how to repro. Might also have been with httpd.listenUrl = https://*:8080/ (IT ran the upgrade on our dev server and didn't answer the questions correctly...). I don't know if it was a vanilla 2.1.4 though, might have had a couple extras pulled in from master.
[2010-08-09 15:03:08,078] WARN org.eclipse.jetty.util.log : /Documentation/index.html: com.google.inject.ProvisionException: Guice provision errors:
1) Error injecting constructor, java.lang.NullPointerException
at com.google.gerrit.httpd.WebSession.<init>(WebSession.java:77)
while locating com.google.gerrit.httpd.WebSession
for parameter 0 at com.google.gerrit.httpd.HttpCurrentUserProvider.<init>(HttpCurrentUserProvider.java:27)
while locating com.google.gerrit.httpd.HttpCurrentUserProvider
while locating com.google.gerrit.server.CurrentUser
Sep 14, 2010
I have 125 instances of this in my logs going back to July 7th. I typically run the latest release, within a week or 2, and am currently on 2.1.5.
Jan 10, 2011
Just to let you know, we are running Gerrit 2.1.6.1 and we also find this warning in our logs.
Apr 22, 2011
I haven't seen this again. Edwin, if you have some idea of the cause maybe you can look into it.
Owner:
---
Apr 28, 2011
We can still find this exception in our error_log a few times per day. For us this error occurs for various request paths (not only '/Documentation/index.html' as in the example above). But except this exception we don't have much for an investigation. This error only occurs on our productive system and we don't know what is causing it, also it seems not to have any negative impact on our users (at least we have no complaints).
Does anybody have an idea how we could track down the problem?
Here another example of the error with corresponding entry from httpd log:
error_log:
[2011-04-28 08:30:35,221] WARN org.eclipse.jetty.util.log : /10013: com.google.inject.ProvisionException: Guice provision errors:
1) Error injecting constructor, java.lang.NullPointerException
at com.google.gerrit.httpd.WebSession.<init>(WebSession.java:77)
while locating com.google.gerrit.httpd.WebSession
for parameter 0 at com.google.gerrit.httpd.HttpCurrentUserProvider.<init>(HttpCurrentUserProvider.java:27)
while locating com.google.gerrit.httpd.HttpCurrentUserProvider
while locating com.google.gerrit.server.CurrentUser
1 error
httpd_log:
10.18.111.5 - d022737 [28/Apr/2011:08:30:35 +0200] "GET / HTTP/1.1" 200 2365 - "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)"
10.18.111.5 - d022737 [28/Apr/2011:08:30:36 +0200] "GET /gerrit/gwt/chrome/images/hborder.png HTTP/1.1" 304 - "https://git.wdf.sap.corp:8080/#q,10013,n,z" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)"
Jul 2, 2015
We don't see this issue any more, at least not with 2.11. Assuming that it was fixed somehow.
Status:
CannotReproduce
Labels: FixedIn-2.11
Jul 2, 2015
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |
Owner: nas...@codeaurora.org
Labels: -Priority-Critical -Milestone-2.1.5 Priority-Minor