[JIRA] (JENKINS-40419) Jenkins authentication failes with "cannot be cast to hudson.model.UserProperty"
Title: Message Title Jamie Penman-Smithson edited a comment on JENKINS-40419 Re: Jenkins authentication failes with "cannot be cast to hudson.model.UserProperty" I managed to fix this manually by editing the {{users/__USERNAME__/config.xml}}.In my case the problem was that several {{}} elements were not within the correct hierarchy.If you find any {{}} elements:{noformat} 1.0 {noformat}...which are _not_ within the {{}} block:{noformat} 7.0 false1.0 {noformat}...then moving them into this block should correct the problem.Backing up the {{config.xml}} beforehand is probably a good idea :) Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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/d/optout.
[JIRA] (JENKINS-40419) Jenkins authentication failes with "cannot be cast to hudson.model.UserProperty"
Title: Message Title Jamie Penman-Smithson commented on JENKINS-40419 Re: Jenkins authentication failes with "cannot be cast to hudson.model.UserProperty" I managed to fix this manually by editing the users/_USERNAME_/config.xml. In my case the problem was that several elements were not within the correct hierarchy. If you find any elements: 1.0 ...which are not within the block: 7.0 false 1.0 ...then moving them into this block should correct the problem. Backing up the config.xml beforehand is probably a good idea Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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/d/optout.
[JIRA] (JENKINS-40419) Jenkins authentication failes with "cannot be cast to hudson.model.UserProperty"
Title: Message Title Jamie Penman-Smithson commented on JENKINS-40419 Re: Jenkins authentication failes with "cannot be cast to hudson.model.UserProperty" I only had this happen to two users and once I'd fixed the config manually the problem didn't reoccur. I suspect the problem might be caused by an upgrade of the config provider plugin but I can't be certain. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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/d/optout.
[JIRA] (JENKINS-41129) Ivy plugin throws NPE if no project settings defined
Title: Message Title Jamie Penman-Smithson commented on JENKINS-41129 Re: Ivy plugin throws NPE if no project settings defined PR raised: https://github.com/jenkinsci/ivy-plugin/pull/24 Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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/d/optout.
[JIRA] (JENKINS-41129) Ivy plugin throws NPE if no project settings defined
Title: Message Title Jamie Penman-Smithson created an issue Jenkins / JENKINS-41129 Ivy plugin throws NPE if no project settings defined Issue Type: Bug Assignee: Timothy Bingaman Components: ivy-plugin Created: 2017/Jan/17 1:16 PM Environment: Ivy plugin 1.27 Config File Provider plugin 2.15.4 Jenkins LTS 2.32.1 Linux, RHEL 6.5 Java 8 Labels: ivy Priority: Major Reporter: Jamie Penman-Smithson When building a project which uses the Ivy plugin, if no project Ivy settings are defined it throws a NullPointerException: 12:44:48 ERROR: Processing failed due to a bug in the code. Please report this to us...@hudson.dev.java.net 12:44:48 java.lang.NullPointerException 12:44:48 at org.jenkinsci.plugins.configfiles.GlobalConfigFiles.getById(GlobalConfigFiles.java:99) 12:44:48 at org.jenkinsci.plugins.configfiles.ConfigFiles.getByIdOrNull(ConfigFiles.java:87) 12:44:48 at org.jenkinsci.plugins.configfiles.ConfigFiles.getByIdOrNull(ConfigFiles.java:116) 12:44:48 at hudson.ivy.IvyModuleSetBuild$RunnerImpl.doRun(IvyModuleSetBuild.java:358) 12:44:48 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) 12:44:48 at hudson.model.Run.execute(Run.java:1728) 12:44:48 at hudson.model.Run.run(Run.java:1687) 12:44:48 at hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:273) 12:44:48 at hudson.model.ResourceController.execute(ResourceController.java:98) 12:44
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Jamie Penman-Smithson commented on JENKINS-16237 Extended email plugin no longer sends messages on latest I finally figured out the problem, there were some EclipseLink JARs in $TOMCAT_HOME/lib which were apparently causing this. As soon as I removed them JavaMail worked correctly. Would it be possible to add something about that to the Ext-Email wiki page, just in case someone else has this issue? Many thanks for all of your help! Jamie 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
[JIRA] (JENKINS-16270) Build metrics icon filename incorrect
Jamie Penman-Smithson created JENKINS-16270 Build metrics icon filename incorrect Issue Type: Bug Affects Versions: current Assignee: Unassigned Components: plugin Created: 07/Jan/13 1:32 PM Description: The build metrics icon is called icons/build-metrics.PNG, however the link used in the management page references icons/build-metrics.png. This works on Windows where filenames are case insensitive, but will not work on Unix. There doesn't seem to be a build-metrics component in JIRA, so I've set it to plugin instead, I hope this is okay. Project: Jenkins Labels: plugin Priority: Trivial Reporter: Jamie Penman-Smithson 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
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Jamie Penman-Smithson commented on JENKINS-16237 Extended email plugin no longer sends messages on latest To test this I ran the exact same Jenkins installation under Winstone - it works perfectly, so I definitely think this is related to Tomcat. 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
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Jamie Penman-Smithson commented on JENKINS-16237 Extended email plugin no longer sends messages on latest I've tried this on the LTS on Tomcat and it fails again - with just the default plugins and extended email enabled. I think this is one of those strange classpath problems in Tomcat, I started up Winstone, using the same JENKINS_HOME, re-built the job and the email was sent correctly. I'm not sure how to fix it within Tomcat though... 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
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Jamie Penman-Smithson commented on JENKINS-16237 Extended email plugin no longer sends messages on latest The standard email functionality is doing this: EHLO ukfd-ecat 250-ukfd-ecat.eu.example.com 250-PIPELINING 250-SIZE 1024 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN DEBUG SMTP: Found extension "PIPELINING", arg "" DEBUG SMTP: Found extension "SIZE", arg "1024" DEBUG SMTP: Found extension "VRFY", arg "" DEBUG SMTP: Found extension "ETRN", arg "" DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg "" DEBUG SMTP: Found extension "8BITMIME", arg "" DEBUG SMTP: Found extension "DSN", arg "" DEBUG SMTP: use8bit false MAIL FROM: 250 2.1.0 Ok DEBUG SMTP: sendPartial set RCPT TO: 250 2.1.5 Ok DEBUG SMTP: Verified Addresses DEBUG SMTP: jamie.penman-smith...@example.com DATA 354 End data with . Date: Wed, 2 Jan 2013 15:23:26 + (GMT) From: EU Development Build Daemon Reply-To: eubu...@example.com To: jamie.penman-smith...@example.com Message-ID: <895820852.2.1357140206318.javamail.tom...@ukfd-ecat.eu.example.com> Subject: Test email #1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit This is test email #1 sent from Jenkins . 250 2.0.0 Ok: queued as 4F8F620614 QUIT However, when email-ext sends the message it does not send anything: INFO: test2 #8 main build action completed: SUCCESS DEBUG: JavaMail version 1.4.4 DEBUG: successfully loaded resource: /META-INF/javamail.default.providers DEBUG: Tables of loaded providers DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle]} DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]} DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle] DEBUG SMTP: useEhlo true, useAuth false DEBUG SMTP: trying to connect to host "ukfd-ecat", port 25, isSSL false 220 ukfd-ecat.eu.example.com ESMTP Postfix DEBUG SMTP: connected to host "ukfd-ecat", port: 25 EHLO ukfd-ecat 250-ukfd-ecat.eu.example.com 250-PIPELINING 250-SIZE 1024 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN DEBUG SMTP: Found extension "PIPELINING", arg "" DEBUG SMTP: Found extension "SIZE", arg "1024" DEBUG SMTP: Found extension "VRFY", arg "" DEBUG SMTP: Found extension "ETRN", arg "" DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg "" DEBUG SMTP: Found extension "8BITMIME", arg "" DEBUG SMTP: Found extension "DSN", arg "" DEBUG SMTP: use8bit false MAIL FROM: 250 2.1.0 Ok DEBUG SMTP: sendPartial set RCPT TO: 250 2.1.5 Ok RCPT TO: 250 2.1.5 Ok DEBUG SMTP: Verified Addresses DEBUG SMTP: eubu...@example.com DEBUG SMTP: jamie.penman-smith...@example.com DATA 354 End data with . Date: Wed, 2 Jan 2013 15:31:46 + (GMT) From: EU Development Build Daemon Reply-To: eubu...@example.com To: eubu...@example.com, jamie.penman-smith...@example.com Message-ID: <804300964.1.1357140706648.javamail.tom...@ukfd-ecat.eu.example.com> Subject: test MIME-Version: 1.0 Content-Type: multipart/mixed;. >...boundary="=_Part_0_1050019941.1357140706601" X-Jenkins-Job: test2 X-Jenkins-Result: SUCCESS QUIT DEBUG SMTP: exception reading response, THROW:. java.net.SocketTimeoutException: Read timed out I've started a new instance of Jenkins on the LTS release (albeit using Winstone, rather than Tomcat) and it works fine, but I don't really want to have to re-cr
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Jamie Penman-Smithson commented on JENKINS-16237 Extended email plugin no longer sends messages on latest I've downgraded to the latest LTS release (1.480.1) and it still hangs at the same point. I've also overridden the global settings and it does the same thing: Overriding default server settings, creating our own session messageContentType = text/plain; charset=UTF-8 Changing BUILD_ID variable (job build time) with the date pattern MMdd. Adding recipients from recipient list Adding developers Sending to requester Successfully created MimeMessage Sending email to: eubu...@example.com jamie.penman-smith...@example.com Thanks, Jamie 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
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Jamie Penman-Smithson created JENKINS-16237 Extended email plugin no longer sends messages on latest Issue Type: Bug Affects Versions: current Assignee: Slide-O-Mix Components: email-ext Created: 02/Jan/13 12:25 PM Description: The email-ext plugin no longer sends messages, instead it hangs after sending DATA: 10:47:33 Checking for post-build 10:47:33 Performing post-build step 10:47:33 Checking if email needs to be generated 10:47:33 Email was triggered for: Success 10:47:33 Sending email for trigger: Success 10:47:33 NOT overriding default server settings, using Mailer to create session 10:47:33 Changing BUILD_ID variable (job build time) with the date pattern MMdd. 10:47:33 Changing BUILD_ID variable (job build time) with the date pattern MMdd. 10:47:33 messageContentType = text/plain; charset=UTF-8 10:47:33 Changing BUILD_ID variable (job build time) with the date pattern MMdd. 10:47:33 Adding developers 10:47:33 Sending to requester 10:47:33 Changing BUILD_ID variable (job build time) with the date pattern MMdd. 10:47:33 Successfully created MimeMessage 10:47:33 Sending email to: jamie.penman-smith...@example.com 10:48:34 ERROR: Could not send email as a part of the post-build publishers. 10:48:34 javax.mail.MessagingException: Exception reading response; 10:48:34 nested exception is: 10:48:34 java.net.SocketTimeoutException: Read timed out 10:48:34 at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2153) 10:48:34 at com.sun.mail.smtp.SMTPTransport.close(SMTPTransport.java:1186) 10:48:34 at javax.mail.Transport.send0(Transport.java:197) 10:48:34 at javax.mail.Transport.send(Transport.java:124) 10:48:34 at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:308) 10:48:34 at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:289) 10:48:34 at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:249) 10:48:34 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) 10:48:34 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) 10:48:34 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779) 10:48:34 at hudson.ivy.IvyModuleSetBuild$RunnerImpl.cleanUp(IvyModuleSetBuild.java:606) 10:48:34 at hudson.model.Run.execute(Run.java:1587) 10:48:34 at hudson.model.Run.run(Run.java:1489) 10:48:34 at hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:282) 10:48:34 at hudson.model.ResourceController.execute(ResourceController.java:88) 10:48:34 at hudson.model.Executor.run(Executor.java:236) 10:48:34 Caused by: java.net.SocketTimeoutException: Read timed out 10:48:34 at java.net.SocketInputStream.socketRead0(Native Method) 10:48:34 at java.net.SocketInputStream.read(SocketInputStream.java:129) 10:48:34 at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110) 10:48:34 at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) 10:48:34 at java.io.BufferedInputStream.read(BufferedInputStream.java:237) 10:48:34 at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89) 10:48:34 at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2131) 10:48:34 ... 15 more 10:48:34 Some error occured trying to send the email...check the Jenkins log 10:48:34 Finished: SUCCESS Looking at the Postfix log in debug mode, I can see that it sends MAIL FROM and RCPT TO correctly, but after it sends DATA it does not send anything else. Eventually the connection times out and the exception above is reported in the log. The standard email functionality continues to work as normal. From postfix it only shows that it received 'DATA' but nothing more: Jan 2 12:07:59 ukfd-ecat postfix/smtpd[32091]: > ukfd-ecat[192.168.117.125]: 220 ukfd-ecat.eu.example.com ESMTP Postfix Jan 2 12:07:59 ukfd-ecat postfix/smtpd[32091]: < ukfd-ecat[192.168.117.125]: EHLO ukfd-ecat Jan 2 12:07:59 ukfd-ecat postfix/smtpd[32091]