You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "wang (Jira)" <ji...@apache.org> on 2021/07/11 09:30:00 UTC

[jira] [Updated] (ARTEMIS-3382) Cannot publish to a deleted Destination: temp-queue:

     [ https://issues.apache.org/jira/browse/ARTEMIS-3382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

wang updated ARTEMIS-3382:
--------------------------
    Description: 
JDK version:1.8.0_251

spring-jms-5.2.7

artemis2.17.0, default configuration

has A、B two JAVA program in one machine,

A send a synchronization mesage,B reply,

run  a few days later,

B throw exception on reply.

A:

jmsMsgTemplate.getJmsTemplate().setReceiveTimeout(20*1000);
 String message= jmsMsgTemplate.convertSendAndReceive(queueName,messageStr,String.class);

B: reply,not timeout, but throw  this exception:

Cannot publish to a deleted Destination: temp-queue://ID:iZwz96vtq89cjmxpw5w9boZ-40113-1624574577491-1:1:588; nested exception is javax.jms.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:iZwz96vtq89cjmxpw5w9boZ-40113-1624574577491-1:1:588; nested exception is org.springframework.jms.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:iZwz96vtq89cjmxpw5w9boZ-40113-1624574577491-1:1:588; nested exception is javax.jms.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:iZwz96vtq89cjmxpw5w9boZ-40113-1624574577491-1:1:588

 

this is a bug? or default configuration is not support  synchronization mesage?
 What should I do?

  was:
JDK version:1.8.0_251

spring-jms-5.2.7

artemis2.17.0, default configuration

has A、B two JAVA program in one machine,

A send a synchronization mesage,B reply,

run  a few days later,

B throw exception on reply.

A:

jmsMsgTemplate.getJmsTemplate().setReceiveTimeout(20*1000);
String message= jmsMsgTemplate.convertSendAndReceive(queueName,messageStr,String.class);

B: reply,not timeout, bug throw  this exception:

Cannot publish to a deleted Destination: temp-queue://ID:iZwz96vtq89cjmxpw5w9boZ-40113-1624574577491-1:1:588; nested exception is javax.jms.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:iZwz96vtq89cjmxpw5w9boZ-40113-1624574577491-1:1:588; nested exception is org.springframework.jms.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:iZwz96vtq89cjmxpw5w9boZ-40113-1624574577491-1:1:588; nested exception is javax.jms.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:iZwz96vtq89cjmxpw5w9boZ-40113-1624574577491-1:1:588

 

this is a bug? or default configuration is not support  synchronization mesage?
What should I do?


> Cannot publish to a deleted Destination: temp-queue:
> ----------------------------------------------------
>
>                 Key: ARTEMIS-3382
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3382
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: JMS
>    Affects Versions: 2.17.0
>         Environment: OS:Alibaba Cloud Linux release 3 (Soaring Falcon)(Linux kernel 5.10 LTS)
> JDK version:1.8.0_251
>  
>            Reporter: wang
>            Priority: Major
>              Labels: JmsMsgTemplate, SendAndReceive
>
> JDK version:1.8.0_251
> spring-jms-5.2.7
> artemis2.17.0, default configuration
> has A、B two JAVA program in one machine,
> A send a synchronization mesage,B reply,
> run  a few days later,
> B throw exception on reply.
> A:
> jmsMsgTemplate.getJmsTemplate().setReceiveTimeout(20*1000);
>  String message= jmsMsgTemplate.convertSendAndReceive(queueName,messageStr,String.class);
> B: reply,not timeout, but throw  this exception:
> Cannot publish to a deleted Destination: temp-queue://ID:iZwz96vtq89cjmxpw5w9boZ-40113-1624574577491-1:1:588; nested exception is javax.jms.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:iZwz96vtq89cjmxpw5w9boZ-40113-1624574577491-1:1:588; nested exception is org.springframework.jms.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:iZwz96vtq89cjmxpw5w9boZ-40113-1624574577491-1:1:588; nested exception is javax.jms.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:iZwz96vtq89cjmxpw5w9boZ-40113-1624574577491-1:1:588
>  
> this is a bug? or default configuration is not support  synchronization mesage?
>  What should I do?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)