ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon IJskes - QCG <si...@qcg.nl>
Subject ant task mail fails on jdk10
Date Mon, 02 Jul 2018 15:36:51 GMT
As bugzilla is unreachable for now:

     <target name="_testmail" >
         <mail mailhost="mail" mailport="25" from="simon@qcg.nl" 
subject="Testemail"  >
             <to address="simon@qcg.nl" />
         </mail>
     </target>

$ JAVA_HOME=/usr/lib/jvm/java-8-oracle/ ~/opt/apache-ant-1.10.4/bin/ant 
_testmail

runs ok.

_testmail:
      [mail] Sending email: Testemail
      [mail] Sent email with 0 attachments


$ JAVA_HOME=/usr/lib/jvm/java-10-oracle/ ~/opt/apache-ant-1.10.4/bin/ant 
_testmail

_testmail:
      [mail] Failed to send email: javax.activation.DataHandler

BUILD FAILED
....../build.xml:6: java.lang.ClassNotFoundException: 
javax.activation.DataHandler
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:291)
	at 
org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java:457)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
	at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
	at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
	at org.apache.tools.ant.Task.perform(Task.java:350)
	at org.apache.tools.ant.Target.execute(Target.java:449)
	at org.apache.tools.ant.Target.performTasks(Target.java:470)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
	at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
	at org.apache.tools.ant.Main.runBuild(Main.java:834)
	at org.apache.tools.ant.Main.startAnt(Main.java:223)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)


-- 
QCG, Software development, 071-5890970, http://www.qcg.nl
Quality Consultancy Group b.v., Leiderdorp, Kvk Den Haag: 28088397

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message