[JIRA] [scm-sync-configuration-plugin] (JENKINS-27519) NullPointerException on save config with svn+ssh connection

5 views
Skip to first unread message

jorg.ziegler@fotonic.com (JIRA)

unread,
Mar 24, 2016, 1:26:02 PM3/24/16
to jenkinsc...@googlegroups.com
Jörg Ziegler commented on Bug JENKINS-27519
 
Re: NullPointerException on save config with svn+ssh connection

exact same stack trace with latest lts 1642.3 and 0.0.9. It occured after initial configuration of the scm-sync-config plugin. repo is svn, access is https.

I can reproduce the stack trace by modifying the path to the svn repo for the scm-sync-config plugin. The plugin appears to be defunct with this exception, I can't get it to work with this.

javax.servlet.ServletException: java.lang.NullPointerException
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
	at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
	at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter$1.call(ScmSyncConfigurationFilter.java:49)
	at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter$1.call(ScmSyncConfigurationFilter.java:44)
	at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationDataProvider.provideRequestDuring(ScmSyncConfigurationDataProvider.java:106)
	at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter.doFilter(ScmSyncConfigurationFilter.java:44)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:129)
	at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:129)
	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:123)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:370)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
	at hudson.plugins.scm_sync_configuration.scms.ScmSyncSubversionSCM.extractScmCredentials(ScmSyncSubversionSCM.java:60)
	at hudson.plugins.scm_sync_configuration.scms.SCM.getConfiguredRepository(SCM.java:66)
	at hudson.plugins.scm_sync_configuration.SCMManipulator.scmConfigurationSettledUp(SCMManipulator.java:57)
	at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.initializeRepository(ScmSyncConfigurationBusiness.java:72)
	at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.configure(ScmSyncConfigurationPlugin.java:234)
	at jenkins.model.GlobalPluginConfiguration.configure(GlobalPluginConfiguration.java:26)
	at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:2965)
	at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:2928)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
	... 51 more
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

jorg.ziegler@fotonic.com (JIRA)

unread,
Mar 25, 2016, 5:58:04 AM3/25/16
to jenkinsc...@googlegroups.com

this is reproducible with a vanilla jenkins install, out of the box.

steps to repro:

  1. install latest jenkins using docker:
    docker run -p 8080:8080 -p 50000:50000 jenkins:latest
  2. navigate your browser to the web interface
  3. Manage Jenkins => Manage Plugins => Updates => Select All => Download now and install after restart
  4. Manage Jenkins => Manage Plugins => Available => Scroll down to SCM Sync Plugin, check the plugin => Download now and install after restart
  5. Manage Jenkin => Configure System => in the SCM sync configuration section

This crashes all the time with the stack trace in the above post shown in the jenkins web-interface.

Note 1: There is no attempt to ask for the credentials.
Note 2: The jenkins console show a different stacktrace, indicating that the crash is caused by a NPE in ScmSyncSubversionSCM.extractScmCredentials (line 60, see screenshots here for the stack trace and a screenshot of the configuration screen.

jorg.ziegler@fotonic.com (JIRA)

unread,
Mar 25, 2016, 5:59:02 AM3/25/16
to jenkinsc...@googlegroups.com

jorg.ziegler@fotonic.com (JIRA)

unread,
Mar 25, 2016, 6:20:01 AM3/25/16
to jenkinsc...@googlegroups.com
 
Re: NullPointerException on save config with svn+ssh connection

here's the logger output, as requested in the documentation. The logger is setup exactly as depicted in the screenshot, logging

hudson.plugins.scm_sync_configuration
Mar 25, 2016 10:16:08 AM WARNING hudson.plugins.scm_sync_configuration.SCMManipulator expectScmRepositoryInitiated

SCM Repository has not yet been initiated !

Mar 25, 2016 10:16:15 AM INFO hudson.plugins.scm_sync_configuration.SCMManipulator scmConfigurationSettledUp

Creating scmRepository connection data ..

Mar 25, 2016 10:16:15 AM INFO hudson.plugins.scm_sync_configuration.scms.ScmSyncSubversionSCM extractScmCredentials

Extracting SVN Credentials for url : https://redacted/svn/build/foo

Mar 25, 2016 10:16:15 AM FINE hudson.plugins.scm_sync_configuration.scms.SCM

Extracted realm from https://redacted/svn/build/foo is [<https://redacted:443> VisualSVN Server]

Mar 25, 2016 10:16:15 AM WARNING hudson.plugins.scm_sync_configuration.SCMManipulator expectScmRepositoryInitiated

SCM Repository has not yet been initiated !

Mar 25, 2016 10:16:15 AM INFO hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness queueChangeSet

Queue of changeset     A config.xml
 aborted (scm manipulator not settled !)

adallevacche@bloomberg.net (JIRA)

unread,
Jun 15, 2016, 11:27:50 AM6/15/16
to jenkinsc...@googlegroups.com

This issue is still present with Jenkins 2.9 under:
Apache Tomcat/8.0.33
OS Name: Windows Server 2012 R2
Architecture: amd64
JVM Version: 1.8.0_65-b17

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

Kristomoorits@gmail.com (JIRA)

unread,
Sep 21, 2016, 8:36:03 AM9/21/16
to jenkinsc...@googlegroups.com

fcamblor@gmail.com (JIRA)

unread,
Jan 26, 2017, 12:44:18 PM1/26/17
to jenkinsc...@googlegroups.com
Frédéric Camblor assigned an issue to Craig Rodrigues
 
Change By: Frédéric Camblor
Assignee: Frédéric Camblor Craig Rodrigues

kixosvk@gmail.com (JIRA)

unread,
Mar 16, 2017, 9:31:03 AM3/16/17
to jenkinsc...@googlegroups.com
Timotej Simunic commented on Bug JENKINS-27519
 
Re: NullPointerException on save config with svn+ssh connection

Same problem here. Any solutions or new informations ?

This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

rodrigc@FreeBSD.org (JIRA)

unread,
Aug 28, 2018, 4:42:38 AM8/28/18
to jenkinsc...@googlegroups.com
Craig Rodrigues assigned an issue to Unassigned
 
Change By: Craig Rodrigues
Assignee: Craig Rodrigues
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages