Uploaded image for project: 'ZZZ-WSO2 ESB'
  1. ZZZ-WSO2 ESB
  2. ESBJAVA-1766

Sample 440 (Exposing a SOAP Service Over JSON) fails in ESB 4.6.0 - Multiple issues

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 4.6.0
    • Fix Version/s: 4.6.0
    • Component/s: Samples
    • Labels:
      None
    • Environment:

      ESB 4.6.0 - 15th Jan 2013 pack

    • Severity:
      Critical
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Not-applicable

      Description

      1. Wrong port in proxy configuration.

      Given as : address uri="http://localhost:9001/services/SimpleStockQuoteService" . Port should be 9000.

      2. When you correct the port and run the sample following error is thrown and sample fails.

      [2013-01-17 19:27:42,498] INFO - LogMediator To: http://localhost:8280/services/JSONProxy, WSAction: urn:getQuote, SOAPAction: urn:getQuote, ReplyTo: http://www.w3.org/2005/08/addressing/anonymous, MessageID: urn:uuid:31558ddd-2bcd-40f2-be6b-758ef59e820a, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:To>http://localhost:8280/services/JSONProxy</wsa:To><wsa:MessageID>urn:uuid:31558ddd-2bcd-40f2-be6b-758ef59e820a</wsa:MessageID><wsa:Action>urn:getQuote</wsa:Action></soapenv:Header><soapenv:Body><getQuote><request><symbol>IBM</symbol></request></getQuote></soapenv:Body></soapenv:Envelope>
      [2013-01-17 19:27:42,532] INFO - LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , ReplyTo: http://www.w3.org/2005/08/addressing/anonymous, MessageID: urn:uuid:a7497e01-20f9-41e4-aa6c-fb4699845660, Direction: response, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:getQuoteResponse xmlns:ns="http://services.samples"><ns:return xmlns:ax21="http://services.samples/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax21:GetQuoteResponse"><ax21:change>-2.9243840008629083</ax21:change><ax21:earnings>12.203550239520009</ax21:earnings><ax21:high>-62.43679903572975</ax21:high><ax21:last>63.83509019783252</ax21:last><ax21:lastTradeTimestamp>Thu Jan 17 19:27:42 IST 2013</ax21:lastTradeTimestamp><ax21:low>65.4408850873725</ax21:low><ax21:marketCap>1.2425161620743174E7</ax21:marketCap><ax21:name>IBM Company</ax21:name><ax21:open>-63.776191208213696</ax21:open><ax21:peRatio>-17.947903760127094</ax21:peRatio><ax21:percentageChange>-4.190392711245017</ax21:percentageChange><ax21:prevClose>69.78782664009641</ax21:prevClose><ax21:symbol>IBM</ax21:symbol><ax21:volume>6716</ax21:volume></ns:return></ns:getQuoteResponse></soapenv:Body></soapenv:Envelope>
      [2013-01-17 19:27:42,533] WARN - SynapseConfigUtils Cannot convert null to a StreamSource
      [2013-01-17 19:27:42,533] ERROR - XSLTMediator Error creating XSLT transformer using : Value

      {name ='null', keyValue ='out_transform'}
      org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
      at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:576)
      at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:77)
      at org.apache.synapse.mediators.transform.XSLTMediator.createTemplate(XSLTMediator.java:379)
      at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:232)
      at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:191)
      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71)
      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:230)
      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:443)
      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:166)
      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
      at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:217)
      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)
      [2013-01-17 19:27:42,535] ERROR - XSLTMediator Unable to perform XSLT transformation using : Value {name ='null', keyValue ='out_transform'}

      against source XPath : s11:Body/child::[position()=1] | s12:Body/child::[position()=1]
      org.apache.synapse.SynapseException: Error creating XSLT transformer using : Value

      {name ='null', keyValue ='out_transform'}
      at org.apache.synapse.mediators.AbstractMediator.handleException(AbstractMediator.java:293)
      at org.apache.synapse.mediators.transform.XSLTMediator.createTemplate(XSLTMediator.java:389)
      at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:232)
      at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:191)
      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71)
      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:230)
      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:443)
      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:166)
      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
      at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:217)
      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: org.apache.synapse.SynapseException: Cannot convert null to a StreamSource
      at org.apache.synapse.config.SynapseConfigUtils.handleException(SynapseConfigUtils.java:576)
      at org.apache.synapse.config.SynapseConfigUtils.getStreamSource(SynapseConfigUtils.java:77)
      at org.apache.synapse.mediators.transform.XSLTMediator.createTemplate(XSLTMediator.java:379)
      ... 13 more
      [2013-01-17 19:27:42,538] INFO - LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , ReplyTo: http://www.w3.org/2005/08/addressing/anonymous, MessageID: urn:uuid:a7497e01-20f9-41e4-aa6c-fb4699845660, Direction: response, MESSAGE = Executing default "fault" sequence, ERROR_CODE = 0, ERROR_MESSAGE = Unable to perform XSLT transformation using : Value {name ='null', keyValue ='out_transform'}

      against source XPath : s11:Body/child::[position()=1] | s12:Body/child::[position()=1], Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:getQuoteResponse xmlns:ns="http://services.samples"><ns:return xmlns:ax21="http://services.samples/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax21:GetQuoteResponse"><ax21:change>-2.9243840008629083</ax21:change><ax21:earnings>12.203550239520009</ax21:earnings><ax21:high>-62.43679903572975</ax21:high><ax21:last>63.83509019783252</ax21:last><ax21:lastTradeTimestamp>Thu Jan 17 19:27:42 IST 2013</ax21:lastTradeTimestamp><ax21:low>65.4408850873725</ax21:low><ax21:marketCap>1.2425161620743174E7</ax21:marketCap><ax21:name>IBM Company</ax21:name><ax21:open>-63.776191208213696</ax21:open><ax21:peRatio>-17.947903760127094</ax21:peRatio><ax21:percentageChange>-4.190392711245017</ax21:percentageChange><ax21:prevClose>69.78782664009641</ax21:prevClose><ax21:symbol>IBM</ax21:symbol><ax21:volume>6716</ax21:volume></ns:return></ns:getQuoteResponse></soapenv:Body></soapenv:Envelope>

        Attachments

          Activity

            People

            • Assignee:
              dushan@wso2.com dushan abeyruwan
              Reporter:
              sandapa@wso2.com Sandapa Handakumbura
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: