WLS GetBodyLength() Returns 0 If Message Is Compressed

(Doc ID 1511926.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 10.3.5 and later
Information in this document applies to any platform.

Symptoms

When using  getBodyLength(), used to read messages, returns 0 if the message has been previously compressed.

e.g:

The message is compressed because compression threshold has been set to 0 in the Connection Factory.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms