apache / apache/rocketmq-spring
NPE by getDeliverTimeMs
Open
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 943
- PR merge metrics
- No merged PRs in 30d
Description
当DelayMode不是DELIVER_TIME_MILLISECONDS时,将Message对象toJSONString时,导致 ` Long.parseLong` 抛出 `NumberFormatException`异常
Message中如下方法,`this.getUserProperty(MessageConst.PROPERTY_TIMER_DELIVER_MS)`返回了null.
```
public long getDeliverTimeMs() {
return Long.parseLong(this.getUserProperty(MessageConst.PROPERTY_TIMER_DELIVER_MS));
}
```
RocketMQTemplate中:
```
public SendResult syncSend(String destination, Message message, long timeout) {
return syncSend(destination, message, timeout, 0);
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.