Re: [Dev] [DAS] Location of chart-utils.js in DAS 3.1.0

2016-09-22 Thread Chamila De Alwis
Hi Tharik,

Thanks for the reply! Yes, I referred the gadgets to analytics-wso2-2.0.0.


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Senior Software Engineer | WSO2
Blog: https://medium.com/@chamilad



On Fri, Sep 23, 2016 at 11:07 AM, Tharik Kanaka  wrote:

> Hi Chamila,
>
> We have improved analytics-wso2 as analytics-wso2-2.0.0 to couple with
> VizGrammar versions. For a beta pack if you have created gadgets referring
> "analytics-wso2". When you migrate best option if to refer
> "analytics-wso2-2.0.0". Since we have fixed a lot bugs and have done
> improvements from beta if there are any issues for your gadgets, in that
> case you can migrate your analytics-wso2 file to libs and refer it.
> Ultimate goal is to maintain versions in that directory.
>
> Regards,
>
> On Fri, Sep 23, 2016 at 10:26 AM, Sachith Withana 
> wrote:
>
>> +Tharik and Dunith
>>
>> On Fri, Sep 23, 2016 at 10:23 AM, Chamila De Alwis 
>> wrote:
>>
>>> Hi,
>>>
>>> I noticed that in DAS 3.1.0 "repository/deployment/server/
>>> jaggeryapps/portal/libs/analytics-wso2" is not there anymore (from DAS
>>> 3.1.0-beta). Instead, the libraries are available as "analytics-wso2-2.0.0"
>>> and "analytics-wso2_5.0.12".
>>>
>>> Doesn't this break gadget dependencies if dashboard features are
>>> upgraded?
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Senior Software Engineer | WSO2
>>> Blog: https://medium.com/@chamilad
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sachith Withana
>> Software Engineer; WSO2 Inc.; http://wso2.com
>> E-mail: sachith AT wso2.com
>> M: +94715518127
>> Linked-In: https://lk.linkedin.com/in/sac
>> hithwithana
>>
>
>
>
> --
>
> *Tharik Kanaka*
>
> WSO2, Inc | lean . enterprise . middleware
>
> Email: tha...@wso2.com | Web: www.wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Location of chart-utils.js in DAS 3.1.0

2016-09-22 Thread Tharik Kanaka
Hi Chamila,

We have improved analytics-wso2 as analytics-wso2-2.0.0 to couple with
VizGrammar versions. For a beta pack if you have created gadgets referring
"analytics-wso2". When you migrate best option if to refer
"analytics-wso2-2.0.0". Since we have fixed a lot bugs and have done
improvements from beta if there are any issues for your gadgets, in that
case you can migrate your analytics-wso2 file to libs and refer it.
Ultimate goal is to maintain versions in that directory.

Regards,

On Fri, Sep 23, 2016 at 10:26 AM, Sachith Withana  wrote:

> +Tharik and Dunith
>
> On Fri, Sep 23, 2016 at 10:23 AM, Chamila De Alwis 
> wrote:
>
>> Hi,
>>
>> I noticed that in DAS 3.1.0 "repository/deployment/server/
>> jaggeryapps/portal/libs/analytics-wso2" is not there anymore (from DAS
>> 3.1.0-beta). Instead, the libraries are available as "analytics-wso2-2.0.0"
>> and "analytics-wso2_5.0.12".
>>
>> Doesn't this break gadget dependencies if dashboard features are upgraded?
>>
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Senior Software Engineer | WSO2
>> Blog: https://medium.com/@chamilad
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sachith Withana
> Software Engineer; WSO2 Inc.; http://wso2.com
> E-mail: sachith AT wso2.com
> M: +94715518127
> Linked-In: https://lk.linkedin.com/in/
> sachithwithana
>



-- 

*Tharik Kanaka*

WSO2, Inc | lean . enterprise . middleware

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon-Data 4.3.6 is staged

2016-09-22 Thread Madhawa Gunasekara
Thanks Maheshika

On Fri, Sep 23, 2016 at 10:57 AM, Maheshika Goonetilleke  wrote:

> Hi Madhawa
>
> Done.
>
> On Fri, Sep 23, 2016 at 10:52 AM, Madhawa Gunasekara 
> wrote:
>
>> Hi build team,
>>
>> Please release the staging repo.
>>
>> Thanks,
>> Madhawa
>>
>> On Fri, Sep 23, 2016 at 7:32 AM, Ruwan Yatawara  wrote:
>>
>>> Hi Madhawa,
>>>
>>> Tested it out, and everything looks good. +1 for the release.
>>>
>>> Thanks and Regards,
>>>
>>> Ruwan Yatawara
>>>
>>> Associate Technical Lead,
>>> WSO2 Inc.
>>>
>>> email : ruw...@wso2.com
>>> mobile : +94 77 9110413
>>> blog : http://ruwansrants.blogspot.com/
>>>   https://500px.com/ruwan_ace
>>> www: :http://wso2.com
>>>
>>>
>>> On Thu, Sep 22, 2016 at 4:28 PM, Madhawa Gunasekara 
>>> wrote:
>>>
 Hi All,

 Carbon-Data 4.3.6 is staged at https://maven.wso2.org/nexus/c
 ontent/repositories/orgwso2carbondata-1006

 This release is with kernel version 4.4.7. Please test and verify
 staging repo with products.

 Thanks,
 Madhawa
 --
 *Madhawa Gunasekara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71941102 <+94+71941102>
 blog: *http://madhawa-gunasekara.blogspot.com
 *
 linkedin: *http://lk.linkedin.com/in/mgunasekara
 *

>>>
>>>
>>
>>
>> --
>> *Madhawa Gunasekara*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 71941102 <+94+71941102>
>> blog: *http://madhawa-gunasekara.blogspot.com
>> *
>> linkedin: *http://lk.linkedin.com/in/mgunasekara
>> *
>>
>
>
>
> --
>
> Thanks & Best Regards,
>
> Maheshika Goonetilleke
> Senior Engineering Process Coordinator
>
> *WSO2 Inc*
> *email   : mahesh...@wso2.com *
> *mobile : +94 773 596707 <%2B94%20773%20596707>*
> *www: :http://wso2.com *lean . enterprise . middleware
>
>
>
>
>


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

mobile: +94 71941102 <+94+71941102>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon-Data 4.3.6 is staged

2016-09-22 Thread Maheshika Goonetilleke
Hi Madhawa

Done.

On Fri, Sep 23, 2016 at 10:52 AM, Madhawa Gunasekara 
wrote:

> Hi build team,
>
> Please release the staging repo.
>
> Thanks,
> Madhawa
>
> On Fri, Sep 23, 2016 at 7:32 AM, Ruwan Yatawara  wrote:
>
>> Hi Madhawa,
>>
>> Tested it out, and everything looks good. +1 for the release.
>>
>> Thanks and Regards,
>>
>> Ruwan Yatawara
>>
>> Associate Technical Lead,
>> WSO2 Inc.
>>
>> email : ruw...@wso2.com
>> mobile : +94 77 9110413
>> blog : http://ruwansrants.blogspot.com/
>>   https://500px.com/ruwan_ace
>> www: :http://wso2.com
>>
>>
>> On Thu, Sep 22, 2016 at 4:28 PM, Madhawa Gunasekara 
>> wrote:
>>
>>> Hi All,
>>>
>>> Carbon-Data 4.3.6 is staged at https://maven.wso2.org/nexus/c
>>> ontent/repositories/orgwso2carbondata-1006
>>>
>>> This release is with kernel version 4.4.7. Please test and verify
>>> staging repo with products.
>>>
>>> Thanks,
>>> Madhawa
>>> --
>>> *Madhawa Gunasekara*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 71941102 <+94+71941102>
>>> blog: *http://madhawa-gunasekara.blogspot.com
>>> *
>>> linkedin: *http://lk.linkedin.com/in/mgunasekara
>>> *
>>>
>>
>>
>
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 71941102 <+94+71941102>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>



-- 

Thanks & Best Regards,

Maheshika Goonetilleke
Senior Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com *
*mobile : +94 773 596707*
*www: :http://wso2.com *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon-Data 4.3.6 is staged

2016-09-22 Thread Madhawa Gunasekara
Hi build team,

Please release the staging repo.

Thanks,
Madhawa

On Fri, Sep 23, 2016 at 7:32 AM, Ruwan Yatawara  wrote:

> Hi Madhawa,
>
> Tested it out, and everything looks good. +1 for the release.
>
> Thanks and Regards,
>
> Ruwan Yatawara
>
> Associate Technical Lead,
> WSO2 Inc.
>
> email : ruw...@wso2.com
> mobile : +94 77 9110413
> blog : http://ruwansrants.blogspot.com/
>   https://500px.com/ruwan_ace
> www: :http://wso2.com
>
>
> On Thu, Sep 22, 2016 at 4:28 PM, Madhawa Gunasekara 
> wrote:
>
>> Hi All,
>>
>> Carbon-Data 4.3.6 is staged at https://maven.wso2.org/nexus/c
>> ontent/repositories/orgwso2carbondata-1006
>>
>> This release is with kernel version 4.4.7. Please test and verify staging
>> repo with products.
>>
>> Thanks,
>> Madhawa
>> --
>> *Madhawa Gunasekara*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 71941102 <+94+71941102>
>> blog: *http://madhawa-gunasekara.blogspot.com
>> *
>> linkedin: *http://lk.linkedin.com/in/mgunasekara
>> *
>>
>
>


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

mobile: +94 71941102 <+94+71941102>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Location of chart-utils.js in DAS 3.1.0

2016-09-22 Thread Sachith Withana
+Tharik and Dunith

On Fri, Sep 23, 2016 at 10:23 AM, Chamila De Alwis 
wrote:

> Hi,
>
> I noticed that in DAS 3.1.0 "repository/deployment/server/
> jaggeryapps/portal/libs/analytics-wso2" is not there anymore (from DAS
> 3.1.0-beta). Instead, the libraries are available as "analytics-wso2-2.0.0"
> and "analytics-wso2_5.0.12".
>
> Doesn't this break gadget dependencies if dashboard features are upgraded?
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Senior Software Engineer | WSO2
> Blog: https://medium.com/@chamilad
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sachith Withana
Software Engineer; WSO2 Inc.; http://wso2.com
E-mail: sachith AT wso2.com
M: +94715518127
Linked-In: https://lk.linkedin.com/in/sachithwithana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DAS] Location of chart-utils.js in DAS 3.1.0

2016-09-22 Thread Chamila De Alwis
Hi,

I noticed that in DAS 3.1.0
"repository/deployment/server/jaggeryapps/portal/libs/analytics-wso2" is
not there anymore (from DAS 3.1.0-beta). Instead, the libraries are
available as "analytics-wso2-2.0.0" and "analytics-wso2_5.0.12".

Doesn't this break gadget dependencies if dashboard features are upgraded?


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Senior Software Engineer | WSO2
Blog: https://medium.com/@chamilad
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Using Email Address as the Username - missing config?

2016-09-22 Thread Isura Karunaratne
Hi,



On Thu, Sep 22, 2016 at 4:24 PM, Niranda Perera  wrote:

> Hi,
>
> I was trying to get email as the username for IS on a default LDAP and I
> was following doc [1].
>
> But I was getting the following error,
>
> "Could not add user PRIMARY/d...@ddd.com. Error is: Username d...@ddd.com
> is not valid. User name must be a non null string with following format,
> [a-zA-Z0-9._-|//]{3,30}$"
>
>  ,when I was trying to create user with the username "d...@ddd.com".
>
> To overcome this, I had to change the "UsernameJavaRegEx" to this,
> ^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[
> a-zA-Z]{2,4}$
>

>
> I think this is intuitive to do! but isn't this a necessary config? Its
> not mentioned in the docs [1]
>

Yes. It is a necessary config. Please create a doc Jira to fix that.

Thanks
Isura.

>
> Best
>
> [1] https://docs.wso2.com/display/IS520/Using+Email+
> Address+as+the+Username
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.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


[Dev] Query about the usage and lifecycle of CarbonContext

2016-09-22 Thread wenxzhen
Dear all,


From the doc [1] below, we found CarbonContext is used per thread? Can it be 
shared across multiple threads? What's the best practice to use the 
CarbonContext?  


With my architecture diagram below, How the CarbonContext can be used? and will 
the data of CarbonContext be persisted somewhere?

[1] https://docs.wso2.com/display/Carbon441/CarbonContext+API


Thanks, Wenxing

2EFEFC08@C1081433.64AFE457
Description: Binary data
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] What is the best way to implement collapsible tree structure in an SVG group

2016-09-22 Thread Sachithra Dangalla
Hi,

I am an intern working on the project JavaScript based Data mapper tooling.
The project is described in the forwarded mail below.

*Current status:*
Currently the implementation parses a JSON schema, draws the structure on
an SVG group, adds draggable circles to the leaf nodes which can be dropped
on the leaf nodes of the opposite container.

So far, a JSON schema is parsed and the tree structure is drawn on an SVG
group through a recursive function by calculating the positions on the go.


*Requirement:*
The requirement is to add the expandable/collapsible functionality to the
tree structure.


*Problem*:
There are a lot of JS libraries that provide this functionality but the
result is always using HTML ul/li and its automated nesting abilities. My
requirement is for the tree to be drawn on SVG.

The possible approaches are:

   1. Use a library and embed ul/li inside svg - which might affect the
   drawing of draggable ends
   2. Write a similar custom code to get the desired functionality

Which is the best way?




*Sachithra DangallaSoftware Engineering Intern*
Mobile : +94 (0) 713700656 
sachit...@wso2.com 








-- Forwarded message --
From: Sachithra Dangalla 
Date: Tue, Sep 20, 2016 at 10:23 AM
Subject: [Architecture] [Progress] JS based Data Mapper tooling
To: architect...@wso2.org


Hi,

I am an intern currently working on JavaScript based Data Mapper tooling.

Initially, the project was started by incorporating jsPlumb and the basic
UI requirements were achieved including,

   1. File reading
   2. XML parsing
   3. Displaying tree structure
   4. Draggable nodes (Map leaf nodes to opposite container)
   5. Draggable containers(input and output structures)

The draggable nodes functionality is simulated in one of my blog posts -
http://comexile.blogspot.com/2016/08/simple-mapping-tool-with-jsplumb.html

As the next step, D3 was used instead of jsPlumb and the above requirements
were achieved with the use of D3 and html svg. (Working file on [1])


​

Currently I'm working on reading JSON schema instead of XML and the tree
structure was obtained by using html lists. (The working fiddle on [2])

The next steps would be to incorporate SVG in order to achieve the
draggable nodes and containers.

Please let me know of feedback and suggestions for improvements.


[1] - Link to working file - https://github.com/sachi-d/Dat
aMapperWebApp/blob/master/WebContent/d3trials/datamapper_d3.html

[2] - JSFiddle for JSON schema tree structure -
https://jsfiddle.net/sachid/Lvuff6r5/

[3] - Related blog posts -
http://comexile.blogspot.com/search/label/WSO2%20Experiments

[4] - Git repository - https://github.com/sachi-d/DataMapperWebApp


-- 

*Sachithra DangallaSoftware Engineering Intern*
Mobile : +94 (0) 713700656 
sachit...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon-Data 4.3.6 is staged

2016-09-22 Thread Ruwan Yatawara
Hi Madhawa,

Tested it out, and everything looks good. +1 for the release.

Thanks and Regards,

Ruwan Yatawara

Associate Technical Lead,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://ruwansrants.blogspot.com/
  https://500px.com/ruwan_ace
www: :http://wso2.com


On Thu, Sep 22, 2016 at 4:28 PM, Madhawa Gunasekara 
wrote:

> Hi All,
>
> Carbon-Data 4.3.6 is staged at https://maven.wso2.org/nexus/
> content/repositories/orgwso2carbondata-1006
>
> This release is with kernel version 4.4.7. Please test and verify staging
> repo with products.
>
> Thanks,
> Madhawa
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 71941102 <+94+71941102>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Exception when creating a tenant with TenantMgtAdminService

2016-09-22 Thread wenxzhen
Thanks to Omindu. After adding the 3 attributes below, the addition works now.


But the current addTenant working flow doesn't seem reasonable. And I have the 
following concerns:

when I am creating the Tenant, we don't have the firstname/lastname and 
password, we would like to ask the User to enter only the "email" with valid 
"domain" to create the tenant

we will default the email to be an administrator, and then send an invitation 
to the user email

only after user activates the link, we will get the username/lastname and 
password; otherwise the tenant will be kept inactive

the "addTenant" didn't respect the Active status in the TenantInfoBean, and it 
will be in Active after creation. It's a problem to me.
Regards, Wenxing





-- Original --
From:  "Omindu Rathnaweera";;
Send time: Thursday, Sep 22, 2016 10:38 PM
To: "wenxzhen"; 
Cc: "dev"; 
Subject:  Re: [Dev] Exception when creating a tenant with TenantMgtAdminService



Hi Wenxing,

Additionally, can you try setting the following parameters as well,


- adminPassword

- firstname

- lastname



Regards,
Omindu






On Thu, Sep 22, 2016 at 5:46 PM, wenxzhen  wrote:
paste the codes to do the addTenant for reference:
String cookie = WSO2AuthenticationAdmin.getCookie();
TenantMgtAdminServiceStub tenantMgtStub = null;

tenantMgtStub = new 
TenantMgtAdminServiceStub(CommonConfig.TENANT_ADMIN_ENDPOINT);
Options option = tenantMgtStub._getServiceClient().getOptions();
option.setManageSession(true);
option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, 
cookie);

String value = tenantMgtStub.addTenant(getTenantBeanInfo(tenantBean));


-- Original --
From:  "wenxzhen";;
Date:  Sep 22, 2016
To:  "dev"; 

Subject:  [Dev] Exception when creating a tenant with TenantMgtAdminService



Dear all,


On AS 5.3.0, I am using the TenantMgtAdminService to create the tenant with 
only the following attributes:
TenantInfoBean infoBean = new TenantInfoBean();

infoBean.setTenantDomain(...);
infoBean.setActive(...);
infoBean.setEmail(...);
infoBean.setUsagePlan(...);
infoBean.setAdmin(...);
And then I got the exception below, from the words "Error occurred while adding 
user property for user : m...@sina.com & property name : sn & value : null", it 
seemed I am missing some mandatory parameters?


TID: [-1234] [] [2016-09-22 19:44:08,431]  INFO 
{org.das.server.users.wso2admin.WSO2AuthenticationAdmin} -  getCookie with 
JSESSIONID=6BDFFED6992C09224D1EB74F2A430AAE; Path=/; Secure=null; HttpOnly=null 
{org.das.server.users.wso2admin.WSO2AuthenticationAdmin}
TID: [4] [] [2016-09-22 19:44:09,533] @so.net [4] [AS]ERROR 
{org.wso2.carbon.tenant.mgt.util.TenantMgtUtil} -  Error in adding claims to 
the user. {org.wso2.carbon.tenant.mgt.util.TenantMgtUtil}
org.wso2.carbon.user.core.UserStoreException: Error occurred while getting 
claim attribute for user : m...@sina.com
at 
org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doSetUserClaimValues(JDBCUserStoreManager.java:1989)
at 
org.wso2.carbon.user.core.common.AbstractUserStoreManager.setUserClaimValues(AbstractUserStoreManager.java:988)
at 
org.wso2.carbon.tenant.mgt.util.TenantMgtUtil.addClaimsToUserStoreManager(TenantMgtUtil.java:348)
at 
org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService.addTenant(TenantMgtAdminService.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at 
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at 
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:173)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at 
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at 
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)

[Dev] [IS] Using Email Address as the Username - missing config?

2016-09-22 Thread Niranda Perera
Hi,

I was trying to get email as the username for IS on a default LDAP and I
was following doc [1].

But I was getting the following error,

"Could not add user PRIMARY/d...@ddd.com. Error is: Username d...@ddd.com is
not valid. User name must be a non null string with following format,
[a-zA-Z0-9._-|//]{3,30}$"

 ,when I was trying to create user with the username "d...@ddd.com".

To overcome this, I had to change the "UsernameJavaRegEx" to this,
^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$


I think this is intuitive to do! but isn't this a necessary config? Its not
mentioned in the docs [1]

Best

[1] https://docs.wso2.com/display/IS520/Using+Email+Address+as+the+Username

-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
https://pythagoreanscript.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Exception when creating a tenant with TenantMgtAdminService

2016-09-22 Thread Omindu Rathnaweera
Hi Wenxing,

Additionally, can you try setting the following parameters as well,

- adminPassword
- firstname
- lastname

Regards,
Omindu



On Thu, Sep 22, 2016 at 5:46 PM, wenxzhen  wrote:

> paste the codes to do the addTenant for reference:
>
> String cookie = WSO2AuthenticationAdmin.getCookie();
> TenantMgtAdminServiceStub tenantMgtStub = null;
>
> tenantMgtStub = new 
> TenantMgtAdminServiceStub(CommonConfig.TENANT_ADMIN_ENDPOINT);
> Options option = tenantMgtStub._getServiceClient().getOptions();
> option.setManageSession(true);
> option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING,
>  cookie);
>
> String value = tenantMgtStub.addTenant(getTenantBeanInfo(tenantBean));
>
>
> -- Original --
> *From: * "wenxzhen";;
> *Date: * Sep 22, 2016
> *To: * "dev";
> *Subject: * [Dev] Exception when creating a tenant with
> TenantMgtAdminService
>
> Dear all,
>
> On AS 5.3.0, I am using the TenantMgtAdminService to create the tenant
> with only the following attributes:
>
> TenantInfoBean infoBean = new TenantInfoBean();
>
> infoBean.setTenantDomain(*...*);
> infoBean.setActive(*...*);
> infoBean.setEmail(*...*);
> infoBean.setUsagePlan(...);
> infoBean.setAdmin(*...*);
>
> And then I got the exception below, from the words "Error occurred while
> adding user property for user : m...@sina.com & property name : sn & value
> : null", it seemed I am missing some mandatory parameters?
>
> TID: [-1234] [] [2016-09-22 19:44:08,431]  INFO {org.das.server.users.
> wso2admin.WSO2AuthenticationAdmin} -  getCookie with JSESSIONID=
> 6BDFFED6992C09224D1EB74F2A430AAE; Path=/; Secure=null; HttpOnly=null
> {org.das.server.users.wso2admin.WSO2AuthenticationAdmin}
> TID: [4] [] [2016-09-22 19:44:09,533] @so.net [4] [AS]ERROR
> {org.wso2.carbon.tenant.mgt.util.TenantMgtUtil} -  Error in adding claims
> to the user. {org.wso2.carbon.tenant.mgt.util.TenantMgtUtil}
> org.wso2.carbon.user.core.UserStoreException: Error occurred while
> getting claim attribute for user : m...@sina.com
> at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.
> doSetUserClaimValues(JDBCUserStoreManager.java:1989)
> at org.wso2.carbon.user.core.common.AbstractUserStoreManager.
> setUserClaimValues(AbstractUserStoreManager.java:988)
> at org.wso2.carbon.tenant.mgt.util.TenantMgtUtil.
> addClaimsToUserStoreManager(TenantMgtUtil.java:348)
> at org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService.
> addTenant(TenantMgtAdminService.java:79)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.apache.axis2.rpc.receivers.RPCUtil.
> invokeServiceClass(RPCUtil.java:212)
> at org.apache.axis2.rpc.receivers.RPCMessageReceiver.
> invokeBusinessLogic(RPCMessageReceiver.java:117)
> at org.apache.axis2.receivers.AbstractInOutMessageReceiver.
> invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
> AbstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at org.apache.axis2.transport.http.HTTPTransportUtils.
> processHTTPPostRequest(HTTPTransportUtils.java:173)
> at org.apache.axis2.transport.http.AxisServlet.doPost(
> AxisServlet.java:146)
> at org.wso2.carbon.core.transports.CarbonServlet.
> doPost(CarbonServlet.java:231)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at org.eclipse.equinox.http.servlet.internal.
> ServletRegistration.service(ServletRegistration.java:61)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.
> processAlias(ProxyServlet.java:128)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.
> service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.
> service(DelegationServlet.java:68)
> at org.apache.catalina.core.ApplicationFilterChain.
> internalDoFilter(ApplicationFilterChain.java:303)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(
> WsFilter.java:52)
> at org.apache.catalina.core.ApplicationFilterChain.
> internalDoFilter(ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.
> 

Re: [Dev] What's the best way to create a tenant?

2016-09-22 Thread Abimaran Kugathasan
It should be there. Also, you can use UserAdmin SOAP service too.

On Thu, Sep 22, 2016 at 5:49 PM, wenxzhen  wrote:

> I didn't find the 'RemoteUserStoreManagerService' after I dumped all the
> Admin service from the console. I am using the AS 5.3.0.
>
> Regards, Wenxing
>
> -- Original --
> *From: * "Abimaran Kugathasan";;
> *Send time:* Thursday, Sep 22, 2016 8:40 PM
> *To:* "wenxzhen";
> *Cc:* "dev";
> *Subject: * Re: [Dev] What's the best way to create a tenant?
>
>
>
> On Thu, Sep 22, 2016 at 1:10 PM, wenxzhen  wrote:
>
>>
>> Thanks to Abimaran.
>>
>> Another question is which Admin Service is responsible of inviting a user
>> into a tenant? I find the UserAdmin service, but didn't find any item
>> related with invitation.
>>
>
> You have to invoke the 'RemoteUserStoreManagerService' with the tenant to
> which you want to add the users. There is an opration called 'addUser'
>
>
>>
>> Regards, Wenxing
>>
>> -- 原始邮件 --
>> *发件人:* "Abimaran Kugathasan";;
>> *发送时间:* 2016年9月22日(星期四) 下午3:58
>> *收件人:* "wenxzhen";
>> *抄送:* "dev";
>> *主题:* Re: [Dev] What's the best way to create a tenant?
>>
>> Hi Wenxing,
>>
>> You have to use TenantMgtAdminService for creating tenants. Java API can
>> be used for consuming/creating requests and response on top of that SOAP
>> service.
>>
>> You can check a sample service we have used here [1]
>>
>>
>> [1] : https://docs.wso2.com/display/AM200/WSO2+Admin+Services
>>
>> On Thu, Sep 22, 2016 at 12:51 PM, wenxzhen  wrote:
>>
>>> Please kindly advice as I need to settle down the solution.
>>>
>>> Thank you very much
>>> Regards, Wenxing
>>>
>>>
>>> -- Original --
>>> *From:* "wenxzhen";
>>> *Date:* 2016年9月22日(星期四) 下午2:59
>>> *To:* "dev";
>>> *Subject:* [Dev] What's the best way to create a tenant?
>>>
>>> Dear all,
>>>
>>> In order to create a tenant from the user input, what's the best way to
>>> make it? Per my little knowledge, there are at least 2 ways:
>>>
>>>1. Carbon had already provided the Java APIs
>>>2. making use of the TenantMgtAdminService
>>>
>>> If I wanna use the way 1, any potential risk that need to take care?
>>>
>>> Thanks, Wenxing
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820
>>
>> 
>> 
>>   
>> 
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820


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


Re: [Dev] What's the best way to create a tenant?

2016-09-22 Thread wenxzhen
I didn't find the 'RemoteUserStoreManagerService' after I dumped all the Admin 
service from the console. I am using the AS 5.3.0.


Regards, Wenxing


-- Original --
From:  "Abimaran Kugathasan";;
Send time: Thursday, Sep 22, 2016 8:40 PM
To: "wenxzhen"; 
Cc: "dev"; 
Subject:  Re: [Dev] What's the best way to create a tenant?





On Thu, Sep 22, 2016 at 1:10 PM, wenxzhen  wrote:


Thanks to Abimaran.


Another question is which Admin Service is responsible of inviting a user into 
a tenant? I find the UserAdmin service, but didn't find any item related with 
invitation.



You have to invoke the 'RemoteUserStoreManagerService' with the tenant to which 
you want to add the users. There is an opration called 'addUser'
 


Regards, Wenxing


--  --
??: "Abimaran Kugathasan";;
: 2016??9??22??(??) 3:58
??: "wenxzhen"; 
: "dev"; 
: Re: [Dev] What's the best way to create a tenant?



Hi Wenxing,

You have to use TenantMgtAdminService for creating tenants. Java API can be 
used for consuming/creating requests and response on top of that SOAP service. 


You can check a sample service we have used here [1]




[1] : https://docs.wso2.com/display/AM200/WSO2+Admin+Services


On Thu, Sep 22, 2016 at 12:51 PM, wenxzhen  wrote:
Please kindly advice as I need to settle down the solution. 


Thank you very much
Regards, Wenxing 




-- Original --
From: "wenxzhen"; 
Date: 2016??9??22??(??) 2:59
To: "dev"; 
Subject: [Dev] What's the best way to create a tenant?



Dear all,


In order to create a tenant from the user input, what's the best way to make 
it? Per my little knowledge, there are at least 2 ways:


Carbon had already provided the Java APIs

making use of the TenantMgtAdminService
If I wanna use the way 1, any potential risk that need to take care?


Thanks, Wenxing



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





-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820














 








-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Exception when creating a tenant with TenantMgtAdminService

2016-09-22 Thread wenxzhen
paste the codes to do the addTenant for reference:
String cookie = WSO2AuthenticationAdmin.getCookie();
TenantMgtAdminServiceStub tenantMgtStub = null;

tenantMgtStub = new 
TenantMgtAdminServiceStub(CommonConfig.TENANT_ADMIN_ENDPOINT);
Options option = tenantMgtStub._getServiceClient().getOptions();
option.setManageSession(true);
option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, 
cookie);

String value = tenantMgtStub.addTenant(getTenantBeanInfo(tenantBean));


-- Original --
From:  "wenxzhen";;
Date:  Sep 22, 2016
To:  "dev"; 

Subject:  [Dev] Exception when creating a tenant with TenantMgtAdminService



Dear all,


On AS 5.3.0, I am using the TenantMgtAdminService to create the tenant with 
only the following attributes:
TenantInfoBean infoBean = new TenantInfoBean();

infoBean.setTenantDomain(...);
infoBean.setActive(...);
infoBean.setEmail(...);
infoBean.setUsagePlan(...);
infoBean.setAdmin(...);
And then I got the exception below, from the words "Error occurred while adding 
user property for user : m...@sina.com & property name : sn & value : null", it 
seemed I am missing some mandatory parameters?


TID: [-1234] [] [2016-09-22 19:44:08,431]  INFO 
{org.das.server.users.wso2admin.WSO2AuthenticationAdmin} -  getCookie with 
JSESSIONID=6BDFFED6992C09224D1EB74F2A430AAE; Path=/; Secure=null; HttpOnly=null 
{org.das.server.users.wso2admin.WSO2AuthenticationAdmin}
TID: [4] [] [2016-09-22 19:44:09,533] @so.net [4] [AS]ERROR 
{org.wso2.carbon.tenant.mgt.util.TenantMgtUtil} -  Error in adding claims to 
the user. {org.wso2.carbon.tenant.mgt.util.TenantMgtUtil}
org.wso2.carbon.user.core.UserStoreException: Error occurred while getting 
claim attribute for user : m...@sina.com
at 
org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doSetUserClaimValues(JDBCUserStoreManager.java:1989)
at 
org.wso2.carbon.user.core.common.AbstractUserStoreManager.setUserClaimValues(AbstractUserStoreManager.java:988)
at 
org.wso2.carbon.tenant.mgt.util.TenantMgtUtil.addClaimsToUserStoreManager(TenantMgtUtil.java:348)
at 
org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService.addTenant(TenantMgtAdminService.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at 
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at 
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:173)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at 
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at 
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at 
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at 

Re: [Dev] What's the best way to create a tenant?

2016-09-22 Thread Abimaran Kugathasan
On Thu, Sep 22, 2016 at 1:10 PM, wenxzhen  wrote:

>
> Thanks to Abimaran.
>
> Another question is which Admin Service is responsible of inviting a user
> into a tenant? I find the UserAdmin service, but didn't find any item
> related with invitation.
>

You have to invoke the 'RemoteUserStoreManagerService' with the tenant to
which you want to add the users. There is an opration called 'addUser'


>
> Regards, Wenxing
>
> -- 原始邮件 --
> *发件人:* "Abimaran Kugathasan";;
> *发送时间:* 2016年9月22日(星期四) 下午3:58
> *收件人:* "wenxzhen";
> *抄送:* "dev";
> *主题:* Re: [Dev] What's the best way to create a tenant?
>
> Hi Wenxing,
>
> You have to use TenantMgtAdminService for creating tenants. Java API can
> be used for consuming/creating requests and response on top of that SOAP
> service.
>
> You can check a sample service we have used here [1]
>
>
> [1] : https://docs.wso2.com/display/AM200/WSO2+Admin+Services
>
> On Thu, Sep 22, 2016 at 12:51 PM, wenxzhen  wrote:
>
>> Please kindly advice as I need to settle down the solution.
>>
>> Thank you very much
>> Regards, Wenxing
>>
>>
>> -- Original --
>> *From:* "wenxzhen";
>> *Date:* 2016年9月22日(星期四) 下午2:59
>> *To:* "dev";
>> *Subject:* [Dev] What's the best way to create a tenant?
>>
>> Dear all,
>>
>> In order to create a tenant from the user input, what's the best way to
>> make it? Per my little knowledge, there are at least 2 ways:
>>
>>1. Carbon had already provided the Java APIs
>>2. making use of the TenantMgtAdminService
>>
>> If I wanna use the way 1, any potential risk that need to take care?
>>
>> Thanks, Wenxing
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820


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


[Dev] Exception when creating a tenant with TenantMgtAdminService

2016-09-22 Thread wenxzhen
Dear all,


On AS 5.3.0, I am using the TenantMgtAdminService to create the tenant with 
only the following attributes:
TenantInfoBean infoBean = new TenantInfoBean();

infoBean.setTenantDomain(...);
infoBean.setActive(...);
infoBean.setEmail(...);
infoBean.setUsagePlan(...);
infoBean.setAdmin(...);
And then I got the exception below, from the words "Error occurred while adding 
user property for user : m...@sina.com & property name : sn & value : null", it 
seemed I am missing some mandatory parameters?


TID: [-1234] [] [2016-09-22 19:44:08,431]  INFO 
{org.das.server.users.wso2admin.WSO2AuthenticationAdmin} -  getCookie with 
JSESSIONID=6BDFFED6992C09224D1EB74F2A430AAE; Path=/; Secure=null; HttpOnly=null 
{org.das.server.users.wso2admin.WSO2AuthenticationAdmin}
TID: [4] [] [2016-09-22 19:44:09,533] @so.net [4] [AS]ERROR 
{org.wso2.carbon.tenant.mgt.util.TenantMgtUtil} -  Error in adding claims to 
the user. {org.wso2.carbon.tenant.mgt.util.TenantMgtUtil}
org.wso2.carbon.user.core.UserStoreException: Error occurred while getting 
claim attribute for user : m...@sina.com
at 
org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doSetUserClaimValues(JDBCUserStoreManager.java:1989)
at 
org.wso2.carbon.user.core.common.AbstractUserStoreManager.setUserClaimValues(AbstractUserStoreManager.java:988)
at 
org.wso2.carbon.tenant.mgt.util.TenantMgtUtil.addClaimsToUserStoreManager(TenantMgtUtil.java:348)
at 
org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService.addTenant(TenantMgtAdminService.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at 
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at 
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:173)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at 
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at 
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at 
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at 
org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:47)
at 
org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
at 
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at 

Re: [Dev] [VOTE] Release WSO2 Data Services Server 3.5.1 RC1

2016-09-22 Thread Manuri Amaya Perera
Hi all,

Thank you for testing WSO2 DSS 3.5.1 RC1. We are closing this vote and this
vote has passed with 3 +1s and 0 -1s. We will proceed with releasing WSO2
Data Services Server 3.5.1.

Thanks,
Manuri

On Thu, Sep 22, 2016 at 1:28 PM, Madhawa Gunasekara 
wrote:

> Hi,
>
> I have tested followings,
>
>- OData Services (CRUD Operations / Batch Requests)
>
>
>- Compatibility with Cassandra Data sources
>
>
>- Nested Queries
>
>
>- Verified Nested Query issue [1]
>
>
>- Disable Legacy Boxcarring Mode
>
>
> [X] Stable - go ahead and release
>
> [1] https://wso2.org/jira/browse/DS-1194
>
> Thanks,
> Madhawa
>
>
> On Thu, Sep 22, 2016 at 11:43 AM, Manuri Amaya Perera 
> wrote:
>
>> ​
>> Hi,
>>
>> I have tested,
>>
>> Samples,
>> Newly added h2 script,
>> Data service, data source creation in tenant/super tenant
>> ​ in linux/windows​
>> Verified the mongo db issue[1],
>> Task scheduling,
>> Tooling in linux
>> ​/windows 64 bit​
>>  - creating a data service project after installing composite feature in
>> eclipse and directly running the eclipse distribution which has the feature
>> packed
>>
>> ​
>> [X] Stable - go ahead and release
>>
>> [1] https://wso2.org/jira/browse/DS-1215
>>
>> Thanks,
>> Manuri
>>
>> On Thu, Sep 22, 2016 at 12:15 AM, Anjana Fernando 
>> wrote:
>>
>>> Hi,
>>>
>>> Tested the following:-
>>>
>>> * Service Creation
>>>   - SOAP / REST
>>>   - Return Generated Keys
>>>   - Input / Output Mappings Auto Generate
>>> * Data Service Generate
>>> * RequestBox
>>> * Samples
>>>
>>> [X] Stable - go ahead and release
>>>
>>> Cheers,
>>> Anjana.
>>>
>>> On Sat, Sep 17, 2016 at 4:04 PM, Manuri Amaya Perera 
>>> wrote:
>>>
 Hi Devs,

 This is the 1st release candidate of WSO2 Data Services Server 3.5.1.

 This release fixes the following issues:
 https://wso2.org/jira/issues/?filter=13343

 Please download,test and vote. Vote will be open for 72 hours or
 longer as needed.

 *Source & binary distribution files:*

 Runtime: https://github.com/wso2/product-dss/releases/tag/v3.5.1-RC1
 Tooling: https://github.com/wso2/devstudio-tooling-dss/releases/tag/v
 3.5.1-rc1

 *Maven staging repo*: https://maven.wso2.org/nexus/c
 ontent/repositories/orgwso2dss-1007/

 *The tag to be voted upon:*
 Runtime: https://github.com/wso2/product-dss/releases/tag/v3.5.1-RC1
 Tooling: https://github.com/wso2/devstudio-tooling-dss/releases/tag/v
 3.5.1-rc1


 [ ] Broken - do not release (explain why)
 [ ] Stable - go ahead and release


 Thank you
 WSO2 Data Services Server Team


 --

 *Manuri Amaya Perera*

 *Software Engineer*

 *WSO2 Inc.*

 *Blog: http://manuriamayaperera.blogspot.com
 *



>>>
>>>
>>> --
>>> *Anjana Fernando*
>>> Associate Director / Architect
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>>
>>
>
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 71941102 <+94+71941102>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>



-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

*Blog: http://manuriamayaperera.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ?? What's the best way to create a tenant?

2016-09-22 Thread wenxzhen
Please help to advice how to implement the User Invitation on AS 5.3.0, as I 
need to use this feature to do the PoC Demo on next Monday.


Thanks, Wenxing


-- Original --
From:  "wenxzhen";;
Send time: Thursday, Sep 22, 2016 5:58 PM
To: "Abimaran Kugathasan"; 
Cc: "dev"; 
Subject:  Re: [Dev] ??  What's the best way to create a tenant?



Please advice which Admin Service I can turn to for the UM_TEMP_INVITATEE? 
Thanks again


Regards, Wenxing


-- Original --
From:  "wenxzhen";;
Send time: Thursday, Sep 22, 2016 3:40 PM
To: "Abimaran Kugathasan"; 
Cc: "dev"; 
Subject:  [Dev] ??  What's the best way to create a tenant?





Thanks to Abimaran.


Another question is which Admin Service is responsible of inviting a user into 
a tenant? I find the UserAdmin service, but didn't find any item related with 
invitation.


Regards, Wenxing


--  --
??: "Abimaran Kugathasan";;
: 2016??9??22??(??) 3:58
??: "wenxzhen"; 
: "dev"; 
: Re: [Dev] What's the best way to create a tenant?



Hi Wenxing,

You have to use TenantMgtAdminService for creating tenants. Java API can be 
used for consuming/creating requests and response on top of that SOAP service. 


You can check a sample service we have used here [1]




[1] : https://docs.wso2.com/display/AM200/WSO2+Admin+Services


On Thu, Sep 22, 2016 at 12:51 PM, wenxzhen  wrote:
Please kindly advice as I need to settle down the solution. 


Thank you very much
Regards, Wenxing 




-- Original --
From: "wenxzhen"; 
Date: 2016??9??22??(??) 2:59
To: "dev"; 
Subject: [Dev] What's the best way to create a tenant?



Dear all,


In order to create a tenant from the user input, what's the best way to make 
it? Per my little knowledge, there are at least 2 ways:


Carbon had already provided the Java APIs

making use of the TenantMgtAdminService
If I wanna use the way 1, any potential risk that need to take care?


Thanks, Wenxing



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





-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Carbon-Data 4.3.6 is staged

2016-09-22 Thread Madhawa Gunasekara
Hi All,

Carbon-Data 4.3.6 is staged at
https://maven.wso2.org/nexus/content/repositories/orgwso2carbondata-1006

This release is with kernel version 4.4.7. Please test and verify staging
repo with products.

Thanks,
Madhawa
-- 
*Madhawa Gunasekara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71941102 <+94+71941102>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ?????? What's the best way to create a tenant?

2016-09-22 Thread wenxzhen
Please advice which Admin Service I can turn to for the UM_TEMP_INVITATEE? 
Thanks again


Regards, Wenxing


-- Original --
From:  "wenxzhen";;
Send time: Thursday, Sep 22, 2016 3:40 PM
To: "Abimaran Kugathasan"; 
Cc: "dev"; 
Subject:  [Dev] ??  What's the best way to create a tenant?





Thanks to Abimaran.


Another question is which Admin Service is responsible of inviting a user into 
a tenant? I find the UserAdmin service, but didn't find any item related with 
invitation.


Regards, Wenxing


--  --
??: "Abimaran Kugathasan";;
: 2016??9??22??(??) 3:58
??: "wenxzhen"; 
: "dev"; 
: Re: [Dev] What's the best way to create a tenant?



Hi Wenxing,

You have to use TenantMgtAdminService for creating tenants. Java API can be 
used for consuming/creating requests and response on top of that SOAP service. 


You can check a sample service we have used here [1]




[1] : https://docs.wso2.com/display/AM200/WSO2+Admin+Services


On Thu, Sep 22, 2016 at 12:51 PM, wenxzhen  wrote:
Please kindly advice as I need to settle down the solution. 


Thank you very much
Regards, Wenxing 




-- Original --
From: "wenxzhen"; 
Date: 2016??9??22??(??) 2:59
To: "dev"; 
Subject: [Dev] What's the best way to create a tenant?



Dear all,


In order to create a tenant from the user input, what's the best way to make 
it? Per my little knowledge, there are at least 2 ways:


Carbon had already provided the Java APIs

making use of the TenantMgtAdminService
If I wanna use the way 1, any potential risk that need to take care?


Thanks, Wenxing



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





-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Integration Cloud] Swagger Support for ESB REST APIs

2016-09-22 Thread Jagath Sisirakumara Ariyarathne
Hi,

In this particular implementation for Integration Cloud, we planned to go
with an extension which uses existing information in synapse configurations
without updating synapse code base. Therefore as Maheeka mentioned in [1],
we are going to provide limited information at initial phase. But in long
run, we need to extend this to store all required API definitions in
synapse configurations.

[1] - https://gist.github.com/maheeka/ec23751f21d8d7d5abaa4f9130f233f2

Thanks.

On Thu, Sep 22, 2016 at 8:23 AM, Joseph Fonseka  wrote:

> Hi
>
> On Tue, Sep 20, 2016 at 4:18 PM, Maheeka Jayasuriya 
> wrote:
>
>>
>> Please note these changes were done based on the level of information we
>> have on the API by referring to it's configuration. For example, we do not
>> have a way of determining the request format or uri parameter types and
>> content-types of the API. This will require further digging and analyzing
>> on the configuration.
>>
>
> Have you consider adding additional information as annotations/notes in
> the config. AFAIK we do not have a config to add annotations so currently
> we can define them as properties but going forward may be we can add some
> way to annotate synapse.
>
> In the longer run mostly synapse APIs will be generated out of swagger
> definitions thus having the ability to contain all the API definition
> information in the synapse file would be important.
>
> Thanks
> Jo
>
>
>>
>> Find the diff of these changes done to the Swagger definition at [4]
>>
>> To get the required information from the Rest API configuration we can
>> invoke RestApiAdminServices's getApiByName operation which returns the
>> following response [5] for an API created that has the PetStore resources.
>> We can identify the methods and uri-template and mappings from this
>> response.
>>
>> Please let know your thoughts.
>>
>> Thanks,
>> Maheeka
>>
>> [1] http://petstore.swagger.io/#/pet
>> [2] https://gist.github.com/maheeka/4eaedd2e2e0765959a4166865bf9adf9
>> [3] https://gist.github.com/maheeka/ec23751f21d8d7d5abaa4f9130f233f2
>> [4] https://www.diffchecker.com/xEu0NSNz
>> [5] http://schemas.
>> xmlsoap.org/soap/envelope/">
>>
>>   http://org.apache.axis2/xsd;>
>>  http://api.rest.carbon.wso2.org/xsd; xmlns:xsi="http://www.w3.org/2
>> 001/XMLSchema-instance">
>> 
>> /pet
>> PetstoreAPI.xml
>> 
>> false
>> PetstoreAPI
>> -1
>> 
>>
>>
>>
>>
>>
>>POST
>>PUT
>>
>>
>>0
>>
>>/
>>
>> 
>> 
>>
>>
>>
>>
>>
>>POST
>>DELETE
>>GET
>>
>>
>>0
>>/{petId}
>>
>>
>> 
>> false
>> false
>>  
>>   
>>
>> 
>>
>>
>> Thanks,
>>
>> Maheeka Jayasuriya
>> Senior Software Engineer
>> Mobile : +9450661
>>
>
>
>
> --
>
> --
> *Joseph Fonseka*
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 772 512 430
> skype: jpfonseka
>
> * *
>
>


-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048

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


[Dev] Code complexity survey

2016-09-22 Thread Vard Antinyan
Dear developers,



We have undertaken a task to assess code complexity triggers and generate 
recommendations for developing understandable code. Our intension is to share 
the results with you, developers, so everyone can learn the triggers behind 
complex software.



We need your help for rigorous results. My request to you is - if you get 5-10 
min. time, would you please consider to answer the questions of this survey on 
code complexity?

https://goo.gl/forms/h9WXZ8VSEw7BUyHg1



You are welcome to learn preliminary results through this link:

https://www.facebook.com/SoftwareCodeQuality/photos/?tab=album_id=1639816749664288



The results will be shared in a public webpage and everyone possible will be 
invited to learn and discuss them.



Your knowledge and experience is vital for achieving substantial and 
generalizable results, and your effort is much appreciated!



Sincerely

Vard Antinyan

PhD candidate in University of Gothenburg, Sweden

Tel: 0046317725707

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


Re: [Dev] [VOTE] Release WSO2 Data Services Server 3.5.1 RC1

2016-09-22 Thread Madhawa Gunasekara
Hi,

I have tested followings,

   - OData Services (CRUD Operations / Batch Requests)


   - Compatibility with Cassandra Data sources


   - Nested Queries


   - Verified Nested Query issue [1]


   - Disable Legacy Boxcarring Mode


[X] Stable - go ahead and release

[1] https://wso2.org/jira/browse/DS-1194

Thanks,
Madhawa


On Thu, Sep 22, 2016 at 11:43 AM, Manuri Amaya Perera 
wrote:

> ​
> Hi,
>
> I have tested,
>
> Samples,
> Newly added h2 script,
> Data service, data source creation in tenant/super tenant
> ​ in linux/windows​
> Verified the mongo db issue[1],
> Task scheduling,
> Tooling in linux
> ​/windows 64 bit​
>  - creating a data service project after installing composite feature in
> eclipse and directly running the eclipse distribution which has the feature
> packed
>
> ​
> [X] Stable - go ahead and release
>
> [1] https://wso2.org/jira/browse/DS-1215
>
> Thanks,
> Manuri
>
> On Thu, Sep 22, 2016 at 12:15 AM, Anjana Fernando  wrote:
>
>> Hi,
>>
>> Tested the following:-
>>
>> * Service Creation
>>   - SOAP / REST
>>   - Return Generated Keys
>>   - Input / Output Mappings Auto Generate
>> * Data Service Generate
>> * RequestBox
>> * Samples
>>
>> [X] Stable - go ahead and release
>>
>> Cheers,
>> Anjana.
>>
>> On Sat, Sep 17, 2016 at 4:04 PM, Manuri Amaya Perera 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the 1st release candidate of WSO2 Data Services Server 3.5.1.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/issues/?filter=13343
>>>
>>> Please download,test and vote. Vote will be open for 72 hours or longer
>>> as needed.
>>>
>>> *Source & binary distribution files:*
>>>
>>> Runtime: https://github.com/wso2/product-dss/releases/tag/v3.5.1-RC1
>>> Tooling: https://github.com/wso2/devstudio-tooling-dss/releases/tag/v
>>> 3.5.1-rc1
>>>
>>> *Maven staging repo*: https://maven.wso2.org/nexus/c
>>> ontent/repositories/orgwso2dss-1007/
>>>
>>> *The tag to be voted upon:*
>>> Runtime: https://github.com/wso2/product-dss/releases/tag/v3.5.1-RC1
>>> Tooling: https://github.com/wso2/devstudio-tooling-dss/releases/tag/v
>>> 3.5.1-rc1
>>>
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>>
>>> Thank you
>>> WSO2 Data Services Server Team
>>>
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> *
>>>
>>>
>>>
>>
>>
>> --
>> *Anjana Fernando*
>> Associate Director / Architect
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> *
>
>
>


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

mobile: +94 71941102 <+94+71941102>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ?????? What's the best way to create a tenant?

2016-09-22 Thread wenxzhen
Thanks to Abimaran.


Another question is which Admin Service is responsible of inviting a user into 
a tenant? I find the UserAdmin service, but didn't find any item related with 
invitation.


Regards, Wenxing


--  --
??: "Abimaran Kugathasan";;
: 2016??9??22??(??) 3:58
??: "wenxzhen"; 
: "dev"; 
: Re: [Dev] What's the best way to create a tenant?



Hi Wenxing,

You have to use TenantMgtAdminService for creating tenants. Java API can be 
used for consuming/creating requests and response on top of that SOAP service. 


You can check a sample service we have used here [1]




[1] : https://docs.wso2.com/display/AM200/WSO2+Admin+Services


On Thu, Sep 22, 2016 at 12:51 PM, wenxzhen  wrote:
Please kindly advice as I need to settle down the solution. 


Thank you very much
Regards, Wenxing 




-- Original --
From: "wenxzhen"; 
Date: 2016??9??22??(??) 2:59
To: "dev"; 
Subject: [Dev] What's the best way to create a tenant?



Dear all,


In order to create a tenant from the user input, what's the best way to make 
it? Per my little knowledge, there are at least 2 ways:


Carbon had already provided the Java APIs

making use of the TenantMgtAdminService
If I wanna use the way 1, any potential risk that need to take care?


Thanks, Wenxing



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





-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What's the best way to create a tenant?

2016-09-22 Thread Abimaran Kugathasan
Hi Wenxing,

You have to use TenantMgtAdminService for creating tenants. Java API can be
used for consuming/creating requests and response on top of that SOAP
service.

You can check a sample service we have used here [1]


[1] : https://docs.wso2.com/display/AM200/WSO2+Admin+Services

On Thu, Sep 22, 2016 at 12:51 PM, wenxzhen  wrote:

> Please kindly advice as I need to settle down the solution.
>
> Thank you very much
> Regards, Wenxing
>
>
> -- Original --
> *From:* "wenxzhen";
> *Date:* 2016年9月22日(星期四) 下午2:59
> *To:* "dev";
> *Subject:* [Dev] What's the best way to create a tenant?
>
> Dear all,
>
> In order to create a tenant from the user input, what's the best way to
> make it? Per my little knowledge, there are at least 2 ways:
>
>1. Carbon had already provided the Java APIs
>2. making use of the TenantMgtAdminService
>
> If I wanna use the way 1, any potential risk that need to take care?
>
> Thanks, Wenxing
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820


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


Re: [Dev] What's the best way to create a tenant?

2016-09-22 Thread wenxzhen
Please kindly advice as I need to settle down the solution. 


Thank you very much
Regards, Wenxing 




-- Original --
From: "wenxzhen"; 
Date: 2016??9??22??(??) 2:59
To: "dev"; 
Subject: [Dev] What's the best way to create a tenant?



Dear all,


In order to create a tenant from the user input, what's the best way to make 
it? Per my little knowledge, there are at least 2 ways:


Carbon had already provided the Java APIs

making use of the TenantMgtAdminService
If I wanna use the way 1, any potential risk that need to take care?


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


[Dev] What's the best way to create a tenant?

2016-09-22 Thread wenxzhen
Dear all,


In order to create a tenant from the user input, what's the best way to make 
it? Per my little knowledge, there are at least 2 ways:

Carbon had already provided the Java APIs

making use of the TenantMgtAdminService
If I wanna use the way 1, any potential risk that need to take care?


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


Re: [Dev] [DAS][310] Errors while running APIM_INCREMENTAL_PROCESSING_SCRIPT

2016-09-22 Thread Malith Munasinghe
Thank you Supun for that information.

Regards,
Malith

On Thu, Sep 22, 2016 at 11:41 AM, Supun Sethunga  wrote:

> BTW, This issue has already been fixed in the analytics-apim master branch.
>
> Regards,
> Supun
>
> On Wed, Sep 21, 2016 at 3:04 PM, Malith Munasinghe 
> wrote:
>
>> Hi All,
>>
>> Thanks for the prompt responses we will do the needful.
>>
>> Regards,
>> Malith
>>
>> On Wed, Sep 21, 2016 at 2:54 PM, Rukshan Premathunga 
>> wrote:
>>
>>> Hi Malith,
>>>
>>> cApp we provided to Analytics APIM will not work for the DAS because of
>>> the changes happen to the DAS 3.1.0. Because of that we need to use
>>> Analytics APIM or have to update capp with the above changes.
>>>
>>> Thanks and Regards.
>>>
>>> On Wed, Sep 21, 2016 at 2:48 PM, Niranda Perera 
>>> wrote:
>>>
 Hi Malith,

 Yes, correct! you need to change the script.

 Additionally, there are some changes in the carbonJdbc connector as
 well... so, you might need to watch out for it!

 Please check with the APIM team and ESB team whether we are doing a
 feature release with the DAS 310 changes?

 cheers

 On Wed, Sep 21, 2016 at 5:11 AM, Malith Munasinghe 
 wrote:

> Hi All,
>
> While preparing a DAS 3.1.0 to run APIM Analytics I have added
> features as in [1]
> .
> After deploying the CApp for APIM Analytics I run in to below error.
> According to the error that *incrementalProcessing *is not a valid
> option. Also according to [2]
>  the
> syntax to parse this option is *incrementalParams. *In order to get
> DAS 3.1.0 to process APIM Analytics
> do we have to change the scripts with this option as well ?
>
>
> TID: [-1234] [] [2016-09-21 08:54:00,019] ERROR
> {org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService}
> -  Error while executing query : CREATE TEMPORARY TABLE
> APIMGT_PERMINUTE_REQUEST_DATA USING CarbonAnalytics OPTIONS(tableName
> "ORG_WSO2_APIMGT_STATISTICS_PERMINUTEREQUEST", schema "year INT
> -i, month INT -i, day INT -i, hour INT -i, minute INT -i,consumerKey
> STRING, context STRING, api_version STRING, api STRING, version STRING,
> requestTime LONG, userId STRING, hostName STRING,apiPublisher STRING,
> total_request_count LONG, resourceTemplate STRING, method STRING,
> applicationName STRING, tenantDomain STRING,userAgent STRING,
> resourcePath STRING, request INT, applicationId STRING, tier STRING,
> throttledOut BOOLEAN, clientIp STRING,applicationOwner STRING,
> _timestamp LONG -i",primaryKeys "year, month, day, hour, minute,
> consumerKey, context, api_version, userId, hostName, apiPublisher,
> resourceTemplate, method, userAgent, clientIp",incrementalProcessing
> "APIMGT_PERMINUTE_REQUEST_DATA, HOUR",mergeSchema "false")
> {org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService}
> org.wso2.carbon.analytics.spark.core.exception.AnalyticsExecutionException:
> Exception in executing query CREATE TEMPORARY TABLE
> APIMGT_PERMINUTE_REQUEST_DATA USING CarbonAnalytics OPTIONS(tableName
> "ORG_WSO2_APIMGT_STATISTICS_PERMINUTEREQUEST", schema "year INT
> -i, month INT -i, day INT -i, hour INT -i, minute INT -i,consumerKey
> STRING, context STRING, api_version STRING, api STRING, version STRING,
> requestTime LONG, userId STRING, hostName STRING,apiPublisher STRING,
> total_request_count LONG, resourceTemplate STRING, method STRING,
> applicationName STRING, tenantDomain STRING,userAgent STRING,
> resourcePath STRING, request INT, applicationId STRING, tier STRING,
> throttledOut BOOLEAN, clientIp STRING,applicationOwner STRING,
> _timestamp LONG -i",primaryKeys "year, month, day, hour, minute,
> consumerKey, context, api_version, userId, hostName, apiPublisher,
> resourceTemplate, method, userAgent, clientIp",incrementalProcessing
> "APIMGT_PERMINUTE_REQUEST_DATA, HOUR",mergeSchema "false")
> at org.wso2.carbon.analytics.spark.core.internal.SparkAnalytics
> Executor.executeQueryLocal(SparkAnalyticsExecutor.java:764)
> at org.wso2.carbon.analytics.spark.core.internal.SparkAnalytics
> Executor.executeQuery(SparkAnalyticsExecutor.java:721)
> at org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcesso
> rService.executeQuery(CarbonAnalyticsProcessorService.java:201)
> at org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcesso
> rService.executeScript(CarbonAnalyticsProcessorService.java:151)
> at org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(A
> nalyticsTask.java:60)
> at 

Re: [Dev] [VOTE] Release WSO2 Data Services Server 3.5.1 RC1

2016-09-22 Thread Manuri Amaya Perera
​
Hi,

I have tested,

Samples,
Newly added h2 script,
Data service, data source creation in tenant/super tenant
​ in linux/windows​
Verified the mongo db issue[1],
Task scheduling,
Tooling in linux
​/windows 64 bit​
 - creating a data service project after installing composite feature in
eclipse and directly running the eclipse distribution which has the feature
packed

​
[X] Stable - go ahead and release

[1] https://wso2.org/jira/browse/DS-1215

Thanks,
Manuri

On Thu, Sep 22, 2016 at 12:15 AM, Anjana Fernando  wrote:

> Hi,
>
> Tested the following:-
>
> * Service Creation
>   - SOAP / REST
>   - Return Generated Keys
>   - Input / Output Mappings Auto Generate
> * Data Service Generate
> * RequestBox
> * Samples
>
> [X] Stable - go ahead and release
>
> Cheers,
> Anjana.
>
> On Sat, Sep 17, 2016 at 4:04 PM, Manuri Amaya Perera 
> wrote:
>
>> Hi Devs,
>>
>> This is the 1st release candidate of WSO2 Data Services Server 3.5.1.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=13343
>>
>> Please download,test and vote. Vote will be open for 72 hours or longer
>> as needed.
>>
>> *Source & binary distribution files:*
>>
>> Runtime: https://github.com/wso2/product-dss/releases/tag/v3.5.1-RC1
>> Tooling: https://github.com/wso2/devstudio-tooling-dss/releases/tag/
>> v3.5.1-rc1
>>
>> *Maven staging repo*: https://maven.wso2.org/nexus/c
>> ontent/repositories/orgwso2dss-1007/
>>
>> *The tag to be voted upon:*
>> Runtime: https://github.com/wso2/product-dss/releases/tag/v3.5.1-RC1
>> Tooling: https://github.com/wso2/devstudio-tooling-dss/releases/tag/
>> v3.5.1-rc1
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>>
>> Thank you
>> WSO2 Data Services Server Team
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>>
>>
>
>
> --
> *Anjana Fernando*
> Associate Director / Architect
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

*Blog: http://manuriamayaperera.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS][310] Errors while running APIM_INCREMENTAL_PROCESSING_SCRIPT

2016-09-22 Thread Supun Sethunga
BTW, This issue has already been fixed in the analytics-apim master branch.

Regards,
Supun

On Wed, Sep 21, 2016 at 3:04 PM, Malith Munasinghe  wrote:

> Hi All,
>
> Thanks for the prompt responses we will do the needful.
>
> Regards,
> Malith
>
> On Wed, Sep 21, 2016 at 2:54 PM, Rukshan Premathunga 
> wrote:
>
>> Hi Malith,
>>
>> cApp we provided to Analytics APIM will not work for the DAS because of
>> the changes happen to the DAS 3.1.0. Because of that we need to use
>> Analytics APIM or have to update capp with the above changes.
>>
>> Thanks and Regards.
>>
>> On Wed, Sep 21, 2016 at 2:48 PM, Niranda Perera  wrote:
>>
>>> Hi Malith,
>>>
>>> Yes, correct! you need to change the script.
>>>
>>> Additionally, there are some changes in the carbonJdbc connector as
>>> well... so, you might need to watch out for it!
>>>
>>> Please check with the APIM team and ESB team whether we are doing a
>>> feature release with the DAS 310 changes?
>>>
>>> cheers
>>>
>>> On Wed, Sep 21, 2016 at 5:11 AM, Malith Munasinghe 
>>> wrote:
>>>
 Hi All,

 While preparing a DAS 3.1.0 to run APIM Analytics I have added features
 as in [1]
 .
 After deploying the CApp for APIM Analytics I run in to below error.
 According to the error that *incrementalProcessing *is not a valid
 option. Also according to [2]
  the
 syntax to parse this option is *incrementalParams. *In order to get
 DAS 3.1.0 to process APIM Analytics
 do we have to change the scripts with this option as well ?


 TID: [-1234] [] [2016-09-21 08:54:00,019] ERROR
 {org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService}
 -  Error while executing query : CREATE TEMPORARY TABLE
 APIMGT_PERMINUTE_REQUEST_DATA USING CarbonAnalytics OPTIONS(tableName
 "ORG_WSO2_APIMGT_STATISTICS_PERMINUTEREQUEST", schema "year INT
 -i, month INT -i, day INT -i, hour INT -i, minute INT -i,consumerKey
 STRING, context STRING, api_version STRING, api STRING, version STRING,
 requestTime LONG, userId STRING, hostName STRING,apiPublisher STRING,
 total_request_count LONG, resourceTemplate STRING, method STRING,
 applicationName STRING, tenantDomain STRING,userAgent STRING,
 resourcePath STRING, request INT, applicationId STRING, tier STRING,
 throttledOut BOOLEAN, clientIp STRING,applicationOwner STRING,
 _timestamp LONG -i",primaryKeys "year, month, day, hour, minute,
 consumerKey, context, api_version, userId, hostName, apiPublisher,
 resourceTemplate, method, userAgent, clientIp",incrementalProcessing
 "APIMGT_PERMINUTE_REQUEST_DATA, HOUR",mergeSchema "false")
 {org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService}
 org.wso2.carbon.analytics.spark.core.exception.AnalyticsExecutionException:
 Exception in executing query CREATE TEMPORARY TABLE
 APIMGT_PERMINUTE_REQUEST_DATA USING CarbonAnalytics OPTIONS(tableName
 "ORG_WSO2_APIMGT_STATISTICS_PERMINUTEREQUEST", schema "year INT
 -i, month INT -i, day INT -i, hour INT -i, minute INT -i,consumerKey
 STRING, context STRING, api_version STRING, api STRING, version STRING,
 requestTime LONG, userId STRING, hostName STRING,apiPublisher STRING,
 total_request_count LONG, resourceTemplate STRING, method STRING,
 applicationName STRING, tenantDomain STRING,userAgent STRING,
 resourcePath STRING, request INT, applicationId STRING, tier STRING,
 throttledOut BOOLEAN, clientIp STRING,applicationOwner STRING,
 _timestamp LONG -i",primaryKeys "year, month, day, hour, minute,
 consumerKey, context, api_version, userId, hostName, apiPublisher,
 resourceTemplate, method, userAgent, clientIp",incrementalProcessing
 "APIMGT_PERMINUTE_REQUEST_DATA, HOUR",mergeSchema "false")
 at org.wso2.carbon.analytics.spark.core.internal.SparkAnalytics
 Executor.executeQueryLocal(SparkAnalyticsExecutor.java:764)
 at org.wso2.carbon.analytics.spark.core.internal.SparkAnalytics
 Executor.executeQuery(SparkAnalyticsExecutor.java:721)
 at org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcesso
 rService.executeQuery(CarbonAnalyticsProcessorService.java:201)
 at org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcesso
 rService.executeScript(CarbonAnalyticsProcessorService.java:151)
 at org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(A
 nalyticsTask.java:60)
 at org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute
 (TaskQuartzJobAdapter.java:67)
 at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executor
 s.java:471)
 at