You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by GitBox <gi...@apache.org> on 2021/06/08 12:05:39 UTC

[GitHub] [incubator-eventmesh] xwm1992 commented on issue #382: java.lang.NumberFormatException when parsing Long

xwm1992 commented on issue #382:
URL: https://github.com/apache/incubator-eventmesh/issues/382#issuecomment-856705999


   > There are several places in the code which invoking Long.ParseLong() without checking the existence of the Long argument. this will be causing the following exception in the logs
   > 
   > ```
   > 2021-06-07 17:38:13,850 INFO  [ConsumeMessageThread_ConsumerGroup-509db3b0e3d3488287da6ffbcbb9d6ee-FT0_20] EventMeshMessageListenerConcurrently(EventMeshMessageListenerConcurrently.java:62) - handleMessage fail
   > java.lang.NumberFormatException: null
   > 	at java.lang.Integer.parseInt(Integer.java:542) ~[?:1.8.0_261]
   > 	at java.lang.Integer.parseInt(Integer.java:615) ~[?:1.8.0_261]
   > 	at org.apache.eventmesh.runtime.core.protocol.http.consumer.HandleMsgContext.<init>(HandleMsgContext.java:82) ~[eventmesh-runtime-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
   > 	at org.apache.eventmesh.runtime.core.protocol.http.consumer.EventMeshConsumer$1.consume(EventMeshConsumer.java:141) ~[eventmesh-runtime-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
   > 	at org.apache.eventmesh.connector.rocketmq.consumer.PushConsumerImpl$2.handleMessage(PushConsumerImpl.java:167) ~[eventmesh-connector-rocketmq-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
   > 	at org.apache.eventmesh.connector.rocketmq.patch.EventMeshMessageListenerConcurrently.consumeMessage(EventMeshMessageListenerConcurrently.java:46) [eventmesh-connector-rocketmq-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
   > 	at org.apache.rocketmq.client.impl.consumer.ConsumeMessageConcurrentlyService$ConsumeRequest.run(ConsumeMessageConcurrentlyService.java:482) [eventmesh-connector-rocketmq-1.2.0-SNAPSHOT.jar:4.7.1]
   > 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_261]
   > 	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_261]
   > 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_261]
   > 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_261]
   > 	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_261]
   > ```
   
   well, as the log show the exception is caused by **Integer.parseInt**, you can fix this problem in **HandleMessageContext**, this file not recognized in your pull request


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org