Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start Gitblit 0.8.1 due NullPointerException #337

Closed
gitblit opened this issue Aug 12, 2015 · 1 comment
Closed

Unable to start Gitblit 0.8.1 due NullPointerException #337

gitblit opened this issue Aug 12, 2015 · 1 comment

Comments

@gitblit
Copy link
Owner

@gitblit gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 41

What steps will reproduce the problem?
1. I had running 0.7.0 and wanted to update to 0.8.1
2. Deleted old verion, merged my settings to web.xml
3. Start tomcat and access webapp in Firefox 9.x

What is the expected output? What do you see instead?
Gitblit webapp running; app not started

What version of the product are you using? On what operating system?
0.8.1; Apache Tomcat/6.0.32


Please provide any additional information below.
After looking at sourcecode there is wrong variable used in 
src/com/gitblit/GitblitUserService.java in line 98:
there is:
for (String username : serviceImpl.getAllUsernames()) {
should be:
for (String username : service.getAllUsernames()) {

additional stacktrace:
2012-01-13 09:48:48 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.gitblit.GitBlit
java.lang.NullPointerException
    at com.gitblit.GitblitUserService.createUserService(GitblitUserService.java:98)
    at com.gitblit.GitblitUserService.setup(GitblitUserService.java:59)
    at com.gitblit.GitBlit.setUserService(GitBlit.java:354)
    at com.gitblit.GitBlit.configureContext(GitBlit.java:1766)
    at com.gitblit.GitBlit.contextInitialized(GitBlit.java:1805)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
    at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
    at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
    at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Unknown Source)

Reported by ljaderdev on 2012-01-13 09:01:48

@gitblit
Copy link
Owner Author

@gitblit gitblit commented Aug 12, 2015

Oy.  This has been a rough release.  Fixed and deployed in v0.8.2.

Reported by James.Moger on 2012-01-13 13:12:19

  • Status changed: Fixed
  • Labels added: Milestone-0.8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants