wso2 / andes

Apache License 2.0
39 stars 129 forks source link

Andes cannot reprocess messages in DLC if compression is on. #1031

Open jpbelangerfromquebec opened 5 years ago

jpbelangerfromquebec commented 5 years ago

Affected Product Version: Andes 3.2.82

Windows or Linux, Not database related. Occured with both Oracle and H2.

Activate compression in configuration. Let messages go to the DLC state. Attempt to replay the messages. Exception while trying to decode encoded message as a UTF-8 string.

Restart same after deactivating compression. Everything works great!

Related Issues:

jpbelangerfromquebec commented 5 years ago

When the end web service is available, message is indeed stored in the database as compressed but it is taken from the cache as uncompressed and everything works fine. However, when the web service is unavailable, the message go to the DLC and is read from the database when asking to replay it. The message is not uncompressed after being read from the DLC, resulting in the exception inside JMSTextMessage.