<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>user@synapse.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/synapse-user/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/synapse-user/"/>
<id>http://mail-archives.apache.org/mod_mbox/synapse-user/</id>
<updated>2009-12-06T11:29:10Z</updated>
<entry>
<title>RE: Select endpoint based on header information</title>
<author><name>&quot;Scott Hoggarth&quot; &lt;Scott.Hoggarth@concur.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200912.mbox/%3c0DC0AA6432F0B0408375636E0205D3D50A884440@exchange.concur.concurtech.org%3e"/>
<id>urn:uuid:%3c0DC0AA6432F0B0408375636E0205D3D50A884440@exchange-concur-concurtech-org%3e</id>
<updated>2009-12-02T15:42:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
You can use the filter and send mediators to accomplish this.
http://synapse.apache.org/Synapse_Configuration_Language.html#filter
http://synapse.apache.org/Synapse_Configuration_Language.html#send

Synapse defines the header variable to get at the SOAP header with
xpath.
http://synapse.apache.org/Synapse_Configuration_Language.html#property

Here is a sample.

&lt;?xml version="1.0"?&gt;
&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
  &lt;in&gt;
    &lt;filter xpath="$header/foo"&gt;
      &lt;send&gt;
        &lt;endpoint&gt;
          &lt;address uri="http://foo" /&gt;
        &lt;/endpoint&gt;
      &lt;/send&gt;
    &lt;filter 
  &lt;/in&gt;
&lt;/definitions&gt;

You should check out the samples 1 and 2.
http://synapse.apache.org/Synapse_Samples.html#Sample1
http://synapse.apache.org/Synapse_Samples.html#Sample2

Good luck!

-----Original Message-----
From: Massimo Cancellara [mailto:massimo@cancellara.biz] 
Sent: Wednesday, December 02, 2009 6:23 AM
To: user@synapse.apache.org
Subject: Select endpoint based on header information

Hi,

I'm new to Synapse and I'm trying to understand if it can fit my
scenario.

Is it possible for a mediator to set the endpoint basing on informations
in an ad-hoc header? If yes, how (just a suggestion on where to look at)


Thanks, regards

Massimo


</pre>
</div>
</content>
</entry>
<entry>
<title>Select endpoint based on header information</title>
<author><name>Massimo Cancellara &lt;massimo@cancellara.biz&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200912.mbox/%3cA05E50DB-61D0-4191-B0F1-B1D7976CEDC2@cancellara.biz%3e"/>
<id>urn:uuid:%3cA05E50DB-61D0-4191-B0F1-B1D7976CEDC2@cancellara-biz%3e</id>
<updated>2009-12-02T12:22:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I'm new to Synapse and I'm trying to understand if it can fit my scenario.

Is it possible for a mediator to set the endpoint basing on informations in an ad-hoc header?
If yes, how (just a suggestion on where to look at) 

Thanks, regards

Massimo

</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Synapse 1.3: REST help (PUT/DELETE)</title>
<author><name>&lt;james.carnegie@nokia.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200911.mbox/%3cD575B2E2E1C2124493623814B27722F4235850F337@NOK-EUMSG-02.mgdnok.nokia.com%3e"/>
<id>urn:uuid:%3cD575B2E2E1C2124493623814B27722F4235850F337@NOK-EUMSG-02-mgdnok-nokia-com%3e</id>
<updated>2009-11-24T10:59:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Asankha,

&gt; &gt; We're looking at using Apache Synapse as a mocking framework for some
&gt; REST services.
&gt; &gt;
&gt; &gt; &gt;From looking at JIRA, it seems that the PUT/DELETE methods are now
&gt; supported in the 1.3 branch, which I have checked out and built.
&gt; &gt;
&gt; &gt; Does anybody have any experience using these new methods, or are few
&gt; people using them as yet? It's just that it is unclear how the
&gt; configuration language would support them, and the documentation and
&gt; examples have not yet been updated in this branch (understandable so of
&gt; course).
&gt; &gt;
&gt; &gt; Any guidance would be appreciated.
&gt; &gt;
&gt; The support implemented gives the ability to Synapse to mediate REST
&gt; service calls. I am not sure I fully understand your expectations as a
&gt; mocking framework.. if you could share a sample use-case I can easily
&gt; let you know if its possible, and how. If you need to share any
&gt; confidential code/samples, you could mail them directly to me

Thanks for the quick reply. We're looking at using Synapse to mock RESTful services; that
is, to simulate real services to help with Continuous Integration of consumers of these services
when they are down, changing etc. So similar to what IBM are doing here:

http://www.ibm.com/developerworks/edu/ws-dw-ws-synapse.html

but with REST/POX only. The services we wish to simulate make heavy use of HTTP stuff, such
as PUT/DELETE, common headers, HTTP basic authentication, and the like. 

So in general, out solution would have to consume HTTP requests (POST/GET/PUT/DELETE), and
if appropriate, return an XML response based on transformations of the request headers, request
data and perhaps files and other data sources etc. The XML requests/responses are defined
by XML schemata, without the use of WADL.

Do you think Synapse 1.3 (given aside that it's unreleased), would be able to handle this
task? If not, how far is our use case away from what Synapse REST support is heading? If so,
I would consider it a _major_ selling point (as it were) for Synapse since we have found nothing,
either commercial or otherwise, that does REST mocking/simulation. The SOAPUI folk have some
rudimentary REST mocking support, but they only support returning canned responses from static
files. They do have some plans in this area I am told however.

If Synapse is not far from what we need, is there any scope for us to contribute (in some
way) to help this along?

Kind regards,

James.


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Synapse 1.3: REST help (PUT/DELETE)</title>
<author><name>&quot;Asankha C. Perera&quot; &lt;asankha@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200911.mbox/%3c4B0BB762.5080000@apache.org%3e"/>
<id>urn:uuid:%3c4B0BB762-5080000@apache-org%3e</id>
<updated>2009-11-24T10:37:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi James
&gt; We're looking at using Apache Synapse as a mocking framework for some REST services.
&gt;
&gt; &gt;From looking at JIRA, it seems that the PUT/DELETE methods are now supported in the
1.3 branch, which I have checked out and built.
&gt;
&gt; Does anybody have any experience using these new methods, or are few people using them
as yet? It's just that it is unclear how the configuration language would support them, and
the documentation and examples have not yet been updated in this branch (understandable so
of course).
&gt;
&gt; Any guidance would be appreciated.
&gt;   
The support implemented gives the ability to Synapse to mediate REST
service calls. I am not sure I fully understand your expectations as a
mocking framework.. if you could share a sample use-case I can easily
let you know if its possible, and how. If you need to share any
confidential code/samples, you could mail them directly to me

cheers
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






</pre>
</div>
</content>
</entry>
<entry>
<title>Synapse 1.3: REST help (PUT/DELETE)</title>
<author><name>&lt;james.carnegie@nokia.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200911.mbox/%3cD575B2E2E1C2124493623814B27722F4235850F2E1@NOK-EUMSG-02.mgdnok.nokia.com%3e"/>
<id>urn:uuid:%3cD575B2E2E1C2124493623814B27722F4235850F2E1@NOK-EUMSG-02-mgdnok-nokia-com%3e</id>
<updated>2009-11-24T10:21:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi All,

We're looking at using Apache Synapse as a mocking framework for some REST services.

&gt;From looking at JIRA, it seems that the PUT/DELETE methods are now supported in the 1.3
branch, which I have checked out and built.

Does anybody have any experience using these new methods, or are few people using them as
yet? It's just that it is unclear how the configuration language would support them, and the
documentation and examples have not yet been updated in this branch (understandable so of
course).

Any guidance would be appreciated.

Regards,

--
James Carnegie
Nokia UK Limited


</pre>
</div>
</content>
</entry>
<entry>
<title>Synapse 1.3-SNAPSHOT nightly builds</title>
<author><name>&quot;Asankha C. Perera&quot; &lt;asankha@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200911.mbox/%3c4AFD670B.3060105@apache.org%3e"/>
<id>urn:uuid:%3c4AFD670B-3060105@apache-org%3e</id>
<updated>2009-11-13T14:02:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi All

I've configured a Synapse 1.3-SNAPSHOT build in Hudson, and builds will
be available from:
http://hudson.zones.apache.org/hudson/view/All/job/Synapse%20-%201.3%20-%20SNAPSHOT/

The last successful build will be available at:
http://hudson.zones.apache.org/hudson/view/All/job/Synapse%20-%201.3%20-%20SNAPSHOT/lastSuccessfulBuild/org.apache.synapse$synapse-distribution/artifact/org.apache.synapse/synapse-distribution/1.3.0-SNAPSHOT/synapse-1.3.0-SNAPSHOT-bin.zip

cheers
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






</pre>
</div>
</content>
</entry>
<entry>
<title>Re: java.io.IOException: Too many open files</title>
<author><name>Afkham Azeez &lt;afkham@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200911.mbox/%3c9b85c45f0911121107k282d8102r6b2de32e662bf7d8@mail.gmail.com%3e"/>
<id>urn:uuid:%3c9b85c45f0911121107k282d8102r6b2de32e662bf7d8@mail-gmail-com%3e</id>
<updated>2009-11-12T19:07:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Those are settings in the /etc/sysctl.conf and /etc/security/limits.conf
files respectively.

Alternatively, you can try to do, ulimit -n 4096, before starting your
Synapse server. However, that option may not work on some systems.

Azeez

On Thu, Nov 12, 2009 at 6:01 PM, Khaled Farj &lt;k.a.s.farj@newcastle.ac.uk&gt;wrote:

&gt; Hi asankha,
&gt; About the testing, that's exactly what my work is about, I am testing web
&gt; service apps.
&gt; However I could not figure out what you mean about these values and where I
&gt; can find these values ..?.
&gt;
&gt; Cheers
&gt; khaled
&gt;
&gt;
&gt; &gt;-----Original Message-----
&gt; &gt;From: Asankha Perera [mailto:asankha.apache@gmail.com] On
&gt; &gt;Behalf Of Asankha C. Perera
&gt; &gt;Sent: 12 November 2009 17:46
&gt; &gt;To: user@synapse.apache.org
&gt; &gt;Subject: Re: java.io.IOException: Too many open files
&gt; &gt;
&gt; &gt;Hi Khaled
&gt; &gt;&gt; Thanks asankha, I have done what you said and I changed to
&gt; &gt;Synapse-1.2, evrything works well until the request number
&gt; &gt;(1680) !! And almost the same Exception is thrown again.. ?.
&gt; &gt;My work is for sending 3000 requests to Synapse which in turn
&gt; &gt;sends them to the actual Web Service applications.
&gt; &gt;&gt;
&gt; &gt;&gt; Any help, please?
&gt; &gt;&gt;
&gt; &gt;Do you have the following set? .. I usually set those for load testing.
&gt; &gt;See [http://wso2.org/library/3740 etc]
&gt; &gt;
&gt; &gt;/etc/sysctl.conf
&gt; &gt;net.ipv4.ip_local_port_range = 1024 65535
&gt; &gt;net.ipv4.tcp_fin_timeout = 30 fs.file-max = 2097152
&gt; &gt;net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1
&gt; &gt;
&gt; &gt;/etc/security/limits.conf
&gt; &gt;* soft nofile 4096
&gt; &gt;* hard nofile 65535
&gt; &gt;
&gt; &gt;
&gt; &gt;cheers
&gt; &gt;asankha
&gt; &gt;
&gt; &gt;--
&gt; &gt;Asankha C. Perera
&gt; &gt;AdroitLogic, http://adroitlogic.org
&gt; &gt;
&gt; &gt;http://esbmagic.blogspot.com
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt;



-- 
Thanks
Afkham Azeez

Blog: http://afkham.org
Developer Portal: http://www.wso2.org
WSAS Blog: http://wso2wsas.blogspot.com
Company: http://wso2.com
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: java.io.IOException: Too many open files</title>
<author><name>Khaled Farj &lt;k.a.s.farj@newcastle.ac.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200911.mbox/%3c8AD13EAFB4D5724588EEE6E8BBFDF1711AC84F5D8D@EXSAN03.campus.ncl.ac.uk%3e"/>
<id>urn:uuid:%3c8AD13EAFB4D5724588EEE6E8BBFDF1711AC84F5D8D@EXSAN03-campus-ncl-ac-uk%3e</id>
<updated>2009-11-12T18:01:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi asankha,
About the testing, that's exactly what my work is about, I am testing web service apps. 
However I could not figure out what you mean about these values and where I can find these
values ..?. 

Cheers
khaled
 

&gt;-----Original Message-----
&gt;From: Asankha Perera [mailto:asankha.apache@gmail.com] On 
&gt;Behalf Of Asankha C. Perera
&gt;Sent: 12 November 2009 17:46
&gt;To: user@synapse.apache.org
&gt;Subject: Re: java.io.IOException: Too many open files
&gt;
&gt;Hi Khaled
&gt;&gt; Thanks asankha, I have done what you said and I changed to 
&gt;Synapse-1.2, evrything works well until the request number 
&gt;(1680) !! And almost the same Exception is thrown again.. ?. 
&gt;My work is for sending 3000 requests to Synapse which in turn 
&gt;sends them to the actual Web Service applications.
&gt;&gt;
&gt;&gt; Any help, please?
&gt;&gt;   
&gt;Do you have the following set? .. I usually set those for load testing.
&gt;See [http://wso2.org/library/3740 etc]
&gt;
&gt;/etc/sysctl.conf
&gt;net.ipv4.ip_local_port_range = 1024 65535 
&gt;net.ipv4.tcp_fin_timeout = 30 fs.file-max = 2097152 
&gt;net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1 
&gt;
&gt;/etc/security/limits.conf
&gt;* soft nofile 4096
&gt;* hard nofile 65535
&gt;
&gt;
&gt;cheers
&gt;asankha
&gt;
&gt;--
&gt;Asankha C. Perera
&gt;AdroitLogic, http://adroitlogic.org
&gt;
&gt;http://esbmagic.blogspot.com
&gt;
&gt;
&gt;
&gt;
&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: java.io.IOException: Too many open files</title>
<author><name>&quot;Asankha C. Perera&quot; &lt;asankha@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200911.mbox/%3c4AFC49CE.6000908@apache.org%3e"/>
<id>urn:uuid:%3c4AFC49CE-6000908@apache-org%3e</id>
<updated>2009-11-12T17:45:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Khaled
&gt; Thanks asankha, I have done what you said and I changed to Synapse-1.2, evrything works
well until the request number (1680) !! And almost the same Exception is thrown again.. ?.
My work is for sending 3000 requests to Synapse which in turn sends them to the actual Web
Service applications.
&gt;
&gt; Any help, please?
&gt;   
Do you have the following set? .. I usually set those for load testing.
See [http://wso2.org/library/3740 etc]

/etc/sysctl.conf 
net.ipv4.ip_local_port_range = 1024 65535 
net.ipv4.tcp_fin_timeout = 30 
fs.file-max = 2097152 
net.ipv4.tcp_tw_recycle = 1 
net.ipv4.tcp_tw_reuse = 1 

/etc/security/limits.conf 
* soft nofile 4096 
* hard nofile 65535


cheers
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






</pre>
</div>
</content>
</entry>
<entry>
<title>RE: java.io.IOException: Too many open files</title>
<author><name>Khaled Farj &lt;k.a.s.farj@newcastle.ac.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200911.mbox/%3c8AD13EAFB4D5724588EEE6E8BBFDF1711AC84F5D8C@EXSAN03.campus.ncl.ac.uk%3e"/>
<id>urn:uuid:%3c8AD13EAFB4D5724588EEE6E8BBFDF1711AC84F5D8C@EXSAN03-campus-ncl-ac-uk%3e</id>
<updated>2009-11-12T17:39:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi again,

Thanks asankha, I have done what you said and I changed to Synapse-1.2, evrything works well
until the request number (1680) !! And almost the same Exception is thrown again.. ?. My work
is for sending 3000 requests to Synapse which in turn sends them to the actual Web Service
applications.

Any help, please?

   


2009-11-12 17:28:14,653 [10.8.147.11-localhost] [HttpServerWorker-7] ERROR ServerWorker Error
getting ip address for ?wsdl output
java.net.SocketException: Too many open files
        at java.net.NetworkInterface.getAll(Native Method)
        at java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:204)
        at org.apache.synapse.transport.nhttp.ServerWorker.getIpAddress(ServerWorker.java:540)
        at org.apache.synapse.transport.nhttp.ServerWorker.processGet(ServerWorker.java:341)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:192)
        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)
2009-11-12 17:28:14,796 [10.8.147.11-cage03.ncl.ac.uk] [HttpServerWorker-7] ERROR ServerHandler
Unexpected HTTP protocol error : Transfer-encoding header already present
org.apache.http.ProtocolException: Transfer-encoding header already present
        at org.apache.http.protocol.ResponseContent.process(ResponseContent.java:67)
        at org.apache.http.protocol.BasicHttpProcessor.process(BasicHttpProcessor.java:304)
        at org.apache.synapse.transport.nhttp.ServerHandler.commitResponse(ServerHandler.java:212)
        at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:409)
        at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:264)
        at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:530)
        at org.apache.synapse.transport.nhttp.ServerWorker.handleException(ServerWorker.java:489)
        at org.apache.synapse.transport.nhttp.ServerWorker.processGet(ServerWorker.java:347)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:192)
        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)

Thanks
Khaled
 

&gt;-----Original Message-----
&gt;From: Asankha Perera [mailto:asankha.apache@gmail.com] On 
&gt;Behalf Of Asankha C. Perera
&gt;Sent: 12 November 2009 01:47
&gt;To: user@synapse.apache.org
&gt;Subject: Re: java.io.IOException: Too many open files
&gt;
&gt;Hi Khaled
&gt;&gt; I am using Synapse-1.1.1 but I have got the error stated below:
&gt;&gt;   
&gt;You could try increasing file limits if under a Linux environment etc..
&gt;however, I would strongly suggest you upgrade to 1.2, in which 
&gt;we have removed the usage of pipes altogether with a much 
&gt;better implementation
&gt;
&gt;cheers
&gt;asankha
&gt;
&gt;--
&gt;Asankha C. Perera
&gt;AdroitLogic, http://adroitlogic.org
&gt;
&gt;http://esbmagic.blogspot.com
&gt;
&gt;
&gt;
&gt;
&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: java.io.IOException: Too many open files</title>
<author><name>&quot;Asankha C. Perera&quot; &lt;asankha@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200911.mbox/%3c4AFB6900.3080708@apache.org%3e"/>
<id>urn:uuid:%3c4AFB6900-3080708@apache-org%3e</id>
<updated>2009-11-12T01:46:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Khaled
&gt; I am using Synapse-1.1.1 but I have got the error stated below:
&gt;   
You could try increasing file limits if under a Linux environment etc..
however, I would strongly suggest you upgrade to 1.2, in which we have
removed the usage of pipes altogether with a much better implementation

cheers
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






</pre>
</div>
</content>
</entry>
<entry>
<title>java.io.IOException: Too many open files</title>
<author><name>Khaled Farj &lt;k.a.s.farj@newcastle.ac.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200911.mbox/%3c8AD13EAFB4D5724588EEE6E8BBFDF1711AC84F5D89@EXSAN03.campus.ncl.ac.uk%3e"/>
<id>urn:uuid:%3c8AD13EAFB4D5724588EEE6E8BBFDF1711AC84F5D89@EXSAN03-campus-ncl-ac-uk%3e</id>
<updated>2009-11-11T23:57:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi guys,

I am using Synapse-1.1.1 but I have got the error stated below:

What I am using Synapse is as follows: 

I have published three proxies in synapse that are Service1, Service2 and Service3. and I
have a client which its job is sending three requests to the Synapse - a request for each
proxy Service deployed in Synapse (Service1, Service2 and Service3) - my client sends three
requests each time and then synapse forwards each request to the actual service and then receives
the responses then forward them to the client. Everything works fine at this point, however
when the client sends more than 300 request the below exception is thrown in Synapse.. !.
I wander if that has something to do with Synapse pool threads OR what ???? 
Can anybody tell me what is going on please?

     
2009-11-11 18:18:46,385 [10.8.147.11-localhost] [I/O dispatcher 8] ERROR ServerHandler Error
processing request received for : /soap/Service3?wsdl
java.io.IOException: Too many open files
        at sun.nio.ch.IOUtil.initPipe(Native Method)
        at sun.nio.ch.PipeImpl.&lt;init&gt;(PipeImpl.java:25)
        at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
        at java.nio.channels.Pipe.open(Pipe.java:133)
        at org.apache.synapse.transport.nhttp.util.PipeImpl.&lt;init&gt;(PipeImpl.java:77)
        at org.apache.synapse.transport.nhttp.ServerHandler.requestReceived(ServerHandler.java:118)
        at org.apache.synapse.transport.nhttp.LoggingNHttpServiceHandler.requestReceived(LoggingNHttpServiceHandler.java:92)
        at org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNHttpServerConnection.java:123)
        at org.apache.synapse.transport.nhttp.PlainServerIOEventDispatch.inputReady(PlainServerIOEventDispatch.java:69)
        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:595)
2009-11-11 18:18:46,387 [10.8.147.11-cage03.ncl.ac.uk] [I/O dispatcher 8]  WARN HttpCoreNIOListener
System may be unstable: IOReactor encountered a runtime exception : null
java.lang.NullPointerException
        at org.apache.synapse.transport.nhttp.ServerHandler.inputReady(ServerHandler.java:171)
        at org.apache.synapse.transport.nhttp.LoggingNHttpServiceHandler.inputReady(LoggingNHttpServiceHandler.java:123)
        at org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNHttpServerConnection.java:135)
        at org.apache.synapse.transport.nhttp.PlainServerIOEventDispatch.inputReady(PlainServerIOEventDispatch.java:69)
        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:595).



Thanks
Khaled

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Disabling FastInfoset for Synapse endpoints</title>
<author><name>Ruwan Linton &lt;ruwan.linton@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200911.mbox/%3c672a01200911091338v1df90d5cqf0d7ddd2b720be7a@mail.gmail.com%3e"/>
<id>urn:uuid:%3c672a01200911091338v1df90d5cqf0d7ddd2b720be7a@mail-gmail-com%3e</id>
<updated>2009-11-09T21:38:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Ralph,

Whether the message is written to the wire as a FI or not is a functionality
of the message formatter so disabling the FI to the backend endpoint and
re-enabling the FI for the response to the client is theoretically possible
with Synapse, but I have never tried this.

To try this out, configure the axis2.xml to enable the FI as described in
this article [1] and then set the messageType property to
application/soap+fastinfoset or application/fastinfoset as appropriately
using the property mediator in the synapse configuration to enable FI and
change the messageType propety to the relevant message type of the backend
endpoint to disable FI for the backend requests.

[1] - http://wso2.org/library/2686

Thanks,
Ruwan


On Mon, Nov 9, 2009 at 10:10 PM, &lt;Ralph.Henze@spb.de&gt; wrote:

&gt; Hi,
&gt;
&gt; I want to configure synapse as a FastInfoset-capable proxy for a number of
&gt; existing services.
&gt; Some of them are based on SOAP stacks other than Axis2 and do not have the
&gt; capability of FastInfoset.
&gt;
&gt; Is there an easy way to configure synapse in a way that proxy services can
&gt; be called using FastInfoset and endpoints get called using simple
&gt; soap/xml?
&gt; This should include the backward direction; meaning that non-FI responses
&gt; from the endpoints get translated into FI-responses to the client.
&gt;
&gt; Thank you.
&gt;
&gt; Greetings, Ralph.




-- 
Ruwan Linton
Technical Lead &amp; Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Disabling FastInfoset for Synapse endpoints</title>
<author><name>Ralph.Henze@spb.de</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200911.mbox/%3c2327_1257784821_4AF845F5_2327_322387_1_OF70593887.B44BDB02-ONC1257669.0057D1C5-C1257669.005B959E@nbg.sdv.spb.de%3e"/>
<id>urn:uuid:%3c2327_1257784821_4AF845F5_2327_322387_1_OF70593887-B44BDB02-ONC1257669-0057D1C5-C1257669-005B959E@nbg-sdv-spb-de%3e</id>
<updated>2009-11-09T16:40:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I want to configure synapse as a FastInfoset-capable proxy for a number of 
existing services.
Some of them are based on SOAP stacks other than Axis2 and do not have the 
capability of FastInfoset.

Is there an easy way to configure synapse in a way that proxy services can 
be called using FastInfoset and endpoints get called using simple 
soap/xml?
This should include the backward direction; meaning that non-FI responses 
from the endpoints get translated into FI-responses to the client.

Thank you.

Greetings, Ralph.

</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Adding a security token</title>
<author><name>&quot;Sabareeswar P. B.&quot; &lt;Sabareeswar_PB@infosys.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c7EE0943D07988A42B6FC81D0CBF7BA301904108595@BLRKECMBX05.ad.infosys.com%3e"/>
<id>urn:uuid:%3c7EE0943D07988A42B6FC81D0CBF7BA301904108595@BLRKECMBX05-ad-infosys-com%3e</id>
<updated>2009-10-28T12:47:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Asankha! Will refer the Rampart site.

Regards,
Sabareeswar
-----Original Message-----
From: Asankha Perera [mailto:asankha.apache@gmail.com] On Behalf Of Asankha C. Perera
Sent: Wednesday, October 28, 2009 6:13 PM
To: user@synapse.apache.org
Subject: Re: Adding a security token

Hi Sabareeswar
&gt; I am new to frameworks like WS-policy and WS-Security.
&gt;
&gt; I am using synapse as a SOAP intermediary and I want to introduce a username token in
the soap message which comes out of synapse.
&gt; The token must look like
&gt;
&gt;             xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
&gt;       &lt;oas:Security&gt;
&gt;          &lt;oas:UsernameToken&gt;
&gt;             &lt;oas:Username&gt;admin&lt;/oas:Username&gt;
&gt;             &lt;oas:Password&gt;admin123&lt;/oas:Password&gt;
&gt;          &lt;/oas:UsernameToken&gt;
&gt;       &lt;/oas:Security&gt;
&gt;
&gt; Could you please tell me how I must proceed with synapse?
&gt;   
Basically Synapse does not go into exactly which WS-Security policy you
enforce.. you just provide it with a policy that states what you want.
For outgoing messages, what you need is similar to
http://synapse.apache.org/Synapse_Samples.html#Sample100

You should have the sample policy used for the above as
repository/conf/sample/resources/policy/policy_3.xml in your
distribution. Synapse uses Apache Rampart to get this done, so it is
Rampart that will read the policy and apply it. You will have better
luck if you ask someone on the Apache Rampart mailing list or search
through the samples for the above case.. I am sorry I do not have much
free time right now to look for this myself, but if you really cannot
find anything from Rampart, ping me again next week

cheers
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Adding a security token</title>
<author><name>&quot;Asankha C. Perera&quot; &lt;asankha@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c4AE83C5C.7090209@apache.org%3e"/>
<id>urn:uuid:%3c4AE83C5C-7090209@apache-org%3e</id>
<updated>2009-10-28T12:43:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Sabareeswar
&gt; I am new to frameworks like WS-policy and WS-Security.
&gt;
&gt; I am using synapse as a SOAP intermediary and I want to introduce a username token in
the soap message which comes out of synapse.
&gt; The token must look like
&gt;
&gt;             xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
&gt;       &lt;oas:Security&gt;
&gt;          &lt;oas:UsernameToken&gt;
&gt;             &lt;oas:Username&gt;admin&lt;/oas:Username&gt;
&gt;             &lt;oas:Password&gt;admin123&lt;/oas:Password&gt;
&gt;          &lt;/oas:UsernameToken&gt;
&gt;       &lt;/oas:Security&gt;
&gt;
&gt; Could you please tell me how I must proceed with synapse?
&gt;   
Basically Synapse does not go into exactly which WS-Security policy you
enforce.. you just provide it with a policy that states what you want.
For outgoing messages, what you need is similar to
http://synapse.apache.org/Synapse_Samples.html#Sample100

You should have the sample policy used for the above as
repository/conf/sample/resources/policy/policy_3.xml in your
distribution. Synapse uses Apache Rampart to get this done, so it is
Rampart that will read the policy and apply it. You will have better
luck if you ask someone on the Apache Rampart mailing list or search
through the samples for the above case.. I am sorry I do not have much
free time right now to look for this myself, but if you really cannot
find anything from Rampart, ping me again next week

cheers
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






</pre>
</div>
</content>
</entry>
<entry>
<title>Adding a security token</title>
<author><name>&quot;Sabareeswar P. B.&quot; &lt;Sabareeswar_PB@infosys.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c7EE0943D07988A42B6FC81D0CBF7BA301903FE9C4F@BLRKECMBX05.ad.infosys.com%3e"/>
<id>urn:uuid:%3c7EE0943D07988A42B6FC81D0CBF7BA301903FE9C4F@BLRKECMBX05-ad-infosys-com%3e</id>
<updated>2009-10-28T04:49:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
 I am new to frameworks like WS-policy and WS-Security.

I am using synapse as a SOAP intermediary and I want to introduce a username token in the
soap message which comes out of synapse.
The token must look like

            xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
      &lt;oas:Security&gt;
         &lt;oas:UsernameToken&gt;
            &lt;oas:Username&gt;admin&lt;/oas:Username&gt;
            &lt;oas:Password&gt;admin123&lt;/oas:Password&gt;
         &lt;/oas:UsernameToken&gt;
      &lt;/oas:Security&gt;

Could you please tell me how I must proceed with synapse?

Regards,
Sabareeswar
+91 80 668 82267



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Antwort: Re: Antwort: Re: Antwort: Re: Connection timeout problem</title>
<author><name>&quot;Asankha C. Perera&quot; &lt;asankha@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c4AE5AEE2.8060206@apache.org%3e"/>
<id>urn:uuid:%3c4AE5AEE2-8060206@apache-org%3e</id>
<updated>2009-10-26T14:14:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Ralph / Supun
&gt; For future versions of Synapse it would be desirable that synapse gets the ability to
respond with "100 Continue" responses. This would prevent interoperability issues with older
.net clients like this.
&gt;
&gt; Asankha provided us with a quick fix; perhaps it would be possible that his fix flows
into the Synapse trunk?
&gt;   
I've committed the fix against SYNAPSE-231

cheers
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






</pre>
</div>
</content>
</entry>
<entry>
<title>Antwort: Re: Antwort: Re: Antwort: Re: Connection timeout problem</title>
<author><name>Ralph.Henze@spb.de</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c17124_1256546439_4AE56087_17124_157907_1_OFB5451BE1.289E27A9-ONC125765B.002E7846-C125765B.002FB394@nbg.sdv.spb.de%3e"/>
<id>urn:uuid:%3c17124_1256546439_4AE56087_17124_157907_1_OFB5451BE1-289E27A9-ONC125765B-002E7846-C125765B-002FB394@nbg-sdv-spb-de%3e</id>
<updated>2009-10-26T08:40:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Suprun,

yes, we have a solution for this.

Our analysis showed that the timeouts were due to a misbehaviour of our 
.net service client.
The client is sending a "100-continue" HTTP header and waits infinitely 
for a "100 Continue" response before sending the request body, resulting 
in timeouts.
This behaviour is not according to HTTP 1.1 spec, though.

Synapse by now is not responding to 100-continue headers and waits for the 
client to send the request body (according to HTTP 1.1).

For future versions of Synapse it would be desirable that synapse gets the 
ability to respond with "100 Continue" responses.
This would prevent interoperability issues with older .net clients like 
this.

Asankha provided us with a quick fix; perhaps it would be possible that 
his fix flows into the Synapse trunk?

Thank you and cheers!

i. A. Ralph Henze
Dipl.-Informatiker (Univ.)
Sparda-Datenverarbeitung eG
AE-ABS/Softwarearchitektur


Supun Kamburugamuva &lt;supun06@gmail.com&gt; schrieb am 26.10.2009 05:04:58:

&gt; [Bild entfernt] 
&gt; 
&gt; Re: Antwort: Re: Antwort: Re: Connection timeout problem
&gt; 
&gt; Supun Kamburugamuva 
&gt; 
&gt; an:
&gt; 
&gt; user
&gt; 
&gt; 26.10.2009 05:05
&gt; 
&gt; [Bild entfernt] 
&gt; 
&gt; Von:
&gt; 
&gt; Supun Kamburugamuva &lt;supun06@gmail.com&gt;
&gt; 
&gt; An:
&gt; 
&gt; user@synapse.apache.org
&gt; 
&gt; Bitte Antwort an user@synapse.apache.org
&gt; 
&gt; Hi Ralph,
&gt; 
&gt; Did you get a solution to this problem?
&gt; 
&gt; Thanks,
&gt; Supun..
&gt; 
&gt; On Thu, Sep 3, 2009 at 1:13 AM, Asankha C. Perera 
&lt;asankha@apache.org&gt;wrote:
&gt; 
&gt; &gt; Hi Ralph
&gt; &gt; &gt; The GET /soap/ requests are those issued by the monitoring system. 
The
&gt; &gt; &gt; monitoring assumes that the esb is available if the list of services 
is
&gt; &gt; &gt; retrieved or there is a problem/outage otherwise.
&gt; &gt; &gt;
&gt; &gt; Typically it would be better to issue a real call through Synapse 
itself
&gt; &gt; for monitoring purposes. I think Eric might be able to tell you more
&gt; &gt; about the monitoring etc they do in their deployment environment.
&gt; &gt; &gt; In our infrastructure there is an Apache HTTP server that is placed 
in
&gt; &gt; &gt; front of synapse, so that the tcp connection client from synapse's
&gt; &gt; &gt; perspective is always the HTTP server. The HTTP server terminates 
SSL
&gt; &gt; &gt; connections and connects to synapse via mod_proxy. Do you presume 
that a
&gt; &gt; &gt; possible solution lies in HTTP server configuration?
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;&gt; It seems like you issue a GET /soap/ request? I also saw many of 
those..
&gt; &gt; &gt;&gt; what is the purpose of issuing that? Anyway.. this seems like a 
harmless
&gt; &gt; &gt;&gt; possible bug - where the connection gets timedout - but Synapse 
thinks
&gt; &gt; &gt;&gt; its response was not fully read by the client. This could happen if 
the
&gt; &gt; &gt;&gt; client just looks at the header of the response, and does not read 
the
&gt; &gt; &gt;&gt; entity body - which will prevent the HTTP connection from being 
re-used
&gt; &gt; &gt;&gt; again (i.e. as a keepalive) - however, I also suspect a slight bug 
in
&gt; &gt; &gt;&gt; the code where this message could be dumped in a harmless case. Do 
you
&gt; &gt; &gt;&gt; see an actual error at the client side?
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;
&gt; &gt; &gt; Yes, there is an effect at the service client side. About 10 percent 
of
&gt; &gt; &gt; client requests are responded with HTTP error code 502.
&gt; &gt; Synapse does not return 502.. so this is returned by Apache.. but the
&gt; &gt; reason behind would need some investigation.. If you could re-create
&gt; &gt; this with a single request and get me a tcpdump it would be great
&gt; &gt; &gt;  I'm not sure of
&gt; &gt; &gt; how that behaviour relates to the timeout message, because there are 
a
&gt; &gt; lot
&gt; &gt; &gt; more timeout messages in the log than actual client errors. But we 
didn't
&gt; &gt; &gt; have that when we were on synapse 1.2. But as stated earlier, 
synapse 1.2
&gt; &gt; &gt; freezed up to 3 times a day and had to be restarted, which we assume 
is a
&gt; &gt; &gt; consequence of bug SYNAPSE-404.
&gt; &gt; &gt;
&gt; &gt; &gt; Are you planning to prepare a fix?
&gt; &gt; &gt;
&gt; &gt; Yes, I could fix the issue I suspect - but that would not solve the 
502
&gt; &gt; issue.. what I noticed is that Synapse may report the "Connection
&gt; &gt; Timeout - before message body was fully read " message when the remote
&gt; &gt; party (i.e. client to synapse) terminated its socket - since that was
&gt; &gt; what was happening in your logs
&gt; &gt;
&gt; &gt; cheers
&gt; &gt; asankha
&gt; &gt;
&gt; &gt; --
&gt; &gt; Asankha C. Perera
&gt; &gt; AdroitLogic, http://adroitlogic.org
&gt; &gt;
&gt; &gt; http://esbmagic.blogspot.com
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; 
&gt; 
&gt; -- 
&gt; Software Engineer, WSO2 Inc
&gt; http://wso2.org
&gt; supunk.blogspot.com
&gt; 


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Antwort: Re: Antwort: Re: Connection timeout problem</title>
<author><name>Supun Kamburugamuva &lt;supun06@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3ced64f35e0910252104p56ff778ep342191d262078a5b@mail.gmail.com%3e"/>
<id>urn:uuid:%3ced64f35e0910252104p56ff778ep342191d262078a5b@mail-gmail-com%3e</id>
<updated>2009-10-26T04:04:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Ralph,

Did you get a solution to this problem?

Thanks,
Supun..

On Thu, Sep 3, 2009 at 1:13 AM, Asankha C. Perera &lt;asankha@apache.org&gt;wrote:

&gt; Hi Ralph
&gt; &gt; The GET /soap/ requests are those issued by the monitoring system. The
&gt; &gt; monitoring assumes that the esb is available if the list of services is
&gt; &gt; retrieved or there is a problem/outage otherwise.
&gt; &gt;
&gt; Typically it would be better to issue a real call through Synapse itself
&gt; for monitoring purposes. I think Eric might be able to tell you more
&gt; about the monitoring etc they do in their deployment environment.
&gt; &gt; In our infrastructure there is an Apache HTTP server that is placed in
&gt; &gt; front of synapse, so that the tcp connection client from synapse's
&gt; &gt; perspective is always the HTTP server. The HTTP server terminates SSL
&gt; &gt; connections and connects to synapse via mod_proxy. Do you presume that a
&gt; &gt; possible solution lies in HTTP server configuration?
&gt; &gt;
&gt; &gt;
&gt; &gt;&gt; It seems like you issue a GET /soap/ request? I also saw many of those..
&gt; &gt;&gt; what is the purpose of issuing that? Anyway.. this seems like a harmless
&gt; &gt;&gt; possible bug - where the connection gets timedout - but Synapse thinks
&gt; &gt;&gt; its response was not fully read by the client. This could happen if the
&gt; &gt;&gt; client just looks at the header of the response, and does not read the
&gt; &gt;&gt; entity body - which will prevent the HTTP connection from being re-used
&gt; &gt;&gt; again (i.e. as a keepalive) - however, I also suspect a slight bug in
&gt; &gt;&gt; the code where this message could be dumped in a harmless case. Do you
&gt; &gt;&gt; see an actual error at the client side?
&gt; &gt;&gt;
&gt; &gt;
&gt; &gt; Yes, there is an effect at the service client side. About 10 percent of
&gt; &gt; client requests are responded with HTTP error code 502.
&gt; Synapse does not return 502.. so this is returned by Apache.. but the
&gt; reason behind would need some investigation.. If you could re-create
&gt; this with a single request and get me a tcpdump it would be great
&gt; &gt;  I'm not sure of
&gt; &gt; how that behaviour relates to the timeout message, because there are a
&gt; lot
&gt; &gt; more timeout messages in the log than actual client errors. But we didn't
&gt; &gt; have that when we were on synapse 1.2. But as stated earlier, synapse 1.2
&gt; &gt; freezed up to 3 times a day and had to be restarted, which we assume is a
&gt; &gt; consequence of bug SYNAPSE-404.
&gt; &gt;
&gt; &gt; Are you planning to prepare a fix?
&gt; &gt;
&gt; Yes, I could fix the issue I suspect - but that would not solve the 502
&gt; issue.. what I noticed is that Synapse may report the "Connection
&gt; Timeout - before message body was fully read " message when the remote
&gt; party (i.e. client to synapse) terminated its socket - since that was
&gt; what was happening in your logs
&gt;
&gt; cheers
&gt; asankha
&gt;
&gt; --
&gt; Asankha C. Perera
&gt; AdroitLogic, http://adroitlogic.org
&gt;
&gt; http://esbmagic.blogspot.com
&gt;
&gt;
&gt;
&gt;
&gt;


-- 
Software Engineer, WSO2 Inc
http://wso2.org
supunk.blogspot.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Clone Mediator endpoint</title>
<author><name>Florin Bejinaru &lt;florinbejinaru@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3cfa4777770910230426rc7e4347lf11fb6a4bd114835@mail.gmail.com%3e"/>
<id>urn:uuid:%3cfa4777770910230426rc7e4347lf11fb6a4bd114835@mail-gmail-com%3e</id>
<updated>2009-10-23T11:26:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thank you for your reply, unfortunately I had to switch to a more pressing
project, so it will be some time before I have a chance to test this.

Thank you,
Florin

2009/10/20 Ruwan Linton &lt;ruwan.linton@gmail.com&gt;

&gt; Yes, Hiranya is correct on this...
&gt;
&gt; The clone mediator target mediates the message using the specified sequence
&gt; and then send the message using the specified endpoint.
&gt;
&gt; So you shouldn't try to send the message in the target sequence.
&gt;
&gt; Thanks,
&gt; Ruwan
&gt;
&gt; On Tue, Oct 20, 2009 at 7:40 PM, Hiranya Jayathilaka
&gt; &lt;hiranya911@gmail.com&gt;wrote:
&gt;
&gt; &gt; On Tue, Oct 20, 2009 at 1:41 PM, Florin Bejinaru
&gt; &gt; &lt;florinbejinaru@gmail.com&gt;wrote:
&gt; &gt;
&gt; &gt; &gt; The Error I am getting is :
&gt; &gt; &gt;
&gt; &gt; &gt; 2009-10-20 00:33:50,308 [10.9.4.40-Florin-9Aug2009] [SynapseWorker-1]
&gt; &gt; ERROR
&gt; &gt; &gt; ClientUtils The system cannot infer the transport information from the
&gt; &gt; &gt; /services/Event URL.
&gt; &gt; &gt; 2009-10-20 00:33:50,312 [10.9.4.40-Florin-9Aug2009] [SynapseWorker-1]
&gt; &gt; ERROR
&gt; &gt; &gt; Axis2Sender Unexpected error during sending message out
&gt; &gt; &gt; org.apache.axis2.AxisFault: The system cannot infer the transport
&gt; &gt; &gt; information from the /services/Event URL.
&gt; &gt; &gt;
&gt; &gt; &gt; which I don't get if I set the "to" attribute on the target element.
&gt; &gt; &gt;
&gt; &gt;
&gt; &gt; Looking at the source code of the CloneMediator and the Target class, I
&gt; &gt; can't see why this approach doesn't work. It should work without any
&gt; &gt; issues.
&gt; &gt; Here's the relevant code segment from the Taget class.
&gt; &gt;
&gt; &gt;        *if (sequence != null) {
&gt; &gt;            synCtx.getEnvironment().injectAsync(synCtx, sequence);
&gt; &gt;        } else if (sequenceRef != null) {
&gt; &gt;            SequenceMediator refSequence = (SequenceMediator)
&gt; &gt; synCtx.getSequence(sequenceRef);
&gt; &gt;            if (refSequence != null) {
&gt; &gt;                synCtx.getEnvironment().injectAsync(synCtx, refSequence);
&gt; &gt;            }
&gt; &gt;        } else if (endpoint != null) {
&gt; &gt;            endpoint.send(synCtx);
&gt; &gt;        } else if (endpointRef != null) {
&gt; &gt;            Endpoint epr =
&gt; &gt; synCtx.getConfiguration().getEndpoint(endpointRef);
&gt; &gt;            if (epr != null) {
&gt; &gt;                epr.send(synCtx);
&gt; &gt;            }
&gt; &gt;        }*
&gt; &gt;
&gt; &gt; Can you please verify that Synapse doesn't send any messages to the
&gt; &gt; endpoint
&gt; &gt; you have specified? Note that when an endpoint is refered by the target
&gt; it
&gt; &gt; tries to send the message to that endpoint. Therefore putting a send
&gt; &gt; mediator in the clone mediator target is not required and that could even
&gt; &gt; cause issues. May be the clone mediator actually sends messages to the
&gt; &gt; specified endpoint and what is failing is the send mediator which tries
&gt; to
&gt; &gt; send the message to the 'To' address set in the message.
&gt; &gt;
&gt; &gt; Thanks,
&gt; &gt; Hiranya
&gt; &gt;
&gt; &gt;
&gt; &gt; --
&gt; &gt; Hiranya Jayathilaka
&gt; &gt; Software Engineer;
&gt; &gt; WSO2 Inc.;  http://wso2.org
&gt; &gt; E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
&gt; &gt; Blog: http://techfeast-hiranya.blogspot.com
&gt; &gt;
&gt;
&gt;
&gt;
&gt; --
&gt; Ruwan Linton
&gt; Technical Lead &amp; Product Manager; WSO2 ESB; http://wso2.org/esb
&gt; WSO2 Inc.; http://wso2.org
&gt; email: ruwan@wso2.com; cell: +94 77 341 3097
&gt; blog: http://ruwansblog.blogspot.com
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Issues in using Custom Mediation</title>
<author><name>&quot;Sabareeswar P. B.&quot; &lt;Sabareeswar_PB@infosys.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c7EE0943D07988A42B6FC81D0CBF7BA301903B170ED@BLRKECMBX05.ad.infosys.com%3e"/>
<id>urn:uuid:%3c7EE0943D07988A42B6FC81D0CBF7BA301903B170ED@BLRKECMBX05-ad-infosys-com%3e</id>
<updated>2009-10-23T10:15:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thank you Paul. I wasn't aware that it was a WS-Security standard.

Essentially I want the oas:Security node to go inside the header. I am now trying to do it
with a policy document (which, btw, isn't working): am I going in the right direction?

\repository\conf\sample\resources\policy\ao_policy.xml
&lt;wsp:Policy
   xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"
   xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
   xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
   oas:Id="ao_policy" &gt;
      &lt;oas:Security&gt;
         &lt;oas:UsernameToken&gt;
            &lt;oas:Username&gt;myusername&lt;/oas:Username&gt;
            &lt;oas:Password&gt;mypassword&lt;/oas:Password&gt;
         &lt;/oas:UsernameToken&gt;
      &lt;/oas:Security&gt;
&lt;/wsp:Policy&gt;

&lt;definitions xmlns="http://ws.apache.org/ns/synapse" xmlns:urn="urn:realops.com:amp:workflow"&gt;
&lt;localEntry key="ao_policy" src="file:repository/conf/sample/resources/policy/ao_policy.xml"/&gt;
    &lt;sequence name="main" onError="fault"&gt;
        &lt;in&gt;
		&lt;header name="urn:grid-name" value="SMECGRID"/&gt;
            &lt;send&gt;
                &lt;endpoint name="stockquote"&gt;
                    &lt;address uri="http://localhost:5002/baocdp/ws/workflow"/&gt;
			  &lt;enableSec policy="ao_policy"/&gt;
                &lt;/endpoint&gt;
            &lt;/send&gt;
        &lt;/in&gt;
   &lt;/sequence&gt;
&lt;/definitions&gt;


Regards,
Sabareeswar
-----Original Message-----
From: Paul Fremantle [mailto:pzfreo@gmail.com] 
Sent: Friday, October 23, 2009 1:35 PM
To: user@synapse.apache.org
Subject: Re: Issues in using Custom Mediation

Sabareeswar

Hi.

I don't understand why you are using the callout mediator. Also
Synapse already supports adding security into outgoing flows using
WS-Policy. Is this standard WS-Security Username token you are adding?

Paul



On Fri, Oct 23, 2009 at 8:28 AM, Sabareeswar P. B.
&lt;Sabareeswar_PB@infosys.com&gt; wrote:
&gt; Hi,
&gt;
&gt; We are using synapse between
&gt; 1)       A web service client that was created from a wsdl that doesn't have any authentication
parameters.
&gt; 2)       A web service provider that requires authentication.
&gt;
&gt; One of the requirements is to introduce a header element as per the requirements of the
service provider.
&gt;
&gt; I am using custom mediation in java to do this. The java class and the synapse.xml are
given below.
&gt; The problem is that the Header changes that I do in the custom class are not appearing
in the Header that goes to the web service provider.
&gt; In fact, the soap envelope to the web service provider doesn't have a soapHeader field
at all, though it appears properly when I try to log it within the java class.
&gt;
&gt; Could you please provide any pointers to this?
&gt;
&gt; public class AddHeaders extends AbstractMediator {
&gt;    public boolean mediate(MessageContext mc) {
&gt;            try {
&gt;                        NamespaceImpl secns = new NamespaceImpl
&gt;                        ("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd","oas");
&gt;
&gt;                        NamespaceImpl omns = new NamespaceImpl
&gt;                        ("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd","oas");
&gt;
&gt;                        OMFactory sfactory = new DOMSOAPFactory();
&gt;                        ElementImpl security = new ElementImpl(new DocumentImpl(sfactory),
"Security", omns, sfactory);
&gt;                        ElementImpl usernameToken = new ElementImpl(security, "UsernameToken",
omns, sfactory);
&gt;                        ElementImpl username = new ElementImpl(usernameToken, "Username",
omns, sfactory);
&gt;                        username.setText("myusername");
&gt;
&gt;                        ElementImpl password = new ElementImpl(usernameToken, "Password",
omns, sfactory);
&gt;                        password.setText("mypassword");
&gt;
&gt;                        mc.getEnvelope().getHeader().addChild(security);
&gt;            }catch(Exception e){
&gt;                        System.out.println("exp: " + e);
&gt;            }
&gt;            System.out.println("Logging the Header" + mc.getEnvelope().getHeader().toString());
&gt;                        return true;
&gt;    }
&gt; }
&gt;
&gt;
&gt; &lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
&gt;    &lt;class name="samples.mediators.AddHeaders"/&gt;
&gt;    &lt;callout serviceURL="http://localhost:5002/baocdp/ws/workflow"
&gt;             action="execute-workflow"&gt;
&gt;        &lt;source xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
&gt;                xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
&gt;                            xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/&gt;
&gt;        &lt;target xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
&gt;                xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
&gt;                xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/&gt;
&gt;    &lt;/callout&gt;
&gt;    &lt;property name="RESPONSE" value="true"/&gt;
&gt; &lt;/definitions&gt;
&gt;
&gt; Regards,
&gt; Sabareeswar
&gt;
&gt;
&gt; **************** CAUTION - Disclaimer *****************
&gt; This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
&gt; for the use of the addressee(s). If you are not the intended recipient, please
&gt; notify the sender by e-mail and delete the original message. Further, you are not
&gt; to copy, disclose, or distribute this e-mail or its contents to any other person and
&gt; any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
&gt; every reasonable precaution to minimize this risk, but is not liable for any damage
&gt; you may sustain as a result of any virus in this e-mail. You should carry out your
&gt; own virus checks before opening the e-mail or attachment. Infosys reserves the
&gt; right to monitor and review the content of all messages sent to or from this e-mail
&gt; address. Messages sent to or from this e-mail address may be stored on the
&gt; Infosys e-mail system.
&gt; ***INFOSYS******** End of Disclaimer ********INFOSYS***
&gt;



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Issues in using Custom Mediation</title>
<author><name>Paul Fremantle &lt;pzfreo@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c88f5d710910230105p45cb09bek90e8e55104026b1a@mail.gmail.com%3e"/>
<id>urn:uuid:%3c88f5d710910230105p45cb09bek90e8e55104026b1a@mail-gmail-com%3e</id>
<updated>2009-10-23T08:05:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Sabareeswar

Hi.

I don't understand why you are using the callout mediator. Also
Synapse already supports adding security into outgoing flows using
WS-Policy. Is this standard WS-Security Username token you are adding?

Paul



On Fri, Oct 23, 2009 at 8:28 AM, Sabareeswar P. B.
&lt;Sabareeswar_PB@infosys.com&gt; wrote:
&gt; Hi,
&gt;
&gt; We are using synapse between
&gt; 1)       A web service client that was created from a wsdl that doesn't have any authentication
parameters.
&gt; 2)       A web service provider that requires authentication.
&gt;
&gt; One of the requirements is to introduce a header element as per the requirements of the
service provider.
&gt;
&gt; I am using custom mediation in java to do this. The java class and the synapse.xml are
given below.
&gt; The problem is that the Header changes that I do in the custom class are not appearing
in the Header that goes to the web service provider.
&gt; In fact, the soap envelope to the web service provider doesn't have a soapHeader field
at all, though it appears properly when I try to log it within the java class.
&gt;
&gt; Could you please provide any pointers to this?
&gt;
&gt; public class AddHeaders extends AbstractMediator {
&gt;    public boolean mediate(MessageContext mc) {
&gt;            try {
&gt;                        NamespaceImpl secns = new NamespaceImpl
&gt;                        ("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd","oas");
&gt;
&gt;                        NamespaceImpl omns = new NamespaceImpl
&gt;                        ("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd","oas");
&gt;
&gt;                        OMFactory sfactory = new DOMSOAPFactory();
&gt;                        ElementImpl security = new ElementImpl(new DocumentImpl(sfactory),
"Security", omns, sfactory);
&gt;                        ElementImpl usernameToken = new ElementImpl(security, "UsernameToken",
omns, sfactory);
&gt;                        ElementImpl username = new ElementImpl(usernameToken, "Username",
omns, sfactory);
&gt;                        username.setText("myusername");
&gt;
&gt;                        ElementImpl password = new ElementImpl(usernameToken, "Password",
omns, sfactory);
&gt;                        password.setText("mypassword");
&gt;
&gt;                        mc.getEnvelope().getHeader().addChild(security);
&gt;            }catch(Exception e){
&gt;                        System.out.println("exp: " + e);
&gt;            }
&gt;            System.out.println("Logging the Header" + mc.getEnvelope().getHeader().toString());
&gt;                        return true;
&gt;    }
&gt; }
&gt;
&gt;
&gt; &lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
&gt;    &lt;class name="samples.mediators.AddHeaders"/&gt;
&gt;    &lt;callout serviceURL="http://localhost:5002/baocdp/ws/workflow"
&gt;             action="execute-workflow"&gt;
&gt;        &lt;source xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
&gt;                xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
&gt;                            xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/&gt;
&gt;        &lt;target xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
&gt;                xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
&gt;                xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/&gt;
&gt;    &lt;/callout&gt;
&gt;    &lt;property name="RESPONSE" value="true"/&gt;
&gt; &lt;/definitions&gt;
&gt;
&gt; Regards,
&gt; Sabareeswar
&gt;
&gt;
&gt; **************** CAUTION - Disclaimer *****************
&gt; This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
&gt; for the use of the addressee(s). If you are not the intended recipient, please
&gt; notify the sender by e-mail and delete the original message. Further, you are not
&gt; to copy, disclose, or distribute this e-mail or its contents to any other person and
&gt; any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
&gt; every reasonable precaution to minimize this risk, but is not liable for any damage
&gt; you may sustain as a result of any virus in this e-mail. You should carry out your
&gt; own virus checks before opening the e-mail or attachment. Infosys reserves the
&gt; right to monitor and review the content of all messages sent to or from this e-mail
&gt; address. Messages sent to or from this e-mail address may be stored on the
&gt; Infosys e-mail system.
&gt; ***INFOSYS******** End of Disclaimer ********INFOSYS***
&gt;



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Issues in using Custom Mediation</title>
<author><name>&quot;Sabareeswar P. B.&quot; &lt;Sabareeswar_PB@infosys.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c7EE0943D07988A42B6FC81D0CBF7BA301903B16FD6@BLRKECMBX05.ad.infosys.com%3e"/>
<id>urn:uuid:%3c7EE0943D07988A42B6FC81D0CBF7BA301903B16FD6@BLRKECMBX05-ad-infosys-com%3e</id>
<updated>2009-10-23T07:28:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

We are using synapse between
1)       A web service client that was created from a wsdl that doesn't have any authentication
parameters.
2)       A web service provider that requires authentication.

One of the requirements is to introduce a header element as per the requirements of the service
provider.

I am using custom mediation in java to do this. The java class and the synapse.xml are given
below.
The problem is that the Header changes that I do in the custom class are not appearing in
the Header that goes to the web service provider.
In fact, the soap envelope to the web service provider doesn't have a soapHeader field at
all, though it appears properly when I try to log it within the java class.

Could you please provide any pointers to this?

public class AddHeaders extends AbstractMediator {
    public boolean mediate(MessageContext mc) {
            try {
                        NamespaceImpl secns = new NamespaceImpl
                        ("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd","oas");

                        NamespaceImpl omns = new NamespaceImpl
                        ("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd","oas");

                        OMFactory sfactory = new DOMSOAPFactory();
                        ElementImpl security = new ElementImpl(new DocumentImpl(sfactory),
"Security", omns, sfactory);
                        ElementImpl usernameToken = new ElementImpl(security, "UsernameToken",
omns, sfactory);
                        ElementImpl username = new ElementImpl(usernameToken, "Username",
omns, sfactory);
                        username.setText("myusername");

                        ElementImpl password = new ElementImpl(usernameToken, "Password",
omns, sfactory);
                        password.setText("mypassword");

                        mc.getEnvelope().getHeader().addChild(security);
            }catch(Exception e){
                        System.out.println("exp: " + e);
            }
            System.out.println("Logging the Header" + mc.getEnvelope().getHeader().toString());
                        return true;
    }
}


&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
    &lt;class name="samples.mediators.AddHeaders"/&gt;
    &lt;callout serviceURL="http://localhost:5002/baocdp/ws/workflow"
             action="execute-workflow"&gt;
        &lt;source xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
                xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
                            xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/&gt;
        &lt;target xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
                xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
                xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/&gt;
    &lt;/callout&gt;
    &lt;property name="RESPONSE" value="true"/&gt;
&lt;/definitions&gt;

Regards,
Sabareeswar


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Manipulating SOAP Headers using 'header' tag</title>
<author><name>&quot;Asankha C. Perera&quot; &lt;asankha@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c4AE02CB0.1090304@apache.org%3e"/>
<id>urn:uuid:%3c4AE02CB0-1090304@apache-org%3e</id>
<updated>2009-10-22T09:58:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Sabareeswar
&gt; Am not able to subscribe to the link - I think it is being blocked by the firewall.
&gt;   
Ok, I've added you manually, so you should be able to post in future..
&gt; And regarding the usage of an XML "value", the character entity (&amp;lt;) is not getting
translated to "&lt;", though there is no problem with (&amp;gt;).
&gt;   
I meant to allow one to write as follows - similarly to how we allow
tasks to define XML properties [1]

&lt;header name="urn:grid-name" value="SMECGRID" xmlns:urn="...."/&gt;
&lt;header name="urn:grid-name" value="SMECGRID" xmlns:urn="...."&gt;
       &lt;oas:Security&gt;
         &lt;oas:UsernameToken&gt;
            &lt;oas:Username&gt;admin&lt;/oas:Username&gt;
            &lt;oas:Password&gt;admin123&lt;/oas:Password&gt;
         &lt;/oas:UsernameToken&gt;
      &lt;/oas:Security&gt;
&lt;/header&gt;

This way, any valid XML content can be specified easily and elegantly

cheers
asankha

[1] http://synapse.apache.org/Synapse_Configuration_Language.html#task

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Manipulating SOAP Headers using 'header' tag</title>
<author><name>&quot;Asankha C. Perera&quot; &lt;asankha@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c4AE027BA.6010307@apache.org%3e"/>
<id>urn:uuid:%3c4AE027BA-6010307@apache-org%3e</id>
<updated>2009-10-22T09:36:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Sabareeswar

Please join [1] the user mailing list to receive future replies, else
your message goes into manual moderation.
&gt; We are using synapse between
&gt; 1)       A web service client that was created from a wsdl that doesn't have any authentication
parameters.
&gt; 2)       A web service provider that requires authentication.
&gt;
&gt; One of the requirements is to introduce a header element as per the requirements of the
service provider.
&gt; Is it possible to use the "header" tag in synapse to create a SOAP:Header element as
given below?
&gt;   
Not currently.. however it would be possible if the header mediator was
extended to read an XML value instead of a String attribute.
&gt;    &lt;soapenv:Header&gt;
&gt;       &lt;urn:grid-name&gt;SMECGRID&lt;/urn:grid-name&gt;
&gt;       &lt;oas:Security&gt;
&gt;          &lt;oas:UsernameToken&gt;
&gt;             &lt;oas:Username&gt;admin&lt;/oas:Username&gt;
&gt;             &lt;oas:Password&gt;admin123&lt;/oas:Password&gt;
&gt;          &lt;/oas:UsernameToken&gt;
&gt;       &lt;/oas:Security&gt;
&gt;    &lt;/soapenv:Header&gt;
&gt;
&gt; If not, is using Custom mediation in Java a good approach?
&gt;   
Yes, that will be a workaround. If you could enhance the HeaderMediator
code itself, you could use it as well as share it back with the others

cheers
asankha

[1] http://synapse.apache.org/mail-lists.html

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






</pre>
</div>
</content>
</entry>
<entry>
<title>Manipulating SOAP Headers using 'header' tag</title>
<author><name>&quot;Sabareeswar P. B.&quot; &lt;Sabareeswar_PB@infosys.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c7EE0943D07988A42B6FC81D0CBF7BA301903B16A37@BLRKECMBX05.ad.infosys.com%3e"/>
<id>urn:uuid:%3c7EE0943D07988A42B6FC81D0CBF7BA301903B16A37@BLRKECMBX05-ad-infosys-com%3e</id>
<updated>2009-10-22T06:38:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

We are using synapse between
1)       A web service client that was created from a wsdl that doesn't have any authentication
parameters.
2)       A web service provider that requires authentication.

One of the requirements is to introduce a header element as per the requirements of the service
provider.
Is it possible to use the "header" tag in synapse to create a SOAP:Header element as given
below?
   &lt;soapenv:Header&gt;
      &lt;urn:grid-name&gt;SMECGRID&lt;/urn:grid-name&gt;
      &lt;oas:Security&gt;
         &lt;oas:UsernameToken&gt;
            &lt;oas:Username&gt;admin&lt;/oas:Username&gt;
            &lt;oas:Password&gt;admin123&lt;/oas:Password&gt;
         &lt;/oas:UsernameToken&gt;
      &lt;/oas:Security&gt;
   &lt;/soapenv:Header&gt;

If not, is using Custom mediation in Java a good approach?

Thanks

Regards,
Sabareeswar


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Clone Mediator endpoint</title>
<author><name>Ruwan Linton &lt;ruwan.linton@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c672a01200910201132o19bc56b3w77908338348ea75f@mail.gmail.com%3e"/>
<id>urn:uuid:%3c672a01200910201132o19bc56b3w77908338348ea75f@mail-gmail-com%3e</id>
<updated>2009-10-20T18:32:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Yes, Hiranya is correct on this...

The clone mediator target mediates the message using the specified sequence
and then send the message using the specified endpoint.

So you shouldn't try to send the message in the target sequence.

Thanks,
Ruwan

On Tue, Oct 20, 2009 at 7:40 PM, Hiranya Jayathilaka
&lt;hiranya911@gmail.com&gt;wrote:

&gt; On Tue, Oct 20, 2009 at 1:41 PM, Florin Bejinaru
&gt; &lt;florinbejinaru@gmail.com&gt;wrote:
&gt;
&gt; &gt; The Error I am getting is :
&gt; &gt;
&gt; &gt; 2009-10-20 00:33:50,308 [10.9.4.40-Florin-9Aug2009] [SynapseWorker-1]
&gt; ERROR
&gt; &gt; ClientUtils The system cannot infer the transport information from the
&gt; &gt; /services/Event URL.
&gt; &gt; 2009-10-20 00:33:50,312 [10.9.4.40-Florin-9Aug2009] [SynapseWorker-1]
&gt; ERROR
&gt; &gt; Axis2Sender Unexpected error during sending message out
&gt; &gt; org.apache.axis2.AxisFault: The system cannot infer the transport
&gt; &gt; information from the /services/Event URL.
&gt; &gt;
&gt; &gt; which I don't get if I set the "to" attribute on the target element.
&gt; &gt;
&gt;
&gt; Looking at the source code of the CloneMediator and the Target class, I
&gt; can't see why this approach doesn't work. It should work without any
&gt; issues.
&gt; Here's the relevant code segment from the Taget class.
&gt;
&gt;        *if (sequence != null) {
&gt;            synCtx.getEnvironment().injectAsync(synCtx, sequence);
&gt;        } else if (sequenceRef != null) {
&gt;            SequenceMediator refSequence = (SequenceMediator)
&gt; synCtx.getSequence(sequenceRef);
&gt;            if (refSequence != null) {
&gt;                synCtx.getEnvironment().injectAsync(synCtx, refSequence);
&gt;            }
&gt;        } else if (endpoint != null) {
&gt;            endpoint.send(synCtx);
&gt;        } else if (endpointRef != null) {
&gt;            Endpoint epr =
&gt; synCtx.getConfiguration().getEndpoint(endpointRef);
&gt;            if (epr != null) {
&gt;                epr.send(synCtx);
&gt;            }
&gt;        }*
&gt;
&gt; Can you please verify that Synapse doesn't send any messages to the
&gt; endpoint
&gt; you have specified? Note that when an endpoint is refered by the target it
&gt; tries to send the message to that endpoint. Therefore putting a send
&gt; mediator in the clone mediator target is not required and that could even
&gt; cause issues. May be the clone mediator actually sends messages to the
&gt; specified endpoint and what is failing is the send mediator which tries to
&gt; send the message to the 'To' address set in the message.
&gt;
&gt; Thanks,
&gt; Hiranya
&gt;
&gt;
&gt; --
&gt; Hiranya Jayathilaka
&gt; Software Engineer;
&gt; WSO2 Inc.;  http://wso2.org
&gt; E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
&gt; Blog: http://techfeast-hiranya.blogspot.com
&gt;



-- 
Ruwan Linton
Technical Lead &amp; Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Clone Mediator endpoint</title>
<author><name>Hiranya Jayathilaka &lt;hiranya911@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c558af1840910200710w5a5a3402i530e53740c889b1c@mail.gmail.com%3e"/>
<id>urn:uuid:%3c558af1840910200710w5a5a3402i530e53740c889b1c@mail-gmail-com%3e</id>
<updated>2009-10-20T14:10:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Oct 20, 2009 at 1:41 PM, Florin Bejinaru
&lt;florinbejinaru@gmail.com&gt;wrote:

&gt; The Error I am getting is :
&gt;
&gt; 2009-10-20 00:33:50,308 [10.9.4.40-Florin-9Aug2009] [SynapseWorker-1] ERROR
&gt; ClientUtils The system cannot infer the transport information from the
&gt; /services/Event URL.
&gt; 2009-10-20 00:33:50,312 [10.9.4.40-Florin-9Aug2009] [SynapseWorker-1] ERROR
&gt; Axis2Sender Unexpected error during sending message out
&gt; org.apache.axis2.AxisFault: The system cannot infer the transport
&gt; information from the /services/Event URL.
&gt;
&gt; which I don't get if I set the "to" attribute on the target element.
&gt;

Looking at the source code of the CloneMediator and the Target class, I
can't see why this approach doesn't work. It should work without any issues.
Here's the relevant code segment from the Taget class.

        *if (sequence != null) {
            synCtx.getEnvironment().injectAsync(synCtx, sequence);
        } else if (sequenceRef != null) {
            SequenceMediator refSequence = (SequenceMediator)
synCtx.getSequence(sequenceRef);
            if (refSequence != null) {
                synCtx.getEnvironment().injectAsync(synCtx, refSequence);
            }
        } else if (endpoint != null) {
            endpoint.send(synCtx);
        } else if (endpointRef != null) {
            Endpoint epr =
synCtx.getConfiguration().getEndpoint(endpointRef);
            if (epr != null) {
                epr.send(synCtx);
            }
        }*

Can you please verify that Synapse doesn't send any messages to the endpoint
you have specified? Note that when an endpoint is refered by the target it
tries to send the message to that endpoint. Therefore putting a send
mediator in the clone mediator target is not required and that could even
cause issues. May be the clone mediator actually sends messages to the
specified endpoint and what is failing is the send mediator which tries to
send the message to the 'To' address set in the message.

Thanks,
Hiranya


-- 
Hiranya Jayathilaka
Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Clone Mediator endpoint</title>
<author><name>Florin Bejinaru &lt;florinbejinaru@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3cfa4777770910200111q43fe7003jfff7a8ee4aa48dbf@mail.gmail.com%3e"/>
<id>urn:uuid:%3cfa4777770910200111q43fe7003jfff7a8ee4aa48dbf@mail-gmail-com%3e</id>
<updated>2009-10-20T08:11:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
An error occured while fetching this message, sorry !
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Clone Mediator endpoint</title>
<author><name>Ruwan Linton &lt;ruwan.linton@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c672a01200910192158t597c8a09kc1f9b8c8d71ef83e@mail.gmail.com%3e"/>
<id>urn:uuid:%3c672a01200910192158t597c8a09kc1f9b8c8d71ef83e@mail-gmail-com%3e</id>
<updated>2009-10-20T04:58:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Your approach seems to be correct and it should work, can you please attach
the error log that you are getting with this configuration?

Also do you have the registry declaration in the synapse.xml, I assume yes,
since you have other dynamic endpoints working. You may also attach the
synapse.xml configuration so that I can reproduce the issue if there are
any.

Thanks,
Ruwan

On Tue, Oct 20, 2009 at 2:54 AM, Florin Bejinaru
&lt;florinbejinaru@gmail.com&gt;wrote:

&gt; I have to specify a "to" address of a clone mediator, but I need to do it
&gt; dynamically so I thought that  :
&gt; &lt;clone&gt;
&gt;    &lt;target endpoint="endpoint/dynamic_endpoint.xml"&gt;
&gt;          &lt;sequence&gt;...
&gt;
&gt; should do the trick, but I am getting an exception when trying to &lt;send /&gt;
&gt; in the clone mediator, how can I set the endpoint of the clone mediator so
&gt; that it points to an external endpoint file.
&gt;
&gt; I should also mention that I am using other &lt;endpoint
&gt; key="endpoint/other_dynamic_endpoint.xml"/&gt; endpoints just fine so it's not
&gt; the endpoints xml files.
&gt;



-- 
Ruwan Linton
Technical Lead &amp; Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Clone Mediator endpoint</title>
<author><name>Florin Bejinaru &lt;florinbejinaru@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3cfa4777770910191424t57d807d9gdf2414ce9b0ea01@mail.gmail.com%3e"/>
<id>urn:uuid:%3cfa4777770910191424t57d807d9gdf2414ce9b0ea01@mail-gmail-com%3e</id>
<updated>2009-10-19T21:24:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I have to specify a "to" address of a clone mediator, but I need to do it
dynamically so I thought that  :
&lt;clone&gt;
    &lt;target endpoint="endpoint/dynamic_endpoint.xml"&gt;
          &lt;sequence&gt;...

should do the trick, but I am getting an exception when trying to &lt;send /&gt;
in the clone mediator, how can I set the endpoint of the clone mediator so
that it points to an external endpoint file.

I should also mention that I am using other &lt;endpoint
key="endpoint/other_dynamic_endpoint.xml"/&gt; endpoints just fine so it's not
the endpoints xml files.


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: The system is attempting to access an inactive service</title>
<author><name>&quot;Dmitry.Kovalev&quot; &lt;Dmitry.Kovalev@osr.nsw.gov.au&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c25902663.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25902663-post@talk-nabble-com%3e</id>
<updated>2009-10-15T03:39:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Asankha,

Yes if services been started at least ones, there will be no problem,
There is also similar issue, If I supply wrong password for sftp polling
proxy, vfstransport will aggressively polls even if the proxy is off by
default.


Asankha C. Perera wrote:
&gt; 
&gt; This sounds like a problem with stopping and restarting the service with
&gt; the WSO2 UI? .. for example, if you leave the service on as default - it
&gt; works right?
&gt; 

-- 
View this message in context: http://www.nabble.com/The-system-is-attempting-to-access-an-inactive-service-tp25885640p25902663.html
Sent from the Synapse - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Endpoint becomes indirect and do not switch on after suspendDurationOnFailure expires</title>
<author><name>&quot;Dmitry.Kovalev&quot; &lt;Dmitry.Kovalev@osr.nsw.gov.au&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c25902612.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25902612-post@talk-nabble-com%3e</id>
<updated>2009-10-15T03:31:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi Asankha,

Yes, it's version 1.2 within wso2 1.7.1.
We have a number of small projects together on one instance and used
integrated repository's xml files to store sequences and endpoints to keep
the synapse.xml smaller, and simplify and automate deployment process.

Cheers,
Dmitry


Asankha C. Perera wrote:
&gt; 
&gt; I've recently got to know about an issue with indirect endpoints by a
&gt; production client against the original 1.2 release. Do you "require"
&gt; indirect endpoints - or have you used it just because it seemed ok?
&gt; 

-- 
View this message in context: http://www.nabble.com/Endpoint-becomes-indirect-and-do-not-switch-on-after-suspendDurationOnFailure-expires-tp25885867p25902612.html
Sent from the Synapse - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Endpoint becomes indirect and do not switch on after suspendDurationOnFailure expires</title>
<author><name>&quot;Asankha C. Perera&quot; &lt;asankha@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c4AD57387.1080209@apache.org%3e"/>
<id>urn:uuid:%3c4AD57387-1080209@apache-org%3e</id>
<updated>2009-10-14T06:45:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Dmitry
&gt; Endpoint becomes indirect and do not switch on after suspendDurationOnFailure
&gt; expires.
&gt;
&gt; WARN : IndirectEndpoint  - Endpoint : esb-event-dead-letter is currently
&gt; inactive - invoking fault handler / assuming failure
&gt;   
Again, I need to know the exact version you are reporting this against..
I've recently got to know about an issue with indirect endpoints by a
production client against the original 1.2 release. Do you "require"
indirect endpoints - or have you used it just because it seemed ok?

cheers
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






</pre>
</div>
</content>
</entry>
<entry>
<title>Re: The system is attempting to access an inactive service</title>
<author><name>&quot;Asankha C. Perera&quot; &lt;asankha@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c4AD57224.4010100@apache.org%3e"/>
<id>urn:uuid:%3c4AD57224-4010100@apache-org%3e</id>
<updated>2009-10-14T06:39:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Dmitry
&gt; After restarting WSO2, VFS transport hangs if listener proxy is off on
&gt; startup. 
&gt;   
Are you using the WSO2 version or Synapse? Can you let me know the
version of Synapse which is in use?
&gt; That happens only when transport accesses an inactive proxy which never been
&gt; started in the current session. If I start and then stop it, the problem
&gt; goes away.
&gt;   
This sounds like a problem with stopping and restarting the service with
the WSO2 UI? .. for example, if you leave the service on as default - it
works right?

cheers
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






</pre>
</div>
</content>
</entry>
<entry>
<title>Endpoint becomes indirect and do not switch on after suspendDurationOnFailure expires</title>
<author><name>&quot;Dmitry.Kovalev&quot; &lt;Dmitry.Kovalev@osr.nsw.gov.au&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c25885867.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25885867-post@talk-nabble-com%3e</id>
<updated>2009-10-14T06:13:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Endpoint becomes indirect and do not switch on after suspendDurationOnFailure
expires.

WARN : IndirectEndpoint  - Endpoint : esb-event-dead-letter is currently
inactive - invoking fault handler / assuming failure

I've set suspendDurationOnFailure to 60 so that after 1 min it should give
me an error, something like unable to sent because of bla bla, instead it
never becomes online again

Any ideas? 

Cheers

&lt;syn:endpoint name="esb-event-retry"
xmlns:syn="http://ws.apache.org/ns/synapse"&gt;
	&lt;syn:address
	
uri="jms:/esb_event_retry?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;amp;java.naming.provider.url=tcp://localhost:61616&amp;amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;amp;java.naming.security.principal=esb&amp;amp;java.naming.security.credentials=xxxxxxxxxxx"&gt;
          &lt;syn:timeout&gt;
              &lt;syn:duration&gt;15&lt;/syn:duration&gt;
              &lt;syn:action&gt;fault&lt;/syn:action&gt;
          &lt;/syn:timeout&gt;
          &lt;syn:suspendDurationOnFailure&gt;60&lt;/syn:suspendDurationOnFailure&gt;
   &lt;/syn:address&gt;
&lt;/syn:endpoint&gt;
-- 
View this message in context: http://www.nabble.com/Endpoint-becomes-indirect-and-do-not-switch-on-after-suspendDurationOnFailure-expires-tp25885867p25885867.html
Sent from the Synapse - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>The system is attempting to access an inactive service</title>
<author><name>&quot;Dmitry.Kovalev&quot; &lt;Dmitry.Kovalev@osr.nsw.gov.au&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c25885640.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25885640-post@talk-nabble-com%3e</id>
<updated>2009-10-14T05:44:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

After restarting WSO2, VFS transport hangs if listener proxy is off on
startup. 

That happens only when transport accesses an inactive proxy which never been
started in the current session. If I start and then stop it, the problem
goes away.

Any ideas?

Thanks a lot,

2009-10-02 16:55:14,272 ERROR : VFSTransportListener - Error processing File
URI : sftp://esb:xxxxxxxx@xxxxxxpp2/home/ucmxfer/test/IN/dump.synapce84.csv
org.apache.axis2.AxisFault: The system is attempting to access an inactive
service: ccs-ucm-listener
at
org.apache.axis2.engine.AxisConfiguration.getService(AxisConfiguration.java:755)
at
org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:404)
at
org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:241)
at
org.apache.synapse.transport.vfs.VFSTransportListener.onPoll(VFSTransportListener.java:145)
at
org.apache.synapse.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:94)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619) 
-- 
View this message in context: http://www.nabble.com/The-system-is-attempting-to-access-an-inactive-service-tp25885640p25885640.html
Sent from the Synapse - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: VTD-XML 2.7</title>
<author><name>&quot;jimmy Zhang&quot; &lt;crackeur@comcast.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c001401ca45eb$84123fa0$0402a8c0@your55e5f9e3d2%3e"/>
<id>urn:uuid:%3c001401ca45eb$84123fa0$0402a8c0@your55e5f9e3d2%3e</id>
<updated>2009-10-05T18:41:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
There is a reason why vtd-xml is tagged as ESB, look at the link below and 
you will
see my point

http://ximpleware.wordpress.com/2009/08/19/some-independent-performance-test-result/
----- Original Message ----- 
From: "Asankha C. Perera" &lt;asankha@apache.org&gt;
To: &lt;user@synapse.apache.org&gt;; &lt;crackeur@comcast.net&gt;
Sent: Sunday, October 04, 2009 9:10 PM
Subject: Re: VTD-XML 2.7


&gt; Hi Jimmy
&gt;&gt; VTD-XML 2.7 (http://vtd-xml.sf.net) is released and can be downloaded at
&gt;&gt;
&gt; Is this released only under a GPL license? If so Synapse will not be
&gt; able to make use of it.. Also I am curious as the project is tagged as
&gt; "esb".. are there any other ESB implementations using it at present?
&gt;
&gt; cheers
&gt; asankha
&gt;
&gt; -- 
&gt; Asankha C. Perera
&gt; AdroitLogic, http://adroitlogic.org
&gt;
&gt; http://esbmagic.blogspot.com
&gt;
&gt;
&gt;
&gt;
&gt; 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: VTD-XML 2.7</title>
<author><name>&quot;Asankha C. Perera&quot; &lt;asankha@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/synapse-user/200910.mbox/%3c4AC971A3.1080001@apache.org%3e"/>
<id>urn:uuid:%3c4AC971A3-1080001@apache-org%3e</id>
<updated>2009-10-05T04:10:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Jimmy
&gt; VTD-XML 2.7 (http://vtd-xml.sf.net) is released and can be downloaded at
&gt;   
Is this released only under a GPL license? If so Synapse will not be
able to make use of it.. Also I am curious as the project is tagged as
"esb".. are there any other ESB implementations using it at present?

cheers
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






</pre>
</div>
</content>
</entry>
</feed>
