GithubHelp home page GithubHelp logo

Git repo problems about scm-manager HOT 8 CLOSED

scm-manager avatar scm-manager commented on June 4, 2024
Git repo problems

from scm-manager.

Comments (8)

cesmarvin avatar cesmarvin commented on June 4, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


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:

Replace with:

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

from scm-manager.

cesmarvin avatar cesmarvin commented on June 4, 2024

Original comment by skrapsrwt (Bitbucket: skrapsrwt, GitHub: skrapsrwt).


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.

from scm-manager.

cesmarvin avatar cesmarvin commented on June 4, 2024

Original comment by 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.

#!bash

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# 

from scm-manager.

cesmarvin avatar cesmarvin commented on June 4, 2024

Original comment by skrapsrwt (Bitbucket: skrapsrwt, GitHub: skrapsrwt).


I responded but didn't log in.

from scm-manager.

cesmarvin avatar cesmarvin commented on June 4, 2024

Original comment by skrapsrwt (Bitbucket: skrapsrwt, GitHub: 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.

#!python

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]

from scm-manager.

cesmarvin avatar cesmarvin commented on June 4, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


Possible fix <<changeset 23513c95c20a>>.

The error seems to occur only on empty repositories. Could you please test this version:

http://download.scm-manager.org/issues/36/scm-webapp.war

or

http://download.scm-manager.org/issues/36/scm-server-app.tar.gz

from scm-manager.

cesmarvin avatar cesmarvin commented on June 4, 2024

Original comment by skrapsrwt (Bitbucket: skrapsrwt, GitHub: skrapsrwt).


You are awesome!!! Thank you so much. How did you trouble shoot the problem. Or what should I have done?

from scm-manager.

cesmarvin avatar cesmarvin commented on June 4, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


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.

from scm-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.