When running the getUnitedFlightsFlow the follow exception is thrown.
Failed to transform from "json" to "com.mulesoft.training.FlightArray". Message payload is of type: BufferInputStream (org.mule.api.transformer.TransformerMessagingException). Message payload is of type: BufferInputStream
I believe I have updated Flight.java correctly.
public class Flight implements java.io.Serializable, Comparable {
@JsonProperty("code")
String flightCode;
@JsonProperty("origin")
String origination;
@JsonProperty("emptyseats")
int availableSeats;
and properly updated the Return Class to: com.mulesoft.training.FlightArray
What could be the problem?
I am having similar problem, Did anyone of you found rootcause and solution for this problem?
I am using Tomcat and below is my exception :
HTTP Status 500 - Failed to process request, see root exception cause for details: Failed to transform from "json" to "myPackage.Request". Message payload is of type: CoyoteInputStream (org.mule.api.transformer.TransformerMessagingException). Message payload is of type: CoyoteInputStream