largeTree opened a new issue #2496:
URL: https://github.com/apache/rocketmq/issues/2496


   The issue tracker is **ONLY** used for bug report(feature request need to 
follow [RIP 
process](https://github.com/apache/rocketmq/wiki/RocketMQ-Improvement-Proposal)).
 Keep in mind, please check whether there is an existing same report before 
your raise a new one.
   
   Alternately (especially if your communication is not a bug report), you can 
send mail to our [mailing lists](http://rocketmq.apache.org/about/contact/). We 
welcome any friendly suggestions, bug fixes, collaboration and other 
improvements.
   
   Please ensure that your bug report is clear and that it is complete. 
Otherwise, we may be unable to understand it or to reproduce it, either of 
which would prevent us from fixing the bug. We strongly recommend the 
report(bug report or feature request) could include some hints as the following:
   
   **BUG REPORT**
   1. `TransactionSendResult.offsetMsgId` doesn't be seted in method 
`org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.sendMessageInTransaction(Message,
 LocalTransactionExecuter, Object)`
   2. when i use the `TransactionSendResult` to call 
`org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.endTransaction(SendResult,
 LocalTransactionState, Throwable)`  i got an exception, like this 
   ``` java
   java.lang.IllegalArgumentException: port out of range:1393301684
        at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)
        at java.net.InetSocketAddress.<init>(InetSocketAddress.java:188)
        at 
org.apache.rocketmq.common.message.MessageDecoder.decodeMessageId(MessageDecoder.java:87)
        at 
org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.endTransaction(DefaultMQProducerImpl.java:1236)
        at 
com.qiuxs.boot.demo.mq.ProducerUtils.endTransaction(ProducerUtils.java:58)
        at com.qiuxs.boot.demo.mq.ProducerUtils.commit(ProducerUtils.java:46)
        at 
com.qiuxs.boot.demo.service.TxService$1.afterCompletion(TxService.java:21)
        at 
org.springframework.transaction.support.TransactionSynchronizationUtils.invokeAfterCompletion(TransactionSynchronizationUtils.java:171)
        at 
org.springframework.transaction.support.AbstractPlatformTransactionManager.invokeAfterCompletion(AbstractPlatformTransactionManager.java:989)
        at 
org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerAfterCompletion(AbstractPlatformTransactionManager.java:964)
        at 
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:785)
        at 
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:711)
        at 
org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:633)
        at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:386)
        at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
        at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)
        at 
com.qiuxs.boot.demo.service.TxService$$EnhancerBySpringCGLIB$$4f492874.doInTx(<generated>)
        at com.qiuxs.boot.demo.ctrl.MqController.send(MqController.java:20)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
   ```
   
![image](https://user-images.githubusercontent.com/15036686/101591228-fcd64080-3a26-11eb-8880-5d22e3fb1663.png)
   
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to