Skip to content

How to intercept and print publish messages? #0.15 #683

Answered by hylkevds
saeedrahmo asked this question in Q&A
Discussion options

You must be logged in to vote

The answer is right there in the stacktrace. And in the javadoc of the method you're calling.

public abstract byte[] array()
Returns the backing byte array of this buffer.
Throws:
UnsupportedOperationException - if there no accessible backing byte array

Have you tried using one of the toString() methods of ByteBuf if you want to turn the buffer into a String?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@saeedrahmo
Comment options

@hylkevds
Comment options

@saeedrahmo
Comment options

Answer selected by saeedrahmo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants