Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-837

Subversion plugin using ssh fails with NullPointer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • subversion-plugin
    • None
    • Platform: All, OS: All

      I have just installed the latest Hudson for the first time. It is installed on
      JBoss 4.2.1 under Unbuntu Feisty. I followed the install instructions, and the
      Dashboard and Admin pages all come up fine.

      Then I go to create my first project, which hooks into subversion.

      At the svn part, I enter the URL, which is a ssh one something like this:
      svn+ssh://myoffice.com/srv/svn/myoffice/trunk

      Hudson tells me it can not authenticate, and suggests I enter credentials.

      So I go and do that, entering the user and browsing to the private key. (I can
      ssh to this box from the command-line without being prompted for a password, so
      the ssh keys part works).

      On submit, I get this exception:
      HTTP Status 500 -

      type Exception report

      message

      description The server encountered an internal error () that prevented it from
      fulfilling this request.

      exception

      javax.servlet.ServletException: java.lang.NullPointerException
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:300)
      org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:291)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:228)
      org.kohsuke.stapler.Stapler.service(Stapler.java:76)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      hudson.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:79)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause

      java.lang.NullPointerException
      org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.close(SVNGanymedConnector.java:146)
      org.tmatesoft.svn.core.internal.io.svn.SVNConnection.close(SVNConnection.java:204)
      org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.closeSession(SVNRepositoryImpl.java:1082)
      org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.testConnection(SVNRepositoryImpl.java:71)
      hudson.scm.SubversionSCM$DescriptorImpl.doPostCredential(SubversionSCM.java:982)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:103)
      org.kohsuke.stapler.Function.bindAndinvoke(Function.java:59)
      org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:63)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:291)
      org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:291)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:228)
      org.kohsuke.stapler.Stapler.service(Stapler.java:76)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      hudson.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:79)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

            Unassigned Unassigned
            lisaretief lisaretief
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: