Re: [Dev] Integrating WSO2 IS with Kubernetes

2016-02-16 Thread Imesh Gunaratne
Hi Nishadi,

On Tue, Feb 16, 2016 at 12:10 PM, Nishadi Kirielle  wrote:

> Hi,
>
> As of now, it seems LDAP integration of Kuberenetes with IS has two basic
> approaches.
>
> First approach is to directly integrate LDAP with Kubernetes. It requires
> the authentication and authorization process to go through a LDAP
> connector. Although Kismatic has a LDAP/AD integration, it does not seem to
> be a complete implementation. [1]
>
>  IMO this is the best approach. Why do you say Kismatic K8S LDAP
integration is not complete?

Alternatively, we can do user provisioning through a client. The client can
> retrieve users from LDAP server and create contexts per user in K8s. A
> context includes a namespace that is specific to a user group, a user and
> the cluster that the user needs to access. Users can be given access to the
> context with tokens / username password credentials or through authorizing
> certificates. This configuration can be done via kube config file. [2] But
> this approach replicates user data in K8s.
>

It would be difficult to manage if we replicate user data in two different
systems.

Thanks

>
> Suggestions are highly appreciated.
>
> [1]. https://github.com/kismatic/kubernetes-ldap
> [2]. http://kubernetes.io/v1.1/docs/user-guide/kubeconfig-file.html
>
> On Tue, Feb 9, 2016 at 11:40 AM, Nishadi Kirielle 
> wrote:
>
>> @Imesh : This configuration has to be done in kube api server. It
>> provides options to set the authorization mode in 'always allow', 'always
>> deny' or 'ABAC' modes. In using ABAC mode, it provides an option 
>> --authorization-policy-file
>>   to set the user configured authorization policy. [1]
>>
>> kube-apiserver --authorization-mode=""
>> kube-apiserver --authorization-policy-file=""
>>
>> @Chamila:
>> +1 for OpenLDAP.
>>
>> [1].
>> https://github.com/kubernetes/kubernetes/blob/master/pkg/auth/authorizer/abac/example_policy_file.jsonl
>>
>>
>> On Tue, Feb 9, 2016 at 7:00 AM, Chamila De Alwis 
>> wrote:
>>
>>> Hi Nishadi,
>>>
>>>
>>> On Mon, Feb 8, 2016 at 11:11 PM, Nishadi Kirielle 
>>> wrote:
>>>
 My initial plan is to connect a LDAP implementation like OpenDS or
 ApacheDS with Kubernetes.

>>>
>>> Is OpenLDAP[1] not an option? It has a long track record and is the case
>>> when most user scenarios are considered.
>>>
>>>
>>> [1] - http://www.openldap.org/
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>
>>
>> --
>> *Nishadi Kirielle*
>> *Software Engineering Intern*
>> Mobile : +94 (0) 714722148
>> Blog : http://nishadikirielle.blogspot.com/
>> nish...@wso2.com
>>
>
>
>
> --
> *Nishadi Kirielle*
> *Software Engineering Intern*
> Mobile : +94 (0) 714722148
> Blog : http://nishadikirielle.blogspot.com/
> nish...@wso2.com
>



-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 EMM Problem.

2016-02-16 Thread Geeth Munasinghe
Hi Andres

Can you please explain more what you are trying to do (your use case) ?.

As I understand you are trying to set up WSO2EMM on Windows server. But
what I did not understand is "when we closed session the website goes down
because the service is not maintained initiated"

Can you please clarify this more ?

Thanks
Geeth


*G. K. S. Munasinghe*
*Senior Software Engineer,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ge...@wso2.com
phone:(+94) 777911226

On Tue, Feb 16, 2016 at 1:26 PM, Rodríguez Pupo, Andres <
arodrigu...@urbaser.com> wrote:

> Good morning,
>
>
>
> We are testing your product WSO2 EMM and fail to function properly, the
> service is installed on a Windows Server 2012 R2. The problem is that when
> we closed session the website goes down because the service is not
> maintained initiated.
>
> We need to have the application up and running quickly.
>
> We have followed step by step instructions in the manual.
>
>
>
> https://docs.wso2.com/display/EMM200/Prerequisites
>
>
>
>
>
> Thanks greetings.
>
>
>
>
>
>
>
> *| *Andrés Rodríguez Pupo* –* Centro de Control de Red *|*
>
> *| Sistemas de Información *|*  URBASER, S.A.* |
>
> | Camino de las Hormigueras, 171 | 28031 Madrid (Madrid) | ESPAÑA |
>
> | (+34 91 412 2000 ext. 2369 | www.urbaser.es |
>
>
>
> *P* Antes de imprimir este e-mail piense bien si es necesario hacerlo: El
> medio ambiente es cosa de todos.
>
> *P* Before printing this e-mail, think whether you need it or not.
> Environment is everyone's business.
>
> *P* Avant d'imprimer cet e-mail pensez s’il faut vraiment le faire:
> l’environnement, cela nous regarde.
>
>
>
> --
> Se informa a quien recibiera este documento sin ser el destinatario o
> persona autorizada por éste, que la información contenida en el mismo es
> confidencial y su utilización y/o divulgación está prohibida. Si ha
> recibido este documento por error, le rogamos nos lo comunique y proceda a
> su destrucción. En cumplimiento de la normativa de protección de datos, le
> informamos de que sus datos personales forman parte de un fichero propiedad
> de la empresa remitente y son tratados con la única finalidad de
> mantenimiento de la relación adquirida con usted. Usted puede ejercitar sus
> derechos de acceso, rectificación, cancelación y oposición dirigiéndose por
> escrito a Urbaser, S.A., Camino de Hormigueras 171, Edificio CD, Planta 0,
> (Polígono Empresarial Villa de Vallecas) , 28031, (Madrid)
> ***
>  The information contained in this communication is confidential
> and intended solely for the use of the individual or entity to whom it is
> addressed and others authorized to receive it. If you are not the intended
> recipient you are hereby notified that any disclosure, copying,
> distribution or taking any action in reliance on the contents of this
> information is strictly prohibited and may be unlawful. If you have
> received this communication in error, please notify us immediately and then
> delete it from your system. To comply with the Data Protection Law, we are
> required to inform you that your personal information will be saved at the
> addresser's system and will be used for business purposes. If you want to
> review, change and delete your personal information please notify us
> immediately by mail to URBASER, S.A. located in Camino de Hormigueras 171,
> Edificio CD, Planta 0, (Polígono Empresarial Villa de Vallecas), 28031,
> (Madrid)
> ***
> --
>   ­­
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 EMM Problem.

2016-02-16 Thread Geeth Munasinghe
Hi Andres,

Can you please try following documentation. It will give instruction to set
up the WSO2EMM on windows machine. Most probably second option is what you
are looking for, and hopefully it solve your problem.

[1] https://docs.wso2.com/display/EMM200/Installing+on+Windows
[2] https://docs.wso2.com/display/EMM200/Installing+as+a+Windows+Service

Thanks
Geeth


*G. K. S. Munasinghe*
*Senior Software Engineer,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ge...@wso2.com
phone:(+94) 777911226

On Tue, Feb 16, 2016 at 1:55 PM, Rodríguez Pupo, Andres <
arodrigu...@urbaser.com> wrote:

> Good morning Geeth,
>
>
>
> We want to install and configure WSO2 EMM 2.0.0. on a Windows Server 2012
> R2 server.
>
> The exact problem is that once the server is installed, the "WSO2CARBON"
> service does not start.
>
> When we closed session on the server service stops and the web portal
> management fails.
>
>
>
> Thanks greetings.
>
>
>
>
>
>
>
> *| *Andrés Rodríguez Pupo* –* Centro de Control de Red *|*
>
> *| Sistemas de Información *|*  URBASER, S.A.* |
>
> | Camino de las Hormigueras, 171 | 28031 Madrid (Madrid) | ESPAÑA |
>
> | (+34 91 412 2000 ext. 2369 | www.urbaser.es |
>
>
>
>
>
>
> *De:* Geeth Munasinghe [mailto:ge...@wso2.com]
> *Enviado el:* martes, 16 de febrero de 2016 9:11
> *Para:* Rodríguez Pupo, Andres; dev
> *CC:* López Hermosel, Iván
> *Asunto:* Re: WSO2 EMM Problem.
>
>
>
> Hi Andres
>
>
>
> Can you please explain more what you are trying to do (your use case) ?.
>
>
>
> As I understand you are trying to set up WSO2EMM on Windows server. But
> what I did not understand is "when we closed session the website goes
> down because the service is not maintained initiated"
>
>
>
> Can you please clarify this more ?
>
>
>
> Thanks
>
> Geeth
>
>
> *G. K. S. Munasinghe*
>
> *Senior Software Engineer,*
>
> *WSO2, Inc. http://wso2.com  *
>
> *lean.enterprise.middleware.*
>
>
>
> email: ge...@wso2.com
>
> phone:(+94) 777911226
>
>
>
> On Tue, Feb 16, 2016 at 1:26 PM, Rodríguez Pupo, Andres <
> arodrigu...@urbaser.com> wrote:
>
> Good morning,
>
>
>
> We are testing your product WSO2 EMM and fail to function properly, the
> service is installed on a Windows Server 2012 R2. The problem is that when
> we closed session the website goes down because the service is not
> maintained initiated.
>
> We need to have the application up and running quickly.
>
> We have followed step by step instructions in the manual.
>
>
>
> https://docs.wso2.com/display/EMM200/Prerequisites
>
>
>
>
>
> Thanks greetings.
>
>
>
>
>
>
>
> *| *Andrés Rodríguez Pupo* –* Centro de Control de Red *|*
>
> *| Sistemas de Información *|*  URBASER, S.A.* |
>
> | Camino de las Hormigueras, 171 | 28031 Madrid (Madrid) | ESPAÑA |
>
> | (+34 91 412 2000 ext. 2369 | www.urbaser.es |
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Integrating WSO2 IS with Kubernetes

2016-02-16 Thread Isuru Haththotuwa
Hi,

Had an offline chat with Nishadi on this.

On Tue, Feb 16, 2016 at 1:55 PM, Imesh Gunaratne  wrote:

> Hi Nishadi,
>
> On Tue, Feb 16, 2016 at 12:10 PM, Nishadi Kirielle 
> wrote:
>
>> Hi,
>>
>> As of now, it seems LDAP integration of Kuberenetes with IS has two basic
>> approaches.
>>
>> First approach is to directly integrate LDAP with Kubernetes. It requires
>> the authentication and authorization process to go through a LDAP
>> connector. Although Kismatic has a LDAP/AD integration, it does not seem to
>> be a complete implementation. [1]
>>
>>  IMO this is the best approach. Why do you say Kismatic K8S LDAP
> integration is not complete?
>
As pointed out by Nishadi, [1] seems to be the relevant github repository,
but it has not been updated since mid 2015. However, Kismatic has announced
that they actually support AD/LDAP integration with K8s [3].

>
> Alternatively, we can do user provisioning through a client. The client
>> can retrieve users from LDAP server and create contexts per user in K8s. A
>> context includes a namespace that is specific to a user group, a user and
>> the cluster that the user needs to access. Users can be given access to the
>> context with tokens / username password credentials or through authorizing
>> certificates. This configuration can be done via kube config file. [2] But
>> this approach replicates user data in K8s.
>>
>
> It would be difficult to manage if we replicate user data in two different
> systems.
>
Agree that first approach is the best way, but inbound user provisioning is
also a standard way of managing user AFAIK. We can discuss this more with
Identity & Security experts.

>
> Thanks
>

[3]. https://kismatic.com/product/production-plugins/

>
>> Suggestions are highly appreciated.
>>
>> [1]. https://github.com/kismatic/kubernetes-ldap
>> [2]. http://kubernetes.io/v1.1/docs/user-guide/kubeconfig-file.html
>>
>> On Tue, Feb 9, 2016 at 11:40 AM, Nishadi Kirielle 
>> wrote:
>>
>>> @Imesh : This configuration has to be done in kube api server. It
>>> provides options to set the authorization mode in 'always allow', 'always
>>> deny' or 'ABAC' modes. In using ABAC mode, it provides an option 
>>> --authorization-policy-file
>>>   to set the user configured authorization policy. [1]
>>>
>>> kube-apiserver --authorization-mode=""
>>> kube-apiserver --authorization-policy-file=""
>>>
>>> @Chamila:
>>> +1 for OpenLDAP.
>>>
>>> [1].
>>> https://github.com/kubernetes/kubernetes/blob/master/pkg/auth/authorizer/abac/example_policy_file.jsonl
>>>
>>>
>>> On Tue, Feb 9, 2016 at 7:00 AM, Chamila De Alwis 
>>> wrote:
>>>
 Hi Nishadi,


 On Mon, Feb 8, 2016 at 11:11 PM, Nishadi Kirielle 
 wrote:

> My initial plan is to connect a LDAP implementation like OpenDS or
> ApacheDS with Kubernetes.
>

 Is OpenLDAP[1] not an option? It has a long track record and is the
 case when most user scenarios are considered.


 [1] - http://www.openldap.org/

 Regards,
 Chamila de Alwis
 Committer and PMC Member - Apache Stratos
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



>>>
>>>
>>> --
>>> *Nishadi Kirielle*
>>> *Software Engineering Intern*
>>> Mobile : +94 (0) 714722148
>>> Blog : http://nishadikirielle.blogspot.com/
>>> nish...@wso2.com
>>>
>>
>>
>>
>> --
>> *Nishadi Kirielle*
>> *Software Engineering Intern*
>> Mobile : +94 (0) 714722148
>> Blog : http://nishadikirielle.blogspot.com/
>> nish...@wso2.com
>>
>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Failed to create database tables for registry resource store.

2016-02-16 Thread Rajjaz Mohammed
Hi All,
i'm trying to create new table in WSO2 IS. but after create new table using
H2 console i'm getiing below error[1]. any suggestion?.

[1]
[2016-02-16 15:13:25,086] FATAL
{org.wso2.carbon.utils.dbcreator.DatabaseCreator} -  Failed to create
database tables for registry resource store. File corrupted while reading
record: "1037 of 805". Possible solution: use the recovery tool [90030-140]
org.h2.jdbc.JdbcSQLException: File corrupted while reading record: "1037 of
805". Possible solution: use the recovery tool [90030-140]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
at org.h2.message.DbException.get(DbException.java:167)
at org.h2.message.DbException.get(DbException.java:144)
at org.h2.store.PageStore.readPage(PageStore.java:1094)
at org.h2.store.PageStore.getPage(PageStore.java:561)
at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:218)
at org.h2.index.PageDataIndex.(PageDataIndex.java:73)
at org.h2.table.RegularTable.(RegularTable.java:75)
at org.h2.store.PageStore.addMeta(PageStore.java:1443)
at org.h2.store.PageStore.readMetaData(PageStore.java:1380)
at org.h2.store.PageStore.recover(PageStore.java:1178)
at org.h2.store.PageStore.openExisting(PageStore.java:317)
at org.h2.store.PageStore.open(PageStore.java:271)
at org.h2.engine.Database.getPageStore(Database.java:2059)
at org.h2.engine.Database.open(Database.java:534)
at org.h2.engine.Database.openDatabase(Database.java:207)
at org.h2.engine.Database.(Database.java:202)
at org.h2.engine.Engine.openSession(Engine.java:56)
at org.h2.engine.Engine.openSession(Engine.java:146)
at org.h2.engine.Engine.getSession(Engine.java:125)
at org.h2.engine.Session.createSession(Session.java:122)
at
org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:111)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:95)
at org.h2.Driver.connect(Driver.java:73)
at
org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
at
org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
at
org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128)
at
org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:58)
at
org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:328)
at
org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:88)
at
org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:112)
at
org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
at
org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
[2016-02-16 15:13:25,088] ERROR
{org.wso2.carbon.user.core.internal.Activator} -  Cannot start User Manager
Core bundle
java.lang.Exception: Error in creating the database
at
org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:338)
a

Re: [Dev] [IS] Failed to create database tables for registry resource store.

2016-02-16 Thread Godwin Shrimal
Hi Rajjaz,

It looks H2 database is corrupted. You may need to try it with fresh pack
again (If data doesn't matters) or use a recovery tool to recover the
database.


Thanks
Godwin

On Tue, Feb 16, 2016 at 3:20 PM, Rajjaz Mohammed  wrote:

> Hi All,
> i'm trying to create new table in WSO2 IS. but after create new table
> using H2 console i'm getiing below error[1]. any suggestion?.
>
> [1]
> [2016-02-16 15:13:25,086] FATAL
> {org.wso2.carbon.utils.dbcreator.DatabaseCreator} -  Failed to create
> database tables for registry resource store. File corrupted while reading
> record: "1037 of 805". Possible solution: use the recovery tool [90030-140]
> org.h2.jdbc.JdbcSQLException: File corrupted while reading record: "1037
> of 805". Possible solution: use the recovery tool [90030-140]
> at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
> at org.h2.message.DbException.get(DbException.java:167)
> at org.h2.message.DbException.get(DbException.java:144)
> at org.h2.store.PageStore.readPage(PageStore.java:1094)
> at org.h2.store.PageStore.getPage(PageStore.java:561)
> at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:218)
> at org.h2.index.PageDataIndex.(PageDataIndex.java:73)
> at org.h2.table.RegularTable.(RegularTable.java:75)
> at org.h2.store.PageStore.addMeta(PageStore.java:1443)
> at org.h2.store.PageStore.readMetaData(PageStore.java:1380)
> at org.h2.store.PageStore.recover(PageStore.java:1178)
> at org.h2.store.PageStore.openExisting(PageStore.java:317)
> at org.h2.store.PageStore.open(PageStore.java:271)
> at org.h2.engine.Database.getPageStore(Database.java:2059)
> at org.h2.engine.Database.open(Database.java:534)
> at org.h2.engine.Database.openDatabase(Database.java:207)
> at org.h2.engine.Database.(Database.java:202)
> at org.h2.engine.Engine.openSession(Engine.java:56)
> at org.h2.engine.Engine.openSession(Engine.java:146)
> at org.h2.engine.Engine.getSession(Engine.java:125)
> at org.h2.engine.Session.createSession(Session.java:122)
> at
> org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
> at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:111)
> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:95)
> at org.h2.Driver.connect(Driver.java:73)
> at
> org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
> at
> org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
> at
> org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
> at
> org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
> at
> org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
> at
> org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128)
> at
> org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:58)
> at
> org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:328)
> at
> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:88)
> at
> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:112)
> at
> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
> at
> org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
> at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.

Re: [Dev] [IS] Failed to create database tables for registry resource store.

2016-02-16 Thread Rajjaz Mohammed
Hi Godwin,
Thanks its works fine if i add the table in the fresh pack DB and start the
IS.

On Tue, Feb 16, 2016 at 3:38 PM, Godwin Shrimal  wrote:

> Hi Rajjaz,
>
> It looks H2 database is corrupted. You may need to try it with fresh pack
> again (If data doesn't matters) or use a recovery tool to recover the
> database.
>
>
> Thanks
> Godwin
>
> On Tue, Feb 16, 2016 at 3:20 PM, Rajjaz Mohammed  wrote:
>
>> Hi All,
>> i'm trying to create new table in WSO2 IS. but after create new table
>> using H2 console i'm getiing below error[1]. any suggestion?.
>>
>> [1]
>> [2016-02-16 15:13:25,086] FATAL
>> {org.wso2.carbon.utils.dbcreator.DatabaseCreator} -  Failed to create
>> database tables for registry resource store. File corrupted while reading
>> record: "1037 of 805". Possible solution: use the recovery tool [90030-140]
>> org.h2.jdbc.JdbcSQLException: File corrupted while reading record: "1037
>> of 805". Possible solution: use the recovery tool [90030-140]
>> at
>> org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
>> at org.h2.message.DbException.get(DbException.java:167)
>> at org.h2.message.DbException.get(DbException.java:144)
>> at org.h2.store.PageStore.readPage(PageStore.java:1094)
>> at org.h2.store.PageStore.getPage(PageStore.java:561)
>> at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:218)
>> at org.h2.index.PageDataIndex.(PageDataIndex.java:73)
>> at org.h2.table.RegularTable.(RegularTable.java:75)
>> at org.h2.store.PageStore.addMeta(PageStore.java:1443)
>> at org.h2.store.PageStore.readMetaData(PageStore.java:1380)
>> at org.h2.store.PageStore.recover(PageStore.java:1178)
>> at org.h2.store.PageStore.openExisting(PageStore.java:317)
>> at org.h2.store.PageStore.open(PageStore.java:271)
>> at org.h2.engine.Database.getPageStore(Database.java:2059)
>> at org.h2.engine.Database.open(Database.java:534)
>> at org.h2.engine.Database.openDatabase(Database.java:207)
>> at org.h2.engine.Database.(Database.java:202)
>> at org.h2.engine.Engine.openSession(Engine.java:56)
>> at org.h2.engine.Engine.openSession(Engine.java:146)
>> at org.h2.engine.Engine.getSession(Engine.java:125)
>> at org.h2.engine.Session.createSession(Session.java:122)
>> at
>> org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
>> at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
>> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:111)
>> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:95)
>> at org.h2.Driver.connect(Driver.java:73)
>> at
>> org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
>> at
>> org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
>> at
>> org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
>> at
>> org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
>> at
>> org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
>> at
>> org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128)
>> at
>> org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:58)
>> at
>> org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:328)
>> at
>> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:88)
>> at
>> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:112)
>> at
>> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
>> at
>> org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
>> at
>> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
>> at
>> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>> at
>> org.eclipse.osg

[Dev] [DAS] Compressed Event Analytics Relation Provider

2016-02-16 Thread Supun Sethunga
Hi,

Attached [1] is the PR for $subject. Please review and merge.

[1] https://github.com/wso2/carbon-analytics/pull/156

Thanks,
Supun

-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Failed to create database tables for registry resource store.

2016-02-16 Thread Rajjaz Mohammed
Hi Godwin,
Can't we edit the database in the middle of working? it's mean while we
working if we need some modification.

On Tue, Feb 16, 2016 at 3:51 PM, Rajjaz Mohammed  wrote:

> Hi Godwin,
> Thanks its works fine if i add the table in the fresh pack DB and start
> the IS.
>
> On Tue, Feb 16, 2016 at 3:38 PM, Godwin Shrimal  wrote:
>
>> Hi Rajjaz,
>>
>> It looks H2 database is corrupted. You may need to try it with fresh pack
>> again (If data doesn't matters) or use a recovery tool to recover the
>> database.
>>
>>
>> Thanks
>> Godwin
>>
>> On Tue, Feb 16, 2016 at 3:20 PM, Rajjaz Mohammed  wrote:
>>
>>> Hi All,
>>> i'm trying to create new table in WSO2 IS. but after create new table
>>> using H2 console i'm getiing below error[1]. any suggestion?.
>>>
>>> [1]
>>> [2016-02-16 15:13:25,086] FATAL
>>> {org.wso2.carbon.utils.dbcreator.DatabaseCreator} -  Failed to create
>>> database tables for registry resource store. File corrupted while reading
>>> record: "1037 of 805". Possible solution: use the recovery tool [90030-140]
>>> org.h2.jdbc.JdbcSQLException: File corrupted while reading record: "1037
>>> of 805". Possible solution: use the recovery tool [90030-140]
>>> at
>>> org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
>>> at org.h2.message.DbException.get(DbException.java:167)
>>> at org.h2.message.DbException.get(DbException.java:144)
>>> at org.h2.store.PageStore.readPage(PageStore.java:1094)
>>> at org.h2.store.PageStore.getPage(PageStore.java:561)
>>> at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:218)
>>> at org.h2.index.PageDataIndex.(PageDataIndex.java:73)
>>> at org.h2.table.RegularTable.(RegularTable.java:75)
>>> at org.h2.store.PageStore.addMeta(PageStore.java:1443)
>>> at org.h2.store.PageStore.readMetaData(PageStore.java:1380)
>>> at org.h2.store.PageStore.recover(PageStore.java:1178)
>>> at org.h2.store.PageStore.openExisting(PageStore.java:317)
>>> at org.h2.store.PageStore.open(PageStore.java:271)
>>> at org.h2.engine.Database.getPageStore(Database.java:2059)
>>> at org.h2.engine.Database.open(Database.java:534)
>>> at org.h2.engine.Database.openDatabase(Database.java:207)
>>> at org.h2.engine.Database.(Database.java:202)
>>> at org.h2.engine.Engine.openSession(Engine.java:56)
>>> at org.h2.engine.Engine.openSession(Engine.java:146)
>>> at org.h2.engine.Engine.getSession(Engine.java:125)
>>> at org.h2.engine.Session.createSession(Session.java:122)
>>> at
>>> org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
>>> at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
>>> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:111)
>>> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:95)
>>> at org.h2.Driver.connect(Driver.java:73)
>>> at
>>> org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
>>> at
>>> org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
>>> at
>>> org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
>>> at
>>> org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
>>> at
>>> org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
>>> at
>>> org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128)
>>> at
>>> org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:58)
>>> at
>>> org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:328)
>>> at
>>> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:88)
>>> at
>>> org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:112)
>>> at
>>> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
>>> at
>>> org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
>>> at
>>> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundle

Re: [Dev] [IS] Failed to create database tables for registry resource store.

2016-02-16 Thread Godwin Shrimal
Hi Rajjaz,

Normally in other database we can create/alter tables while we are
accessing the database if particular entity is not locked by a transaction.
I am not sure about H2 database.

Thanks
Godwin


On Tue, Feb 16, 2016 at 4:53 PM, Rajjaz Mohammed  wrote:

> Hi Godwin,
> Can't we edit the database in the middle of working? it's mean while we
> working if we need some modification.
>
> On Tue, Feb 16, 2016 at 3:51 PM, Rajjaz Mohammed  wrote:
>
>> Hi Godwin,
>> Thanks its works fine if i add the table in the fresh pack DB and start
>> the IS.
>>
>> On Tue, Feb 16, 2016 at 3:38 PM, Godwin Shrimal  wrote:
>>
>>> Hi Rajjaz,
>>>
>>> It looks H2 database is corrupted. You may need to try it with fresh
>>> pack again (If data doesn't matters) or use a recovery tool to recover the
>>> database.
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>> On Tue, Feb 16, 2016 at 3:20 PM, Rajjaz Mohammed 
>>> wrote:
>>>
 Hi All,
 i'm trying to create new table in WSO2 IS. but after create new table
 using H2 console i'm getiing below error[1]. any suggestion?.

 [1]
 [2016-02-16 15:13:25,086] FATAL
 {org.wso2.carbon.utils.dbcreator.DatabaseCreator} -  Failed to create
 database tables for registry resource store. File corrupted while reading
 record: "1037 of 805". Possible solution: use the recovery tool [90030-140]
 org.h2.jdbc.JdbcSQLException: File corrupted while reading record:
 "1037 of 805". Possible solution: use the recovery tool [90030-140]
 at
 org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
 at org.h2.message.DbException.get(DbException.java:167)
 at org.h2.message.DbException.get(DbException.java:144)
 at org.h2.store.PageStore.readPage(PageStore.java:1094)
 at org.h2.store.PageStore.getPage(PageStore.java:561)
 at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:218)
 at org.h2.index.PageDataIndex.(PageDataIndex.java:73)
 at org.h2.table.RegularTable.(RegularTable.java:75)
 at org.h2.store.PageStore.addMeta(PageStore.java:1443)
 at org.h2.store.PageStore.readMetaData(PageStore.java:1380)
 at org.h2.store.PageStore.recover(PageStore.java:1178)
 at org.h2.store.PageStore.openExisting(PageStore.java:317)
 at org.h2.store.PageStore.open(PageStore.java:271)
 at org.h2.engine.Database.getPageStore(Database.java:2059)
 at org.h2.engine.Database.open(Database.java:534)
 at org.h2.engine.Database.openDatabase(Database.java:207)
 at org.h2.engine.Database.(Database.java:202)
 at org.h2.engine.Engine.openSession(Engine.java:56)
 at org.h2.engine.Engine.openSession(Engine.java:146)
 at org.h2.engine.Engine.getSession(Engine.java:125)
 at org.h2.engine.Session.createSession(Session.java:122)
 at
 org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
 at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
 at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:111)
 at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:95)
 at org.h2.Driver.connect(Driver.java:73)
 at
 org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
 at
 org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
 at
 org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128)
 at
 org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:58)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:328)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:88)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:112)
 at
 org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
 at
 org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
 at
 org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
 at
 org.eclipse.osgi.fram

Re: [Dev] [Build] Compilation fails with CNF

2016-02-16 Thread Lakshman Udayakantha
Hi Dumidu,

It seems like some jar in your local maven repo is corrupted. Just delete
the maven local repo and try again.

Thanks

On Tue, Feb 16, 2016 at 12:28 PM, Dumidu Handakumbura 
wrote:

> Hi Devs,
>
> DSS 3.5.0(master) build fails for with[1]. I have close to an empty .m2
> repo on my machine. How can I get this built?
>
> [1] - [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on
> project org.wso2.dataservices.styles: Execution default-test of goal
> org.apache.maven.plugins:maven-surefire-plugin:2.18:test failed: Unable to
> load the mojo 'test' in the plugin
> 'org.apache.maven.plugins:maven-surefire-plugin:2.18'. A required class is
> missing: org/apache/maven/plugin/surefire/SurefireReportParameters
>
> [WARNING] Error injecting: org.apache.maven.plugin.surefire.SurefirePlugin
> java.lang.TypeNotPresentException: Type
> org.apache.maven.plugin.surefire.SurefirePlugin not present
> at
> org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:115)
> at org.eclipse.sisu.space.NamedClass.load(NamedClass.java:46)
> at
> org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
> at
> com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
> at
> com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
> at
> com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
>
> ...
> ...
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
> at
> org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:107)
> ... 41 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.maven.plugin.surefire.SurefireReportParameters
> at
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
> ... 56 more
> ...
> ...
>
> Thank,
>
> --
> *Dumidu Handakumbura*
> Software Engineer - QA
> WSO2 Inc; http://www.wso2.com/.
> Mobile;
> *+9406740 <%2B9406740> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0714388124*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Improvements to the Data Services Editor in Developer Studio

2016-02-16 Thread Madhawa Gunasekara
Hi All,

If we can provide a solution to generate input parameters and output
parameters according to the query statement, it will be easier for the
users to create the dataservice. currently this feature is available in DSS.

Thanks,
Madhawa

On Fri, Feb 5, 2016 at 11:01 AM, Sohani Weerasinghe  wrote:

> Hi Rajith,
>
> Thanks for the input. We'll consider these new improvements as well.
>
> Thanks,
> Sohani
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Fri, Feb 5, 2016 at 10:59 AM, Rajith Vitharana 
> wrote:
>
>> Hi,
>>
>> +1 for the new improvements, And in latest DSS there are new improvements,
>>
>> 1) Can provide an Authorization provider when creating the
>> dataservice(first step in UI where we specify the service name)
>> 2) Expose data as OData (when creating data sources in UI using a
>> checkbox)
>> 3) Google spreadsheet data sources now have different configurations(to
>> generate access tokens)
>>
>> It's great if we can include these as well (Couldn't find these in
>> developer studio 3.8.0, if these are already added just ignore)
>>
>> Thanks,
>>
>> On Fri, Feb 5, 2016 at 10:39 AM, Viraj Rajaguru  wrote:
>>
>>> +1 for new improvements.
>>>
>>> Thanks,
>>> Viraj.
>>>
>>> On Fri, Feb 5, 2016 at 8:20 AM, Sohani Weerasinghe 
>>> wrote:
>>>
 Hi All,

 With the current level of implementation, DS Editor of the Developer
 studio has few issues in creating a data service and I have fixed those
 issues and implemented some improvements as listed below

 1. With the initial implementation, when user clicks on the tree view
 the design view gets dirty even user didn't change any value. This is fixed
 where user will only need to save the content when he/she edits the design
 view ( via setting properties) or edits the source view.

 2. After user creates a data service and closes the editor, once he/she
 opens the editor and after traversing through the tree view the added
 initial values have not persisted correctly in the source view. This is
 fixed with the new improvement so that user will not lose any data.

 3. With the initial implementation, user didn't get a chance to,

- Select preferred values for  a data source when adding a query
- Select parameter type, sql type, in/out type when adding a query
param
- Select a query ID when adding a call-query for an operation etc

 and this is fixed as shown in the attached image.

 Thanks,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

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


>>>
>>>
>>> --
>>> Viraj Rajaguru
>>> Senior Software Engineer
>>> WSO2 Inc. : http://wso2.com
>>>
>>> Mobile: +94 77 3683068
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

mobile: +94 719411002 <+94+719411002>
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] [IS] Failed to create database tables for registry resource store.

2016-02-16 Thread Udara Rathnayake
You should be able to update the table schema.

At the same time you don't need to get a fresh pack and start if you are
working with H2 DB.
just update relevant db script() and remove content
within /repository/database and start the pack with -Dsetup

On Tue, Feb 16, 2016 at 6:23 AM, Rajjaz Mohammed  wrote:

> Hi Godwin,
> Can't we edit the database in the middle of working? it's mean while we
> working if we need some modification.
>
> On Tue, Feb 16, 2016 at 3:51 PM, Rajjaz Mohammed  wrote:
>
>> Hi Godwin,
>> Thanks its works fine if i add the table in the fresh pack DB and start
>> the IS.
>>
>> On Tue, Feb 16, 2016 at 3:38 PM, Godwin Shrimal  wrote:
>>
>>> Hi Rajjaz,
>>>
>>> It looks H2 database is corrupted. You may need to try it with fresh
>>> pack again (If data doesn't matters) or use a recovery tool to recover the
>>> database.
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>> On Tue, Feb 16, 2016 at 3:20 PM, Rajjaz Mohammed 
>>> wrote:
>>>
 Hi All,
 i'm trying to create new table in WSO2 IS. but after create new table
 using H2 console i'm getiing below error[1]. any suggestion?.

 [1]
 [2016-02-16 15:13:25,086] FATAL
 {org.wso2.carbon.utils.dbcreator.DatabaseCreator} -  Failed to create
 database tables for registry resource store. File corrupted while reading
 record: "1037 of 805". Possible solution: use the recovery tool [90030-140]
 org.h2.jdbc.JdbcSQLException: File corrupted while reading record:
 "1037 of 805". Possible solution: use the recovery tool [90030-140]
 at
 org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
 at org.h2.message.DbException.get(DbException.java:167)
 at org.h2.message.DbException.get(DbException.java:144)
 at org.h2.store.PageStore.readPage(PageStore.java:1094)
 at org.h2.store.PageStore.getPage(PageStore.java:561)
 at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:218)
 at org.h2.index.PageDataIndex.(PageDataIndex.java:73)
 at org.h2.table.RegularTable.(RegularTable.java:75)
 at org.h2.store.PageStore.addMeta(PageStore.java:1443)
 at org.h2.store.PageStore.readMetaData(PageStore.java:1380)
 at org.h2.store.PageStore.recover(PageStore.java:1178)
 at org.h2.store.PageStore.openExisting(PageStore.java:317)
 at org.h2.store.PageStore.open(PageStore.java:271)
 at org.h2.engine.Database.getPageStore(Database.java:2059)
 at org.h2.engine.Database.open(Database.java:534)
 at org.h2.engine.Database.openDatabase(Database.java:207)
 at org.h2.engine.Database.(Database.java:202)
 at org.h2.engine.Engine.openSession(Engine.java:56)
 at org.h2.engine.Engine.openSession(Engine.java:146)
 at org.h2.engine.Engine.getSession(Engine.java:125)
 at org.h2.engine.Session.createSession(Session.java:122)
 at
 org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
 at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
 at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:111)
 at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:95)
 at org.h2.Driver.connect(Driver.java:73)
 at
 org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
 at
 org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
 at
 org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128)
 at
 org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:58)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:328)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:88)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:112)
 at
 org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68)
 at
 org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
 at
 org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost

[Dev] [TFL-TDS] How to query with multiple fields in DAS analytics/search api

2016-02-16 Thread Gayan Dhanushka
Hi all,

I am using [1] to retrieve some data from an event store. I have all the
required fields indexed in it. I am trying to query with multiple
attributed as per following curl command which seems to be not working.

*curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic
YWRtaW46YWRtaW4=" -v https://172.17.0.1:9448/analytics/search
 -d
'{"tableName":"ORG_TFL_GOV_ERROR_CODES",
"query":"error_name:GLB_Java_Parse_Exception AND
correlation_date:15-02-2016", "start":0, "count":3}' -k*

*response*

[
   {
  "id":"11eb5c96-7753-e62f-bcdd-df440859299e",
  "tableName":"ORG_TFL_GOV_ERROR_CODES",
  "timestamp":1.455543492647E12,
  "values":{
 "_version":"1.0.0",
 "error_name":"GLB_Java_Parse_Exception",
 "error_code":"TDS-Java-ParseException-1005",
 "correlation_date":"*15-02-2016*",
 "file_name":"001_247703b0a218_2013-09-19-00_00_02_65.99001",
 "file_type":"122",
 "correlation_timestamp":1.455543492648E12
  }
   },
   {
  "id":"bedd3b97-8ce7-ee6f-8485-1168199ca648",
  "tableName":"ORG_TFL_GOV_ERROR_CODES",
  "timestamp":1.455621910429E12,
  "values":{
 "_version":"1.0.0",
 "error_name":"GLB_Java_Parse_Exception",
 "error_code":"GLB_Java_Parse_Exception",
 "correlation_date":"*16-02-2016*",
 "file_name":"001_247703b0a218_2013-09-18-00_00_01_65.99001",
 "error_desc":"Java Parse Exception Returned by the following class
: class org.tfl.gov.MessageBuilder",
 "file_type":"HEALTHCHECK",
 "correlation_timestamp":1.455621910429E12
  }
   },
   {
  "id":"c2f7488a-ea9c-f224-fc28-79ea0669813b",
  "tableName":"ORG_TFL_GOV_ERROR_CODES",
  "timestamp":1.455459013158E12,
  "values":{
 "_version":"1.0.0",
 "error_name":"GLB_Java_Parse_Exception",
 "error_code":"TDS-Java-ParseException-1005",
 "correlation_date":"*01-01-2016*",
 "file_name":"xyz",
 "file_type":"HEALTHCHECK",
 "correlation_timestamp":1.451685333E12
  }
   }
]

Please note that even though I am using correlation_date:15-02-2016 in the
query I have received results for other dates as well.

Can someone explain this. What am I doing wrong in here ?


[1]
https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+REST+API

-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [TFL-TDS] How to query with multiple fields in DAS analytics/search api

2016-02-16 Thread Gimantha Bandara
Hi Gayan,

I think you will have to escape the "-" in the correlation_date. Can you
try the same query with "-" escaped?

Thanks,

On Tue, Feb 16, 2016 at 9:26 PM, Gayan Dhanushka  wrote:

> Hi all,
>
> I am using [1] to retrieve some data from an event store. I have all the
> required fields indexed in it. I am trying to query with multiple
> attributed as per following curl command which seems to be not working.
>
> *curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic
> YWRtaW46YWRtaW4=" -v https://172.17.0.1:9448/analytics/search
>  -d
> '{"tableName":"ORG_TFL_GOV_ERROR_CODES",
> "query":"error_name:GLB_Java_Parse_Exception AND
> correlation_date:15-02-2016", "start":0, "count":3}' -k*
>
> *response*
>
> [
>{
>   "id":"11eb5c96-7753-e62f-bcdd-df440859299e",
>   "tableName":"ORG_TFL_GOV_ERROR_CODES",
>   "timestamp":1.455543492647E12,
>   "values":{
>  "_version":"1.0.0",
>  "error_name":"GLB_Java_Parse_Exception",
>  "error_code":"TDS-Java-ParseException-1005",
>  "correlation_date":"*15-02-2016*",
>  "file_name":"001_247703b0a218_2013-09-19-00_00_02_65.99001",
>  "file_type":"122",
>  "correlation_timestamp":1.455543492648E12
>   }
>},
>{
>   "id":"bedd3b97-8ce7-ee6f-8485-1168199ca648",
>   "tableName":"ORG_TFL_GOV_ERROR_CODES",
>   "timestamp":1.455621910429E12,
>   "values":{
>  "_version":"1.0.0",
>  "error_name":"GLB_Java_Parse_Exception",
>  "error_code":"GLB_Java_Parse_Exception",
>  "correlation_date":"*16-02-2016*",
>  "file_name":"001_247703b0a218_2013-09-18-00_00_01_65.99001",
>  "error_desc":"Java Parse Exception Returned by the following
> class : class org.tfl.gov.MessageBuilder",
>  "file_type":"HEALTHCHECK",
>  "correlation_timestamp":1.455621910429E12
>   }
>},
>{
>   "id":"c2f7488a-ea9c-f224-fc28-79ea0669813b",
>   "tableName":"ORG_TFL_GOV_ERROR_CODES",
>   "timestamp":1.455459013158E12,
>   "values":{
>  "_version":"1.0.0",
>  "error_name":"GLB_Java_Parse_Exception",
>  "error_code":"TDS-Java-ParseException-1005",
>  "correlation_date":"*01-01-2016*",
>  "file_name":"xyz",
>  "file_type":"HEALTHCHECK",
>  "correlation_timestamp":1.451685333E12
>   }
>}
> ]
>
> Please note that even though I am using correlation_date:15-02-2016 in the
> query I have received results for other dates as well.
>
> Can someone explain this. What am I doing wrong in here ?
>
>
> [1]
> https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+REST+API
>
> --
> Gayan Dhanuska
> Software Engineer
> http://wso2.com/
> Lean Enterprise Middleware
>
> Mobile
> 071 666 2327
>
> Office
> Tel   : 94 11 214 5345
> Fax  : 94 11 214 5300
>
> Twitter : https://twitter.com/gayanlggd
>



-- 
Gimantha Bandara
Software Engineer
WSO2. Inc : http://wso2.com
Mobile : +94714961919
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [TFL-TDS] How to query with multiple fields in DAS analytics/search api

2016-02-16 Thread Gimantha Bandara
Or you can use _correlation_date:15-02-2016 if you have indexed
correlation_date as STRING. (note that I have used "_" in front of
"correlation_date". Every field which is indexed as STRING has_.
This is to facilitate the exact string search.

On Tue, Feb 16, 2016 at 9:47 PM, Gimantha Bandara  wrote:

> Hi Gayan,
>
> I think you will have to escape the "-" in the correlation_date. Can you
> try the same query with "-" escaped?
>
> Thanks,
>
> On Tue, Feb 16, 2016 at 9:26 PM, Gayan Dhanushka  wrote:
>
>> Hi all,
>>
>> I am using [1] to retrieve some data from an event store. I have all the
>> required fields indexed in it. I am trying to query with multiple
>> attributed as per following curl command which seems to be not working.
>>
>> *curl -X POST -H "Content-Type: application/json" -H "Authorization:
>> Basic YWRtaW46YWRtaW4=" -v https://172.17.0.1:9448/analytics/search
>>  -d
>> '{"tableName":"ORG_TFL_GOV_ERROR_CODES",
>> "query":"error_name:GLB_Java_Parse_Exception AND
>> correlation_date:15-02-2016", "start":0, "count":3}' -k*
>>
>> *response*
>>
>> [
>>{
>>   "id":"11eb5c96-7753-e62f-bcdd-df440859299e",
>>   "tableName":"ORG_TFL_GOV_ERROR_CODES",
>>   "timestamp":1.455543492647E12,
>>   "values":{
>>  "_version":"1.0.0",
>>  "error_name":"GLB_Java_Parse_Exception",
>>  "error_code":"TDS-Java-ParseException-1005",
>>  "correlation_date":"*15-02-2016*",
>>  "file_name":"001_247703b0a218_2013-09-19-00_00_02_65.99001",
>>  "file_type":"122",
>>  "correlation_timestamp":1.455543492648E12
>>   }
>>},
>>{
>>   "id":"bedd3b97-8ce7-ee6f-8485-1168199ca648",
>>   "tableName":"ORG_TFL_GOV_ERROR_CODES",
>>   "timestamp":1.455621910429E12,
>>   "values":{
>>  "_version":"1.0.0",
>>  "error_name":"GLB_Java_Parse_Exception",
>>  "error_code":"GLB_Java_Parse_Exception",
>>  "correlation_date":"*16-02-2016*",
>>  "file_name":"001_247703b0a218_2013-09-18-00_00_01_65.99001",
>>  "error_desc":"Java Parse Exception Returned by the following
>> class : class org.tfl.gov.MessageBuilder",
>>  "file_type":"HEALTHCHECK",
>>  "correlation_timestamp":1.455621910429E12
>>   }
>>},
>>{
>>   "id":"c2f7488a-ea9c-f224-fc28-79ea0669813b",
>>   "tableName":"ORG_TFL_GOV_ERROR_CODES",
>>   "timestamp":1.455459013158E12,
>>   "values":{
>>  "_version":"1.0.0",
>>  "error_name":"GLB_Java_Parse_Exception",
>>  "error_code":"TDS-Java-ParseException-1005",
>>  "correlation_date":"*01-01-2016*",
>>  "file_name":"xyz",
>>  "file_type":"HEALTHCHECK",
>>  "correlation_timestamp":1.451685333E12
>>   }
>>}
>> ]
>>
>> Please note that even though I am using correlation_date:15-02-2016 in
>> the query I have received results for other dates as well.
>>
>> Can someone explain this. What am I doing wrong in here ?
>>
>>
>> [1]
>> https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+REST+API
>>
>> --
>> Gayan Dhanuska
>> Software Engineer
>> http://wso2.com/
>> Lean Enterprise Middleware
>>
>> Mobile
>> 071 666 2327
>>
>> Office
>> Tel   : 94 11 214 5345
>> Fax  : 94 11 214 5300
>>
>> Twitter : https://twitter.com/gayanlggd
>>
>
>
>
> --
> Gimantha Bandara
> Software Engineer
> WSO2. Inc : http://wso2.com
> Mobile : +94714961919
>



-- 
Gimantha Bandara
Software Engineer
WSO2. Inc : http://wso2.com
Mobile : +94714961919
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM]Release progress update EMM 2.0.1

2016-02-16 Thread Kamidu Punchihewa
Hi,

Current Progress Updates On the EMM 2.0.1 RC1 is given below.

Due to the latest changes EMM 2.0.1 needs to inherit from the UI Markups in
order to archive some UX improvements the development for the jiras to
be completed had become more complicated than anticipated.

we are planning to release EMM 2.0.1-RC1 on the 19th of February.

*Completed Jiras*
Bug

   - [EMM-918 ] - Validation criteria
   for user information should be consistent in both carbon management console
   and MDM dashboard
   - [EMM-1132 ] -
   'Application/' user roles should not be listed under roles in
   'Enterprise Install' UI
   - [EMM-1176 ] - Unable to perform
   user role edit, when user role name contains spaces
   - [EMM-1183 ] - Search policies
   by role name contains a blank field as search property
   - [EMM-1190 ] - Unable to perform
   user edit, when username contains spaces
   - [EMM-1191 ] - Need to add
   validation for user(s) and role(s) filed in policy creation and
   modification.
   - [EMM-1198 ] - When scrolling
   down, there's a shaky effect in the UI
   - [EMM-1199 ] - If Users/Roles
   are not assigned for the relevent policy. It should be hidden in the Policy
   list view.
   - [EMM-1201 ] - In edit user
   view, required asterisk is not required for username field
   - [EMM-1203 ] - Change buttons
   visibility based on the content availability
   - [EMM-1209 ] - If there are no
   devices enrolled,Device view icon should be hidden in the dashboard.
   - [EMM-1213 ] - Remove "from EMM
   User Store" wording and change to a meaningful text.
   - [EMM-1217 ] - Change add
   buttons to "Save" and edit buttons to "Update" in Add/Edit forms
   - [EMM-1227 ] - Login button and
   title text should be similar
   - [EMM-1230 ] - Policy publish
   text should be changed

Improvement

   - [EMM-1178 ] - Validations to
   user role and user name should be configurable
   - [EMM-1212 ] - Operation
   requseting time should not have milliseconds value in operation log
   - [EMM-1216 ] - Improve role
   create/edit interfaces
   - [EMM-1218 ] - Platform boxes
   should be similar in policy creation wizard.
   - [EMM-1221 ] - Loading icon and
   font are taking long time to fully loaded.
   - [EMM-1222 ] - Footer web
   address (wso2.org) should be changed to a link.
   - [EMM-1224 ] - Assign
   users/roles selection boxes should be validated in Policy creation.
   - [EMM-1166 ] - Capitals used in
   certain notifications, UI labels, etc need to be removed
   - [EMM-1195 ] - List View
   contains some unwanted white spaces.
   - [EMM-1196 ] - Apply changes
   button should be moved to the policy list view/priority view with a proper
   message.
   - [EMM-1207 ] - Required Field
   should be indicated using one method.
   - [EMM-1210 ] - Enable inline
   validation if possible.
   - [EMM-1211 ] - Usage of
   placeholder text need to be valid.
   - [EMM-1232 ] - If there are no
   any data,pagination controls should not be visible.
   - [EMM-1214 ] - Tiled view
   (drawer icon) should be properly center aligned.
   - [EMM-1228 ] - Notifications
   should be moved to a side-opening view
   - [EMM-1229 ] - Appbar (drawer)
   pattern should be optimized to have a clear separation/grouping.
   - [EMM-1225 ] - Action bar, title
   (breadcrumb) and the page title seems redundant


*Jiras In Progress*
Bug

   - [EMM-1147 ] - Exception when
   user clicks sign out button in 'Store' and 'Publisher'
   - [EMM-1208 ] - Loading dialog
   box should be moved to the appropriate context in list views
   - [EMM-1233 ] - Remove all  
   from button spac

Re: [Dev] Including Data Mapper Mediator in ESB 5.0 Release

2016-02-16 Thread Nuwan Pallewela
On Tue, Feb 16, 2016 at 11:17 AM, Jasintha Dasanayake 
wrote:

> IMO , Both data mapper editor and the engine are a cross platform
> components which can be used /ship with other product as well , Only the
> ESB graphical mediator and synapse mediators should be added into exiting
> ESB product and ESB tool repos ,
>
Agree. Both editor and engine are cross platform components.

>
>
Also I feel that it requires more frequent release in data mapper editor to
> make it rock-solid also more new feature should be introduced to improve
> the user experience ,therefore this editor should be able to release on its
> own.
>
+1 for having two repositories for data mapper editor and engine.

>
> WDYT ?
>
> Thanks and Regards
> /Jasintha
>
>
> On Tue, Feb 16, 2016 at 10:11 AM, Chanaka Fernando 
> wrote:
>
>> Hi Nuwan,
>>
>> +1 for keeping the Data mapper engine in a separate repo. That will make
>> it easy to maintain and reuse by other components if there is a requirement
>> in the future.
>>
>>
>> On Tue, Feb 16, 2016 at 10:06 AM, Susinda Perera 
>> wrote:
>>
>>>
>>>
>>> On Tue, Feb 16, 2016 at 10:01 AM, Nuwan Pallewela 
>>> wrote:
>>>

 Hi All,

 Data Mapper feature is planned to release with ESB 5.0 and initially it
 was done by team developer studio as a POC.

 There are three components in data mapper implementation. They are

1. Data Mapper Tool
2. Data Mapper Mediator
3. Data Mapper Engine

 Data Mapper Tool should be with the Developer Studio ESB Tooling.

>>> This can also be place outside as this is a separate plugin. But ESB
>>> plugin has a dependency to datamapper plugin.
>>>
 Data Mapper Mediator should be move to Carbon Mediation.

 Ideally we should maintain a separate repository for the Data Mapper
 Engine. So where we should keep the Data Mapper Engine and how to proceed?

>>> +1 for place this in a separate place,  At the moment  'Data Mapper
>>> Engine' is needed by datamapper-mediator, but datamapper-tool will also use
>>> the engine (if we are giving some dry-run/emulator feature)
>>>
>>> Susinda
>>>
 Thanks,

 Nuwan
 --
 --

 *Nuwan Chamara Pallewela*


 *Software Engineer*

 *WSO2, Inc. *http://wso2.com
 *lean . enterprise . middleware*

 Email   *nuw...@wso2.com *
 Mobile  *+94719079739 <%2B94719079739>@*



>>>
>>>
>>> --
>>> *Susinda Perera*
>>> Software Engineer
>>> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
>>> Mobile:(+94)716049075
>>> Blog: susinda.blogspot.com
>>> WSO2 Inc. http://wso2.com/
>>> Tel : 94 11 214 5345 Fax :94 11 2145300
>>>
>>>
>>
>>
>> --
>> Thank you and Best Regards,
>> Chanaka Fernando
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 773337238
>> Blog : http://soatutorials.blogspot.com
>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>> Twitter:https://twitter.com/chanakaudaya
>>
>>
>>
>>
>>
>
>
> --
>
> *Jasintha Dasanayake*
>
> *Senior Software EngineerWSO2 Inc. | http://wso2.com
> lean . enterprise . middleware*
>
>
> *mobile :- 0711368118*
>



-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *http://wso2.com
*lean . enterprise . middleware*

Email   *nuw...@wso2.com *
Mobile  *+94719079739@*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Improvements to the Data Services Editor in Developer Studio

2016-02-16 Thread Sohani Weerasinghe
Hi All,

Thanks for the input and I have reported the issues at [1],[2],[3] & [4]

[1] https://wso2.org/jira/browse/TOOLS-3358
[2] https://wso2.org/jira/browse/TOOLS-3359
[3] https://wso2.org/jira/browse/TOOLS-3360
[4] https://wso2.org/jira/browse/TOOLS-3361

Thanks,
Sohani

Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Tue, Feb 16, 2016 at 7:18 PM, Madhawa Gunasekara 
wrote:

> Hi All,
>
> If we can provide a solution to generate input parameters and output
> parameters according to the query statement, it will be easier for the
> users to create the dataservice. currently this feature is available in DSS.
>
> Thanks,
> Madhawa
>
> On Fri, Feb 5, 2016 at 11:01 AM, Sohani Weerasinghe 
> wrote:
>
>> Hi Rajith,
>>
>> Thanks for the input. We'll consider these new improvements as well.
>>
>> Thanks,
>> Sohani
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Fri, Feb 5, 2016 at 10:59 AM, Rajith Vitharana 
>> wrote:
>>
>>> Hi,
>>>
>>> +1 for the new improvements, And in latest DSS there are new
>>> improvements,
>>>
>>> 1) Can provide an Authorization provider when creating the
>>> dataservice(first step in UI where we specify the service name)
>>> 2) Expose data as OData (when creating data sources in UI using a
>>> checkbox)
>>> 3) Google spreadsheet data sources now have different configurations(to
>>> generate access tokens)
>>>
>>> It's great if we can include these as well (Couldn't find these in
>>> developer studio 3.8.0, if these are already added just ignore)
>>>
>>> Thanks,
>>>
>>> On Fri, Feb 5, 2016 at 10:39 AM, Viraj Rajaguru  wrote:
>>>
 +1 for new improvements.

 Thanks,
 Viraj.

 On Fri, Feb 5, 2016 at 8:20 AM, Sohani Weerasinghe 
 wrote:

> Hi All,
>
> With the current level of implementation, DS Editor of the Developer
> studio has few issues in creating a data service and I have fixed those
> issues and implemented some improvements as listed below
>
> 1. With the initial implementation, when user clicks on the tree view
> the design view gets dirty even user didn't change any value. This is 
> fixed
> where user will only need to save the content when he/she edits the design
> view ( via setting properties) or edits the source view.
>
> 2. After user creates a data service and closes the editor, once
> he/she opens the editor and after traversing through the tree view the
> added initial values have not persisted correctly in the source view. This
> is fixed with the new improvement so that user will not lose any data.
>
> 3. With the initial implementation, user didn't get a chance to,
>
>- Select preferred values for  a data source when adding a query
>- Select parameter type, sql type, in/out type when adding a query
>param
>- Select a query ID when adding a call-query for an operation etc
>
> and this is fixed as shown in the attached image.
>
> Thanks,
> Sohani
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Viraj Rajaguru
 Senior Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile: +94 77 3683068




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


>>>
>>>
>>> --
>>> Rajith Vitharana
>>>
>>> Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94715883223
>>> Blog : http://lankavitharana.blogspot.com/
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> 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] GSOC 2016: Proposal 7

2016-02-16 Thread Isuru Udana
Hi Dinanjana,

Thank you for your interest in this project.
As a starting point, you can download WSO2 ESB[1] and start play with it.
You may run few samples[2] to get familiar with the product first.


[1] http://wso2.com/products/enterprise-service-bus/
[2] http://docs.wso2.org/wiki/display/ESB490/Samples

Thanks.

On Mon, Feb 15, 2016 at 9:31 PM, Dinanjana Gunaratne <
dinanjanagunara...@gmail.com> wrote:

>
> From: Dinanjana Gunaratne 
> Date: Mon, Feb 15, 2016 at 9:27 PM
> Subject: [Dev]GSOC 2016: Proposal 7
>
>
> Dear Sir,
>
> I m a 3rd year Computer Engineering undergraduate at University of
> Peradeniya. I would like to contribute to open source community by taking
> part in GSOC 2016.
>
> Recently i developed a remote monitoring system for an organization which
> had some of those mentioned features. Such as alerting when resources are
> over used and alerting when server stop responding. The monitoring system
> developed in such a manner that the implementation of monitoring system
> does not depend on components that are been monitored. The solution is
> built using Java and Spring framework.
>
> So i wold like to know how to proceed on this project.
>
>


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


Re: [Dev] Latency Calculation Feature in WSO2 GW

2016-02-16 Thread Chamil Elladeniya
Hi all,

We have integrated metrics Statistic feature to the GW as a separate
Handler by implementing the newly introduced MessagingHandler interface.
Handler gets invoked through each transaction with carbonMessage and
engaged location. Due to the current implementation, GW core is independent
of Statistic feature as this handler is added through OSGi service.

@IsuruP, Thank you for the JFR analysis and I'll do the necessary changes
to Metric names.

Following load testing results[1] are gained after above changes. Tests
were done in remote testing environment(BOA) using wrk tool with 0.5k sized
messages where the back-end was "echo-backEnd-with-delay".


[1]
https://docs.google.com/a/wso2.com/spreadsheets/d/18-tin2iNdnv93MX8AUq5Foe794jx-aJGjqbpB_5y3rk/edit?usp=sharing



On Wed, Feb 10, 2016 at 2:12 PM, Isuru Perera  wrote:

> Hi,
>
> It's great to see that there is not much impact to the performance of
> Gateway by the Carbon Metrics.
>
> The histogram update [1] method is synchronous and it is used by the
> Timer. (A timer is a histogram of durations). The Timer by default uses 
> ExponentiallyDecayingReservoir
> [2] and its update method [3] is synchronous. It also uses locks.
>
> I also analysed JFR dumps. For example, see the Hot Methods (filtered with
> "*metrics*") for a Flight Recording taken during 1 minute test with 900
> concurrency. (Chamil helped to get the JFR dumps)
>
> Stack
> Trace
> Sample CountPercentage(%)
> com.codahale.metrics.LongAdder.increment()
> 32  0.7
> com.codahale.metrics.Timer.time()
> 30  0.657
> org.wso2.carbon.metrics.impl.TimerImpl.start()
> 19  0.416
> com.codahale.metrics.ExponentiallyDecayingReservoir.lockForRegularUsage()
> 5  0.109
> com.codahale.metrics.Meter.mark(long)
> 4  0.088
> org.wso2.carbon.transport.http.netty.latency.metrics.RequestMetricsHolder.startTimer(String)
> 2  0.044
> org.wso2.carbon.transport.http.netty.latency.metrics.ResponseMetricsHolder.stopTimer(String)
> 1  0.022
> com.codahale.metrics.ExponentiallyDecayingReservoir.unlockForRegularUsage()
> 1  0.022
> com.codahale.metrics.EWMA.update(long)
> 1  0.022
> com.codahale.metrics.Timer$Context.stop()
> 1  0.022
> org.wso2.carbon.metrics.manager.MetricManager.append(StringBuilder,
> String) 1  0.022
> com.codahale.metrics.ExponentiallyDecayingReservoir.update(long)
> 1  0.022
> com.codahale.metrics.Meter.tickIfNecessary()
> 1  0.022
>
>
> It's good to see that there is less than 1% of CPU is spent on metrics
> related methods.
>
> @Chamil, please use final static String variables for the Metric Names
> instead of building the metric name in the constructor. Then we should be
> able to avoid multiple calls to  "MetricManager.append" method.
>
> The DAS reporter is already available and we can configure it to send
> events to WSO2 DAS. We will have to develop custom gadgets to visualize.
>
> Thanks!
>
> Best Regards,
>
> [1]
> https://github.com/dropwizard/metrics/blob/v3.1.2/metrics-core/src/main/java/com/codahale/metrics/Histogram.java#L37-L40
> [2]
> https://github.com/dropwizard/metrics/blob/v3.1.2/metrics-core/src/main/java/com/codahale/metrics/Timer.java#L55
> [3]
> https://github.com/dropwizard/metrics/blob/v3.1.2/metrics-core/src/main/java/com/codahale/metrics/ExponentiallyDecayingReservoir.java#L86-L115
>
>
> On Mon, Feb 8, 2016 at 9:22 AM, Isuru Ranawaka  wrote:
>
>> Hi Chamil ,
>>
>> Great , Seems there is no impact on performance by  integrating
>> carbon-metrics  and it may  operates in asynchronous manner  .Shall we look
>> in to how we can visualize this data and how we can publish those to
>> different Services like DAS .
>>
>> thanks
>>
>> On Mon, Feb 8, 2016 at 7:06 AM, Chamil Elladeniya 
>> wrote:
>>
>>> Hi all,
>>>
>>> As the previous test results were inconsistent, I did the test again
>>> using wrk to test the above scenario.
>>>
>>> Remote environment testing Using wrk
>>> Original GW
>>> Integrated GW
>>> # of threads Connections Requests per second [#/sec] Time per request
>>> [ms]
>>> # of threads Connections Requests per second [#/sec] Time per request
>>> [ms]
>>> 10 100 13721.18 7.98
>>> 10 100 14802.58 8.55
>>> 10 200 11884.68 18.24
>>> 10 200 14997.99 15.74
>>> 10 300 11735.99 26.98
>>> 10 300 13769.9 26.99
>>> 10 400 13257.39 32.68
>>> 10 400 14569.7 33.23
>>> 10 500 12124.66 44.14
>>> 10 500 14016.72 42.47
>>> 10 600 13575.55 50.63
>>> 10 600 13117.01 55.74
>>> 10 700 12891.08 66.33
>>> 10 700 12848.27 66.64
>>> 10 800 13045.18 71.42
>>> 10 800 13391.08 70.43
>>> 10 900 12990.17 86.4
>>> 10 900 13607.67 88.85
>>> 10 1000 7631.25 87.14
>>> 10 1000 8390.08 91.55
>>>
>>> Above average values are based on these individual test values[1].
>>>
>>> [1]
>>> https://docs.google.com/a/wso2.com/spreadsheets/d/1LhOjuaVFlv3AVDN-gYOW0S9rhv5kyEqczPhQ106bTZE/edit?usp=sharing
>>>
>>>

Re: [Dev] [VOTE] Release WSO2 Complex Event Processor 4.1.0 RC1

2016-02-16 Thread Tishan Dahanayakage
Hi all,

We are calling off this vote due to following reasons. Will fix the issues
and revert back with RC2.

Major
- Starting pack in sample mode does not work when additional system
parameters are provided. [1]
- Storm dependency jar does not recursively pack dependencies. Hence new
Siddhi extensions are failing in Storm. [2]

Minor
- PMML feature is not working when ML feature already installed[3]
- Small blue box appears in the top when tooltips appear[4]

[1] https://wso2.org/jira/browse/CEP-1472
[2] https://wso2.org/jira/browse/CEP-1473
[3] https://wso2.org/jira/browse/CEP-1471
[4] https://wso2.org/jira/browse/CEP-1470

Thanks
Tishan

On Sun, Feb 14, 2016 at 11:11 AM, Grainier Perera  wrote:

> Hi Devs,
>
> This is the first release candidate of WSO2 Complex Event Processor 4.1.0.
>
> *This release fixes the following issues:*
> https://wso2.org/jira/issues/?filter=12644
>
> Please download CEP 4.1.0 RC1 and test the functionality and vote. Vote
> will be open for 72 hours or as needed.
>
> *Source & binary distribution files:*
> https://github.com/wso2/product-cep/releases/tag/v4.1.0-RC1
>
> *The tag to be voted upon:*
> https://github.com/wso2/product-cep/tree/release-4.1.0-RC1
>
> [+] Stable - go ahead and release
> [-] Broken - do not release (explain why)
>
> Thanks and Regards,
> WSO2 CEP Team.
> --
> Grainier Perera
> Software Engineer
> Mobile : +94716122384
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tishan Dahanayakage
Software Engineer
WSO2, Inc.
Mobile:+94 716481328

Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
re-transmit, disseminate, or otherwise use the information contained in
this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fixes of ESB and DSS in the product plugins to be released

2016-02-16 Thread Susinda Perera
On Tue, Feb 16, 2016 at 10:48 AM, Sohani Weerasinghe 
wrote:

> Hi Jasintha,
>
> We have issued patches for Dev Studio 380,  patch0007, patch0009 and
> patch0012 for ESB and patch0008, patch0010 and patch0011 for DSS separately.
>
> As we haven't released the product plugins yet, shall we have two separate
> Git repositories for ESB tooling and DSS tooling ( for ESB this has been
> suggested already at [1] ) including these fixes. i.e not giving these
> fixes as updates but include these fixes in the release.
>
+ As we have not released yet, we can include these fixes.

>
> AFAIU including these fixes would be better and then each product team can
> continue the proposed patching model as discussed in [2] for the future
> fixes
>
>
> [1] Git Repository for ESB Tooling in wso2
> [2] Proposed patching model for Developer Studio 4.0.0
>
> Thanks,
> Sohani
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>



-- 
*Susinda Perera*
Software Engineer
B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
Mobile:(+94)716049075
Blog: susinda.blogspot.com
WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] [Redmine] Feature #4055 -JMS Transaction support for Store Mediator

2016-02-16 Thread Dilshani Subasinghe
Hi,

I am working with $subject[1] in QA perspectives and identified relevant
scenarios through given documentations. But that feature titled as " JMS
Transaction support for Store Mediator" and Feature will introduce
"Scheduled Failover Message Forwarding Processor".

Little bit confused with the title and the new processor introduced with
this redmine. Can someone please help in understanding how this scenario
relate to JMS Transactions ?

Given sample scenario[2] will indicating that, we can choose JMS message
store to create original message store. Hope this scenario not limited to
JMS message stores.

Is this "Guaranteed Delivery with Failover Message Store and Scheduled
Failover Message Forwarding Processor" scenario limited to JMS message
stores?


[1] - https://redmine.wso2.com/issues/4055
[2] -
https://docs.wso2.com/display/ESB490/Guaranteed+Delivery+with+Failover+Message+Store+and+Scheduled+Failover+Message+Forwarding+Processor

Thank you

-- 
Best Regards,

Software Engineer - QA
WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware

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


[Dev] Droping a Unique Constraint in a DB2 database

2016-02-16 Thread Chamila Wijayarathna
Hi all,

Currently I am working on developing the migration client and and scripts
for DB2 to migrate from IS 5.0.0 to 5.1.0.

There are some unique constraints, primary keys and foreign keys that has
been used in IS 5.0.0 which have been removed in IS 5.1.0. So I need to
remove those constraints in migration script.

To drop unique constraints I only have the table name and columns of the
unique constraint.

To drop the unique constraint, following query can be used.

 ALTER TABLE IDP_PROVISIONING_ENTITY DROP CONSTRAINT 

But to do this I need to retrieve constraint name using table name and
column list. Constraint names are available in both "sysibm.systabconst"
and also in "SYSCAT.TABCONST" tables. How can I retrieve constraint name
using the information I have with me currently.

Thank You!

-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev