Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [angus-dev] use of angus mail in google app engine
  • From: Jason Mehrens <jason_mehrens@xxxxxxxxxxx>
  • Date: Tue, 14 Oct 2025 00:44:48 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jC4jwg9lZzv+ygmsyCmaG5xqLriz79/8v/0uZYi+stE=; b=Axy63Oh1kqFcFhLihO/A1TbLdGOwK2t5IiSHDh1H8I/jGBtgmapYNXAlX/LbGxuvyZ6CarVyCTEx9j+WvMQSGvqgAkYJCNhGAjeGi02kN5Vnz0Iz9OJGM++cSOQLYh/dAdXSAhQA5jRUYyVBCxsbitR+UUI7Iy09ax5un7R+N68V4QaONS2RAJ5ppJr6LxM6Jw4u9DPyHJ6A/dzhUcRTqhm+k+nH5F6zLB70dO5XuCxVWQkyRn9Apxqhpz/0S4Kanb8bW9M/F+TWP1kuwGjM9R2LV0ocdn3bWunK3u1hyGT335pj82CQxE+eHcOiXg8Q6+UCTHvlMSlfS/BHZGGQ6A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BxffB99eFXYjwlyBLFBbP8TWGuA0gh8iQSSp9vUn1zp3z951UPCz3hqTvakZ7gsc7Xs6RkiitNAsq8Bm+s4O7YPJSofjsvkEEqr+s8DlW3ME5laGJMCi8xy4dU9NJ58pedMg+Vg+A1EuWCeQVz0UAWdeRFK33R03P6kbi9wmCOGlo26bMglwfqTmznik3CnxTENBLw2QYJULpFKDWUgnAITlehsoFGCyLtVQmO2rzhOR/ODIfPHL/iLxOq0QzvGgpF9Pd6TnQpigbJZyxq8oKbho/9Rbrk7fRykkrgMklC5XbI0e074hGd8rGTelPDh1SWfFJ+fsAXRr/YZuJYEJqw==
  • Delivered-to: angus-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/angus-dev/>
  • List-help: <mailto:angus-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/angus-dev>, <mailto:angus-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/angus-dev>, <mailto:angus-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHcOrJbMXaX5RnI80SexpC2nW1B57S9G/BYgAMPTgCAAJ7btw==
  • Thread-topic: [angus-dev] use of angus mail in google app engine


Via command line switch. Set javax.activation.debug to true and mail.debug to true. This will log to System.out. Retest and send output (without security sensitive information).

>There are no errors, so no need for new catch block

To be sure, you added the catch Throwable. Then retested and didn't see any IllegalStateException or some LinkageError subclass?


>But indeed it looks angus activation is missing...

Does previous version work?

The jaf version is newer than angus-activation. Try to sync that:

    <groupId>org.eclipse.angus</groupId>
    <artifactId>angus-activation</artifactId>
    <version>2.1.0-M1</version>

From: jan meuleman <jmjanmeuleman@xxxxxxxxx>
Sent: Monday, October 13, 2025 9:47 AM
To: Jason Mehrens <jason_mehrens@xxxxxxxxxxx>
Cc: jan meuleman via angus-dev <angus-dev@xxxxxxxxxxx>
Subject: Re: [angus-dev] use of angus mail in google app engine
 
There are no errors, so no need for new catch block. But indeed it looks angus activation is missing, although I have the following in my pom file

<dependency>

<groupId>jakarta.mail</groupId>

<artifactId>jakarta.mail-api</artifactId>

<version>2.1.3</version>

</dependency>

<dependency>

<groupId>org.eclipse.angus</groupId>

<artifactId>angus-mail</artifactId>

<version>2.0.4</version>

</dependency>

<dependency>

<groupId>jakarta.activation</groupId>

<artifactId>jakarta.activation-api</artifactId>

<version>2.2.0-M1</version>

</dependency>

<dependency>

<groupId>org.eclipse.angus</groupId>

<artifactId>angus-activation</artifactId>

<version>2.0.3</version>

</dependency>


I don't understand, you have any idea for activation ?


Op za 11 okt 2025 om 18:17 schreef Jason Mehrens <jason_mehrens@xxxxxxxxxxx>:
Add a new catch block (for troubleshooting) to deal with Error and RuntimeExecption.

 

catch (Throwable e){

E.printStackTrace(System.out)

}


Looks to me link you are missing angus activation, the implementation for activation.


Jason



From: angus-dev <angus-dev-bounces@xxxxxxxxxxx> on behalf of jan meuleman via angus-dev <angus-dev@xxxxxxxxxxx>
Sent: Saturday, October 11, 2025 8:24 AM
To: angus-dev@xxxxxxxxxxx <angus-dev@xxxxxxxxxxx>
Cc: jan meuleman <jmjanmeuleman@xxxxxxxxx>
Subject: [angus-dev] use of angus mail in google app engine
 
Hi folks,
In the past, my google app engine program worked well with javax mail. Now I have to use jakarta mail and so I have the following dependencies:

<dependency>

<groupId>jakarta.activation</groupId>

<artifactId>jakarta.activation-api</artifactId>

<version>2.2.0-M1</version>

</dependency>

<dependency>

<groupId>org.eclipse.angus</groupId>

<artifactId>angus-activation</artifactId>

<version>2.0.3</version>

</dependency>


<dependency>

<groupId>jakarta.mail</groupId>

<artifactId>jakarta.mail-api</artifactId>

<version>2.1.3</version>

</dependency>

<dependency>

<groupId>org.eclipse.angus</groupId>

<artifactId>angus-mail</artifactId>

<version>2.0.4</version>

</dependency>


The program code is:


public void sendmail(Reservering reservering) {

Properties props = new Properties();

Session session = Session.getDefaultInstance(props, null);

Message msg = new MimeMessage(session);

try {

DSManager dbManager = new DSManager();

String emailadresRoosteraar = dbManager.getSystemVariable("roosteraar");

Vrijwilliger roosteraar = dbManager.getVrijwilliger(emailadresRoosteraar);

msg.setFrom(new InternetAddress("juniorentechniekhaaksbergen@xxxxxxxxx", "Juniorentechniek Haaksbergen"));

msg.addRecipient(Message.RecipientType.TO,

new InternetAddress(emailadresRoosteraar, roosteraar.getNaam()));

msg.addRecipient(Message.RecipientType.TO,

new InternetAddress("meuleman@xxxxxxxxxxxxxxx", "jan meuleman"));

msg.setSubject("Nieuwe reservering");


msg.setContent(getReserveringsbrief(reservering), "text/html");

Transport.send(msg);

}

catch (AddressException e) {

System.out.println("AddressException" + e.getStackTrace());

}

catch (MessagingException e) {

System.out.println("MessagingException" + e.getStackTrace());

}

catch (UnsupportedEncodingException e){

System.out.println("UnsupportedEncodingException" + e.getStackTrace());

}

}

But nothing happens, even not an error.

My question: What am I doing wrong ?


Kind regards,

Jan Meuleman



Back to the top