David MacBride edited a comment on Bug JENKINS-18658

I hit the same issue

Steps:

  • create new job
  • select trigger: [FSTrigger] - Monitor files
  • specify file path
  • click Save

Results: Oops page with below stack trace:
javax.servlet.ServletException: java.lang.NullPointerException
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:726)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:239)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:586)
at org.kohsuke.stapler.Stapler.service(Stapler.java:217)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:47)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at org.jenkinsci.plugins.fstrigger.triggers.FileNameTrigger.getLogFile(FileNameTrigger.java:65)
at org.jenkinsci.plugins.fstrigger.triggers.FileNameTrigger.getProjectActions(FileNameTrigger.java:287)
at hudson.model.Project.createTransientActions(Project.java:222)
at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:724)
at hudson.model.AbstractProject.save(AbstractProject.java:279)
at hudson.model.AbstractItem.setDisplayName(AbstractItem.java:156)
at hudson.model.Job.doConfigSubmit(Job.java:1069)
at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:765)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684)
... 56 more

Note: the job's config.xml does get updated with the trigger stanza. I see the entry like:
<org.jenkinsci.plugins.fstrigger.triggers.FileNameTrigger plugin="fstrigger@0.36">
<spec></spec>
<fileInfo>
<org.jenkinsci.plugins.fstrigger.triggers.FileNameTriggerInfo>
<filePathPattern>D:/Repositories/EP_COMMERCE_70/db/current</filePathPattern>
<strategy>LATEST</strategy>
<inspectingContentFile>false</inspectingContentFile>
<doNotCheckLastModificationDate>false</doNotCheckLastModificationDate>
<contentFileTypes/>
</org.jenkinsci.plugins.fstrigger.triggers.FileNameTriggerInfo>
</fileInfo>
</org.jenkinsci.plugins.fstrigger.triggers.FileNameTrigger>

NOTE: now that the trigger is configured I get the same Oops message and stack trace every time I try to modify the job's config.

The method where the NPE occurs:
@Override
protected File getLogFile() { return new File(job.getRootDir(), "trigger-polling-files.log"); }

Environment: Jenkins ver. 1.523
Plugins:
<plugins>
<shortName>mailer</shortName>
<version>1.5</version>
<shortName>external-monitor-job</shortName>
<version>1.1</version>
<shortName>ldap</shortName>
<version>1.2</version>
<shortName>pam-auth</shortName>
<version>1.1</version>
<shortName>ant</shortName>
<version>1.2</version>
<shortName>build-flow-plugin</shortName>
<version>0.9</version>
<shortName>javadoc</shortName>
<version>1.1</version>
<shortName>credentials</shortName>
<version>1.5</version>
<shortName>cvs</shortName>
<version>2.8</version>
<shortName>token-macro</shortName>
<version>1.8.1</version>
<shortName>maven-plugin</shortName>
<version>1.523</version>
<shortName>email-ext</shortName>
<version>2.30.2</version>
<shortName>fstrigger</shortName>
<version>0.36</version>
<shortName>jobConfigHistory</shortName>
<version>2.4</version>
<shortName>ssh-credentials</shortName>
<version>0.4</version>
<shortName>ssh-slaves</shortName>
<version>0.27</version>
<shortName>subversion</shortName>
<version>1.50</version>
<shortName>svn-tag</shortName>
<version>1.16</version>
<shortName>translation</shortName>
<version>1.10</version>
</plugins>

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to