You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Asanka Abeysinghe (JIRA)" <ji...@apache.org> on 2008/07/20 11:28:32 UTC

[jira] Created: (SYNAPSE-401) New Sample to demonstrate FIX to HTTP switching

New Sample to demonstrate FIX to HTTP switching 
------------------------------------------------

                 Key: SYNAPSE-401
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-401
             Project: Synapse
          Issue Type: Improvement
          Components: Transports
    Affects Versions: 1.2
            Reporter: Asanka Abeysinghe


Add a new Sample to demonstrate FIX to HTTP switching  to the Synapse sample library. 

-- 
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-401) New Sample to demonstrate FIX to HTTP switching

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

Hiranya Jayathilaka commented on SYNAPSE-401:
---------------------------------------------

I tried to run this sample on the latest snapshot bit faced some problems. First I got the following error in the Axis2 side.

2008-07-30 13:21:20,753 [-] [HttpServerWorker-1] ERROR AxisEngine The service cannot be found for the endpoint reference (EPR) http://localhost:9000/soap/SimpleStockQuoteService
org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) http://localhost:9000/soap/SimpleStockQuoteService
        at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:64)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:334)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:248)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:157)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:244)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:185)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
2008-07-30 13:21:20,755 [-] [HttpServerWorker-1] ERROR ServerWorker Error processing POST request 

Then I changed the address URI parameter in the Synapse configuration to http://localhost:9000/soap/SimpleStockQuoteService and tried again. This time I got the following error.

2008-07-30 13:34:52,809 [-] [HttpServerWorker-1] ERROR RPCInOnlyMessageReceiver Exception occurred while trying to invoke service method placeOrder
org.apache.axis2.AxisFault: namespace mismatch require http://services.samples found http://services.samples/xsd
        at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:177)
        at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:63)
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:112)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:170)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:244)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:185)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

However in both occasions Synapse didn't given any errors.

Any idea what's wrong? 


> New Sample to demonstrate FIX to HTTP switching 
> ------------------------------------------------
>
>                 Key: SYNAPSE-401
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-401
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Transports
>    Affects Versions: 1.2
>            Reporter: Asanka Abeysinghe
>            Assignee: Hiranya Jayathilaka
>         Attachments: SYNAPSE-401.patch
>
>
> Add a new Sample to demonstrate FIX to HTTP switching  to the Synapse sample library. 

-- 
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] Updated: (SYNAPSE-401) New Sample to demonstrate FIX to HTTP switching

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

Asanka Abeysinghe updated SYNAPSE-401:
--------------------------------------

    Attachment: SYNAPSE-401-1.patch

Two changes required to make it working with the latest snapshot.
1. Target EPR to http://localhost:9000/services/SimpleStockQuoteService 
2. NS to http://services.samples

Attached patch contains the required changes.


> New Sample to demonstrate FIX to HTTP switching 
> ------------------------------------------------
>
>                 Key: SYNAPSE-401
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-401
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Transports
>    Affects Versions: 1.2
>            Reporter: Asanka Abeysinghe
>            Assignee: Hiranya Jayathilaka
>         Attachments: SYNAPSE-401-1.patch, SYNAPSE-401.patch
>
>
> Add a new Sample to demonstrate FIX to HTTP switching  to the Synapse sample library. 

-- 
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-401) New Sample to demonstrate FIX to HTTP switching

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

Hiranya Jayathilaka resolved SYNAPSE-401.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: NIGHTLY

Made the changes suggested by Asanka A. and committed the patch. Fixed on SVN trunk.
Thanks Asanka for the contributions.


> New Sample to demonstrate FIX to HTTP switching 
> ------------------------------------------------
>
>                 Key: SYNAPSE-401
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-401
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Transports
>    Affects Versions: 1.2
>            Reporter: Asanka Abeysinghe
>            Assignee: Hiranya Jayathilaka
>             Fix For: NIGHTLY
>
>         Attachments: SYNAPSE-401-1.patch, SYNAPSE-401.patch
>
>
> Add a new Sample to demonstrate FIX to HTTP switching  to the Synapse sample library. 

-- 
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] Updated: (SYNAPSE-401) New Sample to demonstrate FIX to HTTP switching

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

Asanka Abeysinghe updated SYNAPSE-401:
--------------------------------------

    Attachment: SYNAPSE-401.patch

Attached patch to add the Sample 259 to the Synapse samples library, that demonstrates the FIX to HTTP transport.
Changes made 
[1] Update src/site/xdoc/Synapse_Samples.xml by adding new content for Sample 259
[2] Add repository/conf/sample/synapse_sampe_259.xml
[3] Add repository/conf/sample/resources/transform/transform_fix_to_http.xslt


> New Sample to demonstrate FIX to HTTP switching 
> ------------------------------------------------
>
>                 Key: SYNAPSE-401
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-401
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Transports
>    Affects Versions: 1.2
>            Reporter: Asanka Abeysinghe
>         Attachments: SYNAPSE-401.patch
>
>
> Add a new Sample to demonstrate FIX to HTTP switching  to the Synapse sample library. 

-- 
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] Issue Comment Edited: (SYNAPSE-401) New Sample to demonstrate FIX to HTTP switching

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

hiranya edited comment on SYNAPSE-401 at 7/30/08 1:13 AM:
----------------------------------------------------------------------

I tried to run this sample on the latest snapshot bit faced some problems. First I got the following error in the Axis2 side.

2008-07-30 13:21:20,753 [-] [HttpServerWorker-1] ERROR AxisEngine The service cannot be found for the endpoint reference (EPR) http://localhost:9000/soap/SimpleStockQuoteService
org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) http://localhost:9000/soap/SimpleStockQuoteService
        at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:64)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:334)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:248)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:157)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:244)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:185)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
2008-07-30 13:21:20,755 [-] [HttpServerWorker-1] ERROR ServerWorker Error processing POST request 

Then I changed the address URI parameter in the Synapse configuration to http://localhost:9000/services/SimpleStockQuoteService and tried again. This time I got the following error.

2008-07-30 13:34:52,809 [-] [HttpServerWorker-1] ERROR RPCInOnlyMessageReceiver Exception occurred while trying to invoke service method placeOrder
org.apache.axis2.AxisFault: namespace mismatch require http://services.samples found http://services.samples/xsd
        at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:177)
        at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:63)
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:112)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:170)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:244)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:185)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

However in both occasions Synapse didn't given any errors.

Any idea what's wrong? 


      was (Author: hiranya):
    I tried to run this sample on the latest snapshot bit faced some problems. First I got the following error in the Axis2 side.

2008-07-30 13:21:20,753 [-] [HttpServerWorker-1] ERROR AxisEngine The service cannot be found for the endpoint reference (EPR) http://localhost:9000/soap/SimpleStockQuoteService
org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) http://localhost:9000/soap/SimpleStockQuoteService
        at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:64)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:334)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:248)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:157)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:244)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:185)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
2008-07-30 13:21:20,755 [-] [HttpServerWorker-1] ERROR ServerWorker Error processing POST request 

Then I changed the address URI parameter in the Synapse configuration to http://localhost:9000/soap/SimpleStockQuoteService and tried again. This time I got the following error.

2008-07-30 13:34:52,809 [-] [HttpServerWorker-1] ERROR RPCInOnlyMessageReceiver Exception occurred while trying to invoke service method placeOrder
org.apache.axis2.AxisFault: namespace mismatch require http://services.samples found http://services.samples/xsd
        at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:177)
        at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:63)
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:112)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:170)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:244)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:185)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

However in both occasions Synapse didn't given any errors.

Any idea what's wrong? 

  
> New Sample to demonstrate FIX to HTTP switching 
> ------------------------------------------------
>
>                 Key: SYNAPSE-401
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-401
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Transports
>    Affects Versions: 1.2
>            Reporter: Asanka Abeysinghe
>            Assignee: Hiranya Jayathilaka
>         Attachments: SYNAPSE-401.patch
>
>
> Add a new Sample to demonstrate FIX to HTTP switching  to the Synapse sample library. 

-- 
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-401) New Sample to demonstrate FIX to HTTP switching

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

Hiranya Jayathilaka reassigned SYNAPSE-401:
-------------------------------------------

    Assignee: Hiranya Jayathilaka

> New Sample to demonstrate FIX to HTTP switching 
> ------------------------------------------------
>
>                 Key: SYNAPSE-401
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-401
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Transports
>    Affects Versions: 1.2
>            Reporter: Asanka Abeysinghe
>            Assignee: Hiranya Jayathilaka
>         Attachments: SYNAPSE-401.patch
>
>
> Add a new Sample to demonstrate FIX to HTTP switching  to the Synapse sample library. 

-- 
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