Mule
  1. Mule
  2. MULE-2925

No transformers for HttpServletRequest to InputStream (and others?)

    Details

    • User impact:
      Medium
    • Effort points:
      0.5
    • Similar Issues:
      MULE-4708ObjectToJMSMessage does not close the InputStream source
      MULE-3570Ensure all dispatcher attempt to use OutputHandler before trying to transform to other types e.g. InputStream
      MULE-6515Cannot get MessageContext or HttpServletRequest
      MULE-6144XQuery Transformer returns an instance of net.sf.saxon.dom.ElementOverNodeInfo instead of XML as String or InputStream
      MULE-4993Cannot get MessageContext or HttpServletRequest
      MULE-605Explicit transformers streaming support
      MULE-4214Document how default transformers, custom transformers, and auto-transformation relate and their use impact each other
      MULE-6969InputStream not closed on Scriptable
      MULE-3065Review all transformers for streaming compatibility
      MULE-2591InputStreams not closed after streaming response

      Description

      I'm getting this exception when using the MuleReceiverServlet with CXF. This works fine when the regular HTTP transport is being used:

      [01-22 13:56:55] WARN CxfServiceComponent [SocketListener0-1]: Could not dispatch message to XFire!
      org.mule.umo.transformer.TransformerException: Could not find a transformer to transform "org.mortbay.jetty.servlet.ServletHttpRequest" to "java.io.InputStream".
      at org.mule.impl.registry.AbstractRegistry.lookupTransformer(AbstractRegistry.java:276)
      at org.mule.impl.MuleMessage.getPayload(MuleMessage.java:162)
      at org.mule.impl.MuleMessage.getPayload(MuleMessage.java:120)
      at org.mule.impl.MuleEvent.transformMessage(MuleEvent.java:320)
      at org.mule.impl.MuleEventContext.transformMessage(MuleEventContext.java:112)
      at org.mule.providers.cxf.CxfServiceComponent.sendToDestination(CxfServiceComponent.java:193)
      at org.mule.providers.cxf.CxfServiceComponent.onCall(CxfServiceComponent.java:110)
      at org.mule.impl.model.resolvers.CallableEntryPointResolver.invoke(CallableEntryPointResolver.java:52)
      at org.mule.impl.model.resolvers.DefaultEntryPointResolverSet.invoke(DefaultEntryPointResolverSet.java:50)
      at org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:189)
      at org.mule.impl.model.DefaultMuleProxy.onCall(DefaultMuleProxy.java:193)
      at org.mule.impl.model.seda.SedaComponent.doSend(SedaComponent.java:242)
      at org.mule.impl.model.AbstractComponent.sendEvent(AbstractComponent.java:505)
      at org.mule.impl.MuleSession.sendEvent(MuleSession.java:343)
      at org.mule.routing.inbound.InboundRouterCollection.send(InboundRouterCollection.java:210)
      at org.mule.routing.inbound.InboundRouterCollection.route(InboundRouterCollection.java:177)
      at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:600)
      at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:344)
      at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:267)
      at org.mule.providers.http.servlet.MuleReceiverServlet.doGet(MuleReceiverServlet.java:115)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
      at org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
      at org.mortbay.http.HttpServer.service(HttpServer.java:909)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

      See WsdlCallTestCase.testRequestWsdlWithServlets for more info.

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          173d 16h 34m 1 Dan Diephouse 14/Jul/08 09:35 AM

            People

            • Assignee:
              Unassigned
              Reporter:
              Dan Diephouse
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development