chibenwa commented on pull request #923:
URL: https://github.com/apache/james-project/pull/923#issuecomment-1073665561
We have some issues...
In
`org.apache.james.CassandraMailRepositoryIntegrationTest.deniedSenderMailShouldBeStoredInCassandraMailRepositoryWhenConfigured{GuiceJamesServer}`
for instance.
```
08:05:59.211 [ERROR] o.a.j.m.i.ProcessorImpl - Exception calling Bounce:
class org.apache.geronimo.javamail.handlers.MultipartHandler cannot be cast to
class jakarta.activation.DataContentHandler
(org.apache.geronimo.javamail.handlers.MultipartHandler and
jakarta.activation.DataContentHandler are in unnamed module of loader 'app')
java.lang.ClassCastException: class
org.apache.geronimo.javamail.handlers.MultipartHandler cannot be cast to class
jakarta.activation.DataContentHandler
(org.apache.geronimo.javamail.handlers.MultipartHandler and
jakarta.activation.DataContentHandler are in unnamed module of loader 'app')
```
Here the fix is to get rid of `geronimo` I imagine.
```
$ grep geronimo * -R | grep pom.xml
server/apps/spring-app/pom.xml:
<groupId>org.apache.geronimo.javamail</groupId>
server/apps/spring-app/pom.xml:
<artifactId>geronimo-javamail_1.4_mail</artifactId>
server/mailet/dkim/pom.xml:
<groupId>org.apache.geronimo.javamail</groupId>
server/mailet/dkim/pom.xml:
<artifactId>geronimo-javamail_1.4_mail</artifactId
```
Stacktrace:
```
16:14:03.252 [ERROR] o.a.j.m.i.ProcessorImpl - Exception calling Bounce:
class org.apache.geronimo.javamail.handlers.MultipartHandler cannot be cast to
class jakarta.activation.DataContentHandler
(org.apache.geronimo.javamail.handlers.MultipartHandler and
jakarta.activation.DataContentHandler are in unnamed module of loader 'app')
java.lang.ClassCastException: class
org.apache.geronimo.javamail.handlers.MultipartHandler cannot be cast to class
jakarta.activation.DataContentHandler
(org.apache.geronimo.javamail.handlers.MultipartHandler and
jakarta.activation.DataContentHandler are in unnamed module of loader 'app')
at
jakarta.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:601)
at
jakarta.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:554)
at
jakarta.activation.DataHandler.getDataContentHandler(DataHandler.java:590)
at jakarta.activation.DataHandler.writeTo(DataHandler.java:289)
at jakarta.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1670)
at jakarta.mail.internet.MimeMessage.writeTo(MimeMessage.java:1888)
at jakarta.mail.internet.MimeMessage.writeTo(MimeMessage.java:1862)
at
org.apache.james.server.core.MimeMessageWrapper.<init>(MimeMessageWrapper.java:158)
at org.apache.james.server.core.MailImpl.setMessage(MailImpl.java:505)
at
org.apache.james.transport.mailets.redirect.ProcessRedirectNotify.createAlterMessage(ProcessRedirectNotify.java:126)
at
org.apache.james.transport.mailets.redirect.ProcessRedirectNotify.process(ProcessRedirectNotify.java:68)
at org.apache.james.transport.mailets.Bounce.service(Bounce.java:246)
at
org.apache.james.mailetcontainer.impl.ProcessorImpl.process(ProcessorImpl.java:73)
```
JDKIM itself should likely be proted to jakarta.mail ?
The spring app should likely be able to drop
`org.apache.geronimo.javamail`...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]