Issue #36 resolved

Git repo problems

Anonymous created an issue

Im getting a status error 200, and 401 when trying to view the source and commits to a repo in scm.

Im using

output of /etc/issue Debian GNU/Linux 5.0 \n \l

Comments (8)

  1. Sebastian Sdorra repo owner

    Which version of scm-manager do you use? Please replace the following line in the scm-server/conf/logging.xml, test the behavior again and post the output of the log:

    Search: <logger name="sonia.scm" level="INFO" />

    Replace with: <logger name="sonia.scm" level="DEBUG" />

    It is possible that you create an bitbucket account? because the notification system of bitbucket does not notify on anonymous comments.

  2. skrapsrwt
    • removed component

    I will do that in the next hour, need to get back to the house and load up my main operating system. Thank you for your help.

  3. Anonymous

    there is no logging.xml file. I am using version 1.5 . Iv even built it from source and have the same issue.

    I performed a strace and executable forks off, so I tried attaching to the process id and was not able to get any good information while producing my problem.

    This is th output of my config directory.

    tinytesla:~/.scm/config# ls
    
    config.xml  groups.xml  nohup.out         svn.xml    version.txt
    
    git.xml     hg.xml      repositories.xml  users.xml
    
    tinytesla:~/.scm/config# 
    
  4. skrapsrwt

    Ok the debug said I couldnt view the commits because I was not part of a group. But this is the error when trying to view the source for the project thru the admin pannel. Returns a status code of 200.

    04:12:56.242 [qtp901833818-19] ERROR sonia.scm.api.rest.resources.RepositoryResource - could not retrive browserresult
    java.lang.NullPointerException: null
    	at org.eclipse.jgit.lib.ObjectIdOwnerMap.get(ObjectIdOwnerMap.java:131) ~[org.eclipse.jgit-1.0.0.201106090707-r.jar:1.0.0.201106090707-r]
    	at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:809) ~[org.eclipse.jgit-1.0.0.201106090707-r.jar:1.0.0.201106090707-r]
    	at org.eclipse.jgit.revwalk.RevWalk.parseTree(RevWalk.java:751) ~[org.eclipse.jgit-1.0.0.201106090707-r.jar:1.0.0.201106090707-r]
    	at sonia.scm.repository.GitRepositoryBrowser.getResult(GitRepositoryBrowser.java:187) ~[scm-git-plugin-1.5.jar:na]
    	at sonia.scm.api.rest.resources.RepositoryResource.getBrowserResult(RepositoryResource.java:170) ~[classes/:na]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_22]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_22]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_22]
    	at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_22]
    	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) [jersey-bundle-1.8.jar:1.8]
    	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699) [jersey-bundle-1.8.jar:1.8]
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servlet-api-2.5.jar:2.5]
    	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at sonia.scm.filter.SecurityFilter.doFilter(SecurityFilter.java:109) [classes/:na]
    	at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.5.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at sonia.scm.filter.GZipFilter.doFilter(GZipFilter.java:78) [classes/:na]
    	at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.5.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:100) [classes/:na]
    	at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.5.jar:na]
    	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) [guice-servlet-3.0.jar:na]
    	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) [guice-servlet-3.0.jar:na]
    	at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:104) [classes/:na]
    	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476) [jetty-servlet-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517) [jetty-security-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937) [jetty-server-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) [jetty-server-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871) [jetty-server-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) [jetty-server-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.server.Server.handle(Server.java:346) [jetty-server-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589) [jetty-server-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048) [jetty-server-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601) [jetty-http-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214) [jetty-http-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411) [jetty-server-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535) [jetty-io-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) [jetty-io-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529) [jetty-util-7.4.2.v20110526.jar:7.4.2.v20110526]
    	at java.lang.Thread.run(Thread.java:662) [na:1.6.0_22]
    
  5. Sebastian Sdorra repo owner

    Line 9 of the exception shows that the problem is on line 187 of the GitRepositoryBrowser (https://bitbucket.org/sdorra/scm-manager/src/2b9dad76f563/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryBrowser.java#cl-187). The type of the exception (NullPointerException) shows to me that one of the objects on this line is null. The RevWalk and the TreeWalk object can not be null, so it must be the revId and the revId can only be null if the repository is empty.

  6. Log in to comment