java.util.concurrent.TimeoutException

MuleSoft JIRA | sriharsha gubba | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Hi We have a until successful synchronous with failure expression to catch only exceptions only when the external service is down and disable the retries when there is timeout exception.But the below code is still retring three time and errored out with below exception Message : Error sending HTTP request. Message payload is of type: byte[] Type : org.mule.api.MessagingException Code : MULE_ERROR--2 Payload : [B@3dbea396 JavaDoc : http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html ******************************************************************************** Exception stack is: 1. null (java.util.concurrent.TimeoutException) org.glassfish.grizzly.impl.SafeFutureImpl$Sync:357 (null) 2. Error sending HTTP request. Message payload is of type: byte[] (org.mule.api.MessagingException) org.mule.module.http.internal.request.DefaultHttpRequester:190 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html) ******************************************************************************** Root Exception stack trace: java.util.concurrent.TimeoutException at org.glassfish.grizzly.impl.SafeFutureImpl$Sync.innerGet(SafeFutureImpl.java:357) <until-successful synchronous="true" maxRetries="${farallon.untilsuccessful.mediaview.maxretries}" failureExpression="#[exception != null &amp;&amp; !exception.causedBy(java.util.concurrent.TimeoutException)]" millisBetweenRetries="${farallon.untilsuccessful.mediaview.millisecsbetweenretries}" doc:name="Until Successful"> <processor-chain doc:name="Processor Chain"> <set-payload value="#[flowVars['tempPayload']]" doc:name="Set Payload"/> <file:outbound-endpoint path="${farallon.path.logs-publish}" outputPattern="Post_Log-#[function:datestamp].xml" responseTimeout="10000" doc:name="File" /> <set-property propertyName="http.disable.status.code.exception.check" value="true" doc:name="Property"/> <http:request config-ref="MediaViewRequestConfig" path="${farallon.rsc.mediaview.video-post}" method="POST" doc:name="HTTP"> <http:request-builder> <http:header headerName="Content-type" value="text/xml" /> </http:request-builder> </http:request> <object-to-string-transformer doc:name="Object to String"/> <logger message="PROCESS = PUBLISH, STEP = MV_POST_RESULT, GUID = #[flowVars['guid']], PAYLOAD = #[payload:], RESPONSE_CODE = #[message.inboundProperties['http.status']], FLOW=#[flow.name] " level="INFO" doc:name="Logger"/> </processor-chain> </until-successful>

    MuleSoft JIRA | 1 year ago | sriharsha gubba
    java.util.concurrent.TimeoutException
  2. 0

    Hi We have a until successful synchronous with failure expression to catch only exceptions only when the external service is down and disable the retries when there is timeout exception.But the below code is still retring three time and errored out with below exception Message : Error sending HTTP request. Message payload is of type: byte[] Type : org.mule.api.MessagingException Code : MULE_ERROR--2 Payload : [B@3dbea396 JavaDoc : http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html ******************************************************************************** Exception stack is: 1. null (java.util.concurrent.TimeoutException) org.glassfish.grizzly.impl.SafeFutureImpl$Sync:357 (null) 2. Error sending HTTP request. Message payload is of type: byte[] (org.mule.api.MessagingException) org.mule.module.http.internal.request.DefaultHttpRequester:190 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html) ******************************************************************************** Root Exception stack trace: java.util.concurrent.TimeoutException at org.glassfish.grizzly.impl.SafeFutureImpl$Sync.innerGet(SafeFutureImpl.java:357) {code:xml} <until-successful synchronous="true" maxRetries="${farallon.untilsuccessful.mediaview.maxretries}" failureExpression="#[exception != null &amp;&amp; !exception.causedBy(java.util.concurrent.TimeoutException)]" millisBetweenRetries="${farallon.untilsuccessful.mediaview.millisecsbetweenretries}" doc:name="Until Successful"> <processor-chain doc:name="Processor Chain"> <set-payload value="#[flowVars['tempPayload']]" doc:name="Set Payload"/> <file:outbound-endpoint path="${farallon.path.logs-publish}" outputPattern="Post_Log-#[function:datestamp].xml" responseTimeout="10000" doc:name="File" /> <set-property propertyName="http.disable.status.code.exception.check" value="true" doc:name="Property"/> <http:request config-ref="MediaViewRequestConfig" path="${farallon.rsc.mediaview.video-post}" method="POST" doc:name="HTTP"> <http:request-builder> <http:header headerName="Content-type" value="text/xml" /> </http:request-builder> </http:request> <object-to-string-transformer doc:name="Object to String"/> <logger message="PROCESS = PUBLISH, STEP = MV_POST_RESULT, GUID = #[flowVars['guid']], PAYLOAD = #[payload:], RESPONSE_CODE = #[message.inboundProperties['http.status']], FLOW=#[flow.name] " level="INFO" doc:name="Logger"/> </processor-chain> </until-successful> {code}

    MuleSoft JIRA | 1 year ago | sriharsha gubba
    java.util.concurrent.TimeoutException

    Root Cause Analysis

    1. java.util.concurrent.TimeoutException

      No message provided

      at org.glassfish.grizzly.impl.SafeFutureImpl$Sync.innerGet()
    2. Grizzly
      SafeFutureImpl$Sync.innerGet
      1. org.glassfish.grizzly.impl.SafeFutureImpl$Sync.innerGet(SafeFutureImpl.java:357)
      1 frame