My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 664: NullPointerException in httpd_log
9 people starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Jul 2


Sign in to add a comment
 
Project Member Reported by sop@google.com, Aug 18, 2010
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 19, 2010
#1 sop@google.com
Nasser, did you see this happen before?  I can't reproduce
it in 2.1.4 but someone reported it as an issue in 2.1.4
on the mailing list.

I'm inclined to say "WorksForMe" and close the issue, but
Martin Fick said you might have seen it before, so I'm just
tossing it into your inbox.  :-)
Status: AwaitingInformation
Owner: nas...@codeaurora.org
Labels: -Priority-Critical -Milestone-2.1.5 Priority-Minor
Aug 23, 2010
#2 nas...@chromium.org
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
#3 pball...@gmail.com
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
Project Member #4 edwin.ke...@gmail.com
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
#5 nas...@chromium.org
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
Project Member #6 edwin.ke...@gmail.com
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
Project Member #7 edwin.ke...@gmail.com
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
Project Member #8 edwin.ke...@gmail.com
(No comment was entered for this change.)
Status: Released
Sign in to add a comment

Powered by Google Project Hosting