org.mule.api.transformer.TransformerException: The object transformed is of type : "NullPayload", but the expected return type is "String"

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via MuleSoft JIRA by Daniel Zapata, 1 year ago
The object transformed is of type : "NullPayload", but the expected return type is "String"
via MuleSoft JIRA by Daniel Zapata, 1 year ago
The object transformed is of type : "NullPayload", but the expected return type is "String"
via Google Groups by Sandro Tosi, 3 months ago
The object transformed is of type: "String", but the expected return type is "InputBean"
via Google Groups by paven, 3 months ago
The object transformed is of type: "TTRequest", but the expected return type is "String"
via Google Groups by sige, 3 months ago
The object transformed is of type: "ExceptionMessage", but the expected return type is "String"
via Google Groups by blaise tuffet, 3 months ago
The object transformed is of type: "CheckContext", but the expected return type is "String"
org.mule.api.transformer.TransformerException: The object transformed is of type : "NullPayload", but the expected return type is "String"
at org.mule.transformer.AbstractTransformer.checkReturnClass(AbstractTransformer.java:87)
at org.mule.transformer.AbstractTransformer.transform(AbstractTransformer.java:267)
at org.mule.DefaultMuleMessage.applyAllTransformers(DefaultMuleMessage.java:639)
at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:600)
at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:593)
at org.mule.DefaultMuleEvent.transformMessage(DefaultMuleEvent.java:326)
at org.mule.DefaultMuleEvent.transformMessage(DefaultMuleEvent.java:321)
at org.mule.DefaultMuleEventContext.transformMessage(DefaultMuleEventContext.java:91)
at org.mule.model.resolvers.AbstractEntryPointResolver.getPayloadFromMessage(AbstractEntryPointResolver.java:122)
at org.mule.model.resolvers.ReflectionEntryPointResolver.invoke(ReflectionEntryPointResolver.java:118)
at org.mule.model.resolvers.DefaultEntryPointResolverSet.invoke(DefaultEntryPointResolverSet.java:50)
at org.mule.component.DefaultLifecycleAdapter.invoke(DefaultLifecycleAdapter.java:205)
at org.mule.component.AbstractJavaComponent.invokeComponentInstance(AbstractJavaComponent.java:83)
at org.mule.component.AbstractJavaComponent.doInvoke(AbstractJavaComponent.java:74)
at org.mule.component.AbstractComponent.invokeInternal(AbstractComponent.java:133)
at org.mule.component.AbstractComponent.invoke(AbstractComponent.java:161)
at org.mule.service.AbstractService.invokeComponent(AbstractService.java:929)
at org.mule.model.seda.SedaService.doSend(SedaService.java:260)
at org.mule.service.AbstractService.sendEvent(AbstractService.java:500)
at org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:354)
at org.mule.routing.inbound.DefaultInboundRouterCollection.send(DefaultInboundRouterCollection.java:228)
at org.mule.routing.inbound.DefaultInboundRouterCollection.route(DefaultInboundRouterCollection.java:188)
at org.mule.transport.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:359)
at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:252)
at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:175)
at org.mule.transport.servlet.MuleRESTReceiverServlet.doPost(MuleRESTReceiverServlet.java:103)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at java.lang.Thread.run(Thread.java:595)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.