2015-05-17 41 views
0

我試圖使用MuleSoft的解密HTTP請求。我也在GET請求上這樣做。MuleSoft - 使用null paylod解密

我得到以下錯誤:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ERROR 2015-05-17 13:00:35,630 [[broker1-secure].HTTP_Listener_Configuration.worker.01] org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : Failed to invoke decrypt. Message payload is of type: NullPayload Code : MULE_ERROR-29999 -------------------------------------------------------------------------------- Exception stack is: 1. Could not decrypt the input. The input has to be a byte array,Input Stream or String (java.lang.RuntimeException)
org.mule.modules.security.encryption.encrypters.JCEEncrypterModule:59 (null) 2. Failed to invoke decrypt. Message payload is of type: NullPayload (org.mule.api.MessagingException)
org.mule.devkit.processor.DevkitBasedMessageProcessor:128 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.lang.RuntimeException: Could not decrypt the input. The input has to be a byte array,Input Stream or String at org.mule.modules.security.encryption.encrypters.JCEEncrypterModule.decrypt(JCEEncrypterModule.java:59) at org.mule.modules.security.encryption.EncryptionModule.decrypt(EncryptionModule.java:213) at org.mule.modules.security.encryption.processors.DecryptMessageProcessor$1.process(DecryptMessageProcessor.java:165) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)

它不應該是可能的嗎?嘗試解密有效載荷,如果沒有解密則繼續?

回答

1

如果有效負載不爲空,那麼最好只解密:如果可以,最好避免引發異常。

爲此,只有當有效負載不爲空時,纔可以使用選擇路由器進行解密。