MuleSoft - 使用空负载解密
MuleSoft - use decryption with null paylod
我正在尝试对 HTTP 请求使用 MuleSoft 的解密。我也在 GET 请求上这样做。
我收到以下错误:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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.process(DecryptMessageProcessor.java:165)
+ 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
不应该吗?尝试解密payload,如果没有解密就继续?
如果有效负载不为空,最好只解密:如果可以,最好避免引发异常。
为此,您可以使用选择路由器仅在负载不为空时解密。
我正在尝试对 HTTP 请求使用 MuleSoft 的解密。我也在 GET 请求上这样做。
我收到以下错误:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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.process(DecryptMessageProcessor.java:165) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
不应该吗?尝试解密payload,如果没有解密就继续?
如果有效负载不为空,最好只解密:如果可以,最好避免引发异常。
为此,您可以使用选择路由器仅在负载不为空时解密。