[JIRA] (JENKINS-59595) plugin failing with JDK11

20 views
Skip to first unread message

peter@rivero.dev (JIRA)

unread,
Sep 30, 2019, 6:54:02 PM9/30/19
to jenkinsc...@googlegroups.com
Peter River created an issue
 
Jenkins / Bug JENKINS-59595
plugin failing with JDK11
Issue Type: Bug Bug
Assignee: Adrien Lecharpentier
Components: mailer-plugin
Created: 2019-09-30 22:53
Environment: jenkins 2.176.4, centos6, JDK11
Priority: Blocker Blocker
Reporter: Peter River

After upgrading to JDK11, the plugin fails with:

 

09:38:39 - ERROR: Step ‘E-mail Notification’ aborted due to exception: 09:38:39 - ERROR: Step ‘E-mail Notification’ aborted due to exception: 09:38:39 - java.lang.ClassNotFoundException: javax.activation.DataSource09:38:39 - at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)09:38:39 - at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)09:38:39 - at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)09:38:39 - Caused: java.lang.NoClassDefFoundError: javax/activation/DataSource09:38:39 - at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:198)09:38:39 - at hudson.tasks.MailSender.createEmptyMail(MailSender.java:403)09:38:39 - at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:208)09:38:39 - at hudson.tasks.MailSender.createMail(MailSender.java:196)09:38:39 - at hudson.tasks.MailSender.run(MailSender.java:111)09:38:39 - at hudson.tasks.Mailer.perform(Mailer.java:175)09:38:39 - at hudson.tasks.Mailer.perform(Mailer.java:138)09:38:39 - at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)09:38:39 - at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)09:38:39 - at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)09:38:39 - at hudson.model.Build$BuildExecution.post2(Build.java:186)09:38:39 - at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)09:38:39 - at hudson.model.Run.execute(Run.java:1843)09:38:39 - at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)09:38:39 - at hudson.model.ResourceController.execute(ResourceController.java:97)09:38:39 - at hudson.model.Executor.run(Executor.java:429)

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

adrien.lecharpentier@gmail.com (JIRA)

unread,
Oct 1, 2019, 3:20:02 AM10/1/19
to jenkinsc...@googlegroups.com
Adrien Lecharpentier commented on Bug JENKINS-59595
 
Re: plugin failing with JDK11

Hi Peter River, thanks for reporting the problem. Could you please tell me which version of the Mailer plugin you have on your instance? (If you have the support-core plugin installed, it would be easier to get a "support bundle" of your instance).

I'm surprise that the tests are not catching this.

ian.williams1@telus.com (JIRA)

unread,
Oct 1, 2019, 3:32:04 AM10/1/19
to jenkinsc...@googlegroups.com
Ian Williams updated an issue
Change By: Ian Williams
After upgrading to JDK11, the plugin fails with:

 
{code:java}
09:38:39 - ERROR: Step ‘E-mail Notification’ aborted due to exception: 09:38:39 - ERROR: Step ‘E-mail Notification’ aborted due to exception: 09:38:39 - java.lang.ClassNotFoundException: javax.activation.DataSource09:38:39 - at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)09:38:39 - at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)09:38:39 - at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)09:38:39 - Caused: java.lang.NoClassDefFoundError: javax/activation/DataSource09:38:39 - at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:198)09:38:39 - at hudson.tasks.MailSender.createEmptyMail(MailSender.java:403)09:38:39 - at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:208)09:38:39 - at hudson.tasks.MailSender.createMail(MailSender.java:196)09:38:39 - at hudson.tasks.MailSender.run(MailSender.java:111)09:38:39 - at hudson.tasks.Mailer.perform(Mailer.java:175)09:38:39 - at hudson.tasks.Mailer.perform(Mailer.java:138)09:38:39 - at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)09:38:39 - at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)09:38:39 - at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)09:38:39 - at hudson.model.Build$BuildExecution.post2(Build.java:186)09:38:39 - at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)09:38:39 - at hudson.model.Run.execute(Run.java:1843)09:38:39 - at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)09:38:39 - at hudson.model.ResourceController.execute(ResourceController.java:97)09:38:39 - at hudson.model.Executor.run(Executor.java:429)
{code}

ian.williams1@telus.com (JIRA)

unread,
Oct 1, 2019, 3:34:05 AM10/1/19
to jenkinsc...@googlegroups.com
Ian Williams updated an issue
After upgrading to JDK11, the plugin fails with:

 
{code:java}
  09:38:39 - ERROR: Step ‘E-mail Notification’ aborted due to exception:
 09:38:39 - ERROR: Step ‘E-mail Notification’ aborted due to exception:
 09:38:39 - java.lang.ClassNotFoundException: javax.activation. DataSource09 DataSource
 09
:38:39 - at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
 
09:38:39 - at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
 
09:38:39 - at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
 
09:38:39 - Caused: java.lang.NoClassDefFoundError: javax/activation/ DataSource09 DataSource
 09
:38:39 - at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:198)
 
09:38:39 - at hudson.tasks.MailSender.createEmptyMail(MailSender.java:403)
 
09:38:39 - at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:208)
 
09:38:39 - at hudson.tasks.MailSender.createMail(MailSender.java:196)
 
09:38:39 - at hudson.tasks.MailSender.run(MailSender.java:111)
 
09:38:39 - at hudson.tasks.Mailer.perform(Mailer.java:175)
 
09:38:39 - at hudson.tasks.Mailer.perform(Mailer.java:138)
 
09:38:39 - at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
 
09:38:39 - at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
 
09:38:39 - at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
 
09:38:39 - at hudson.model.Build$BuildExecution.post2(Build.java:186)
 
09:38:39 - at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
 
09:38:39 - at hudson.model.Run.execute(Run.java:1843)
 
09:38:39 - at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
 
09:38:39 - at hudson.model.ResourceController.execute(ResourceController.java:97)
 
09:38:39 - at hudson.model.Executor.run(Executor.java:429){code}

adrien.lecharpentier@gmail.com (JIRA)

unread,
Oct 1, 2019, 4:26:04 AM10/1/19
to jenkinsc...@googlegroups.com

peter@rivero.dev (JIRA)

unread,
Oct 1, 2019, 4:52:03 AM10/1/19
to jenkinsc...@googlegroups.com

mailer-plugin  1.28 

Jetty 9.3.15

peter@rivero.dev (JIRA)

unread,
Oct 1, 2019, 8:33:02 AM10/1/19
to jenkinsc...@googlegroups.com

Maybe... https://www.eclipse.org/jetty/documentation/9.4.x/startup-classpath.html

```System classes such as java.lang.String are excluded from the webapp priority, and you may not replace them with classes in WEB-INF/lib or WEB-INF/ classes. Unfortunately the specification does not clearly state what classes are System classes, and it is unclear if all javax classes should be treated as System classes.```

Jetty provides  a javax.annotation class, but not the javax.activation.

peter@rivero.dev (JIRA)

unread,
Oct 1, 2019, 8:34:01 AM10/1/19
to jenkinsc...@googlegroups.com
Peter River edited a comment on Bug JENKINS-59595
Maybe... [https://www.eclipse.org/jetty/documentation/9.4.x/startup-classpath.html]

``` {code:java}
System classes such as {{java.lang.String}} are excluded from the webapp priority, and you may not replace them with classes in {{WEB-INF/lib}} or {{WEB-INF/}} classes. Unfortunately the specification does not clearly state what classes are _System_ classes, and it is unclear if all {{javax}} classes should be treated as System classes. ```
{code}


Jetty provides  a javax.annotation class, but not the javax.activation.

peter@rivero.dev (JIRA)

unread,
Oct 1, 2019, 3:15:03 PM10/1/19
to jenkinsc...@googlegroups.com

"fixed"
download jar https://mvnrepository.com/artifact/com.sun.activation/javax.activation/1.2.0 into

{jetty.home}

/lib/ext
and start jetty with the option --module=ext

bmathus+ossjira@cloudbees.com (JIRA)

unread,
Oct 2, 2019, 4:23:05 AM10/2/19
to jenkinsc...@googlegroups.com
Baptiste Mathus updated an issue
Change By: Baptiste Mathus
Labels: java11 triaged

peter@rivero.dev (JIRA)

unread,
Oct 2, 2019, 4:26:02 AM10/2/19
to jenkinsc...@googlegroups.com
Peter River edited a comment on Bug JENKINS-59595
{ code:java}
{
jetty.home}/lib/ext
{code}

and start jetty with the option --module=ext
Reply all
Reply to author
Forward
0 new messages