2
所以,你發現在你的日誌中的異常:有沒有一種方法來識別一個未知的jms對象的反序列化?
Execution of JMS message listener failed, and no ErrorHandler has been set.
com.company.eq.mo.app.exception.DefaultMessageListenerException: Failed to handle message.; nested exception is com.company.eq.mo.app.exception.DefaultMessageListenerException: This message does not contain a recognised java object; nested exception is javax.jms.MessageFormatException: MQJMS1061: Unable to deserialize object the class name to find out anymore info about the message:
消息是Deserialisable,你不能獲得和打印出來的對象在運行時:
Object object = ((ObjectMessage) message).getObject();
object.getClass();
因爲它不存在於你的班級路徑。
是否有任何其他方式獲取類/對象名稱?