Changeset 7727


Ignore:
Timestamp:
Jun 14, 2019, 12:54:18 PM (2 years ago)
Author:
Nicklas Nordborg
Message:

References #2139: Switch to Java 11 (or later)

Added a missing JAR file with classes needed for sending e-mail. Got stacktrace:

net.sf.basedb.core.BaseException: Could not send email for message:Message[id=8483; name=Test message]
	at net.sf.basedb.core.Message.sendAsEmail(Message.java:466)
	at net.sf.basedb.core.Message.onAfterCommit(Message.java:298)
	at net.sf.basedb.core.DbControl.commit(DbControl.java:546)
	at TestMessage.test_create(TestMessage.java:82)
	at TestMessage.test_all(TestMessage.java:47)
	at TestAll.main(TestAll.java:127)
Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : localhost:2525
	at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1469)
	at org.apache.commons.mail.Email.send(Email.java:1496)
	at net.sf.basedb.core.Message.sendAsEmail(Message.java:461)
	... 5 more
Caused by: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
	at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:179)
	at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:85)
	at javax.activation.DataHandler.getCommandMap(DataHandler.java:167)
	at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:629)
	at javax.activation.DataHandler.writeTo(DataHandler.java:329)
	at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:340)
	at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1575)
	at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2271)
	at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2231)
	at javax.mail.Transport.send(Transport.java:123)
	at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459)
	... 7 more
Caused by: java.lang.ClassNotFoundException: com.sun.activation.registries.LogSupport
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 18 more
Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/3rd-party-components.txt

    r7726 r7727  
    185185Version   : 1.6.2
    186186License   : Common Development and Distribution License (CDDL) v1.1 and GNU General Public License (GPL) v2 with Classpath Exception (javax-mail-LICENSE.txt)
    187 Jar files : javax-mail-1.5.3.jar
     187Jar files : javax-mail-1.6.2.jar, jakarta.activation-1.2.1.jar
    188188
    189189Apache Commons Collections 4
Note: See TracChangeset for help on using the changeset viewer.