Hi,
While running some tests I ran into following error when trying to send SMTP 
message:

```
[2023-08-04 15:31:25.054] [ERROR] [smtpserver-global-io-3] o.a.j.p.n.BasicChannelInboundHandler.exceptionCaught(): Unable to process request
java.lang.NoSuchMethodError: 'void javax.jms.Message.setJMSDeliveryTime(long)'
        at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1993)
        at 
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:329)
        at 
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:289)
        at 
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:224)
        at 
org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:298)
at org.apache.james.queue.activemq.ActiveMQCacheableMailQueue.produceMail(ActiveMQCacheableMailQueue.java:207)
        at 
org.apache.james.queue.jms.JMSCacheableMailQueue.enQueue(JMSCacheableMailQueue.java:278)
        at org.apache.james.queue.api.MailQueue.enQueue(MailQueue.java:102)
        at 
org.apache.james.queue.jms.JMSCacheableMailQueue.enQueue(JMSCacheableMailQueue.java:307)
```

Searching pointed me to https://issues.apache.org/jira/browse/AMQ-9252 which suggests, it would be caused if there is JMS 1.1 spec jar on the classpath.

Quick check using manve dependency showed only `org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1:compile` from `org.apache.openjpa:openjpa:jar:3.2.0` (JPA module).

Anyone else ran into same issue?

Excluding `org.apache.geronimo.specs:geronimo-jms_1.1_spec` from the deployment _seems_ to fix the issue, but I'm not sure if there won't be other problems.

--
Wojtek

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to