synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SYNAPSE-876) Sample 158: Exposing a SOAP Service Over JSON; jsonclient Error!!!
Date Wed, 08 Aug 2012 18:57:21 GMT

     [ https://issues.apache.org/jira/browse/SYNAPSE-876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Veithen resolved SYNAPSE-876.
-------------------------------------

       Resolution: Invalid
    Fix Version/s:     (was: FUTURE)

The documentation of sample 158 clearly indicates that a prerequisite is to "Setup Synapse
and the sample Axis2 client for JSON (Refer Synapse Samples Setup Guide for details)" [sic].
The corresponding section in the sample setup guide details the necessary steps: (1) add axis2-json
to the libraries, (2) modify the axis2.xml used by Synapse and (3) modify the axis2.xml used
by the sample client.

If these manual steps are executed before running the client, everything works fine and the
client indeed sends and receives JSON. Note that your patch wouldn't event work because axis2-json
is not packaged with the binary distribution.
                
> Sample 158: Exposing a SOAP Service Over JSON; jsonclient Error!!!
> ------------------------------------------------------------------
>
>                 Key: SYNAPSE-876
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-876
>             Project: Synapse
>          Issue Type: Bug
>          Components: Deployment
>    Affects Versions: 2.1
>         Environment: linux 64 bit
>            Reporter: Dushan Sachinda Abeyruwan
>            Assignee: Andreas Veithen
>            Priority: Minor
>         Attachments: synapse_json_client.txt
>
>
>  [java] [2012-05-27 14:55:21,359] INFO - BuilderUtil OMException in getSOAPBuilder 
>     [java] org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException:
Unexpected character '{' (code 123) in prolog; expected '<' 
>     [java] at [row,col {unknown-source}]: [1,1] 
>     [java] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296)

>     [java] at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:204)

>     [java] at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:154)

>     [java] at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:140)

>     [java] at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:688)

>     [java] at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:197)

>     [java] at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145)

>     [java] at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:108)

>     [java] at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)

>     [java] at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)

>     [java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)

>     [java] at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)

>     [java] at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

>     [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)

>     [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)

>     [java] at samples.userguide.JSONClient.executeClient(Unknown Source) 
>     [java] at samples.userguide.JSONClient.main(Unknown Source) 
>     [java] Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
'{' (code 123) in prolog; expected '<' 
>     [java] at [row,col {unknown-source}]: [1,1] 
>     [java] org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException:
Unexpected character '{' (code 123) in prolog; expected '<' 
>     [java] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)

>     [java] at [row,col {unknown-source}]: [1,1] 
>     [java] at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047)
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430 
>     [java] at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) 
>     [java] 
>     [java] at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)

>     [java] at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681)

>     [java] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214)

>     [java] ... 16 more 
>     [java] at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:123)

>     [java] [2012-05-27 14:55:21,406] INFO - BuilderUtil Remaining input stream :[] 
>     [java] at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)

>     [java] at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)

>     [java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)

>     [java] at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)

>     [java] at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

>     [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)

>     [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)

>     [java] at samples.userguide.JSONClient.executeClient(Unknown Source) 
>     [java] at samples.userguide.JSONClient.main(Unknown Source) 
>     [java] Caused by: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException:
Unexpected character '{' (code 123) in prolog; expected 
> <' 
>     [java] at [row,col {unknown-source}]: [1,1] 
>     [java] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296)

>     [java] at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:204)

>     [java] at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:154)

>     [java] at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:140)

>     [java] at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:688)

>     [java] at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:197)

>     [java] at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145)

>     [java] at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:108)

>     [java] ... 9 more 
>     [java] Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
'{' (code 123) in prolog; expected '<' 
>     [java] at [row,col {unknown-source}]: [1,1] 
>     [java] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)

>     [java] at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047)

>     [java] at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) 
>     [java] at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)

>     [java] at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681)

>     [java] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214)

>     [java] ... 16 more 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message