Re: [Dev] wso2esb 4.8.1 and 4.9.0 different behaviour onError

2015-11-24 Thread Madhuranga Bandara
Hi Nariman,

I have tested the scenario according to your specification.
In the error sequence SOAP body is not present in ESB 4.9.0.
This is a bug in ESB 4.9.0. We will raise a public Jira for this and fix it
in the next release.


Thanks,
Madhuranga.


*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
lean.enterprise.middleware
Mobile: +94722241065

On Mon, Nov 23, 2015 at 4:44 PM, Nariman Abdullayev (TD) <
itana...@azercell.com> wrote:

> Hello,
>
> Could someone help me with this issue? I cannot understand why SOAP
> message is lost after an http exception
>
> Thank in advance,
>
> Nariman.
>
>
> On 11/17/2015 09:05 AM, Nariman Abdullayev (TD) wrote:
>
> Hi Madhuranga,
>
> Thank you for the sample. There is actually full envelope body in your
> example. Using your sample I was able to understand what cause an empty
> envelope in onError sequence.
>
> if you add just two additional parameters to the endpoint:
>
> 
> 5000
> fault
>  
>
> So that endpoint timeout becomes 5 seconds and after timeout an error must
> be thrown (otherwise error sequence is not called)
>
> and point an endpoint to some url which is actually reply after more than
> 5 seconds...
> For example, I achieve timeout using this simple php script:
>
>  ob_start();
> sleep(40);
> header("Content-type:  text/xml;charset=ISO-8859-1");
> echo 'XXX';
> ob_end_flush();
> ?>
>
> In this case, when timeout occurs, I get empty envelope...
>
> log file sample, with configured timeout:
>
> [2015-11-16 22:15:10,982]  INFO - LogMediator To:
> /services/InOnlyProxy.InOnlyProxyHttpSoap12Endpoint, MessageID:
> urn:uuid:90c7f86d-d11a-4b13-a058-82c9900fefc4, Direction: request,
>  retry_count = null, Envelope:  encoding='utf-8'?> <http://schemas.xmlsoap.org/soap/envelope/>
> "http://schemas.xmlsoap.org/soap/envelope/";
> <http://schemas.xmlsoap.org/soap/envelope/>
> >
> [2015-11-16 22:15:10,987]  WARN - TimeoutHandler Expiring message ID :
> urn:uuid:8358adc3-08e7-425b-ab62-3419a477439a; dropping message after
> timeout of : 5 seconds
> [2015-11-16 22:15:25,978]  INFO - LogMediator To:
> /services/InOnlyProxy.InOnlyProxyHttpSoap12Endpoint, MessageID:
> urn:uuid:01b3c6df-ed0d-4ab5-82fd-5630fb24a115, Direction: request,
>  retry_count = 1, Envelope:  encoding='utf-8'?> <http://schemas.xmlsoap.org/soap/envelope/>
> "http://schemas.xmlsoap.org/soap/envelope/";
> <http://schemas.xmlsoap.org/soap/envelope/>
> >
> [2015-11-16 22:15:25,980]  WARN - TimeoutHandler Expiring message ID :
> urn:uuid:caacc0ec-5750-4580-9eb6-27be7b593be2; dropping message after
> timeout of : 5 seconds
> [2015-11-16 22:15:37,416]  WARN - SynapseCallbackReceiver Synapse received
> a response for the request with message Id :
> urn:uuid:8358adc3-08e7-425b-ab62-3419a477439a But a callback
>  is not registered (anymore) to process this response
> [2015-11-16 22:15:40,978]  INFO - LogMediator To:
> /services/InOnlyProxy.InOnlyProxyHttpSoap12Endpoint, MessageID:
> urn:uuid:9561bc27-15aa-4523-bf26-404761983f11, Direction: request,
>  retry_count = 2.0, Envelope:  encoding='utf-8'?> <http://schemas.xmlsoap.org/soap/envelope/>
> "http://schemas.xmlsoap.org/soap/envelope/";
> <http://schemas.xmlsoap.org/soap/envelope/>
> >
> [2015-11-16 22:15:40,979]  WARN - TimeoutHandler Expiring message ID :
> urn:uuid:80fdc5ae-b31f-42c6-9be6-358c93d8bb4a; dropping message after
> timeout of : 5 seconds
>
> If I deploy the same project to 4.8.1 the SOAP body is not lost. However,
> in 4.9.0 SOAP body is not available.. So the question is why there is such
> a difference? is it done on purpose?
>
> for the reference, my endpoint xml:
>  <http://ws.apache.org/ns/synapse>"http://ws.apache.org/ns/synapse";
> <http://ws.apache.org/ns/synapse>>
>   http://localhost/index.php"; <http://localhost/index.php>>
>   
>   5000
>  fault
> 
> 
> -1
> 1.0
> 
> 
> -1
> 
> 
> 
>
>
> Thanks in advance,
>
> Nariman.
>
>
> On 11/15/2015 08:53 AM, Madhuranga Bandara wrote:
>
> Hi Nariman,
>
> I have tried this in a ESB 4.9.0 fresh pack. Given below is my ESB
> configuration. I could access the SOAP envelop from
> "SimpleSQFault" onError sequence.
>
> 
> http://ws.apache.org/ns/synapse";>
> 
> 

Re: [Dev] wso2esb 4.8.1 and 4.9.0 different behaviour onError

2015-11-14 Thread Madhuranga Bandara
Hi Nariman,

I have tried this in a ESB 4.9.0 fresh pack. Given below is my ESB
configuration. I could access the SOAP envelop from
"SimpleSQFault" onError sequence.


http://ws.apache.org/ns/synapse";>

15000














http://127.0.0.1:9000/services/SimpleStockQuoteService
">

-1
1.0


-1





http://org.apache.synapse/xsd"; xmlns:ns3="
http://org.apache.synapse/xsd"/>

http://org.apache.synapse/xsd";
xmlns:ns3="http://org.apache.synapse/xsd";
xpath="get-property('retry_count')">

















http://www.w3.org/2003/05/soap-envelope"/>






































http://localhost:9000.*";
source="get-property('To')">







The main sequence for the message
mediation



3000
SimpleSQSender





Given below is the ESB Console output. You can see that the soap envelop
can be access from onError sequence.
This goes up to count 10. I have attached only part of it. Try it using
different SOAP envelop.

[2015-11-15 10:10:08,814]  WARN - ConnectCallback Connection refused or
failed for : /127.0.0.1:9000
[2015-11-15 10:10:08,817]  INFO - LogMediator To: /services/InOnlyProxy,
WSAction: urn:getQuote, SOAPAction: urn:getQuote, MessageID:
urn:uuid:63621a67-6906-48eb-af86-b8ee617d2afa, Direction: request,
retry_count = null, Envelope: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
http://services.samples/xsd"; xmlns:ser="http://services.samples
">
  
 
WSO2
 
  
   
[2015-11-15 10:10:11,176]  WARN - ConnectCallback Connection refused or
failed for : /127.0.0.1:9000
[2015-11-15 10:10:11,177]  INFO - LogMediator To: /services/InOnlyProxy,
WSAction: urn:getQuote, SOAPAction: urn:getQuote, MessageID:
urn:uuid:ca4e81a3-8dac-4e86-a845-f251a48353de, Direction: request,
retry_count = 1, Envelope: http://schemas.xmlsoap.org/soap/envelope/";>
  http://services.samples";>
 
http://services.samples/xsd
">WSO2
 
  
   


Thanks,
Madhuranga.


*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065

On Fri, Nov 13, 2015 at 6:45 PM, Nariman Abdullayev (TD) <
itana...@azercell.com> wrote:

> Hi,
>
> I have a registered onError sequence.
>
> In version 4.8.1 SOAP envelop is available in onError sequence while in
> 4.9.0 it is not.
>
> in order to access SOAP message content in 4.9.0 after error (in onError
> sequence) I always have to copy it to some temp variable initially. it is
> very inconvenient.
>
> could it be a bug or is it a new "feature" of 4.9.0?
>
>
> this is my fault sequence. if i remove enrich mediator envelope comes
> empty from the sequence with an error. Without enrich mediator message
> contains empty soap envelope. It can be seen in the output of the log
> mediator and in the message stored in RabbitMQ backend. Actually, it is
> onError sequence of NotifySendSequence sequence (I added them both for
> the reference). in case of failure I store the message in an external
> queue, then using sampling message I processor read messages from queue and
> to process them again. the idea is taken from -
> http://charith.wickramaarachchi.org/2012/05/another-message-redelivery-pattern-with.html
>
> 
>  xmlns="http://ws.apache.org/ns/synapse"; >
> 
> 
>  expression="get-property('retry_count')"/>
> 
>   http://www.w3.org/2003/05/soap-envelope"; 
>  xpath="get-property('mssg')">
> 
>   
> 
> 
>   
>   
> 
> 
>   
>
>
>
>   http://

Re: [Dev] Findbugs error on product-gw build

2015-11-11 Thread Madhuranga Bandara
Seems like this is a system dependant issue in findbugs.
if i remove boolean wait. then it wont compile saying.

[INFO] Return value of java.util.concurrent.CountDownLatch.await(long,
TimeUnit) ignored in
org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils.openChannel(ChannelFuture,
HttpRoute)
[org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] At
ChannelUtils.java:[line 95]



*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
lean.enterprise.middleware
Mobile: +94722241065

On Wed, Nov 11, 2015 at 6:50 PM, Kishanthan Thangarajah  wrote:

> Not sure if this is environment specific, but there is actually a unused
> variable at
> [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils]
> At ChannelUtils.java:[line 95]
>
> boolean wait =
> channelLatch.await(bootstrapConfiguration.getConnectTimeOut(),
> TimeUnit.MILLISECONDS);
>
> The above variable "*wait*" is never used. This is what reported by
> findbugs. Please fix this.
>
> On Wed, Nov 11, 2015 at 5:42 PM, Madhuranga Bandara 
> wrote:
>
>> Hi,
>>
>> I have tried same on MAC OS with mvn 3.3.3 and
>> findbugs-maven-plugin:3.0.2.
>> I could build the product without any issue.
>> i'm using java 8.
>>
>>
>> *Madhuranga Sampath Bandara*
>> Software Engineer
>>
>> WSO2, Inc.;http://wso2.com/
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
>> lean.enterprise.middleware
>> Mobile: +94722241065
>>
>> On Wed, Nov 11, 2015 at 4:22 PM, Chanaka Fernando 
>> wrote:
>>
>>> Madhuranga will look into this.
>>>
>>> On Wed, Nov 11, 2015 at 4:06 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
>>>> Build is failing on MacOS with maven 3.3.3.
>>>>
>>>> [INFO] --- findbugs-maven-plugin:3.0.2:check (analyze-compile) @
>>>> org.wso2.carbon.gateway ---
>>>> [INFO] BugInstance size is 1
>>>> [INFO] Error size is 0
>>>> [INFO] Total bugs: 1
>>>> *[INFO] Dead store to wait in
>>>> org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils.openChannel(ChannelFuture,
>>>> HttpRoute)
>>>> [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] At
>>>> ChannelUtils.java:[line 95]*
>>>> [INFO]
>>>>
>>>> To see bug detail using the Findbugs GUI, use the following command
>>>> "mvn findbugs:gui"
>>>>
>>>> [INFO]
>>>> 
>>>> [INFO] Reactor Summary:
>>>> [INFO]
>>>> [INFO] org.wso2.carbon.gateway.parent . SUCCESS [
>>>>  3.126 s]
>>>> [INFO] org.wso2.carbon.gateway  FAILURE [
>>>> 10.700 s]
>>>> [INFO] WSO2 Carbon - Gateway Feature .. SKIPPED
>>>> [INFO] WSO2 Gateway Server - Distribution . SKIPPED
>>>> [INFO]
>>>> 
>>>> [INFO] BUILD FAILURE
>>>> [INFO]
>>>> 
>>>> [INFO] Total time: 14.602 s
>>>> [INFO] Finished at: 2015-11-11T15:30:02+05:30
>>>> [INFO] Final Memory: 55M/482M
>>>> [INFO]
>>>> 
>>>> [ERROR] Failed to execute goal
>>>> org.codehaus.mojo:findbugs-maven-plugin:3.0.2:check (analyze-compile) on
>>>> project org.wso2.carbon.gateway: failed with 1 bugs and 0 errors -> [Help 
>>>> 1]
>>>>
>>>>
>>>> --
>>>> *Kishanthan Thangarajah*
>>>> Associate Technical Lead,
>>>> Platform Technologies Team,
>>>> WSO2, Inc.
>>>> lean.enterprise.middleware
>>>>
>>>> Mobile - +94773426635
>>>> Blog - *http://kishanthan.wordpress.com
>>>> <http://kishanthan.wordpress.com>*
>>>> Twitter - *http://twitter.com/kishanthan
>>>> <http://twitter.com/kishanthan>*
>>>>
>>>
>>>
>>>
>>> --
>>> Thank you and Best Regards,
>>> Chanaka Fernando
>>> Senior Technical Lead
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 773337238
>>> Blog : http://soatutorials.blogspot.com
>>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>>> Twitter:https://twitter.com/chanakaudaya
>>>
>>>
>>>
>>>
>>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Findbugs error on product-gw build

2015-11-11 Thread Madhuranga Bandara
Hi,

I have tried same on MAC OS with mvn 3.3.3 and findbugs-maven-plugin:3.0.2.
I could build the product without any issue.
i'm using java 8.


*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065

On Wed, Nov 11, 2015 at 4:22 PM, Chanaka Fernando  wrote:

> Madhuranga will look into this.
>
> On Wed, Nov 11, 2015 at 4:06 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Build is failing on MacOS with maven 3.3.3.
>>
>> [INFO] --- findbugs-maven-plugin:3.0.2:check (analyze-compile) @
>> org.wso2.carbon.gateway ---
>> [INFO] BugInstance size is 1
>> [INFO] Error size is 0
>> [INFO] Total bugs: 1
>> *[INFO] Dead store to wait in
>> org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils.openChannel(ChannelFuture,
>> HttpRoute)
>> [org.wso2.carbon.gateway.internal.transport.sender.channel.ChannelUtils] At
>> ChannelUtils.java:[line 95]*
>> [INFO]
>>
>> To see bug detail using the Findbugs GUI, use the following command "mvn
>> findbugs:gui"
>>
>> [INFO]
>> 
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] org.wso2.carbon.gateway.parent . SUCCESS [
>>  3.126 s]
>> [INFO] org.wso2.carbon.gateway  FAILURE [
>> 10.700 s]
>> [INFO] WSO2 Carbon - Gateway Feature .. SKIPPED
>> [INFO] WSO2 Gateway Server - Distribution . SKIPPED
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 14.602 s
>> [INFO] Finished at: 2015-11-11T15:30:02+05:30
>> [INFO] Final Memory: 55M/482M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal
>> org.codehaus.mojo:findbugs-maven-plugin:3.0.2:check (analyze-compile) on
>> project org.wso2.carbon.gateway: failed with 1 bugs and 0 errors -> [Help 1]
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> *
>> Twitter - *http://twitter.com/kishanthan *
>>
>
>
>
> --
> Thank you and Best Regards,
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
>
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Gateway 1.0.0 - Alpha Released !

2015-10-30 Thread Madhuranga Bandara
*WSO2 Gateway 1.0.0 - Alpha Released !*


We are pleased to announce the alpha release of WSO2 Gateway 1.0.0. It is
now available to download from here
.
The source and tag location for this release are available here

.


WSO2 Gateway (WSO2 GW) is an ultra high performance, lightweight and
configuration-driven message gateway based on standard gateway pattern. It
aims to encapsulate messaging between source and target systems that are
built with disparate technologies, protocols and standards. While it
includes messaging between two systems, message mediation can be controlled
by configuring WSO2 GW’s mediation logic.


The alpha release of WSO2 Gateway 1.0.0 includes the following key
features. For further details please see the documentation
.


Key Features

   -

   Ultra high performance and low latency  HTTP/S messaging.
   -

   Supports thousands of concurrent connections/clients.
   -

   Header-based routing using Apache Camel
    as the message mediation engine.
   -

   Defines REST services/APIs using Camel REST DSL
   
   -

   Lightweight and stateless service orchestration.
   -

   Load balancing and failover messaging.
   -

   Error handling support.


Fixed Issues

   -

   WSO2 Gateway 1.0.0 - Fixed Issues
   

How To Contribute

You can find more instructions on how to contribute on our documentation
 site.

If you have any suggestions or are interested in WSO2 Gateway discussions,
you can join the dev@wso2.org or architect...@wso2.org mailing lists.
Reporting Issues

We encourage you to report issues, documentation errors regarding WSO2
Gateway 1.0.0 alpha through the public issue tracking system
.



Thanks,

WSO2 Gateway Team


*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sasikala Kottegoda

2015-10-12 Thread Madhuranga Bandara
Congratulations Sasikala.. :)



*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065

On Mon, Oct 12, 2015 at 5:51 PM, Chanaka Fernando  wrote:

> Many congratulations Sasikala !!! Keep up the good work !!!
>
> On Mon, Oct 12, 2015 at 5:10 PM, Viraj Senevirathne 
> wrote:
>
>> Congrats Sasikala
>>
>> On Mon, Oct 12, 2015 at 3:20 PM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> Congratz Sasikala !
>>>
>>> On Mon, Oct 12, 2015 at 3:15 PM, Rajith Roshan  wrote:
>>>
 Congratz !!!

 On Mon, Oct 12, 2015 at 1:47 PM, Isuru Wijesinghe 
 wrote:

> Congratulations :)
>
> On Mon, Oct 12, 2015 at 12:10 PM, Malintha Amarasinghe <
> malint...@wso2.com> wrote:
>
>> Congratulations Sasikala!! :)
>>
>> On Mon, Oct 12, 2015 at 11:28 AM, Kirishanthy Tharmalingam <
>> kirishan...@wso2.com> wrote:
>>
>>> Congrats Sasikala !
>>>
>>> On Mon, Oct 12, 2015 at 11:13 AM, Sasikala Kottegoda <
>>> sasik...@wso2.com> wrote:
>>>
 Thanks all... :)

 And special thanks to the MB team for the help that I've received
 so far... :)

 On Mon, Oct 12, 2015 at 10:59 AM, Ramith Jayasinghe <
 ram...@wso2.com> wrote:

> Hi Sasikala,
> Congratulations!
> It is with great pleasure that we welcome you as a WSO2 committer.
> Keep up the good work!
> regards,
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
>
>


 --
 Sasikala Kottegoda
 *Software Engineer*
 WSO2 Inc., http://wso2.com/
 lean. enterprise. middleware
 Mobile: +94 774835928/712792401

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Kirishanthy
>>> Associate Software Engineer
>>> Mobile : +94 778333939
>>> kirishan...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Malintha Amarasinghe
>> Software Engineer
>> *WSO2, Inc. - lean | enterprise | middleware*
>> http://wso2.com/
>>
>> Mobile : +94 712383306
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuru Wijesinghe
> *Software Engineer*
> Mobile: 0710933706
> isur...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Rajith Roshan
 Software Engineer, WSO2 Inc.
 Mobile: +94-72-642-8350 <%2B94-71-554-8430>

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>>
>>>
>>> *Thank you and Regards**Hariprasath Thanarajah*
>>> Associate Software Engineer | WSO2
>>> E: haripras...@wso2.com
>>> M: +94752806528
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Viraj Senevirathne
>> Software Engineer; WSO2, Inc.
>>
>> Mobile : +94 71 958 0269
>> Email : vir...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
>
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Ravindra Ranwala

2015-07-16 Thread Madhuranga Bandara
Congratulations Ravindra...!!!



*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065

On Thu, Jul 16, 2015 at 1:48 PM, Isuru Udana  wrote:

> Congratulations Ravindra..!
>
> On Thu, Jul 16, 2015 at 1:42 PM, Chanaka Fernando 
> wrote:
>
>> Congratulations Ravindra ...
>>
>> On Thu, Jul 16, 2015 at 1:39 PM, Viraj Senevirathne 
>> wrote:
>>
>>> Congrats, Ravindra.
>>>
>>> Best Regards,
>>>
>>> On Thu, Jul 16, 2015 at 11:53 AM, Dilan Udara Ariyaratne <
>>> dil...@wso2.com> wrote:
>>>
 Congratulations, Ravindra !!!

 Regards,
 Dilan.


 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. 
 Mobile: +94775149066
 lean . enterprise . middleware

 On Thu, Jul 16, 2015 at 11:25 AM, Kasun Indrasiri 
 wrote:

> Hi devs,
>
> Its my pleasure to welcome Ravindra Ranwala as a WSO2 Committer.
> Ravindra, welcome aboard and keep up the good work!
>
> Thanks.
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Viraj Senevirathne
>>> Software Engineer; WSO2, Inc.
>>>
>>> Mobile : +94 71 818 4742 <%2B94%20%280%29%20773%20451194>
>>> Email : vir...@wso2.com 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> --
>> Chanaka Fernando
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 773337238
>> Blog : http://soatutorials.blogspot.com
>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>> Twitter:https://twitter.com/chanakaudaya
>> Wordpress:http://chanakaudaya.wordpress.com
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Isuru Udana*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] OM Type Properties for Request Payloads

2015-06-17 Thread Madhuranga Bandara
Hi,

get-property()  will get values stored in the registry.
If you are using this multiple times.
I suggest method one is better.




*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065

On Wed, Jun 17, 2015 at 10:01 PM, Hasintha Indrajee 
wrote:

> Hi all,
>
> Following are two approaches which I can use to create a payload using a
> payload factory.
>
>
> 1) Just replace the body with xml content
>
> 
>   
>http://services.samples/xsd";>
>$1
>$2
>
>   
>   
>
>   
>
> 
>
> 2) Create an *OM type* property which has the request body (This is done
> only once) and embed it in content of the body.
>
> 
>   
>$1
>   
>   
> http://services.samples/xsd"/>
>   
>
> 
>
>
> Suppose I am re-calling these sequences multiple times. Should there be
> any performance differences in these two cases ?  even if we have an OM
> type payload embedded, does it try to parse the payload again ?
>
> --
> Hasintha Indrajee
> Software Engineer
> WSO2, Inc.
> Mobile:+94 771892453
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while trying proxy service

2015-06-11 Thread Madhuranga Bandara
Hi Aaquibah,

This should solve your problem.

   
  
  
 


   
  http://www.w3schools.com/webservices/tempconvert.asmx"/>
   

 
 

 
  
  http://www.w3schools.com/webservices/tempconvert.asmx?WSDL"/>
   




*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065

On Thu, Jun 11, 2015 at 4:31 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi,
>
> According to the[1] it check for the content length header. Add  name="DISABLE_CHUNKING" scope="axis2" value="true"/> as it suggest to
> your proxy
> [1] -
> http://stackoverflow.com/questions/20489419/wso2-esb-proxy-service-error-transport-error-411-error-length-required
>
> Thanks
>
> On Thu, Jun 11, 2015 at 3:59 PM, Aaquibah Nashry  wrote:
>
>> Hi,
>> I created a proxy. When i use the 'try it' option from the management
>> console, i get the following error:
>>
>> http://wso2.org/ns/TryitProxy";>org.apache.axis2.AxisFault: Transport
>> error: 411 Error: Length Required
>>
>> What could be the reason for this?
>>
>> I created a pass through proxy, gave the target url as:
>> http://www.w3schools.com/webservices/tempconvert.asmx?WSDL
>>
>> This is my proxy:
>> 
>> http://ws.apache.org/ns/synapse";
>>name="passthroughtest"
>>transports="https,http"
>>statistics="disable"
>>trace="disable"
>>startOnLoad="true">
>>
>>   
>>  
>>   
>>   
>>  http://www.w3schools.com/webservices/tempconvert.asmx"/>
>>   
>>
>>http://www.w3schools.com/webservices/tempconvert.asmx?WSDL"/>
>>
>> 
>>
>>
>> Thanks in advance
>>
>> M.R.Aaquibah Nashry
>> *Intern, Engineering*
>> Mobile : +94 773946123
>> Tel  : +94 112662541
>> nas...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Saneth Dharmakeerthi

2015-06-08 Thread Madhuranga Bandara
Congratulations Saneth !!!

*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065

On Tue, Jun 9, 2015 at 11:31 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Congratulation...!!
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Himasha Guruge

2015-05-26 Thread Madhuranga Bandara
Congratulations !!!


*Madhuranga Sampath Bandara*
Software Engineer
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] what is get-property('Action') and what it do?

2015-05-20 Thread Madhuranga Bandara
Hi Rukshan,

"Action" refer to SoapAction http Header field.
Which is used to indicate the intent of http request. Content of this
header field can be used by firewalls to filter SOAP request messages.

This is helpful.
http://blog.michaelhidalgo.info/2012/10/is-soapaction-required-httpheader-to.html



*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065

On Thu, May 21, 2015 at 9:50 AM, Rukshan Premathunga 
wrote:

> Hi,
>
> I ran the 51st sample of the ESB.
>
> 
> 
> 
> 
> http://localhost:9000/services/MTOMSwASampleService"; optimize="mtom"/>
> 
> 
> 
>
> Does anyone know what the "Action" property is, where it is defined and
> what it does?
>
> Thanks and Regards.
>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Delete an unnamed FK from H2, MYSQL, MSSQL, Oracle and PostgreSQL

2015-05-18 Thread Madhuranga Bandara
Hi Madushanka,

This article [1] provides the step by step explanation on how to solve this
kind of issue.
Hope this is helpful.

[1] http://www.briskbee.com/posts/changing_unnamed_constraints_in_play_


*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065

On Mon, May 18, 2015 at 5:52 PM, Madusanka Premaratne 
wrote:

> Hi Devs,
> I need to perform a SQL table alteration to remove a foreign key which is
> unnamed. As per my findings it is possible to find the automatically
> assigned constraint name in mysql by using *information_schema* table [1]
>
> Also it is possible in mssql[2] and oracle[3]
>
> [1] -
> http://stackoverflow.com/questions/13856946/drop-unnamed-foreign-key-in-mysql
> [2] - http://www.intergr8it.net/?p=19
> [3] -
> http://stackoverflow.com/questions/9008445/drop-index-or-constraint-without-knowing-its-name-for-oracle
>
> I tried to add a name to the existing constraint by altering the table,
> but it adds a new constraint with the given name.
>
> Is there a way to do the same in H2/ any other way to delete
> the constraint?
>
> Can someone advice me to do this.?
>
> Thanks in advance.
> Madusanka
>
>
>
> --
> *Madusanka Premaratne* | Associate Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 835 70 73| Work: +94 112 145 345
> Email: madusan...@wso2.com | Web: www.wso2.com
>
> [image: Facebook]  [image: Twitter]
>  [image: Google Plus]
>  [image:
> Linkedin]  [image: Instagram]
>  [image: Skype]
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Vishanth Balasubramaniam

2015-05-15 Thread Madhuranga Bandara
Congratulations Vishanth !!!
Madhuranga Sampath Bandara
Software Engineer

WSO2, Inc.;http://wso2.com/
lean.enterprise.middleware
Mobile: +94722241065


On Fri, May 15, 2015 at 6:58 PM, Imesh Gunaratne  wrote:
> Hi Devs,
>
> It's my pleasure to welcome Vishanth Balasubramaniam as a WSO2 Committer.
> Vishanth, welcome aboard and keep up the good work!
>
> Thanks
>
> --
> Imesh Gunaratne
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Passing a String array via axis2

2015-05-13 Thread Madhuranga Bandara
Hi Anuruddha,

This is helpful.
http://www.ibm.com/developerworks/webservices/library/ws-array.html


Madhuranga Sampath Bandara
Software Engineer

WSO2, Inc.;http://wso2.com/
lean.enterprise.middleware
Mobile: +94722241065


On Wed, May 13, 2015 at 10:16 PM, Anuruddha Liyanarachchi
 wrote:
> Hi Devs,
>
> I have observed following when returning a null array from axis2 service.
> On the client, it returns a array with one element and value of that element
> is null.
>
> Why is it happening ?
>
> --
> Thanks and Regards,
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel  : +94 112 145 345
> anurudd...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dynamically loading jars that implements an interface

2015-05-12 Thread Madhuranga Bandara
Hi Himasha,

Have you tried using JCL frame work.
This framework support Class loading from different ways as URLs, File
input streams , jar files from a folder.
Hope this is helpful.

https://github.com/kamranzafar/JCL/blob/master/README.textile


Madhuranga Sampath Bandara
Software Engineer

WSO2, Inc.;http://wso2.com/
lean.enterprise.middleware
Mobile: +94722241065


On Wed, May 13, 2015 at 10:47 AM, Himasha Guruge  wrote:
> Hi All,
>
> I'm working on a requirement where jars need to be dynamically loaded to the
> classpath in order to prevent server restarting. I was able to load the jar
> and load the required class by using a URLClassLoader. But at the place
> where I'm using the implementation of this class(ex:foo.a), an error is
> thrown saying "cannot instantiate foo.a" . I assume this is happening
> because this class is initially implementing an interface (javaDelegate) and
> this interface is not available in the classpath.
>
> What I have done so far is getting the current system class loader, and
> within my custom class loader I'm adding the jar path as a url.
>
> URLClassLoader loader = (URLClassLoader)ClassLoader.getSystemClassLoader();
> MyClassLoader loader1 = new MyClassLoader(loader.getURLs());
> loader1.addURL(new URL("jar","","file:"+artifactLocation+"!/"));
>
> Any suggestions on how to resolve this issue/ better method of handling
> dynamic loading will be appreciated.
>
> Thanks,
>
> Himasha Guruge
> Software Engineer
> WSO2 Inc.
> Mobile: +94 777459299
> himas...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: MQTT Transport

2015-05-12 Thread Madhuranga Bandara
Hi Sriashalya,

Just a small comment. Wireshark is better and easier than TCP mon in
analysing the message content.
Try to use Wireshark when you need to analyse messages.
Madhuranga Sampath Bandara
Software Engineer

WSO2, Inc.;http://wso2.com/
lean.enterprise.middleware
Mobile: +94722241065


On Tue, May 12, 2015 at 4:06 PM, Sriashalya Srivathsan  wrote:
> Hi Chanaka,
> But I'm getting the following in my MB console
>
>
> [2015-05-12 16:01:41,377]  INFO
> {org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a message
> of type PINGREQ
>
> [2015-05-12 16:01:47,270]  INFO
> {org.dna.mqtt.moquette.parser.netty.PublishDecoder} -  decode invoked with
> buffer UnpooledUnsafeDirectByteBuf(ridx: 1, widx: 63, cap: 208)
>
> [2015-05-12 16:01:47,271]  INFO
> {org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a message
> of type PUBLISH
>
> [2015-05-12 16:01:47,271]  INFO
> {org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging} -  onEvent
> processing messaging event from input ringbuffer ProtocolEvent wrapping
> PUBLISH
>
> STORE >> message part id374739636907147264 offset 0
>
> [2015-05-12 16:01:47,272]  INFO
> {org.wso2.andes.messageStore.CassandraBasedMessageStoreImpl} -  Wrote
> message 374739636907147264 to Global Queue TopicNodeQueue_0
>
> REMOVE CONTENT>> id 374739636907147264
>
>
> On Tue, May 12, 2015 at 3:41 PM, Sriashalya Srivathsan 
> wrote:
>>
>> Hi Chanaka,
>> I've opened the TCP monitor for the UI client. The noticed message has
>> been attached below.Is the client sending the message properly?
>>
>>
>> Thank you,
>>
>> On Wed, May 6, 2015 at 1:20 PM, Sriashalya Srivathsan 
>> wrote:
>>>
>>> HI Malaka,
>>> I'll proceed with that.
>>>
>>> On Wed, May 6, 2015 at 1:11 PM, Malaka Silva  wrote:

 Hi Sriashalya,

 As we discussed offline, we need to get the source code (I guess this is
 carbon 4.2.0) and start debugging the MQTTListener code.

 On Wed, Apr 29, 2015 at 10:16 PM, Sriashalya Srivathsan
  wrote:
>
> Sajini you are correct. I'm using MB 3.0.0.
> Chanaka I've used log mediator, but I cannot see any thing in my ESB
> console.
>
>
>
> Thank you,
>
> On Wed, Apr 29, 2015 at 5:27 PM, Chanaka Fernando 
> wrote:
>>
>> Hi Sriashalya,
>>
>> You can use log mediator to view the message when it is passing
>> through ESB.
>>
>> 
>>
>> Thanks,
>> Chanaka
>>
>> On Wed, Apr 29, 2015 at 5:25 PM, Sajini De Silva 
>> wrote:
>>>
>>> Hi Sriashalya,
>>>
>>> What is the MB version you are using in this scenario? I see global
>>> queues in the logs which is used in MB 2.2.0. MB 2.2.0 does not support
>>> MQTT.
>>>
>>> Thank you,
>>> Sajini
>>>
>>> Thank you,
>>> Sajini
>>>
>>> On Wed, Apr 29, 2015 at 5:15 PM, Sriashalya Srivathsan
>>>  wrote:

 looping to Dev

 On Wed, Apr 29, 2015 at 5:13 PM, Sriashalya Srivathsan
  wrote:
>
> Hi Chanaka,
> I've sent the message from client ,It is going to MB perfectly. But
> I couldn't get anything in the ESB console. It seems ESB don't 
> receive the
> message. How Can I proceed with this?
> Im sharing the MB console below.
>
>
> On Mon, Apr 27, 2015 at 12:33 PM, Sriashalya Srivathsan
>  wrote:
>>
>> Hi Chanaka,
>> I've followed the following link
>> (https://docs.google.com/a/wso2.com/document/d/1G2sf8g27w8kFmfXVC6F7Kf7LTtZUdCcLRN5UnwdfIxQ/edit).
>>
>>  axis2.xml is replaced.
>> proxy and sequence are added.
>> jars added to ESB.
>> MB, ESB and two instance of Stock quote services are opened.
>> UI based client started and message sent through that
>>
>> But I couldn't get anything in the ESB console. What am I missing
>> over there?
>>
>> --
>> S.Sriashalya,
>> Associate Software Engineer,
>> WSO2.
>
>
>
>
> --
> S.Sriashalya,
> Associate Software Engineer,
> WSO2 Inc.
> lean . enterprise . middleware




 --
 S.Sriashalya,
 Associate Software Engineer,
 WSO2 Inc.
 lean . enterprise . middleware

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev

>>>
>>>
>>>
>>> --
>>> Sajini De SIlva
>>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>> Email: saj...@wso2.com
>>> Blog: http://sajinid.blogspot.com/
>>> Git hub profile: https://github.com/sajinidesilva
>>>
>>> Phone: +94 712797729
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@

Re: [Dev] WSO2 Committers += Mahesh Chinthaka

2015-04-28 Thread Madhuranga Bandara
Congratulations Mahesh... !!!

*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065

On Tue, Apr 28, 2015 at 9:27 AM, Dimuthu Leelarathne 
wrote:

> Hi all,
>
> It is with great pleasure that WSO2 welcomes Mahesh Chinthaka as WSO2
> committer!
>
> Thank you for your hard work. Congratulation!
>
> thanks,
> dimuthu
>
> --
> Dimuthu Leelarathne
> Architect & Product Lead of App Factory
>
> WSO2, Inc. (http://wso2.com)
> email: dimut...@wso2.com
> Mobile : 0773661935
>
> Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Vinuri Perera

2015-04-27 Thread Madhuranga Bandara
Congratulations Vinuri ... !!!

*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware
Mobile: +94722241065

On Mon, Apr 27, 2015 at 2:19 PM, Amila Maha Arachchi 
wrote:

> Hi all,
>
> Its my pleasure to welcome Vinuri Perera as a WSO2 Committer. Vinuri is a
> member of WSO2 Cloud team and she has done a great contribution to WSO2
> Cloud and has shown great enthusiasm in her work both in development and
> other cloud related work. In recognition of her contribution, she has been
> voted as a WSO2 Committer.
>
> Vinuri, welcome aboard and keep up the good work..
>
> Regards,
> Amila.
>
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon 4.4.0 is not starting on my computer

2015-04-26 Thread Madhuranga Bandara
Hi Kasun/Thusitha,

After the JAVA 1.7 version update issue was solved.
It worked with 1.7.0_79.jdk

Thanks & Regards,
Madhuranga.

*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
lean.enterprise.middleware
Mobile: +94722241065

On Fri, Apr 24, 2015 at 12:48 PM, Kasun Bandara  wrote:

> Hi Madhuranga,
>
>
> It seems to be an issue with the java version you are using (jdk1.7.0_71).
> Try and use a newer version of jdk 1.7. (i.e It worked with jdk
> 1.7.0_75.jdk for me)
>
>
> Thanks and regards,
>
> Kasun
>
> On Thu, Apr 23, 2015 at 1:29 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Madhuranga,
>>
>> This link might help you.
>>
>> http://stackoverflow.com/questions/17584495/unable-to-complete-the-scan-for-annotations-for-web-application-app-due-to-a
>>
>> Best Regards
>>
>> On Thu, Apr 23, 2015 at 12:40 PM, Thilini Cooray 
>> wrote:
>>
>>> Hi,
>>>
>>> It seems to be an issue with the starting of Tomcat 7 server in carbon
>>> 4.4.0
>>> Several places such as [1] also have the same error in different
>>> scenarios. They have mentioned that reason can be an issue with Tomcat 7.
>>>
>>> [1]
>>> http://stackoverflow.com/questions/28102134/a-child-container-failed-during-start-java-util-concurrent-executionexception
>>>
>>> Thank you.
>>>
>>>
>>> On Thu, Apr 23, 2015 at 11:26 AM, Madhuranga Bandara <
>>> madhura...@wso2.com> wrote:
>>>
>>>> Hi Tharik,
>>>>
>>>> my JAVA_HOME is set to jdk 1.7.
>>>>
>>>> Macbook-Pro:~ madhuranga$ java -version
>>>> java version "1.7.0_71"
>>>> Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
>>>> Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
>>>>
>>>> *Madhuranga Sampath Bandara*
>>>> Software Engineer
>>>>
>>>> WSO2, Inc.;http://wso2.com/
>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
>>>> lean.enterprise.middleware
>>>> Mobile: +94722241065
>>>>
>>>> On Thu, Apr 23, 2015 at 10:58 AM, Tharik Kanaka 
>>>> wrote:
>>>>
>>>>> Hi Madhuranga.
>>>>>
>>>>> Is your JAVA_HOME set to jdk 1.7?
>>>>> Since you could run carbon 4.2.0 it seems like JAVA_HOME is set to jdk
>>>>> 1.6 and carbon 4.4.0 supports jdk 1.7 onwards.
>>>>>
>>>>> Regards,
>>>>>
>>>>> On Thu, Apr 23, 2015 at 10:43 AM, Madhuranga Bandara <
>>>>> madhura...@wso2.com> wrote:
>>>>>
>>>>>> Hi Lasitha,
>>>>>>
>>>>>> JAVA HOME is correct.
>>>>>> I can run carbon 4.2.0. But the issue is with 4.4.0.
>>>>>>
>>>>>> *Madhuranga Sampath Bandara*
>>>>>> Software Engineer
>>>>>>
>>>>>> WSO2, Inc.;http://wso2.com/
>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
>>>>>> lean.enterprise.middleware
>>>>>> Mobile: +94722241065
>>>>>>
>>>>>> On Thu, Apr 23, 2015 at 10:24 AM, Lasitha Wattaladeniya <
>>>>>> lasit...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Maduranga,
>>>>>>>
>>>>>>> Is your JAVA_HOME variable value is correct ?
>>>>>>>
>>>>>>> On Thu, Apr 23, 2015 at 10:22 AM, Madhuranga Bandara <
>>>>>>> madhura...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> When i try to start the carbon it gives me an exception and the
>>>>>>>> product it not starting.
>>>>>>>> I'm using the binary file.
>>>>>>>> Given below is the cmd output.
>>>>>>>>
>>>>>>>> JAVA_HOME environment variable is set to
>>>>>>>> /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
>>>>>>>> CARBON_HOME environment variabl

Re: [Dev] Carbon 4.4.0 is not starting on my computer

2015-04-22 Thread Madhuranga Bandara
Hi Tharik,

my JAVA_HOME is set to jdk 1.7.

Macbook-Pro:~ madhuranga$ java -version
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
lean.enterprise.middleware
Mobile: +94722241065

On Thu, Apr 23, 2015 at 10:58 AM, Tharik Kanaka  wrote:

> Hi Madhuranga.
>
> Is your JAVA_HOME set to jdk 1.7?
> Since you could run carbon 4.2.0 it seems like JAVA_HOME is set to jdk 1.6
> and carbon 4.4.0 supports jdk 1.7 onwards.
>
> Regards,
>
> On Thu, Apr 23, 2015 at 10:43 AM, Madhuranga Bandara 
> wrote:
>
>> Hi Lasitha,
>>
>> JAVA HOME is correct.
>> I can run carbon 4.2.0. But the issue is with 4.4.0.
>>
>> *Madhuranga Sampath Bandara*
>> Software Engineer
>>
>> WSO2, Inc.;http://wso2.com/
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
>> lean.enterprise.middleware
>> Mobile: +94722241065
>>
>> On Thu, Apr 23, 2015 at 10:24 AM, Lasitha Wattaladeniya <
>> lasit...@wso2.com> wrote:
>>
>>> Hi Maduranga,
>>>
>>> Is your JAVA_HOME variable value is correct ?
>>>
>>> On Thu, Apr 23, 2015 at 10:22 AM, Madhuranga Bandara <
>>> madhura...@wso2.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> When i try to start the carbon it gives me an exception and the product
>>>> it not starting.
>>>> I'm using the binary file.
>>>> Given below is the cmd output.
>>>>
>>>> JAVA_HOME environment variable is set to
>>>> /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
>>>> CARBON_HOME environment variable is set to
>>>> /Users/madhuranga/Applications/wso2carbon-4.4.0
>>>> [2015-04-23 09:51:30,672]  INFO
>>>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
>>>> Carbon...
>>>> [2015-04-23 09:51:30,673]  INFO
>>>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
>>>> Mac OS X 10.9.3, x86_64
>>>> [2015-04-23 09:51:30,673]  INFO
>>>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home:
>>>> /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
>>>> [2015-04-23 09:51:30,673]  INFO
>>>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version :
>>>> 1.7.0_71
>>>> [2015-04-23 09:51:30,674]  INFO
>>>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM  :
>>>> Java HotSpot(TM) 64-Bit Server VM 24.71-b01,Oracle Corporation
>>>> [2015-04-23 09:51:30,674]  INFO
>>>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home  :
>>>> /Users/madhuranga/Applications/wso2carbon-4.4.0
>>>> [2015-04-23 09:51:30,674]  INFO
>>>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir:
>>>> /Users/madhuranga/Applications/wso2carbon-4.4.0/tmp
>>>> [2015-04-23 09:51:30,674]  INFO
>>>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  User :
>>>> madhuranga, en-US, Asia/Colombo
>>>> [2015-04-23 09:51:30,795]  WARN
>>>> {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
>>>>  Carbon is configured to use the default keystore (wso2carbon.jks). To
>>>> maximize security when deploying to a production environment, configure a
>>>> new keystore with a unique password in the production server profile.
>>>> [2015-04-23 09:51:30,795]  WARN
>>>> {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
>>>>  Swap Memory size (MB): 1024 of the system is below the recommended minimum
>>>> size :2047
>>>> [2015-04-23 09:51:33,856]  INFO
>>>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Configured
>>>> Registry in 51ms
>>>> [2015-04-23 09:51:33,943]  INFO
>>>> {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
>>>>  Registry Mode: READ-WRITE
>>>> [2015-04-23 09:51:33,980]  INFO
>>>> {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} -  Carbon
>>>> UserStoreMgtDSComponent activated successfully.
>>>

Re: [Dev] Carbon 4.4.0 is not starting on my computer

2015-04-22 Thread Madhuranga Bandara
Hi Lasitha,

JAVA HOME is correct.
I can run carbon 4.2.0. But the issue is with 4.4.0.

*Madhuranga Sampath Bandara*
Software Engineer

WSO2, Inc.;http://wso2.com/
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
lean.enterprise.middleware
Mobile: +94722241065

On Thu, Apr 23, 2015 at 10:24 AM, Lasitha Wattaladeniya 
wrote:

> Hi Maduranga,
>
> Is your JAVA_HOME variable value is correct ?
>
> On Thu, Apr 23, 2015 at 10:22 AM, Madhuranga Bandara 
> wrote:
>
>> Hi all,
>>
>> When i try to start the carbon it gives me an exception and the product
>> it not starting.
>> I'm using the binary file.
>> Given below is the cmd output.
>>
>> JAVA_HOME environment variable is set to
>> /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
>> CARBON_HOME environment variable is set to
>> /Users/madhuranga/Applications/wso2carbon-4.4.0
>> [2015-04-23 09:51:30,672]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
>> Carbon...
>> [2015-04-23 09:51:30,673]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
>> Mac OS X 10.9.3, x86_64
>> [2015-04-23 09:51:30,673]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home:
>> /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
>> [2015-04-23 09:51:30,673]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version :
>> 1.7.0_71
>> [2015-04-23 09:51:30,674]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM  :
>> Java HotSpot(TM) 64-Bit Server VM 24.71-b01,Oracle Corporation
>> [2015-04-23 09:51:30,674]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home  :
>> /Users/madhuranga/Applications/wso2carbon-4.4.0
>> [2015-04-23 09:51:30,674]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir:
>> /Users/madhuranga/Applications/wso2carbon-4.4.0/tmp
>> [2015-04-23 09:51:30,674]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  User :
>> madhuranga, en-US, Asia/Colombo
>> [2015-04-23 09:51:30,795]  WARN
>> {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
>>  Carbon is configured to use the default keystore (wso2carbon.jks). To
>> maximize security when deploying to a production environment, configure a
>> new keystore with a unique password in the production server profile.
>> [2015-04-23 09:51:30,795]  WARN
>> {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
>>  Swap Memory size (MB): 1024 of the system is below the recommended minimum
>> size :2047
>> [2015-04-23 09:51:33,856]  INFO
>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Configured
>> Registry in 51ms
>> [2015-04-23 09:51:33,943]  INFO
>> {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
>>  Registry Mode: READ-WRITE
>> [2015-04-23 09:51:33,980]  INFO
>> {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} -  Carbon
>> UserStoreMgtDSComponent activated successfully.
>> [2015-04-23 09:51:34,754] ERROR {org.apache.catalina.core.ContainerBase}
>> -  A child container failed during start
>> java.util.concurrent.ExecutionException:
>> org.apache.catalina.LifecycleException: Failed to start component
>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]
>> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>> at java.util.concurrent.FutureTask.get(FutureTask.java:188)
>> at
>> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
>> at
>> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>> at
>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
>> at
>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: org.apache.catalina.LifecycleException: Failed to start
>> component
>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.

[Dev] Carbon 4.4.0 is not starting on my computer

2015-04-22 Thread Madhuranga Bandara
Hi all,

When i try to start the carbon it gives me an exception and the product it
not starting.
I'm using the binary file.
Given below is the cmd output.

JAVA_HOME environment variable is set to
/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
CARBON_HOME environment variable is set to
/Users/madhuranga/Applications/wso2carbon-4.4.0
[2015-04-23 09:51:30,672]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
Carbon...
[2015-04-23 09:51:30,673]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
Mac OS X 10.9.3, x86_64
[2015-04-23 09:51:30,673]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home:
/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
[2015-04-23 09:51:30,673]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version :
1.7.0_71
[2015-04-23 09:51:30,674]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM  :
Java HotSpot(TM) 64-Bit Server VM 24.71-b01,Oracle Corporation
[2015-04-23 09:51:30,674]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home  :
/Users/madhuranga/Applications/wso2carbon-4.4.0
[2015-04-23 09:51:30,674]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir:
/Users/madhuranga/Applications/wso2carbon-4.4.0/tmp
[2015-04-23 09:51:30,674]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  User :
madhuranga, en-US, Asia/Colombo
[2015-04-23 09:51:30,795]  WARN
{org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
 Carbon is configured to use the default keystore (wso2carbon.jks). To
maximize security when deploying to a production environment, configure a
new keystore with a unique password in the production server profile.
[2015-04-23 09:51:30,795]  WARN
{org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
 Swap Memory size (MB): 1024 of the system is below the recommended minimum
size :2047
[2015-04-23 09:51:33,856]  INFO
{org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Configured
Registry in 51ms
[2015-04-23 09:51:33,943]  INFO
{org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
 Registry Mode: READ-WRITE
[2015-04-23 09:51:33,980]  INFO
{org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} -  Carbon
UserStoreMgtDSComponent activated successfully.
[2015-04-23 09:51:34,754] ERROR {org.apache.catalina.core.ContainerBase} -
 A child container failed during start
java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:188)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start
component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 6 more
Caused by: java.lang.IllegalStateException: Unable to complete the scan for
annotations for web application [/] due to a StackOverflowError. Possible
root causes include a too low setting for -Xss and illegal cyclic
inheritance dependencies. The class hierarchy being processed was
[org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DEREncodableVector->org.bouncycastle.asn1.ASN1EncodableVector]
at
org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2144)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2090)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1965)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1931)
at
org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1916)
at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1330)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Life