Spring cloud stream -- jmsTempate

You can get detail here what i am trying to do and also the spring message class can not be casted
ava.lang.ClassCastException: class com.solacesystems.jms.message.SolBytesMessage cannot be cast to class org.springframework.messaging.Message (com.solacesystems.jms.message.SolBytesMessage and org.springframework.messaging.Message are in unnamed module of loader ‘app’)
I just want to read only dlq/ error queue message using consumer manually not using listeners.