0

我正在尝试调用(使用 http 出站)一个 REST 服务,该服务返回一个带有 Content-Type 的 base64String image/tiff;。我得到以下错误


消息:无法解析“图像/tiff;” (java.lang.IllegalArgumentException)。消息负载的类型:字符串类型:org.mule.api.MessagingException 代码:MULE_ERROR--2 负载:测试 JavaDoc: http: //www.mulesoft.org/docs/site/current3/apidocs/org/mule/api /MessagingException.html


异常堆栈是:1. null (java.lang.IllegalStateException) com.google.common.base.Preconditions:158 (null) 2. 无法解析 'image/tiff;' (java.lang.IllegalArgumentException) com.google.common.net.MediaType:629 (null) 3. 无法解析'image/tiff;' (java.lang.IllegalArgumentException)。消息有效负载的类型:字符串 (org.mule.api.MessagingException) org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:32 ( http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/消息异常.html )


根异常堆栈跟踪:com.google.common.base.Preconditions.checkState(Preconditions.java:158) 的 java.lang.IllegalStateException com.google.common.net.MediaType$Tokenizer.consumeTokenIfPresent(MediaType.java:642)在 com.google.common.net.MediaType.parse(MediaType.java:605) 在 org.mule.module.http.internal.request.HttpResponseToMuleEvent.getEncoding(HttpResponseToMuleEvent.java:122) 在 org.mule.module.http .internal.request.HttpResponseToMuleEvent.convert(HttpResponseToMuleEvent.java:75) 在 org.mule.module.http.internal.request.DefaultHttpRequester.innerProcess(DefaultHttpRequester.java:290) 在 org.mule.module.http.internal.request .DefaultHttpRequester.processBlocking(DefaultHttpRequester.java:186) 在 org.mule.processor.AbstractNonBlockingMessageProcessor.process(AbstractNonBlockingMessageProcessor.java:43) 在 org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:107) 在 org.mule.execution.MessageProcessorExecutionTemplate.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:24) 在 org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:24) :44) 在 org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:85) 在 org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:56) 在 org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor。 java:24) 在 org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) 在 org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:94) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:56) at org.mule.processor.AsyncInterceptingMessageProcessor.process(AsyncInterceptingMessageProcessor.java:102) at org .mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:24) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:107) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:94) 在 org.mule.processor.BlockingProcessorExecutor。在 org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:24) 在 org.mule.execution.MessageProcessorNotificationExecutionInterceptor 在 org.mule.construct.DynamicPipelineMessageProcessor.process(DynamicPipelineMessageProcessor.java:55) 执行(BlockingProcessorExecutor.java:56) .execute(MessageProcessorNotificationExecutionInterceptor.java:107) 在 org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) 在 org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:85) 在 org.mule.processor。 BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:56) 在 org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor。在 org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:94) 在 org.mule.processor.BlockingProcessorExecutor 的 org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) 执行(ExceptionToMessagingExceptionExecutionInterceptor.java:24) .execute(BlockingProcessorExecutor.java:56) 在 org.mule.interceptor.AbstractEnvelopeInterceptor.processBlocking(AbstractEnvelopeInterceptor.java:58) 在 org.mule.processor.AbstractRequestResponseMessageProcessor.process(AbstractRequestResponseMessageProcessor.java:47) 在 org.mule.execution。 org.mule.execution.MessageProcessorNotificationExecutionInterceptor 的 ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:24)。在 org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:94) 在 org.mule.processor.BlockingProcessorExecutor 的 org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) 执行(MessageProcessorNotificationExecutionInterceptor.java:107) .execute(BlockingProcessorExecutor.java:56) 在 org.mule.processor.AbstractFilteringMessageProcessor.process(AbstractFilteringMessageProcessor.java:41) 在 org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:24) 在 org.mule.execution。 MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:107) 在 org.mule.execution.MessageProcessorExecutionTemplate。在 org.mule.processor.BlockingProcessor 处执行(MessageProcessorExecutionTemplate.java:44)...


我正在使用 Mule Anypoint Studio 5.3.0 和 mule 运行时版本 3.7.2

有人可以帮助解决这个问题。

提前致谢

4

0 回答 0