You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Jasper Spoel (JIRA)" <ji...@apache.org> on 2008/06/18 18:12:45 UTC

[jira] Created: (SYNAPSE-365) REST support not working in synapse 1.2

REST support not working in synapse 1.2
---------------------------------------

                 Key: SYNAPSE-365
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
             Project: Synapse
          Issue Type: Bug
          Components: Endpoints, Proxy Services, Transports
            Reporter: Jasper Spoel


When submitting a GET request to a synapse proxy service that points to a REST webservice
AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)

configuration is as follows:

<definitions xmlns="http://ws.apache.org/ns/synapse">
  <proxy name="Forwarder">
      <target>
          <endpoint>
              <address uri="http://localhost:11111/MyService/echo" format="get"/>
          </endpoint>
          <outSequence>
              <send/>
          </outSequence>
      </target>
  </proxy>
</definitions>

If the message is send with the 'correct' content-type like for example so: 
curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
Synapse gives me the following output:

2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Assigned: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruwan Linton reassigned SYNAPSE-365:
------------------------------------

    Assignee: Ruwan Linton

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Ruwan Linton
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Assigned: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asankha C. Perera reassigned SYNAPSE-365:
-----------------------------------------

    Assignee: Asankha C. Perera  (was: Ruwan Linton)

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Asankha C. Perera
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Jasper Spoel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12611124#action_12611124 ] 

Jasper Spoel commented on SYNAPSE-365:
--------------------------------------

Hi Asankha,

The samples all seem to work nicely. And that's probably my problem. Everything runs fine with the axis2 server on port 9000, but i don't use that.
I have a normal RESTful service running on the server machine, this service outputs in plain xml. This service is easily accessible through a webbrowser
or curl like applications. 
As soon as i try to use synapse as a proxy in the fashion of the above comments, synapse crashes.

Any ideas?

Thanks in advance,
Jasper

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Asankha C. Perera
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "keitha (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615083#action_12615083 ] 

keitha commented on SYNAPSE-365:
--------------------------------

I included two response files inline in my original comment:
1. The response when accessing the xml through a browser get request (not proxied by esb):
<docroot>
  <parent>parent 1
    <child>child 1</child>
    <child>child 2</child>
  </parent>
  <parent>parent 2
    <child>child 3</child>
  </parent>
</docroot> 

2. The response when trying to access through a browser get request when proxied by esb:
<Exception>Unexpected response received : com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers&#xd; at [row,col {unknown-source}]: [1,55]</Exception> 

Hope this helps
Keith

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Asankha C. Perera
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Assigned: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruwan Linton reassigned SYNAPSE-365:
------------------------------------

    Assignee: Ruwan Linton  (was: Asankha C. Perera)

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Ruwan Linton
>             Fix For: 1.3
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606009#action_12606009 ] 

Ruwan Linton commented on SYNAPSE-365:
--------------------------------------

I think this is a regression which has been introduced with the RESTUtils class of axis2. We can get this fixed by hacking transport code as well. But I think the proper way is to fix this at the RESTUtils level because, I think axis2 also should suffer from the same issue right now. We are anyway moving to the axis2 SNAPSHOT with the patch to the Loadbalancing SYNAPSE-360, so there wont be an issue in getting this fix to Synapse.

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruwan Linton resolved SYNAPSE-365.
----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: NIGHTLY)
                   1.3

This is fixed on the trunk and will be available for the 1.3 release..

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Ruwan Linton
>             Fix For: 1.3
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12611128#action_12611128 ] 

Asankha C. Perera commented on SYNAPSE-365:
-------------------------------------------

Jasper

Whats the backend system you are using? It maybe the case that its 
sending an empty body or a "\r\n" etc with the message.. if its a 
different machine altogether, can you try to get a network level TCP 
dump of the communication and post it?

asankha


-- 
Asankha C. Perera

WSO2 - http://wso2.org
http://esbmagic.blogspot.com



> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Asankha C. Perera
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruwan Linton resolved SYNAPSE-365.
----------------------------------

       Resolution: Fixed
    Fix Version/s: NIGHTLY

Fixed on the SVN trunk

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Ruwan Linton
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Saliya Ekanayake (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618961#action_12618961 ] 

Saliya Ekanayake commented on SYNAPSE-365:
------------------------------------------

Hi Keith,

This issue is now fixed and the fix should be available in the trunk soon. See http://issues.apache.org/jira/browse/SYNAPSE-412

Thanks,
Saliya

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Asankha C. Perera
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12609524#action_12609524 ] 

Asankha C. Perera commented on SYNAPSE-365:
-------------------------------------------

Jasper

Thanks for bringing this to our notice. This seems like a bug in the NIO listener, where there is no body for a GET request.. I will try this out and get to the bottom of this.

asankha

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Asankha C. Perera
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Jasper Spoel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610927#action_12610927 ] 

Jasper Spoel commented on SYNAPSE-365:
--------------------------------------

Hi,

i was wondering if there was any progress on this issue, since synapse still crashes hard when trying to handle this type of request. And imho this
kind of request is the most basic request you can get. I'm kinda trying to persuade my boss to understand that synapse is the way to go for an ESB. 
If this is an issue that cannot be 'easily' solved, i am very wiling to look at the specific code causing this problem. 
Do you by any chance have some pointers for me on what source tree to check out (i got the idea the solution does not lie in the synapse trunk) and
what classes should be of special interest for this issue. 

Thanx in advance,
Jasper

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Asankha C. Perera
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Jasper Spoel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12609513#action_12609513 ] 

Jasper Spoel commented on SYNAPSE-365:
--------------------------------------

Hi Ruwan,

I've tested this issue again with the latest snapshot and still get the same results, even with the pointers you gave in the last comment.
Here's an overview of what happens:

synapse config:
<definitions xmlns="http://ws.apache.org/ns/synapse">
  <proxy name="Forwarder">
      <target>
          <endpoint>
              <address uri="http://10.0.0.12:8081/workflow" format="get"/>
          </endpoint>
          <outSequence>
              <send/>
          </outSequence>
      </target>
  </proxy>
</definitions>

the call to service: http://10.0.0.12:8081/workflow/servers
should return: 
<servers><server>name</server></servers>

TCPMon set up to work as a proxy on port 5555  (for the input trace)

curl call: 
curl -G -H "Content-Type: text/xml" -x 127.0.0.1:5555 http://localhost:8280/soap/Forwarder/servers

synapse does not answer this call, so there's no trace for that data. Synapse crashes while repeating the nullpointer exception like so:

2008-07-01 11:53:22,794 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout
2008-07-01 11:53:22,855 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] ERROR ClientHandler Received bad request: Bad Request

================================== 
the follow part is then repeated until a ctrl-c is done on synapse
==================================

2008-07-01 11:53:22,858 [10.0.0.12-equilibrium.local] [I/O dispatcher 3]  WARN HttpCoreNIOSender System may be unstable: IOReactor encountered a runtime exception : null
java.lang.NullPointerException
	at org.apache.synapse.transport.nhttp.ClientHandler.inputReady(ClientHandler.java:321)
	at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:135)
	at org.apache.http.impl.nio.DefaultClientIOEventDispatch.inputReady(DefaultClientIOEventDispatch.java:99)
	at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:98)
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:195)
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:180)
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:142)
	at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:70)
	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:318)
	at java.lang.Thread.run(Thread.java:613)


TCPMon shows this input:
GET http://localhost:8280/soap/Forwarder/servers HTTP/1.1
User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
Host: localhost:8280
Pragma: no-cache
Accept: */*
Proxy-Connection: Keep-Alive
Content-Type: text/xml


To me this all seems pretty straightforward and correct (data / input wise).
Hope you see something wrong here....

Greetz,
Jasper

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Ruwan Linton
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607311#action_12607311 ] 

Ruwan Linton commented on SYNAPSE-365:
--------------------------------------

This was due to the fact that the GET request processing method is deprecated in the axis2 1.4 version and the alternate method introduced by Axis2 does not fit to our use case because Synapse should get any request without looking for the operation to be present or not. 

There fore I have added this code into the RESTUtil and now the REST support is fixed and the above configuration should work on the synapse SNAPSHOT

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Ruwan Linton
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607430#action_12607430 ] 

Ruwan Linton commented on SYNAPSE-365:
--------------------------------------

I am sorry, I was unable to reproduce this issue. Please note that you need to change the invocation URL as follows;

curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/echo to invoke the echo operation of the MyService service and the configuration should be as;

<definitions xmlns="http://ws.apache.org/ns/synapse">
  <proxy name="Forwarder">
      <target>
          <endpoint>
              <address uri="http://localhost:11111/MyService" format="get"/>
          </endpoint>
          <outSequence>
              <send/>
          </outSequence>
      </target>
  </proxy>
</definitions>

Please note that you need to drop the operation part from the address uri, which will be dynamically added as per the request.

If all these are not working can you please send the TCPMon trace of the in and out messages from both client and synapse.

Thanks,
Ruwan  

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Ruwan Linton
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Reopened: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Jasper Spoel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jasper Spoel reopened SYNAPSE-365:
----------------------------------


Hi, i saw the change coming by and built the snapshot.
However, with exactly the same configuration as in the original problem, i now encounter a way more severe issue.
Synapse simply is locked up in an endless loop of null pointer exceptions.
Following is a piece of Debug output in the logs:

2008-06-24 00:36:50,215 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:52423]: Connected
2008-06-24 00:36:50,234 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:52423]: GET /soap/Forwarder/mediate HTTP/1.1
2008-06-24 00:36:50,271 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
2008-06-24 00:36:50,271 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
2008-06-24 00:36:50,272 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
2008-06-24 00:36:50,272 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
2008-06-24 00:36:50,272 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:text/xml
2008-06-24 00:36:50,317 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ProxyServiceMessageReceiver Proxy Service Forwarder received a new message from : 0:0:0:0:0:0:0:1%0
2008-06-24 00:36:50,318 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ProxyServiceMessageReceiver Message To: /soap/Forwarder/mediate
2008-06-24 00:36:50,318 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ProxyServiceMessageReceiver SOAPAction: null
2008-06-24 00:36:50,318 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ProxyServiceMessageReceiver WSA-Action: null
2008-06-24 00:36:50,326 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ProxyServiceMessageReceiver Forwarding the message to the anonymous endpoint of the proxy service
2008-06-24 00:36:50,326 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG AddressEndpoint Start : Address Endpoint
2008-06-24 00:36:50,327 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG AddressEndpoint Sending message to endpoint : AnonymousEndpoint resolves to address = http://10.0.0.12:11111/MyService/echo
2008-06-24 00:36:50,327 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG AddressEndpoint SOAPAction: null
2008-06-24 00:36:50,328 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG AddressEndpoint WSA-Action: null
2008-06-24 00:36:50,334 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2FlexibleMEPClient Sending [add = false] [sec = false] [rm = false] [mtom = false] [swa = false] [format = get] [force soap11=false] [force soap12=false] [pox=false] [get=true] [encoding=null] [to Address: /soap/Forwarder/mediate]
2008-06-24 00:36:50,362 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout
2008-06-24 00:36:50,372 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseCallbackReceiver Callback added. Total callbacks waiting for : 1
2008-06-24 00:36:50,393 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ConnectionPool No connections available for reuse
2008-06-24 00:36:50,395 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG HttpCoreNIOSender A new connection established to : 10.0.0.12:8081
2008-06-24 00:36:50,396 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2HttpRequest start streaming outgoing http request
2008-06-24 00:36:50,407 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG ClientHandler HTTP connection [/10.0.0.12:11111]: Connected (org.apache.synapse.transport.nhttp.Axis2HttpRequest@b278f1)
2008-06-24 00:36:50,407 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG ClientHandler ClientHandler connected : [/10.0.0.12:11111]
2008-06-24 00:36:50,417 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG headers >> GET /MyService/echo/mediate HTTP/1.1
2008-06-24 00:36:50,417 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG headers >> Host: localhost:8280
2008-06-24 00:36:50,418 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG headers >> Accept: */*
2008-06-24 00:36:50,418 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG headers >> Content-Type: application/x-www-form-urlencoded; charset=UTF-8
2008-06-24 00:36:50,419 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG headers >> Connection: Keep-Alive
2008-06-24 00:36:50,419 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG headers >> User-Agent: Synapse-HttpComponents-NIO
2008-06-24 00:36:50,422 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG ClientHandler HTTP connection [/10.0.0.12:11111]: Request ready
2008-06-24 00:36:50,429 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG ClientHandler HTTP connection [/10.0.0.12:11111]: HTTP/1.1 400 Bad Request
2008-06-24 00:36:50,429 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] ERROR ClientHandler Received bad request: Bad Request
2008-06-24 00:36:50,430 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG headers << HTTP/1.1 400 Bad Request
2008-06-24 00:36:50,430 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG headers << Content-Type: text/html; charset=us-ascii
2008-06-24 00:36:50,430 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG headers << Server: Mono-HTTPAPI/1.0
2008-06-24 00:36:50,431 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG headers << Date: Mon, 23 Jun 2008 22:36:50 GMT
2008-06-24 00:36:50,431 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG headers << Content-Length: 35
2008-06-24 00:36:50,431 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG headers << Connection: close

[The part following after this is the part that keeps repeating]

2008-06-24 00:36:50,432 [10.0.0.12-equilibrium.local] [I/O dispatcher 3] DEBUG ClientHandler HTTP connection [/10.0.0.12:11111]: Input ready
2008-06-24 00:36:50,434 [10.0.0.12-equilibrium.local] [I/O dispatcher 3]  WARN HttpCoreNIOSender System may be unstable: IOReactor encountered a runtime exception : null
java.lang.NullPointerException
	at org.apache.synapse.transport.nhttp.ClientHandler.inputReady(ClientHandler.java:321)
	at org.apache.synapse.transport.nhttp.LoggingNHttpClientHandler.inputReady(LoggingNHttpClientHandler.java:124)
	at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:135)
	at org.apache.synapse.transport.nhttp.LoggingNHttpClientIOTarget.consumeInput(LoggingNHttpClientIOTarget.java:155)
	at org.apache.http.impl.nio.DefaultClientIOEventDispatch.inputReady(DefaultClientIOEventDispatch.java:99)
	at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:98)
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:195)
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:180)
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:142)
	at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:70)
	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:318)
	at java.lang.Thread.run(Thread.java:613)

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Ruwan Linton
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614644#action_12614644 ] 

Asankha C. Perera commented on SYNAPSE-365:
-------------------------------------------

Keith,  Can you attach your XML response file?

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Asankha C. Perera
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12611110#action_12611110 ] 

Asankha C. Perera commented on SYNAPSE-365:
-------------------------------------------

Hi Jasper

I got the latest Synapse build today (r 674403) and did the following:

1) Edit synapse-1.3-SNAPSHOT/samples/axis2Server/src/SimpleStockQuoteService/build.xml
2) Comment the following line as shown below
<!--copy file="wsdl/SimpleStockQuoteService.wsdl" tofile="${SSQ.dir}/META-INF/service.wsdl"/-->
3) Build the sample service, and deploy
4) Try to access this service from Firefox as follows:
http://localhost:9000/services/SimpleStockQuoteService/getSimpleQuote?symbol=IBM
5) Access from curl as follows:

You should get successful responses for both FF and curl

6) Now deploy the following synapse.xml and start Synapse
<definitions xmlns="http://ws.apache.org/ns/synapse">
  <proxy name="Forwarder">
      <target>
          <endpoint>
              <address uri="http://localhost:9000/services/SimpleStockQuoteService" format="get"/>
          </endpoint>
          <outSequence>
              <send/>
          </outSequence>
      </target>
  </proxy>
</definitions>

7) Access from browser
http://localhost:8280/services/Forwarder/SimpleStockQuoteService/getSimpleQuote?symbol=IBM

8) Access from curl
asankha@asankha:~/java/synapse-1.3-SNAPSHOT/bin$ curl -G -H "Content-Type: text/xml" http://localhost:8280/services/Forwarder/SimpleStockQuoteService/getSimpleQuote?symbol=IBM
<ns:getSimpleQuoteResponse xmlns:ns="http://services.samples"><ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ax21="http://services.samples/xsd" xsi:type="ax21:GetQuoteResponse"><ax21:change>-2.635855611254778</ax21:change><ax21:earnings>-9.211125187115655</ax21:earnings><ax21:high>70.98113922972296</ax21:high><ax21:last>67.67509318952094</ax21:last><ax21:lastTradeTimestamp>Mon Jul 07 16:55:56 IST 2008</ax21:lastTradeTimestamp><ax21:low>70.58750010990072</ax21:low><ax21:marketCap>5.301255985996598E7</ax21:marketCap><ax21:name>IBM Company</ax21:name><ax21:open>-66.1434053235991</ax21:open><ax21:peRatio>-19.06391318879267</ax21:peRatio><ax21:percentageChange>3.9306430170962074</ax21:percentageChange><ax21:prevClose>-67.05914527954351</ax21:prevClose><ax21:symbol>IBM</ax21:symbol><ax21:volume>18504</ax21:volume></ns:return></ns:getSimpleQuoteResponse>

Can you let me know if you encounter any problems running this now?

asankha

> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Asankha C. Perera
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SYNAPSE-365) REST support not working in synapse 1.2

Posted by "keitha (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614594#action_12614594 ] 

keitha commented on SYNAPSE-365:
--------------------------------

If I may add a comment on this issue has I have a very simple test case that does not work and is easy to reproduce.

The background to this is I wish to proxy and transform some xml that is accessed in normal RESTful manner (GET). However the actual server is not available to me all the time for development, so I thought to use some static xml pages in place of the actual server.

The environment I am working in is XP Pro - everything is on the local machine.

In place of the actual server application I deployed an xml file to IIS 5.1. This can easily be viewed in a web browser at the address http://localhost/fdc-xml/test.xml

Here is the response headers for my GET request from firebug:

Response Headers
Server	Microsoft-IIS/5.1
X-Powered-By	ASP.NET
Date	Fri, 18 Jul 2008 00:35:40 GMT
Content-Type	text/xml
Accept-Ranges	bytes
Last-Modified	Thu, 17 Jul 2008 11:25:17 GMT
Etag	"25f6dcaffe7c81:f6b"
Content-Length	173


And here is the actual response (again from firebug. I use a very simple example here):

<docroot>
  <parent>parent 1
    <child>child 1</child>
    <child>child 2</child>
  </parent>
  <parent>parent 2
    <child>child 3</child>
  </parent>
</docroot>

So, if I am correct although it is a trivial example of a static xml file, this is also a perfectly valid RESTful web service.

Now I set up a proxy in Synapse:

<?xml version="1.0" encoding="UTF-8"?>
<syn:definitions xmlns:syn="http://ws.apache.org/ns/synapse">
    <syn:registry provider="org.wso2.esb.registry.WSO2Registry"/>
    <syn:proxy name="xmltest" startOnLoad="true" statistics="enable" trace="enable">
        <syn:target>
            <syn:endpoint>
                <syn:address uri="http://localhost/fdc-xml/test.xml" format="get"/>
            </syn:endpoint>
            <syn:outSequence>
                <syn:send/>
            </syn:outSequence>
        </syn:target>
    </syn:proxy>
    <syn:sequence name="fault"/>
    <syn:sequence name="main"/>
</syn:definitions>

I then try and access the proxied service from the following address:

http://localhost:8280/soap/xmltest/mediate (I hope this bit is correct, could not find good documentation).

I have run this test for both 1.7 and ESB-NIGHTLY-82 and neither works, although the results are different:

In the 1.7 release the error is an http 500 in the browser. In the log:

    ERROR [18 Jul 2008 00:38:56] ServerWorker - Error processing GET request for: /soap/xmltest/mediate

In ESB-NIGHTLY-82 there is an http 404 in the browser. In the log:

    WARN [18 Jul 2008 00:46:20] ClientHandler - Unexpected HTTP status code received : 404 :: Object Not Found  

    WARN [18 Jul 2008 00:46:20] ClientHandler - Received an unexpected response - of content type : text/html and status code : 404 with reason : Object Not Found  

    WARN [18 Jul 2008 00:46:20] ClientWorker - Unexpected response received : com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers at [row,col {unknown-source}]: [1,55]  


For the nightly build here is the response header from firebug:
Content-Type	application/xml; charset=UTF-8
Date	Fri, 18 Jul 2008 00:53:27 GMT
Server	Synapse-HttpComponents-NIO
Transfer-Encoding	chunked
Connection	keep-alive

And here is the response:
<Exception>Unexpected response received : com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers&#xd; at [row,col {unknown-source}]: [1,55]</Exception>


I hope this is clear enough that you can reproduce (or, if my mistake in configuration or access please let me know).

Thanks, Keith


> REST support not working in synapse 1.2
> ---------------------------------------
>
>                 Key: SYNAPSE-365
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
>             Project: Synapse
>          Issue Type: Bug
>          Components: Endpoints, Proxy Services, Transports
>            Reporter: Jasper Spoel
>            Assignee: Asankha C. Perera
>             Fix For: NIGHTLY
>
>
> When submitting a GET request to a synapse proxy service that points to a REST webservice
> AND Content-Type is not text/xml or application/xml the error: "Cannot create DocumentElement without destination EPR" comes out. (e.g try to approach the service proxy with a webbrowers and it will do this)
> configuration is as follows:
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>   <proxy name="Forwarder">
>       <target>
>           <endpoint>
>               <address uri="http://localhost:11111/MyService/echo" format="get"/>
>           </endpoint>
>           <outSequence>
>               <send/>
>           </outSequence>
>       </target>
>   </proxy>
> </definitions>
> If the message is send with the 'correct' content-type like for example so: 
> curl -G -H "Content-Type: text/xml" http://localhost:8280/Forwarder/mediate
> Synapse gives me the following output:
> 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
> 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> GET /soap/Forwarder/mediate HTTP/1.1
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Host: localhost:8280
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Accept: */*
> 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG headers >> Content-Type:application/xml
> 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG TransportUtils createSOAPEnvelope using Builder (class org.apache.axis2.builder.ApplicationXMLBuilder) selected from type (application/xml)
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation...
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: null
> 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: null
> 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: null
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main>
> 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate()
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, Direction: request
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator
> 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator Start : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG DropMediator End : Drop mediator
> 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main>
> 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] DEBUG ServerWorker Sending 202 Accepted response for MessageID : urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response will follow : true acked : false forced ack : false
> 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Output ready
> 2008-06-18 15:10:59,863 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Content encoder [chunk-coded; completed: true]
> 2008-06-18 15:10:59,864 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: Response ready
> 2008-06-18 15:10:59,865 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] DEBUG ServerHandler HTTP connection [closed]: Closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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