org.mule.umo.MessagingException: Failed to create Message Adapter. Message payload is of type: [Ljava.lang.Object;

MuleSoft JIRA | Pedro Miguel Luis | 1 decade ago
  1. 0

    While integrating wss4j in Mule I came up with an exception when a web service client invoked a web service with the following ws-security actions <parameter name="action" value="Signature Encrypt"/>. This is the exception thrown by mule server: soap"/></umoMessage></faultData><ns9:stackTrace xmlns:ns1="http://umo.mule.org" xmlns:ns9="http://xml.apache.org/axis/">org.mule.umo.MessagingException: Failed to create Message Adapter. Message payload is of type: [Ljava.lang.Object; at org.mule.providers.AbstractServiceEnabledConnector.getMessageAdapter( AbstractServiceEnabledConnector.java:157) at org.mule.providers.soap.ServiceProxy$AxisServiceHandler.invoke(Servic eProxy.java:146) at $Proxy22.getEntidadeRelevanteSS(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) To solve this I removed the following code from the AxisMessageAdapter: MuleSoapHeaders header = new MuleSoapHeaders(ctx.getMessage().getSOAPPart().getEnvelope().getHeader()); if (header.getReplyTo() != null && !"".equals(header.getReplyTo())) { setReplyTo(header.getReplyTo()); } if (header.getCorrelationGroup() != null && !"".equals(header.getCorrelationGroup()) && !"-1".equals(header.getCorrelationGroup())) { setCorrelationGroupSize(Integer.parseInt(header.getCorrelationGroup())); } if (header.getCorrelationSequence() != null && !"".equals(header.getCorrelationSequence()) && !"-1".equals(header.getCorrelationSequence())) { setCorrelationSequence(Integer.parseInt(header.getCorrelationSequence())); } if (header.getCorrelationId() != null && !"".equals(header.getCorrelationId())) { setCorrelationId(header.getCorrelationId()); } All web service invocations work without this code whether utilizing ws-security or not. It seems there was a problem when the adapter encountered security tags in the header. I´m attaching my client and server wsdd and a umo xml file. Pedro Luis

    MuleSoft JIRA | 1 decade ago | Pedro Miguel Luis
    org.mule.umo.MessagingException: Failed to create Message Adapter. Message payload is of type: [Ljava.lang.Object;
  2. 0

    While integrating wss4j in Mule I came up with an exception when a web service client invoked a web service with the following ws-security actions <parameter name="action" value="Signature Encrypt"/>. This is the exception thrown by mule server: soap"/></umoMessage></faultData><ns9:stackTrace xmlns:ns1="http://umo.mule.org" xmlns:ns9="http://xml.apache.org/axis/">org.mule.umo.MessagingException: Failed to create Message Adapter. Message payload is of type: [Ljava.lang.Object; at org.mule.providers.AbstractServiceEnabledConnector.getMessageAdapter( AbstractServiceEnabledConnector.java:157) at org.mule.providers.soap.ServiceProxy$AxisServiceHandler.invoke(Servic eProxy.java:146) at $Proxy22.getEntidadeRelevanteSS(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) To solve this I removed the following code from the AxisMessageAdapter: MuleSoapHeaders header = new MuleSoapHeaders(ctx.getMessage().getSOAPPart().getEnvelope().getHeader()); if (header.getReplyTo() != null && !"".equals(header.getReplyTo())) { setReplyTo(header.getReplyTo()); } if (header.getCorrelationGroup() != null && !"".equals(header.getCorrelationGroup()) && !"-1".equals(header.getCorrelationGroup())) { setCorrelationGroupSize(Integer.parseInt(header.getCorrelationGroup())); } if (header.getCorrelationSequence() != null && !"".equals(header.getCorrelationSequence()) && !"-1".equals(header.getCorrelationSequence())) { setCorrelationSequence(Integer.parseInt(header.getCorrelationSequence())); } if (header.getCorrelationId() != null && !"".equals(header.getCorrelationId())) { setCorrelationId(header.getCorrelationId()); } All web service invocations work without this code whether utilizing ws-security or not. It seems there was a problem when the adapter encountered security tags in the header. I´m attaching my client and server wsdd and a umo xml file. Pedro Luis

    MuleSoft JIRA | 1 decade ago | Pedro Miguel Luis
    org.mule.umo.MessagingException: Failed to create Message Adapter. Message payload is of type: [Ljava.lang.Object;

    Root Cause Analysis

    1. org.mule.umo.MessagingException

      Failed to create Message Adapter. Message payload is of type: [Ljava.lang.Object;

      at org.mule.providers.AbstractServiceEnabledConnector.getMessageAdapter()
    2. org.mule.providers
      ServiceProxy$AxisServiceHandler.invoke
      1. org.mule.providers.AbstractServiceEnabledConnector.getMessageAdapter(AbstractServiceEnabledConnector.java:157)
      2. org.mule.providers.soap.ServiceProxy$AxisServiceHandler.invoke(ServiceProxy.java:146)
      2 frames
    3. Unknown
      $Proxy22.getEntidadeRelevanteSS
      1. $Proxy22.getEntidadeRelevanteSS(Unknown Source)
      1 frame
    4. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames