java.lang.IllegalArgumentException: Invalid cookiesObject. Only class org.apache.commons.httpclient.Cookie[] and interface java.util.Map are supported: wwoanon=yiit4qvBzwEkAAAANDI3M2JhNTQtZDBjYy00ZDE4LTg0Y2QtZjgzYjI1Yjc3ZTlmpjG2e-ZlSuBgF5A3dmaQAMI5Noc1; expires=Wed, 27-Aug-2014 04:03:40 GMT; path=/; HttpOnly

MuleSoft JIRA | Jameson Triplett | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    I built a pretty basic Anypoint DevKit Connector. Upon testing it. The first time I run it I get an exception. The second time and subsequent times it works fine. First Run Exception: ERROR 2014-06-18 10:23:58,017 [[foo].connector.http.mule.default.receiver.02] org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : Failed to invoke getWeatherByZipCode. Message payload is of type: String Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. Invalid cookiesObject. Only class org.apache.commons.httpclient.Cookie[] and interface java.util.Map are supported: wwoanon=yiit4qvBzwEkAAAANDI3M2JhNTQtZDBjYy00ZDE4LTg0Y2QtZjgzYjI1Yjc3ZTlmpjG2e-ZlSuBgF5A3dmaQAMI5Noc1; expires=Wed, 27-Aug-2014 04:03:40 GMT; path=/; HttpOnly (java.lang.IllegalArgumentException) org.mule.transport.http.CookieStorageType:751 (null) 2. Couldn't transform http response to MuleMessage (java.lang.RuntimeException) org.mule.modules.worldweatheronline.adapters.WorldWeatherOnlineConnectorRestClientAdapter:49 (null) 3. Failed to invoke getWeatherByZipCode. Message payload is of type: String (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.IllegalArgumentException: Invalid cookiesObject. Only class org.apache.commons.httpclient.Cookie[] and interface java.util.Map are supported: wwoanon=yiit4qvBzwEkAAAANDI3M2JhNTQtZDBjYy00ZDE4LTg0Y2QtZjgzYjI1Yjc3ZTlmpjG2e-ZlSuBgF5A3dmaQAMI5Noc1; expires=Wed, 27-Aug-2014 04:03:40 GMT; path=/; HttpOnly at org.mule.transport.http.CookieStorageType.resolveCookieStorageType(CookieHelper.java:751) at org.mule.transport.http.CookieHelper.putAndMergeCookie(CookieHelper.java:391) at org.mule.transport.http.HttpMuleMessageFactory.putCookieHeaderInMapAsAClient(HttpMuleMessageFactory.java:268) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) Subsequent Tests work great.

    MuleSoft JIRA | 3 years ago | Jameson Triplett
    java.lang.IllegalArgumentException: Invalid cookiesObject. Only class org.apache.commons.httpclient.Cookie[] and interface java.util.Map are supported: wwoanon=yiit4qvBzwEkAAAANDI3M2JhNTQtZDBjYy00ZDE4LTg0Y2QtZjgzYjI1Yjc3ZTlmpjG2e-ZlSuBgF5A3dmaQAMI5Noc1; expires=Wed, 27-Aug-2014 04:03:40 GMT; path=/; HttpOnly
  2. 0

    I built a pretty basic Anypoint DevKit Connector. Upon testing it. The first time I run it I get an exception. The second time and subsequent times it works fine. First Run Exception: ERROR 2014-06-18 10:23:58,017 [[foo].connector.http.mule.default.receiver.02] org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : Failed to invoke getWeatherByZipCode. Message payload is of type: String Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. Invalid cookiesObject. Only class org.apache.commons.httpclient.Cookie[] and interface java.util.Map are supported: wwoanon=yiit4qvBzwEkAAAANDI3M2JhNTQtZDBjYy00ZDE4LTg0Y2QtZjgzYjI1Yjc3ZTlmpjG2e-ZlSuBgF5A3dmaQAMI5Noc1; expires=Wed, 27-Aug-2014 04:03:40 GMT; path=/; HttpOnly (java.lang.IllegalArgumentException) org.mule.transport.http.CookieStorageType:751 (null) 2. Couldn't transform http response to MuleMessage (java.lang.RuntimeException) org.mule.modules.worldweatheronline.adapters.WorldWeatherOnlineConnectorRestClientAdapter:49 (null) 3. Failed to invoke getWeatherByZipCode. Message payload is of type: String (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.IllegalArgumentException: Invalid cookiesObject. Only class org.apache.commons.httpclient.Cookie[] and interface java.util.Map are supported: wwoanon=yiit4qvBzwEkAAAANDI3M2JhNTQtZDBjYy00ZDE4LTg0Y2QtZjgzYjI1Yjc3ZTlmpjG2e-ZlSuBgF5A3dmaQAMI5Noc1; expires=Wed, 27-Aug-2014 04:03:40 GMT; path=/; HttpOnly at org.mule.transport.http.CookieStorageType.resolveCookieStorageType(CookieHelper.java:751) at org.mule.transport.http.CookieHelper.putAndMergeCookie(CookieHelper.java:391) at org.mule.transport.http.HttpMuleMessageFactory.putCookieHeaderInMapAsAClient(HttpMuleMessageFactory.java:268) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) Subsequent Tests work great.

    MuleSoft JIRA | 3 years ago | Jameson Triplett
    java.lang.IllegalArgumentException: Invalid cookiesObject. Only class org.apache.commons.httpclient.Cookie[] and interface java.util.Map are supported: wwoanon=yiit4qvBzwEkAAAANDI3M2JhNTQtZDBjYy00ZDE4LTg0Y2QtZjgzYjI1Yjc3ZTlmpjG2e-ZlSuBgF5A3dmaQAMI5Noc1; expires=Wed, 27-Aug-2014 04:03:40 GMT; path=/; HttpOnly

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Invalid cookiesObject. Only class org.apache.commons.httpclient.Cookie[] and interface java.util.Map are supported: wwoanon=yiit4qvBzwEkAAAANDI3M2JhNTQtZDBjYy00ZDE4LTg0Y2QtZjgzYjI1Yjc3ZTlmpjG2e-ZlSuBgF5A3dmaQAMI5Noc1; expires=Wed, 27-Aug-2014 04:03:40 GMT; path=/; HttpOnly

      at org.mule.transport.http.CookieStorageType.resolveCookieStorageType()
    2. HTTP Transport
      HttpMuleMessageFactory.putCookieHeaderInMapAsAClient
      1. org.mule.transport.http.CookieStorageType.resolveCookieStorageType(CookieHelper.java:751)
      2. org.mule.transport.http.CookieHelper.putAndMergeCookie(CookieHelper.java:391)
      3. org.mule.transport.http.HttpMuleMessageFactory.putCookieHeaderInMapAsAClient(HttpMuleMessageFactory.java:268)
      3 frames