Re: [Dev] Need help with Cassandra

2014-01-23 Thread Krishantha Dinesh
when I ran it with sudo it says Command not found.

*open the shell script and read. it may have command which is not available
on your platform*


On Thu, Jan 23, 2014 at 1:09 PM, Chamila Wijayarathna cham...@wso2.comwrote:

 Hi all,
 For out intern project, we are using CEP with cassandra output adapter.
 For observation purposes we downloaded cassandra from [1] and tried to run
 ./cqlsh from bin folder. It says that bash: ./cqlsh: Permission denied,
 when I ran it with sudo it says Command not found.
  When I ran chmod u+x cqlsh and then tried ./cqlsh, now it says that
 Can't locate transport factory function
 cqlshlib.tfactory.regular_transport_factory. What is the problem here?

 Thank You.

 --
 *Chamila Wijayarathna*
 Engineering Intern,
 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] Need help with Cassandra

2014-01-23 Thread Udara Rathnayake
Hi,

Since cqlsh is python based, check your python version compatibility.

Regards,
UdaraR


On Thu, Jan 23, 2014 at 1:09 PM, Chamila Wijayarathna cham...@wso2.comwrote:

 Hi all,
 For out intern project, we are using CEP with cassandra output adapter.
 For observation purposes we downloaded cassandra from [1] and tried to run
 ./cqlsh from bin folder. It says that bash: ./cqlsh: Permission denied,
 when I ran it with sudo it says Command not found.
  When I ran chmod u+x cqlsh and then tried ./cqlsh, now it says that
 Can't locate transport factory function
 cqlshlib.tfactory.regular_transport_factory. What is the problem here?

 Thank You.

 --
 *Chamila Wijayarathna*
 Engineering Intern,
 WSO2 Inc.


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




-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] QoS parameters are lost during tenant cleanup

2014-01-23 Thread Evanthika Amarasiri
Noticed this behavior with the 4.8.1 packs as well. After the tenant clean
up, the QoS properties are lost. Noticed while verifying security scenarios.

Regards,
Evanthika


On Thu, Nov 7, 2013 at 7:20 PM, Evanthika Amarasiri evanth...@wso2.comwrote:

 Noticed $subject with ESB M5 packs.

 Related JIRA [1]


 [1] - https://wso2.org/jira/browse/ESBJAVA-2658

 Regards,
 Evanthika

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


[Dev] ESB 4.8.1 pack and p2-repo - 23 Jan

2014-01-23 Thread Malaka Silva
https://svn.wso2.org/repos/wso2/people/malaka/ESB/ESB4.8.1/23-01/

-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/http://wso2.com/about/team/malaka-silva/

Save a tree -Conserve nature  Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] HTTP DELETE with entity body support for WSO2 ESB Passthru transport

2014-01-23 Thread Jeewantha Dharmaparakrama
Adding the bin.xml


On Thu, Jan 23, 2014 at 5:29 PM, Jeewantha Dharmaparakrama 
jeewan...@wso2.com wrote:

 Hi Manoj,

 Attached are the diffs to be committed to patch0005 in kernal 4.2.0.
 Please do the needful.

 Thanks,
 Jeewantha


 On Thu, Jan 16, 2014 at 1:52 PM, Kasun Indrasiri ka...@wso2.com wrote:

 +1 This is looking good. Shall we incorporate the changes in to the
 latest ESB version and verify the fix with the integration tests.


 On Thu, Jan 16, 2014 at 11:45 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Folks,

 We had been implementing this feature last week and thought it needed
 public attention. First of all, HTTP/1.1 DELETE with entity body does NOT
 violate the spec [1] [2]. But the initial design of apache-httpcomponents
 considers DELETE as a Non entity enclosing request. To support this
 feature, we introduced a third category Possible entity enclosing request
 because now a DELETE can be of either type, with or without entity body.

 Once the whole HTTP request is read, a Possible entity enclosing
 request will create the correct object entity enclosing request or a
 non entity enclosing request by looking at it headers. We look at the
 header Content-Length to determine if the request has a payload.

 So now, the following is a perfectly valid HTTP DELETE request.

 DELETE /order/delete HTTP/1.1
 Accept-Encoding: gzip,deflate
 Content-Type: text/xml;charset=UTF-8
 SOAPAction: urn:echoInt
 Content-Length: 290
 Host: jeewantha:8280
 Connection: Keep-Alive
 User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:echo=
 http://echo.services.core.carbon.wso2.org;   soapenv:Header/
 soapenv:Body  echo:echoInt !--Optional:--
 in5/in  /echo:echoInt   /soapenv:Body/soapenv:Envelope

 Note that this is a sample POST to StockQuoteService of which I changed
 the method to DELETE. In other words, DELETE with payloads work exactly as
 POSTs.

 [1] http://stackoverflow.com/a/299696/1411653
 [2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.7

 Thanks,
 Jeewantha

 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
Index: 4.2.0/patches/patch0005/distribution/bin.xml
===
--- 4.2.0/patches/patch0005/distribution/bin.xml	(revision 195042)
+++ 4.2.0/patches/patch0005/distribution/bin.xml	(working copy)
@@ -65,6 +65,12 @@
 destNameaxis2_1.6.1.wso2v10.jar/destName
 fileMode644/fileMode
 /file
+file
+source../dependencies/orbit/httpcore/4.3.0.wso2v1/target/httpcore-4.3.0.wso2v1.jar/source
+outputDirectoryWSO2-CARBON-PATCH-4.2.0-0005/patch0005/outputDirectory
+destNamehttpcore_4.3.0.wso2v1.jar/destName
+fileMode644/fileMode
+/file
 	file
 source../dependencies/transports/modules/jms/target/axis2-transport-jms-1.1.0-wso2v9.jar/source
 outputDirectoryWSO2-CARBON-PATCH-4.2.0-0005/patch0005/outputDirectory
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] HTTP DELETE with entity body support for WSO2 ESB Passthru transport

2014-01-23 Thread Manoj Kumara
Hi Jeewantha,

I'm getting some compilation errors when building httpcore module. Can you
please check.


[INFO] -
[ERROR] COMPILATION ERROR :
[INFO] -
[ERROR]
/media/carbon/carbon/kernal/branches/4.2.0/patches/patch0005/dependencies/httpcore/4.3.0-wso2v1/src/main/java/org/apache/http/impl/DefaultHttpRequestFactory.java:[36,31]
cannot find symbol
  symbol:   class BasicHttpEntityPossibleEnclosingRequest
  location: package org.apache.http.message
[ERROR]
/media/carbon/carbon/kernal/branches/4.2.0/patches/patch0005/dependencies/httpcore/4.3.0-wso2v1/src/main/java/org/apache/http/impl/DefaultHttpRequestFactory.java:[93,24]
cannot find symbol
  symbol:   class BasicHttpEntityPossibleEnclosingRequest
  location: class org.apache.http.impl.DefaultHttpRequestFactory
[ERROR]
/media/carbon/carbon/kernal/branches/4.2.0/patches/patch0005/dependencies/httpcore/4.3.0-wso2v1/src/main/java/org/apache/http/impl/DefaultHttpRequestFactory.java:[108,24]
cannot find symbol
  symbol:   class BasicHttpEntityPossibleEnclosingRequest
  location: class org.apache.http.impl.DefaultHttpRequestFactory


Thanks,
Manoj

Best Regards..


Manoj Kumara
Software Engineer
WSO2, Inc.; http://wso2.com

Twitter:  http://twitter.com/ManKuma
Mobile: +94713448188


On Thu, Jan 23, 2014 at 6:00 PM, Jeewantha Dharmaparakrama 
jeewan...@wso2.com wrote:

 Adding the bin.xml


 On Thu, Jan 23, 2014 at 5:29 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Manoj,

 Attached are the diffs to be committed to patch0005 in kernal 4.2.0.
 Please do the needful.

 Thanks,
 Jeewantha


 On Thu, Jan 16, 2014 at 1:52 PM, Kasun Indrasiri ka...@wso2.com wrote:

 +1 This is looking good. Shall we incorporate the changes in to the
 latest ESB version and verify the fix with the integration tests.


 On Thu, Jan 16, 2014 at 11:45 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Folks,

 We had been implementing this feature last week and thought it needed
 public attention. First of all, HTTP/1.1 DELETE with entity body does NOT
 violate the spec [1] [2]. But the initial design of apache-httpcomponents
 considers DELETE as a Non entity enclosing request. To support this
 feature, we introduced a third category Possible entity enclosing request
 because now a DELETE can be of either type, with or without entity body.

 Once the whole HTTP request is read, a Possible entity enclosing
 request will create the correct object entity enclosing request or a
 non entity enclosing request by looking at it headers. We look at the
 header Content-Length to determine if the request has a payload.

 So now, the following is a perfectly valid HTTP DELETE request.

 DELETE /order/delete HTTP/1.1
 Accept-Encoding: gzip,deflate
 Content-Type: text/xml;charset=UTF-8
 SOAPAction: urn:echoInt
 Content-Length: 290
 Host: jeewantha:8280
 Connection: Keep-Alive
 User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:echo=
 http://echo.services.core.carbon.wso2.org;   soapenv:Header/
 soapenv:Body  echo:echoInt !--Optional:--
 in5/in  /echo:echoInt   /soapenv:Body/soapenv:Envelope

 Note that this is a sample POST to StockQuoteService of which I changed
 the method to DELETE. In other words, DELETE with payloads work exactly as
 POSTs.

 [1] http://stackoverflow.com/a/299696/1411653
 [2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.7

 Thanks,
 Jeewantha

 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/

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


[Dev] [ESB] How to configure BAM Profile outside the Dashboard?

2014-01-23 Thread Imesh Gunaratne
Hi,

As I found BAM Profiles in ESB are stored in the registry (ESB 4.8.0).
Is there a way to configure this without accessing the ESB Dashboard (if we
could export the required configuration to a file)?

I tried to use the G-Reg check-in tool but it was not successful with the
H2 database.

Thanks

-- 
*Imesh Gunaratne*
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] [DEV] https://wso2.org/jira/browse/ESBJAVA-2849

2014-01-23 Thread Dushan Abeyruwan
Hi Dev

AFAIU we should destroy current context before setup new Tenant domain, but
in TenantAxisUtils, seems like we are not cleaning up current context which
leads to throw exception as shown in below [2] shall we do the changes as
required WDYT?


 private static ConfigurationContext
createTenantConfigurationContext(ConfigurationContext mainConfigCtx,
 String tenantDomain) throws Exception {
synchronized (tenantDomain.intern()) { // lock based on tenant
domain
MapString, ConfigurationContext tenantConfigContexts =
getTenantConfigurationContexts(mainConfigCtx);
ConfigurationContext tenantConfigCtx =
tenantConfigContexts.get(tenantDomain);
if (tenantConfigCtx != null) {
return tenantConfigCtx;
}
long tenantLoadingStartTime = System.currentTimeMillis();
int tenantId = getTenantId(tenantDomain);
if (tenantId == MultitenantConstants.SUPER_TENANT_ID ||
tenantId == MultitenantConstants.INVALID_TENANT_ID) {
throw new Exception(Tenant  + tenantDomain +  does not
exist);
}
 *   PrivilegedCarbonContext.destroyCurrentContext(); need to be
here..*
PrivilegedCarbonContext carbonContext =
PrivilegedCarbonContext.getThreadLocalCarbonContext();
carbonContext.setTenantId(tenantId);


[2]

TID: [0] [ESB] [2014-01-21 12:06:54,005] INFO
{org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} - Updating
repo update required parameter
{org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest}
TID: [0] [ESB] [2014-01-21 12:07:11,420] ERROR
{org.wso2.carbon.context.internal.CarbonContextDataHolder} - Trying to set
the domain from 3 to 6
{org.wso2.carbon.context.internal.CarbonContextDataHolder}
java.lang.IllegalStateException: Trying to set the domain from 3 to 6
at
org.wso2.carbon.context.internal.CarbonContextDataHolder.setTenantId(CarbonContextDataHolder.java:1587)
at
org.wso2.carbon.context.PrivilegedCarbonContext.setTenantId(PrivilegedCarbonContext.java:208)
at
org.wso2.carbon.context.PrivilegedCarbonContext.setTenantId(PrivilegedCarbonContext.java:197)
at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:284)
at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)
at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantAxisConfiguration(TenantAxisUtils.java:104)
at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getAxisService(TenantAxisUtils.java:195)
at
org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor.process(PassThroughNHttpGetProcessor.java:300)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:155)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)

-- 
Dushan Abeyruwan | Associate Tech Lead
Integration Technologies Team
PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:http://dushansview.blogspot.com/
Mobile:(0094)713942042
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help with Cassandra

2014-01-23 Thread Chamila Wijayarathna
Hi Udara,
I'm using Python 2.7.4 .
Thank You


On Thu, Jan 23, 2014 at 3:59 PM, Udara Rathnayake uda...@wso2.com wrote:

 Hi,

 Since cqlsh is python based, check your python version compatibility.

 Regards,
 UdaraR


 On Thu, Jan 23, 2014 at 1:09 PM, Chamila Wijayarathna cham...@wso2.comwrote:

 Hi all,
 For out intern project, we are using CEP with cassandra output adapter.
 For observation purposes we downloaded cassandra from [1] and tried to
 run ./cqlsh from bin folder. It says that bash: ./cqlsh: Permission
 denied, when I ran it with sudo it says Command not found.
  When I ran chmod u+x cqlsh and then tried ./cqlsh, now it says that
 Can't locate transport factory function
 cqlshlib.tfactory.regular_transport_factory. What is the problem here?

 Thank You.

 --
 *Chamila Wijayarathna*
 Engineering Intern,
 WSO2 Inc.


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




 --
 *Udara Rathnayake*
 Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile : +94 772207239
 Twitter : http://twitter.com/udarakr
 Blog: http://udarakr.blogspot.com




-- 
*Chamila Wijayarathna*
Engineering Intern,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Deploying Class Mediators created from Developer studio

2014-01-23 Thread Isuru Udana
Hi,

Class Mediators created from Dev Studio can be deployed into ESB using a
CAR.
But current implementation of this feature has lot of known issues. So we
are in the process of implementing this using a different approach.


All artifact types starting from lib/, get installed as an osgi bundle by
the carbon.application.deployer which is placed in the kernel.
For the new implementation we need to stop this for artifact type
lib/synapse/mediator since deployment is handled at the synapse level.

We cannot change the artifact type of Mediators to a different one because
it will cause configuration migration issues (previously created CARs will
not work).

The only option I see is to skip the above osgi bundle installation for
lib/synapse/mediator type at the kernel.
That will introduce a check for this particular artifact type at the
kernel. So this is not a elegant solution.
However we already have a logic specific to service/dataservice artifact
type at the kernel capp deployer.

Do we have any other option ?

Thank you.

-- 
*Isuru Udana*
 Senior
* Software Engineer*
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
twitter: http://twitter.com/isudana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] https://wso2.org/jira/browse/ESBJAVA-2849

2014-01-23 Thread Afkham Azeez
No! TenantAxisUtils is a util. You can't destroy the context there. You
have no idea at what point that code will be called. The context cleaup, if
necessary should have been performed by some upstream code.


On Thu, Jan 23, 2014 at 10:15 PM, Dushan Abeyruwan dus...@wso2.com wrote:

 Hi Dev

 AFAIU we should destroy current context before setup new Tenant domain,
 but in TenantAxisUtils, seems like we are not cleaning up current context 
 which
 leads to throw exception as shown in below [2] shall we do the changes as
 required WDYT?


  private static ConfigurationContext
 createTenantConfigurationContext(ConfigurationContext mainConfigCtx,
  String tenantDomain) throws Exception
 {
 synchronized (tenantDomain.intern()) { // lock based on tenant
 domain
 MapString, ConfigurationContext tenantConfigContexts =
 getTenantConfigurationContexts(mainConfigCtx);
  ConfigurationContext tenantConfigCtx =
 tenantConfigContexts.get(tenantDomain);
 if (tenantConfigCtx != null) {
 return tenantConfigCtx;
 }
 long tenantLoadingStartTime = System.currentTimeMillis();
 int tenantId = getTenantId(tenantDomain);
 if (tenantId == MultitenantConstants.SUPER_TENANT_ID ||
 tenantId == MultitenantConstants.INVALID_TENANT_ID) {
 throw new Exception(Tenant  + tenantDomain +  does not
 exist);
 }
  *   PrivilegedCarbonContext.destroyCurrentContext(); need to be
 here..*
 PrivilegedCarbonContext carbonContext =
 PrivilegedCarbonContext.getThreadLocalCarbonContext();
 carbonContext.setTenantId(tenantId);


 [2]

 TID: [0] [ESB] [2014-01-21 12:06:54,005] INFO
 {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} - Updating
 repo update required parameter
 {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest}
 TID: [0] [ESB] [2014-01-21 12:07:11,420] ERROR
 {org.wso2.carbon.context.internal.CarbonContextDataHolder} - Trying to set
 the domain from 3 to 6
 {org.wso2.carbon.context.internal.CarbonContextDataHolder}
 java.lang.IllegalStateException: Trying to set the domain from 3 to 6
 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder.setTenantId(CarbonContextDataHolder.java:1587)
 at
 org.wso2.carbon.context.PrivilegedCarbonContext.setTenantId(PrivilegedCarbonContext.java:208)
 at
 org.wso2.carbon.context.PrivilegedCarbonContext.setTenantId(PrivilegedCarbonContext.java:197)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:284)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantAxisConfiguration(TenantAxisUtils.java:104)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getAxisService(TenantAxisUtils.java:195)
 at
 org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor.process(PassThroughNHttpGetProcessor.java:300)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:155)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)

 --
 Dushan Abeyruwan | Associate Tech Lead
 Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http://dushansview.blogspot.com/
 Mobile:(0094)713942042




-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* http://www.apache.org/*
*email: **az...@wso2.com* az...@wso2.com
* cell: +94 77 3320919 blog: **http://blog.afkham.org*http://blog.afkham.org
*twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
* linked-in: **http://lk.linkedin.com/in/afkhamazeez
http://lk.linkedin.com/in/afkhamazeez*

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


[Dev] Send back acknowledgement from Axis2 handler without dropping original message

2014-01-23 Thread Vladimir Klevko
Hi,

 

I'm trying to create an axis2 module that is responsible to run validation
and respond to the requestor with a receipt message.

 

public class ValidateAndSendReceipt extends AbstractHandler {

@Override

public InvocationResponse invoke(MessageContext messageContext) throws
AxisFault {

//Validation logic goes here

MessageContext outMsgContext =
MessageContextBuilder.createOutMessageContext(messageContext);

 
outMsgContext.setEnvelope(buildReceiptEnvelope());

AxisEngine.send(outMsgContext);

return InvocationResponse.CONTINUE;

}

 

However I'm getting the following exceptions trying to execute my handler
described above:

 

[2014-01-23 20:26:59,693] ERROR - ServerWorker Error processing POST request

java.lang.NullPointerException

at
org.apache.synapse.transport.nhttp.HttpCoreNIOSender.determineHttpSta

tusCode(HttpCoreNIOSender.java:687)

at
org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncRespons

e(HttpCoreNIOSender.java:488)

at
org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreN

IOSender.java:315)

at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)

at
net.compliancetest.esb.extension.ebms3.handler.EBMS3HeadersValidation

Handler.invoke(EBMS3HeadersValidationHandler.java:130)

at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)

at org.apache.axis2.engine.Phase.invoke(Phase.java:313)

at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)

at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq

uest(HTTPTransportUtils.java:172)

at
org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosin

gMethod(ServerWorker.java:409)

at
org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java

:261)

at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(Native

WorkerPool.java:172)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.

java:1110)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor

.java:603)

at java.lang.Thread.run(Thread.java:722)

 

What is the possible reasons for these exceptions?

 

Thanks,

Vladimir.

 

 

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


Re: [Dev] [ESB] How to configure BAM Profile outside the Dashboard?

2014-01-23 Thread Imesh Gunaratne
Hi,

I was able to do the following with G-Reg check-in tool and successfully
configure the BAM Server Profile outside the ESB Dashboard:

1. Start a fresh ESB instance.
2. Checkout _system/config path to a local folder (A1) using check in
client.
3. Create bamServerProfiles folder at A1.
4. Copy BAM Server Profile file to above bamServerProfiles folder.
5. Add bamServerProfiles using check in client.
6. Check in changes using check in client.

Thanks
Imesh


On Thu, Jan 23, 2014 at 10:22 AM, Imesh Gunaratne im...@wso2.com wrote:

 Hi,

 As I found BAM Profiles in ESB are stored in the registry (ESB 4.8.0).
 Is there a way to configure this without accessing the ESB Dashboard (if
 we could export the required configuration to a file)?

 I tried to use the G-Reg check-in tool but it was not successful with the
 H2 database.

 Thanks

 --
 *Imesh Gunaratne*
 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




-- 
*Imesh Gunaratne*
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


Re: [Dev] [DEV] https://wso2.org/jira/browse/ESBJAVA-2849

2014-01-23 Thread Dushan Abeyruwan
Hi Azeez,


On Thu, Jan 23, 2014 at 11:55 PM, Afkham Azeez az...@wso2.com wrote:

 No! TenantAxisUtils is a util. You can't destroy the context there. You
 have no idea at what point that code will be called. The context cleanup,
 if necessary should have been performed by some upstream code.

got it, then required clean up will be doing at
PassThroughNHttpGetProcessor


 On Thu, Jan 23, 2014 at 10:15 PM, Dushan Abeyruwan dus...@wso2.comwrote:

 Hi Dev

 AFAIU we should destroy current context before setup new Tenant domain,
 but in TenantAxisUtils, seems like we are not cleaning up current context 
 which
 leads to throw exception as shown in below [2] shall we do the changes as
 required WDYT?


  private static ConfigurationContext
 createTenantConfigurationContext(ConfigurationContext mainConfigCtx,
  String tenantDomain) throws
 Exception {
 synchronized (tenantDomain.intern()) { // lock based on tenant
 domain
 MapString, ConfigurationContext tenantConfigContexts =
 getTenantConfigurationContexts(mainConfigCtx);
  ConfigurationContext tenantConfigCtx =
 tenantConfigContexts.get(tenantDomain);
 if (tenantConfigCtx != null) {
 return tenantConfigCtx;
 }
 long tenantLoadingStartTime = System.currentTimeMillis();
 int tenantId = getTenantId(tenantDomain);
 if (tenantId == MultitenantConstants.SUPER_TENANT_ID ||
 tenantId == MultitenantConstants.INVALID_TENANT_ID) {
 throw new Exception(Tenant  + tenantDomain +  does not
 exist);
 }
  *   PrivilegedCarbonContext.destroyCurrentContext(); need to be
 here..*
 PrivilegedCarbonContext carbonContext =
 PrivilegedCarbonContext.getThreadLocalCarbonContext();
 carbonContext.setTenantId(tenantId);


 [2]

 TID: [0] [ESB] [2014-01-21 12:06:54,005] INFO
 {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} - Updating
 repo update required parameter
 {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest}
 TID: [0] [ESB] [2014-01-21 12:07:11,420] ERROR
 {org.wso2.carbon.context.internal.CarbonContextDataHolder} - Trying to set
 the domain from 3 to 6
 {org.wso2.carbon.context.internal.CarbonContextDataHolder}
 java.lang.IllegalStateException: Trying to set the domain from 3 to 6
 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder.setTenantId(CarbonContextDataHolder.java:1587)
 at
 org.wso2.carbon.context.PrivilegedCarbonContext.setTenantId(PrivilegedCarbonContext.java:208)
 at
 org.wso2.carbon.context.PrivilegedCarbonContext.setTenantId(PrivilegedCarbonContext.java:197)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:284)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantAxisConfiguration(TenantAxisUtils.java:104)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getAxisService(TenantAxisUtils.java:195)
 at
 org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor.process(PassThroughNHttpGetProcessor.java:300)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:155)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)

 --
 Dushan Abeyruwan | Associate Tech Lead
 Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http://dushansview.blogspot.com/
 Mobile:(0094)713942042




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/*
 *email: **az...@wso2.com* az...@wso2.com
 * cell: +94 77 3320919 %2B94%2077%203320919 blog: *
 *http://blog.afkham.org* http://blog.afkham.org
 *twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 * linked-in: **http://lk.linkedin.com/in/afkhamazeez
 http://lk.linkedin.com/in/afkhamazeez*

 *Lean . Enterprise . Middleware*




-- 
Dushan Abeyruwan | Associate Tech Lead
Integration Technologies Team
PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:http://dushansview.blogspot.com/
Mobile:(0094)713942042
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Using UserAdminStub to get users names of a role

2014-01-23 Thread Hasitha Aravinda
Hi all,

I used UserAdminStub's getUsersOfRole method to do the $subject. It returns
user list as a FlaggedName array. But problem is, this FlaggedName array
contains all the user including users who don't belong to that role.

But by checking flaggedName.getSelected() method I can validate whether
particular user is in that role or not. But this requires additional
iteration.

Is this default behavior ? I verified with both carbon 4.0.0 and 4.2.0 and
observed the same.

Is it ok to use RemoteUserStoreManagerServiceStub for this. ? Again I can't
use this with BPS since RemoteUserStoreManagerService admin service is not
available by default.

Thanks,
Hasitha.

-- 
Hasitha Aravinda,
Software Engineer,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile: +94 71 8 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using UserAdminStub to get users names of a role

2014-01-23 Thread Venura Kahawala
Hi,

IMO this is an incorrect behavior. Can you try sending zero for the 'limit'
variable?

Regards,
Venura


On Fri, Jan 24, 2014 at 9:39 AM, Hasitha Aravinda hasi...@wso2.com wrote:

 Hi all,

 I used UserAdminStub's getUsersOfRole method to do the $subject. It
 returns user list as a FlaggedName array. But problem is, this FlaggedName
 array contains all the user including users who don't belong to that role.

 But by checking flaggedName.getSelected() method I can validate whether
 particular user is in that role or not. But this requires additional
 iteration.

 Is this default behavior ? I verified with both carbon 4.0.0 and 4.2.0 and
 observed the same.

 Is it ok to use RemoteUserStoreManagerServiceStub for this. ? Again I
 can't use this with BPS since RemoteUserStoreManagerService admin service
 is not available by default.

 Thanks,
 Hasitha.

 --
 Hasitha Aravinda,
 Software Engineer,
 WSO2 Inc.
 Email: hasi...@wso2.com
 Mobile: +94 71 8 210 200




-- 
Senior Software Engineer

Mobile: +94 71 82 300 20
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] https://wso2.org/jira/browse/ESBJAVA-2899 Reprodcuiable due to recent XCML changers in IS

2014-01-23 Thread Kasun Indrasiri
We need to fix these blockers related to entitlement mediator, before
creating the RC packs that we are planing to release on Tuesday.

Thanks,


On Thu, Jan 23, 2014 at 10:23 AM, Shashika Ubhayaratne shash...@wso2.comwrote:

 Hi Asela,

 Please fix issue [1] as well since it is a blocker for ESB. Throws null
 pointer for thrift requests on IS 4.6.0.

 [1]: https://wso2.org/jira/browse/IDENTITY-2000

 Thanks,
 Shashika


 Shashika Ubhayaratne
 Associate Technical Lead - QA
 WSO2 Inc: http://www.wso2.com/
 Mobile: *+94773383831*


 On Thu, Jan 23, 2014 at 7:37 AM, Asela Pathberiya as...@wso2.com wrote:




 On Wed, Jan 22, 2014 at 7:45 PM, Dushan Abeyruwan dus...@wso2.comwrote:

 Hi IS Team,
 ESB 4.8.1 M1 pack built today with IS 4.6.0 (released)

 This is reproducible, seems like now response wrap
 with urn:oasis:names:tc:xacml:3.0:core:schema:wd-17 and no longer

  if(decisionString != null){
 OMElement decisionElement =
 AXIOMUtil.stringToOM(decisionString);
   *  simpleDecision =
 decisionElement.getFirstChildWithName(new
 QName(Result)).getFirstChildWithName(new QName(Decision)).getText();*
 obligations = decisionElement.getFirstChildWithName(new
 QName(Obligations));
 advice = decisionElement.getFirstChildWithName(new
 QName(AdviceExpressions));
 if(log.isDebugEnabled()){
 log.debug(Entitlement Decision is :  +
 simpleDecision);
 }

 it suppose to be

 *decisionElement.getFirstChildWithName(new
 QName(urn:oasis:names:tc:xacml:3.0:core:schema:wd-17,Result)) or may be
 we might have to test both..*

  So, IS team please review this and do any necessary changers to
 Entitlement Mediator, this a BLOCKER and required your attention.

 New Response Type..
 Response
 xmlns=urn:oasis:names:tc:xacml:3.0:core:schema:wd-17ResultDecisionNotApplicable/DecisionStatusStatusCode
 Value=urn:oasis:names:tc:xacml:1.0:status:ok/StatusCode/Status/Result/Response



 Yes.. Thanks for pointing out. We need to fix the entitlement mediator
 for 4.8.0.  Because XACML 3.0 response must return with above namespace and
 entitlement mediator always sends a XACML 3.0 request. Actually namespace
 was fixed in 4.6.0 IS release [1], Therefore we can consider both
 situations; when fixing the entitlement mediator. Then it would work with
 both older and new IS versions.

 [1]https://wso2.org/jira/browse/IDENTITY-1855

 Thanks,
 Asela.



 Cheers,
 Dushan Abeyruwan | Associate Tech Lead
 Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http://dushansview.blogspot.com/
 Mobile:(0094)713942042




 --
 Thanks  Regards,
 Asela

 ATL
 Mobile : +94 777 625 933

 ___
 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




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


Re: [Dev] Using UserAdminStub to get users names of a role

2014-01-23 Thread Asela Pathberiya
On Fri, Jan 24, 2014 at 9:57 AM, Venura Kahawala ven...@wso2.com wrote:

 Hi,

 IMO this is an incorrect behavior. Can you try sending zero for the
 'limit' variable?

 Regards,
 Venura


 On Fri, Jan 24, 2014 at 9:39 AM, Hasitha Aravinda hasi...@wso2.comwrote:

 Hi all,

 I used UserAdminStub's getUsersOfRole method to do the $subject. It
 returns user list as a FlaggedName array. But problem is, this FlaggedName
 array contains all the user including users who don't belong to that role.

 But by checking flaggedName.getSelected() method I can validate whether
 particular user is in that role or not. But this requires additional
 iteration.

 Is this default behavior ? I verified with both carbon 4.0.0 and 4.2.0
 and observed the same.


Yes.. i guess. UserAdmin stub has been written thinking about the UI
aspect..



 Is it ok to use RemoteUserStoreManagerServiceStub for this. ? Again I
 can't use this with BPS since RemoteUserStoreManagerService admin service
 is not available by default.


Yes..  this is the better approach, if you need to call the user store
functions from external  web application or system.  You can install this
feature [1]. Basically It just exposes the user store manager interface as
web service API.

[1]
http://soasecurity.org/2013/12/15/remote-user-management-feature-in-wso2-carbon-products/

Thanks,
Asela.



 Thanks,
 Hasitha.

 --
 Hasitha Aravinda,
 Software Engineer,
 WSO2 Inc.
 Email: hasi...@wso2.com
 Mobile: +94 71 8 210 200




 --
 Senior Software Engineer

 Mobile: +94 71 82 300 20


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




-- 
Thanks  Regards,
Asela

ATL
Mobile : +94 777 625 933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using UserAdminStub to get users names of a role

2014-01-23 Thread Hasitha Aravinda
Thanks Asela,

Hasitha




On Thu, Jan 23, 2014 at 11:41 PM, Asela Pathberiya as...@wso2.com wrote:




 On Fri, Jan 24, 2014 at 9:57 AM, Venura Kahawala ven...@wso2.com wrote:

 Hi,

 IMO this is an incorrect behavior. Can you try sending zero for the
 'limit' variable?

 Regards,
 Venura


 On Fri, Jan 24, 2014 at 9:39 AM, Hasitha Aravinda hasi...@wso2.comwrote:

 Hi all,

 I used UserAdminStub's getUsersOfRole method to do the $subject. It
 returns user list as a FlaggedName array. But problem is, this FlaggedName
 array contains all the user including users who don't belong to that role.

 But by checking flaggedName.getSelected() method I can validate whether
 particular user is in that role or not. But this requires additional
 iteration.

 Is this default behavior ? I verified with both carbon 4.0.0 and 4.2.0
 and observed the same.


 Yes.. i guess. UserAdmin stub has been written thinking about the UI
 aspect..



 Is it ok to use RemoteUserStoreManagerServiceStub for this. ? Again I
 can't use this with BPS since RemoteUserStoreManagerService admin service
 is not available by default.


 Yes..  this is the better approach, if you need to call the user store
 functions from external  web application or system.  You can install this
 feature [1]. Basically It just exposes the user store manager interface as
 web service API.

 [1]
 http://soasecurity.org/2013/12/15/remote-user-management-feature-in-wso2-carbon-products/

 Thanks,
 Asela.



 Thanks,
 Hasitha.

 --
 Hasitha Aravinda,
 Software Engineer,
 WSO2 Inc.
 Email: hasi...@wso2.com
 Mobile: +94 71 8 210 200




 --
 Senior Software Engineer

 Mobile: +94 71 82 300 20


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




 --
 Thanks  Regards,
 Asela

 ATL
 Mobile : +94 777 625 933




-- 
Hasitha Aravinda,
Software Engineer,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile: +94 71 8 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Invitation: [Code Review] - Balana @ Fri Jan 24, 2014 11am - 12pm (as...@wso2.com)

2014-01-23 Thread Asela Pathberiya
Link for crucible [1]

[1] http://wso2.org/crucible/project/WSCC001

Thanks,
Asela.


On Tue, Jan 21, 2014 at 2:27 PM, Chamath Gunawardana chama...@wso2.comwrote:

 more details 
 »https://www.google.com/calendar/event?action=VIEWeid=czhna3A1dGZsaTI1aWMxbXBxaTRvcWhxbjggYXNlbGFAd3NvMi5jb20tok=MTcjY2hhbWF0aGdAd3NvMi5jb20yOTNkNWRkZDQ0MzFlOTkzN2Y0OWY5NDNjNTFiODdmZTYyMmRkYjdhctz=Asia/Colombohl=en
 [Code Review] - Balana
 *When*
 Fri Jan 24, 2014 11am – 12pm Colombo
 *Where*
 LK 5th Floor Meeting Room - Garage 
 (maphttp://maps.google.lk/maps?q=LK+5th+Floor+Meeting+Room+-+Garagehl=en
 )
 *Calendar*
 as...@wso2.com
 *Who*
 •
 Chamath Gunawardana - organizer
 •
 Asela Pathberiya
 •
 Darshana Gunawardana
 •
 Dulanja Liyanage
 •
 Venura Kahawala
 •
 Ishara Karunarathna
 •
 Prabath Siriwardana
 •
 Johann Nallathamby
 •
 dev@wso2.org - optional

 Going?   *Yes
 https://www.google.com/calendar/event?action=RESPONDeid=czhna3A1dGZsaTI1aWMxbXBxaTRvcWhxbjggYXNlbGFAd3NvMi5jb20rst=1tok=MTcjY2hhbWF0aGdAd3NvMi5jb20yOTNkNWRkZDQ0MzFlOTkzN2Y0OWY5NDNjNTFiODdmZTYyMmRkYjdhctz=Asia/Colombohl=en
 - Maybe
 https://www.google.com/calendar/event?action=RESPONDeid=czhna3A1dGZsaTI1aWMxbXBxaTRvcWhxbjggYXNlbGFAd3NvMi5jb20rst=3tok=MTcjY2hhbWF0aGdAd3NvMi5jb20yOTNkNWRkZDQ0MzFlOTkzN2Y0OWY5NDNjNTFiODdmZTYyMmRkYjdhctz=Asia/Colombohl=en
 - No
 https://www.google.com/calendar/event?action=RESPONDeid=czhna3A1dGZsaTI1aWMxbXBxaTRvcWhxbjggYXNlbGFAd3NvMi5jb20rst=2tok=MTcjY2hhbWF0aGdAd3NvMi5jb20yOTNkNWRkZDQ0MzFlOTkzN2Y0OWY5NDNjNTFiODdmZTYyMmRkYjdhctz=Asia/Colombohl=en*
 more options 
 »https://www.google.com/calendar/event?action=VIEWeid=czhna3A1dGZsaTI1aWMxbXBxaTRvcWhxbjggYXNlbGFAd3NvMi5jb20tok=MTcjY2hhbWF0aGdAd3NvMi5jb20yOTNkNWRkZDQ0MzFlOTkzN2Y0OWY5NDNjNTFiODdmZTYyMmRkYjdhctz=Asia/Colombohl=en

 Invitation from Google Calendar https://www.google.com/calendar/

 You are receiving this email at the account as...@wso2.com because you
 are subscribed for invitations on calendar as...@wso2.com.

 To stop receiving these notifications, please log in to
 https://www.google.com/calendar/ and change your notification settings
 for this calendar.




-- 
Thanks  Regards,
Asela

ATL
Mobile : +94 777 625 933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Isuruwan Herath

2014-01-23 Thread Senaka Fernando
Hi all,

Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer. Isuruwan
has made some great contributions to our platform during the last
few months and in recognition of his commitment and contributions he has
been voted as a committer.

Isuruwan, welcome aboard and keep up the good work.

Best Regards,
Senaka.

-- 


*[image: http://wso2.com] http://wso2.com Senaka Fernando*
Senior Technical Lead; WSO2 Inc.; http://wso2.com



* Member; Apache Software Foundation; http://apache.org
http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408
754 7388; ext: 51736*;


*M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando
http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Isuruwan Herath

2014-01-23 Thread Harsha Thirimanna
Congratulation Isuruwan ... !!!


*Harsha Thirimanna*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
* http://www.apache.org/*
* email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770*
* twitter: **http://twitter.com/ http://twitter.com/afkham_azeez*
*harshathirimann linked-in: **http:
http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122*

 *Lean . Enterprise . Middleware*



On Fri, Jan 24, 2014 at 12:23 PM, Senaka Fernando sen...@wso2.com wrote:

 Hi all,

 Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer. Isuruwan
 has made some great contributions to our platform during the last
 few months and in recognition of his commitment and contributions he has
 been voted as a committer.

 Isuruwan, welcome aboard and keep up the good work.

 Best Regards,
 Senaka.

 --


 *[image: http://wso2.com] http://wso2.com Senaka Fernando*
 Senior Technical Lead; WSO2 Inc.; http://wso2.com



 * Member; Apache Software Foundation; http://apache.org
 http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1
 408 754 7388 %2B1%20408%20754%207388; ext: 51736*;


 *M: +94 77 322 1818 %2B94%2077%20322%201818 Linked-In:
 http://linkedin.com/in/senakafernando
 http://linkedin.com/in/senakafernando*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 += Isuruwan Herath

2014-01-23 Thread Manoj Kumara
Congratulations Isuruwan ... !!

Best Regards..


Manoj Kumara
Software Engineer
WSO2, Inc.; http://wso2.com

Twitter:  http://twitter.com/ManKuma
Mobile: +94713448188


On Fri, Jan 24, 2014 at 12:23 PM, Senaka Fernando sen...@wso2.com wrote:

 Hi all,

 Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer. Isuruwan
 has made some great contributions to our platform during the last
 few months and in recognition of his commitment and contributions he has
 been voted as a committer.

 Isuruwan, welcome aboard and keep up the good work.

 Best Regards,
 Senaka.

 --


 *[image: http://wso2.com] http://wso2.com Senaka Fernando*
 Senior Technical Lead; WSO2 Inc.; http://wso2.com



 * Member; Apache Software Foundation; http://apache.org
 http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1
 408 754 7388 %2B1%20408%20754%207388; ext: 51736*;


 *M: +94 77 322 1818 %2B94%2077%20322%201818 Linked-In:
 http://linkedin.com/in/senakafernando
 http://linkedin.com/in/senakafernando*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


[Dev] [SSO] Carbon console

2014-01-23 Thread Chan
Hi guys,
I don't know if the below scenario is a bug or not. Here it goes - First I
login to the carbon console as the super tenant admin. Afterwards I login
to a jaggery application that use SAML SSO login using a tenant user (With
a different tab same browser). When I come back to the Carbon console - the
UI becomes blank and it changes. It reflects the SSO changes in Carbon SSO
as well. Is this the expected behavior?

This bug is documented in MDM JIRA project [1].

[1] - https://wso2.org/jira/browse/MDM-207

-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2Mobile
Lean.Enterprise.Mobileware
 * ~Email   duli...@wso2.com duli...@wso2mobile.com*
*  ~Mobile +94712112165 %2B94712112165*

*  ~Website   dulithawijewantha.com http://dulithawijewantha.com/ *

*  ~Blog blog.dulithawijewantha.com
http://dulichan.github.io/chan/*
*  ~Twitter @dulitharw https://twitter.com/dulitharw*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Isuruwan Herath

2014-01-23 Thread Ramith Jayasinghe
Congrats Isuru1!



On Fri, Jan 24, 2014 at 12:23 PM, Senaka Fernando sen...@wso2.com wrote:

 Hi all,

 Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer. Isuruwan
 has made some great contributions to our platform during the last
 few months and in recognition of his commitment and contributions he has
 been voted as a committer.

 Isuruwan, welcome aboard and keep up the good work.

 Best Regards,
 Senaka.

 --


 *[image: http://wso2.com] http://wso2.com Senaka Fernando*
 Senior Technical Lead; WSO2 Inc.; http://wso2.com



 * Member; Apache Software Foundation; http://apache.org
 http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1
 408 754 7388 %2B1%20408%20754%207388; ext: 51736*;


 *M: +94 77 322 1818 %2B94%2077%20322%201818 Linked-In:
 http://linkedin.com/in/senakafernando
 http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware

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




-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 776715671
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Isuruwan Herath

2014-01-23 Thread Waruna Jayaweera
Congratzz Isuruwan


On Fri, Jan 24, 2014 at 12:37 PM, Ramith Jayasinghe ram...@wso2.com wrote:

 Congrats Isuru1!



 On Fri, Jan 24, 2014 at 12:23 PM, Senaka Fernando sen...@wso2.com wrote:

 Hi all,

 Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer. Isuruwan
 has made some great contributions to our platform during the last
 few months and in recognition of his commitment and contributions he has
 been voted as a committer.

 Isuruwan, welcome aboard and keep up the good work.

 Best Regards,
 Senaka.

 --


 *[image: http://wso2.com] http://wso2.com Senaka Fernando*
 Senior Technical Lead; WSO2 Inc.; http://wso2.com



 * Member; Apache Software Foundation; http://apache.org
 http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1
 408 754 7388 %2B1%20408%20754%207388; ext: 51736*;


 *M: +94 77 322 1818 %2B94%2077%20322%201818 Linked-In:
 http://linkedin.com/in/senakafernando
 http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware

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




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 776715671


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




-- 
Regards,

Waruna Lakshitha Jayaweera
Software Engineer
WSO2 Inc; http://wso2.com
phone: +94713255198
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Isuruwan Herath

2014-01-23 Thread Malintha Adikari
Congratulations Isuruwan ... !!!

Regards,
Malintha


On Fri, Jan 24, 2014 at 12:47 PM, Waruna Jayaweera waru...@wso2.com wrote:

 Congratzz Isuruwan


 On Fri, Jan 24, 2014 at 12:37 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 Congrats Isuru1!



 On Fri, Jan 24, 2014 at 12:23 PM, Senaka Fernando sen...@wso2.comwrote:

 Hi all,

 Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer. Isuruwan
 has made some great contributions to our platform during the last
 few months and in recognition of his commitment and contributions he has
 been voted as a committer.

 Isuruwan, welcome aboard and keep up the good work.

 Best Regards,
 Senaka.

 --


 *[image: http://wso2.com] http://wso2.com Senaka Fernando*
 Senior Technical Lead; WSO2 Inc.; http://wso2.com



 * Member; Apache Software Foundation; http://apache.org
 http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1
 408 754 7388 %2B1%20408%20754%207388; ext: 51736*;


 *M: +94 77 322 1818 %2B94%2077%20322%201818 Linked-In:
 http://linkedin.com/in/senakafernando
 http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware

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




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 776715671


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




 --
 Regards,

 Waruna Lakshitha Jayaweera
 Software Engineer
 WSO2 Inc; http://wso2.com
 phone: +94713255198

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




-- 
*Malintha Adikari*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 2312958
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] HTTP DELETE with entity body support for WSO2 ESB Passthru transport

2014-01-23 Thread Manoj Kumara
Hi Jeewantha,

I'm holding this for now without committing. Can you discuss with others
and let me know.

Thanks,
Manoj

Best Regards..


Manoj Kumara
Software Engineer
WSO2, Inc.; http://wso2.com

Twitter:  http://twitter.com/ManKuma
Mobile: +94713448188


On Fri, Jan 24, 2014 at 11:47 AM, Nuwan Dias nuw...@wso2.com wrote:

 Guys,

 This patch introduces an API change. We will have to redo it in such a way
 so that we do not introduce API changes if we're committing this to Carbon
 4.2.0 patches.

 Thanks,
 NuwanD.


 On Fri, Jan 24, 2014 at 11:20 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Manoj,

 Please find the new httpcore.diff. Sorry for the inconvenience.

 Thanks,
 Jeewantha




 On Thu, Jan 23, 2014 at 7:04 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Jeewantha,

 I'm getting some compilation errors when building httpcore module. Can
 you please check.


 [INFO] -
 [ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR]
 /media/carbon/carbon/kernal/branches/4.2.0/patches/patch0005/dependencies/httpcore/4.3.0-wso2v1/src/main/java/org/apache/http/impl/DefaultHttpRequestFactory.java:[36,31]
 cannot find symbol
   symbol:   class BasicHttpEntityPossibleEnclosingRequest
   location: package org.apache.http.message
 [ERROR]
 /media/carbon/carbon/kernal/branches/4.2.0/patches/patch0005/dependencies/httpcore/4.3.0-wso2v1/src/main/java/org/apache/http/impl/DefaultHttpRequestFactory.java:[93,24]
 cannot find symbol
   symbol:   class BasicHttpEntityPossibleEnclosingRequest
   location: class org.apache.http.impl.DefaultHttpRequestFactory
 [ERROR]
 /media/carbon/carbon/kernal/branches/4.2.0/patches/patch0005/dependencies/httpcore/4.3.0-wso2v1/src/main/java/org/apache/http/impl/DefaultHttpRequestFactory.java:[108,24]
 cannot find symbol
   symbol:   class BasicHttpEntityPossibleEnclosingRequest
   location: class org.apache.http.impl.DefaultHttpRequestFactory


 Thanks,
 Manoj

 Best Regards..


 Manoj Kumara
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Twitter:  http://twitter.com/ManKuma
 Mobile: +94713448188


 On Thu, Jan 23, 2014 at 6:00 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Adding the bin.xml


 On Thu, Jan 23, 2014 at 5:29 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Manoj,

 Attached are the diffs to be committed to patch0005 in kernal 4.2.0.
 Please do the needful.

 Thanks,
 Jeewantha


 On Thu, Jan 16, 2014 at 1:52 PM, Kasun Indrasiri ka...@wso2.comwrote:

 +1 This is looking good. Shall we incorporate the changes in to the
 latest ESB version and verify the fix with the integration tests.


 On Thu, Jan 16, 2014 at 11:45 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Folks,

 We had been implementing this feature last week and thought it
 needed public attention. First of all, HTTP/1.1 DELETE with entity 
 body
 does NOT violate the spec [1] [2]. But the initial design of
 apache-httpcomponents considers DELETE as a Non entity enclosing 
 request.
 To support this feature, we introduced a third category Possible entity
 enclosing request because now a DELETE can be of either type, with or
 without entity body.

 Once the whole HTTP request is read, a Possible entity enclosing
 request will create the correct object entity enclosing request or a
 non entity enclosing request by looking at it headers. We look at the
 header Content-Length to determine if the request has a payload.

 So now, the following is a perfectly valid HTTP DELETE request.

 DELETE /order/delete HTTP/1.1
 Accept-Encoding: gzip,deflate
 Content-Type: text/xml;charset=UTF-8
 SOAPAction: urn:echoInt
 Content-Length: 290
 Host: jeewantha:8280
 Connection: Keep-Alive
 User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:echo=
 http://echo.services.core.carbon.wso2.org;   soapenv:Header/
 soapenv:Body  echo:echoInt !--Optional:--
 in5/in  /echo:echoInt   /soapenv:Body/soapenv:Envelope

 Note that this is a sample POST to StockQuoteService of which I
 changed the method to DELETE. In other words, DELETE with payloads work
 exactly as POSTs.

 [1] http://stackoverflow.com/a/299696/1411653
 [2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.7

 Thanks,
 Jeewantha

 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : 

Re: [Dev] Invitation: [Code Review] Automation Framework API @ Fri Jan 24, 2014 2:30pm - 3:30pm (dharsha...@wso2.com)

2014-01-23 Thread Dharshana Warusavitharana
Hi All,

Please find crucible link from [1].

[1].http://wso2.org/crucible/cru/WTF001-26

Thank You,
Dharshana.


On Wed, Jan 22, 2014 at 11:08 AM, Dharshana Warusavitharana 
dharsha...@wso2.com wrote:

 more details 
 »https://www.google.com/calendar/event?action=VIEWeid=bTZldmUwMW10bmRnMGx0bmlnb3FhaWhkZ3MgZGV2QHdzbzIub3Jntok=MTkjZGhhcnNoYW5hd0B3c28yLmNvbTdmODExMjk5MDlmYjM3OTg5OGE0MWRhNTczMTAwMjgxNzJkMWM0MTIctz=Asia/Colombohl=en
 [Code Review] Automation Framework API
 Review of the API provided to write tests with the upcoming Framework
 release.
 *When*
 Fri Jan 24, 2014 2:30pm – 3:30pm Colombo
 *Where*
 LK 5th Floor Meeting Room - Garage 
 (maphttp://maps.google.com/maps?q=LK+5th+Floor+Meeting+Room+-+Garagehl=en
 )
 *Calendar*
 dharsha...@wso2.com
 *Who*
 •
 Dharshana Warusavitharana - organizer
 •
 Afkham Azeez
 •
 Pradeep Fernando
 •
 Kasun Gajasinghe
 •
 Senaka Fernando
 •
 Kishanthan Thangarajah
 •
 dev@wso2.org
 •
 Nuwan Wimalasekara
 •
 Krishantha Samaraweera
 •
 Dimuthu De Lanerolle
 •
 Malintha Adikari

 Going?   *Yes
 https://www.google.com/calendar/event?action=RESPONDeid=bTZldmUwMW10bmRnMGx0bmlnb3FhaWhkZ3MgZGV2QHdzbzIub3Jnrst=1tok=MTkjZGhhcnNoYW5hd0B3c28yLmNvbTdmODExMjk5MDlmYjM3OTg5OGE0MWRhNTczMTAwMjgxNzJkMWM0MTIctz=Asia/Colombohl=en
 - Maybe
 https://www.google.com/calendar/event?action=RESPONDeid=bTZldmUwMW10bmRnMGx0bmlnb3FhaWhkZ3MgZGV2QHdzbzIub3Jnrst=3tok=MTkjZGhhcnNoYW5hd0B3c28yLmNvbTdmODExMjk5MDlmYjM3OTg5OGE0MWRhNTczMTAwMjgxNzJkMWM0MTIctz=Asia/Colombohl=en
 - No
 https://www.google.com/calendar/event?action=RESPONDeid=bTZldmUwMW10bmRnMGx0bmlnb3FhaWhkZ3MgZGV2QHdzbzIub3Jnrst=2tok=MTkjZGhhcnNoYW5hd0B3c28yLmNvbTdmODExMjk5MDlmYjM3OTg5OGE0MWRhNTczMTAwMjgxNzJkMWM0MTIctz=Asia/Colombohl=en*
 more options 
 »https://www.google.com/calendar/event?action=VIEWeid=bTZldmUwMW10bmRnMGx0bmlnb3FhaWhkZ3MgZGV2QHdzbzIub3Jntok=MTkjZGhhcnNoYW5hd0B3c28yLmNvbTdmODExMjk5MDlmYjM3OTg5OGE0MWRhNTczMTAwMjgxNzJkMWM0MTIctz=Asia/Colombohl=en

 Invitation from Google Calendar https://www.google.com/calendar/

 You are receiving this courtesy email at the account dev@wso2.org because
 you are an attendee of this event.

 To stop receiving future notifications for this event, decline this event.
 Alternatively you can sign up for a Google account at
 https://www.google.com/calendar/ and control your notification settings
 for your entire calendar.

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




-- 

Dharshana Warusavitharana
Senior Software Engineer , Test Automation
WSO2 Inc. http://wso2.com
email : dharsha...@wso2.com dharsha...@wso2.com
Tel  : +94 11 214 5345
Fax :+94 11 2145300
cell : +94772202595
blog : http://dharshanaw.blogspot.com

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