[Dev] Performance testing on EMM 2.2.0 REST APIs

2016-11-25 Thread Maninda Edirisooriya
Hi,

I have started to test on the performance numbers of EMM REST APIs in EMM
2.2.0 RC1 pack. First we tested with enrolling n number of devices and
called ring operation and tested again with the same test including the
calling to pending operation endpoint. Here only a generic pending
operation was called.

(These tests are not yet complete and this is the current performance
numbers we have gathered)



*Scenario 1 : Enrolling n number of devices with a single App and calling
ring operation of them*

*With H2 Database*

5000 Devices registered and ringed - Successful (time = 2:36 min)

1 Devices registered and ringed - Fails (time = 7:23 min) - Error [1]
comes at server stop.


*With MySQL Database*

1 Devices registered and ringed - Successful (time = 13:47 min)



*Scenario 2 : Enrolling n number of devices with a single App, calling ring
operation of them and calling pending-operation*


*With H2 Database*

1 Devices registered ringed and pending operations called - Fails (time
= 35:00 min) - Error [2] comes.


*With MySQL Database*

1 Devices registered ringed and pending operations called - Fails (time
= 22:49 min) - Failed with error [3] which is similar in functionality to
[2].

We will carryout more tests and will be coming up with much accurate
numbers.


[1]

[2016-11-25 17:09:15,749]  INFO
{org.wso2.carbon.tomcat.ext.internal.CarbonTomcatServiceComponent} -
Stopping the carbon web-app registered under : /
[2016-11-25 17:09:15,757]  INFO
{org.wso2.carbon.appmgt.mobile.internal.AppManagerMobileComponent} -  App
Manger Mobile Component deactivated.
[2016-11-25 17:09:15,757]  INFO
{org.wso2.carbon.appmgt.mobile.internal.AppManagerMobileComponent} -  App
Manger MDM is unbound.
Stopping org.wso2.jaggery.scxml with RealmService disabled
[2016-11-25 17:09:16,185] ERROR
{org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderServiceImpl}
-  Error occurred while retrieving advance info of 'android' that carries
the id 'd24f870f390352a45270'
[2016-11-25 17:09:16,197] ERROR
{org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderServiceImpl}
-  Error occurred while retrieving the application list of 'android', which
carries the id '5270'
org.wso2.carbon.device.mgt.core.dao.DeviceManagementDAOException: SQL Error
occurred while retrieving the list of Applications installed in device id
'5270
at
org.wso2.carbon.device.mgt.core.dao.impl.ApplicationDAOImpl.getInstalledApplications(ApplicationDAOImpl.java:287)
at
org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderServiceImpl.getAllDevices(DeviceManagementProviderServiceImpl.java:683)
at
org.wso2.carbon.policy.mgt.core.task.MonitoringTask.execute(MonitoringTask.java:85)
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(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.h2.jdbc.JdbcSQLException: Database is already closed (to
disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to
the db URL) [90121-175]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:332)
at org.h2.message.DbException.get(DbException.java:172)
at org.h2.message.DbException.get(DbException.java:149)
at org.h2.message.DbException.get(DbException.java:138)
at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1413)
at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1388)
at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:265)
at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at
org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at
org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:67)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at
org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at
org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41)
at

Re: [Dev] [IS-5.3.0][IDENTITY-5264] Redirecting to broken page when click on link in Account Confirmation email after self signing via self signup REST API

2016-11-25 Thread Isura Karunaratne
Hi Ayesha,

We have to set the callback URL as property in Rest API. We already do this
for the dashboard. I think we do not want to fix this since we can remove
callback URL from the template if it is not required.

Thanks
Isura.


*Isura Dilhara Karunaratne*
Senior Software Engineer | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/




On Fri, Nov 25, 2016 at 5:18 PM, Ayesha Dissanayaka  wrote:

> Hi,
>
> As explained in IDENTITY-5264,
> 
>
> Enable email notifications for Self-signup in Identity Governance,
> use REST API: https://localhost:9443/api/identity/user/v0.9/me to self
> signup to IS.
>
> Click on the confirmation link sent to provided email of self signed user
> and follow the dialog.
>
> It get redirected to https://localhost:9443/accountrecoveryendpoint/%7B%
> 7Bcallback%7D%7D which is a broken page.
>
> But when self signup to IS using dashboard APP UI, there is no issue with
> the email link.
>
> I did some debugging around this and identified following.
>
> Link sent in email are as below
>
> 01. via Dashboard UI :
>   https://localhost:9443/accountrecoveryendpoint/confirmregist
> ration.do?confirmation=dc2ef6fe-6a53-49e3-a3ad-
> 776b78f699d4=PRIMARY=Ayesha7&
> tenantdomain=carbon.super=https%3A%2F%
> 2Flocalhost%3A9443%2Fauthenticationendpoint%2Flogin.do%
> 3FSSOAuthSessionID%3D297252FB3257F6532042516C7CA700723D41CDE
> B868D1E4CE7EF24F2063F35FFC2E39ADA855B7A76B188444B8E7E1682432
> D671A75FB54723CACBF508F4342E824449B02D31AED838B72CF01F342524
> E150B3E83E152557002EDEEB46A22713D1FA6D983FBD953FCB32AD9B50AD
> 1EDB9618155F6B70825ED2B132C379B494F0B%26commonAuthCallerPath
> %3D%2Fsamlsso%26forceAuth%3Dfalse%26passiveAuth%3Dfalse%
> 26tenantDomain%3Dcarbon.super%26sessionDataKey%3D37754e53-b5
> e2-4c59-8afb-9f3ddd2a3c67%26relyingParty%3Dwso2.my.dashboard
> %26type%3Dsamlsso%26sp%3Dwso2_sp_dashboard%26isSaaSApp%
> 3Dtrue%26authenticators%3DBasicAuthenticator%3ALOCAL
>
> 02. via REST API:
> https://localhost:9443/accountrecoveryendpoint/confirmregist
> ration.do?confirmation=cbb8ed93-2f30-497d-8eaa-
> 651969a35b9f=PRIMARY=Ayesha8&
> tenantdomain=carbon.super={{callback}}
>
> In 02. {{callback}} URL is not set, as selfUserRegistrationRequestDTO
> properties are not set at [1] via API.
>
> Similar behavior is observed if dashboard app UI is used with URL
> https://localhost:9443/accountrecoveryendpoint/register.do, where no
> callback parameter is set.
>
> email link :   https://localhost:9443/account
> recoveryendpoint/confirmregistration.do?confirmation=
> e585cfb6-0bdc-4bbe-ab9f-ed3762ada1f6=
> PRIMARY=Ayesha9=carbon.super=null
>
> What is the best way to handle this. Should we generate a callback URL if
> the request doesn't have it?
>
> [1] https://github.com/wso2-extensions/identity-governance/blob/master/
> components/org.wso2.carbon.identity.user.endpoint/src/
> main/java/org/wso2/carbon/identity/user/endpoint/impl/
> MeApiServiceImpl.java#L48
>
> Thanks!
> -Ayesha
>
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> 
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 IoT Server 1.0.0-ALPHA3 is Released

2016-11-25 Thread Charitha Goonetilleke
WSO2 IoT Server 1.0.0 ALPHA3

We are pleased to announce WSO2 IoT Server 1.0.0 ALPHA3 release. It can be
downloaded from
https://github.com/wso2/product-iots/releases/download/v1.0.0-ALPHA3/wso2iot-1.0.0-ALPHA3.zip

WSO2 IoT Server is an extensible, open-source, multi tenant, Internet of
Things Platform for implementing server-side of IoT Reference Architecture.
It comes with a few reference implementations for the device layer.
WSO2 IoT Server supports:

   - Device Management
  - Extensions for registering device types
  - Self-service enrollment and management of connected devices
  - Group, manage and monitor connected devices
  - Share device operations / data with other users
  - Distribution and management of applications and firmware to devices
  - Edge computing powered by WSO2 CEP streaming engine (Siddhi -
  https://github.com/wso2/siddhi)
  - OOTB support for some known device types such as Raspberry Pi,
  Arduino Uno, Android
   - IoT Protocol Support
  - Leverage MQTT, HTTP, Websockets and XMPP protocols for device
  communications with IoT Server Framework extension for adding more
  protocols and data formats
   - Analytics
  - Support for batch, interactive, real-time and predictive analytics
  through WSO2 DAS
   - Pre-built visualization support for sensor readings
  - View instant, visualized statistics of individual or multiple
  devices
  - Traverse through, analyse and zoom in/out of filtered data
  - Stats-API to write your own visualization
  - Pre-built graphs for common sensor reading types like temperature,
  velocity
   - API Management for App Development
  - Devices are represented as REST APIs
  - Develop applications using Device APIs
   - Identity and Access Management
  - Identity Management for devices
  - Token based access control for devices & operations (protect back
  end services via exposing device type APIs)
  - Support for SCEP protocol (encryption and authenticity)

Bug Fixes

   - [IOTS-288 ] - Grouping Feature
   is not working properly

Tasks Done

   - [IOTS-305 ] - Add app manager
   features

Improvements

   - [IOTS-287 ] - Update swagger
   annotation in Android APIs
   - [IOTS-303 ] - Change sharing
   method of Grouping Feature

Sub-tasks Done

   - [IOTS-304 ] - Update device
   grouping UIs to work with new sharing model



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

mobile: +94 77 751 3669 <%2B94777513669>
Twitter:@CharithaWs , fb: charithag
, linkedin: charithag



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


[Dev] [IS-5.3.0][IDENTITY-5264] Redirecting to broken page when click on link in Account Confirmation email after self signing via self signup REST API

2016-11-25 Thread Ayesha Dissanayaka
Hi,

As explained in IDENTITY-5264, 

Enable email notifications for Self-signup in Identity Governance,
use REST API: https://localhost:9443/api/identity/user/v0.9/me to self
signup to IS.

Click on the confirmation link sent to provided email of self signed user
and follow the dialog.

It get redirected to
https://localhost:9443/accountrecoveryendpoint/%7B%7Bcallback%7D%7D which
is a broken page.

But when self signup to IS using dashboard APP UI, there is no issue with
the email link.

I did some debugging around this and identified following.

Link sent in email are as below

01. via Dashboard UI :
  https://localhost:9443/accountrecoveryendpoint/confirmregistration.do?
confirmation=dc2ef6fe-6a53-49e3-a3ad-776b78f699d4=PRIMARY&
username=Ayesha7=carbon.super=https%
3A%2F%2Flocalhost%3A9443%2Fauthenticationendpoint%
2Flogin.do%3FSSOAuthSessionID%3D297252FB3257F6532042516C7CA7
00723D41CDEB868D1E4CE7EF24F2063F35FFC2E39ADA855B7A76B188444B
8E7E1682432D671A75FB54723CACBF508F4342E824449B02D31AED838B72
CF01F342524E150B3E83E152557002EDEEB46A22713D1FA6D983FBD953FC
B32AD9B50AD1EDB9618155F6B70825ED2B132C379B494F0B%26commonAuthCallerPath%3D%
2Fsamlsso%26forceAuth%3Dfalse%26passiveAuth%3Dfalse%
26tenantDomain%3Dcarbon.super%26sessionDataKey%3D37754e53-
b5e2-4c59-8afb-9f3ddd2a3c67%26relyingParty%3Dwso2.my.
dashboard%26type%3Dsamlsso%26sp%3Dwso2_sp_dashboard%26isSaaSApp%3Dtrue%
26authenticators%3DBasicAuthenticator%3ALOCAL

02. via REST API:
https://localhost:9443/accountrecoveryendpoint/confirmregistration.do?
confirmation=cbb8ed93-2f30-497d-8eaa-651969a35b9f=PRIMARY&
username=Ayesha8=carbon.super={{callback}}

In 02. {{callback}} URL is not set, as selfUserRegistrationRequestDTO
properties are not set at [1] via API.

Similar behavior is observed if dashboard app UI is used with URL
https://localhost:9443/accountrecoveryendpoint/register.do, where no
callback parameter is set.

email link :   https://localhost:9443/accountrecoveryendpoint/
confirmregistration.do?confirmation=e585cfb6-0bdc-4bbe-ab9f-ed3762ada1f6&
userstoredomain=PRIMARY=Ayesha9=
carbon.super=null

What is the best way to handle this. Should we generate a callback URL if
the request doesn't have it?

[1]
https://github.com/wso2-extensions/identity-governance/blob/master/components/org.wso2.carbon.identity.user.endpoint/src/main/java/org/wso2/carbon/identity/user/endpoint/impl/MeApiServiceImpl.java#L48

Thanks!
-Ayesha

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com

20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Distributed benchmark

2016-11-25 Thread Pablo Casares Crespo
Hi all, I’m Pablo Casares. I’ve been working with the java library SiddhiCore 
in order to develop a distributed CEP. I would like to know if you have 
benchmarks about your distributed solution using Storm. I want to compare the 
performance I have with my solution using Kafka Streams. Also, I’m interested 
in the datasets related with those benchmarks.

Thank you!

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


Re: [Dev] File read with enabling streaming

2016-11-25 Thread Vivekananthan Sivanayagam
Hi Kathees,

 I have tried as you mentioned, it is working.

 private void findAndWrite2OutputStream(MessageContext messageContext,
   OutputStream out,
   boolean preserve) throws
AxisFault {
try {
  SOAPEnvelope envelope = messageContext.getEnvelope();
  OMElement contentEle = envelope.getBody().getFirstElement();
if (contentEle != null) {
OMNode node = contentEle.getFirstOMChild();
if (!(node instanceof OMText)) {
String msg = "Wrong Input for the Validator, " +
"the content of the first child element of the
Body " +
"should have the zip file";
log.error(msg);
throw new AxisFault(msg);
}
OMText binaryDataNode = (OMText) node;
DataHandler dh = (DataHandler)
binaryDataNode.getDataHandler();

DataSource dataSource = dh.getDataSource();
if(dataSource instanceof StreamingOnRequestDataSource) {
if (((StreamingOnRequestDataSource)
dataSource).isConsumed()) {
Object httpMethodObj =
messageContext.getProperty(Constants.Configuration.HTTP_METHOD);
if ((httpMethodObj instanceof String) &&
"POST".equals(httpMethodObj)) {
log.warn("Attempting to send an already
consumed request [" +
 messageContext.getTo().getAddress() +
" POST/Empty Message Body]");
}
}

//Ask the data source to stream, if it has not already
cached the request
if (!preserve && dataSource instanceof
StreamingOnRequestDataSource) {
((StreamingOnRequestDataSource)
dataSource).setLastUse(true);
}
}
dh.writeTo(out);
}
} catch (OMException e) {
log.error(e);
throw AxisFault.makeFault(e);
} catch (IOException e) {
log.error(e);
throw AxisFault.makeFault(e);
}
}

Vivekananthan Sivanayagam
Associate Software Engineer | WSO2
E:vivekanant...@wso2.com
M:+94752786138

On Fri, Nov 25, 2016 at 10:52 AM, Kathees Rajendram 
wrote:

> If the datasource from your operation is not instance of
> StreamingOnRequestDataSource and you can directly write. In this case, you
> don't need to cast.
>
> On Fri, Nov 25, 2016 at 10:20 AM, Vivekananthan Sivanayagam <
> vivekanant...@wso2.com> wrote:
>
>> Hi Malaka,
>>
>> I am getting the casting exception in the following methods in the
>> carbon-mediation[1].
>>
>> private void findAndWrite2OutputStream(MessageContext messageContext,
>>OutputStream out,
>>boolean preserve) throws
>> AxisFault {
>> try {
>> SOAPEnvelope envelope = messageContext.getEnvelope();
>>   OMElement contentEle = envelope.getBody().getFirstElement();
>> if (contentEle != null) {
>> OMNode node = contentEle.getFirstOMChild();
>> if (!(node instanceof OMText)) {
>> String msg = "Wrong Input for the Validator, " +
>> "the content of the first child element of
>> the Body " +
>> "should have the zip file";
>> log.error(msg);
>> throw new AxisFault(msg);
>> }
>> OMText binaryDataNode = (OMText) node;
>> DataHandler dh = (DataHandler)
>> binaryDataNode.getDataHandler();
>>
>> DataSource dataSource = dh.getDataSource();
>> if (((StreamingOnRequestDataSource)
>> dataSource).isConsumed()) {
>> Object httpMethodObj =
>> messageContext.getProperty(Constants.Configuration.HTTP_METHOD);
>> if ((httpMethodObj instanceof String) &&
>> "POST".equals(httpMethodObj)) {
>> log.warn("Attempting to send an already
>> consumed request [" +
>>  messageContext.getTo().getAddress()
>> + " POST/Empty Message Body]");
>> }
>> }
>>
>> //Ask the data source to stream, if it has not
>> already cached the request
>> if (!preserve && dataSource instanceof
>> StreamingOnRequestDataSource) {
>> ((StreamingOnRequestDataSource)
>> dataSource).setLastUse(true);
>> }
>>
>> dh.writeTo(out);
>> }
>> } catch (OMException e) {
>> log.error(e);
>> throw AxisFault.makeFault(e);
>> } catch (IOException e) {
>>

Re: [Dev] File read with enabling streaming

2016-11-25 Thread Kathees Rajendram
If the datasource from your operation is not instance of
StreamingOnRequestDataSource and you can directly write. In this case, you
don't need to cast.

On Fri, Nov 25, 2016 at 10:20 AM, Vivekananthan Sivanayagam <
vivekanant...@wso2.com> wrote:

> Hi Malaka,
>
> I am getting the casting exception in the following methods in the
> carbon-mediation[1].
>
> private void findAndWrite2OutputStream(MessageContext messageContext,
>OutputStream out,
>boolean preserve) throws
> AxisFault {
> try {
> SOAPEnvelope envelope = messageContext.getEnvelope();
>   OMElement contentEle = envelope.getBody().getFirstElement();
> if (contentEle != null) {
> OMNode node = contentEle.getFirstOMChild();
> if (!(node instanceof OMText)) {
> String msg = "Wrong Input for the Validator, " +
> "the content of the first child element of the
> Body " +
> "should have the zip file";
> log.error(msg);
> throw new AxisFault(msg);
> }
> OMText binaryDataNode = (OMText) node;
> DataHandler dh = (DataHandler)
> binaryDataNode.getDataHandler();
>
> DataSource dataSource = dh.getDataSource();
> if (((StreamingOnRequestDataSource)
> dataSource).isConsumed()) {
> Object httpMethodObj = messageContext.getProperty(
> Constants.Configuration.HTTP_METHOD);
> if ((httpMethodObj instanceof String) &&
> "POST".equals(httpMethodObj)) {
> log.warn("Attempting to send an already
> consumed request [" +
>  messageContext.getTo().getAddress()
> + " POST/Empty Message Body]");
> }
> }
>
> //Ask the data source to stream, if it has not already
> cached the request
> if (!preserve && dataSource instanceof
> StreamingOnRequestDataSource) {
> ((StreamingOnRequestDataSource)
> dataSource).setLastUse(true);
> }
>
> dh.writeTo(out);
> }
> } catch (OMException e) {
> log.error(e);
> throw AxisFault.makeFault(e);
> } catch (IOException e) {
> log.error(e);
> throw AxisFault.makeFault(e);
> }
> }
>
>
> [1] https://github.com/wso2/carbon-mediation/blob/master/
> components/mediation-monitor/message-relay/org.wso2.carbon.
> relay/src/main/java/org/wso2/carbon/relay/ExpandingMessageFormatter.
> java#L185
>
> Vivekananthan Sivanayagam
> Associate Software Engineer | WSO2
> E:vivekanant...@wso2.com
> M:+94752786138
>
> On Thu, Nov 24, 2016 at 4:30 PM, Malaka Silva  wrote:
>
>>
>>
>> On Thu, Nov 24, 2016 at 4:25 PM, Vivekananthan Sivanayagam <
>> vivekanant...@wso2.com> wrote:
>>
>>> Hi Malaka,
>>>
>>> When I enable builders as I mentioned in the previous mail, It is
>>> working always for the false statement[1] of streaming even enabling the
>>> streaming. We have to use ">> class="org.apache.axis2.format.BinaryBuilder"/>", If I use this one, I
>>> am getting
>>> "PassThroughHttpSender Failed to submit the response" error.
>>>
>> ​We have to dig into this and find the root cause.​
>>
>>
>>>
>>> We were able to write the file content into the message context but
>>> could not get this as a response, and I checked the test case and found the
>>> reason why it worked, there streaming is set as true and content type is
>>> as "text/plain", in this case also consider as an else statement, that is
>>> why test cases are passed.
>>>
>> ​Currently latest connector read does not work. So ideally the test case
>> should fail.​
>>
>>
>>>
>>> [1]
>>>
>>> ​
>>> ​
>>> InputStream in;
>>>
>>> if (builder instanceof DataSourceMessageBuilder && 
>>> "true".equals(streaming)) {
>>> in = null;
>>> dataSource = ManagedDataSourceFactory.create(new 
>>> FileObjectDataSource(file, contentType));
>>> } else {
>>> in = new AutoCloseInputStream(file.getContent().getInputStream());
>>> dataSource = null;
>>> }
>>>
>>>
>>> Vivekananthan Sivanayagam
>>> Associate Software Engineer | WSO2
>>> E:vivekanant...@wso2.com
>>> M:+94752786138
>>>
>>> On Thu, Nov 24, 2016 at 10:23 AM, Vivekananthan Sivanayagam <
>>> vivekanant...@wso2.com> wrote:
>>>
 Hi Malaka,

 When I use ">>> class="org.wso2.carbon.relay.BinaryRelayBuilder"/>" instead of
 ">>> class="org.apache.axis2.format.BinaryBuilder"/>", it is working fine.

 Vivekananthan Sivanayagam
 Associate Software Engineer | WSO2
 E:vivekanant...@wso2.com
 M:+94752786138

 On Wed, Nov 23, 2016 at 3:26 PM, Vivekananthan Sivanayagam <
 vivekanant...@wso2.com> wrote:

> Hi Makala,

[Dev] Any risk to upgrade the Carbon Core to 4.4.10 on AS 5.3.0

2016-11-25 Thread wenxzhen
Dear all,


Is there any potential risk to upgrade the Core version from v4.4.1 to v4.4.10 
on AS 5.3.0? As we can see from the POM.xml from AS 5.3.0:


5.3.0
${product.as.version}





4.5.3
4.4.1
4.4.7
4.4.8
4.5.5
4.4.3



Do I need to do the corresponding on the other components, e.g. Commons, 
Registry, Identify, Multitenancy and etc


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


Re: [Dev] Exception related to eclipse BIRT when connecting DAS data using DAS JDBC driver

2016-11-25 Thread Anjana Fernando
Hi Pawan,

In Eclipse BIRT, the way they use the keystores must be different, please
research a bit more / debug and find the issue. Worse case, just disable
certificate validation check in the JDBC driver and use it. We can simply
have a driver option to disable that in the client it uses internally.
Please do that improvement to the driver and use it.

Cheers,
Anjana.

On Thu, Nov 24, 2016 at 2:46 PM, Pawan Gunaratne  wrote:

> Hi,
>
> I have added that server certificate into the JDK keystore. So now it
> works (can show the data) with *Squirrel client SQL*. But in Eclipse BIRT
> still I'm getting that same exception.
>
> Thanks,
> Pawan
>
> On Wed, Nov 23, 2016 at 9:25 AM, Anupama Pathirage 
> wrote:
>
>> Hi,
>>
>> It seems this is occurred since the DAS server does not have a valid
>> certificate from an authorized CA. Please add DAS server certificate in to
>> JDK keystore and check by following steps.
>>
>>- Access the DAS url from browser and export the certificate
>>- Export the certificate to JDK key store using keytool.
>>
>> Thanks,
>> Anupama
>>
>> On Mon, Nov 21, 2016 at 1:06 AM, Pawan Gunaratne  wrote:
>>
>>> Hi,
>>>
>>> After creating the JDBC connection in Eclipse BIRT it didn't allow to
>>> get the table data available in DAS. Also it didn't show any tables/streams
>>> available in DAS. When I'm trying to retrieve the data using SELECT queries
>>> it will throw the following exception.
>>>
>>> 
>>> 
>>> 
>>> org.eclipse.birt.data.engine.odaconsumer.OdaDataException: Cannot get
>>> the result set metadata.
>>> org.eclipse.birt.report.data.oda.jdbc.JDBCException: SQL statement
>>> does not return a ResultSet object.
>>> SQL error #1:Error in Get Column Data Types :
>>>  ;
>>> java.sql.SQLException: Error in Get Column Data Types :
>>> at org.eclipse.birt.data.engine.odaconsumer.ExceptionHandler.ne
>>> wException(ExceptionHandler.java:52)
>>> at org.eclipse.birt.data.engine.odaconsumer.ExceptionHandler.th
>>> rowException(ExceptionHandler.java:108)
>>> at org.eclipse.birt.data.engine.odaconsumer.ExceptionHandler.th
>>> rowException(ExceptionHandler.java:84)
>>> at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.g
>>> etRuntimeMetaData(PreparedStatement.java:414)
>>> at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.g
>>> etProjectedColumns(PreparedStatement.java:377)
>>> at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.d
>>> oGetMetaData(PreparedStatement.java:347)
>>> at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.e
>>> xecute(PreparedStatement.java:563)
>>> at org.eclipse.birt.data.engine.executor.DataSourceQuery.execut
>>> e(DataSourceQuery.java:980)
>>> at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery$OdaDSQu
>>> eryExecutor.executeOdiQuery(PreparedOdaDSQuery.java:607)
>>> at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer
>>> yExecutor.java:1251)
>>> at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe
>>> cuteQuery(ServiceForQueryResults.java:233)
>>> at org.eclipse.birt.data.engine.impl.QueryResults.getResultIter
>>> ator(QueryResults.java:178)
>>> at org.eclipse.birt.data.engine.impl.QueryResults.getResultMeta
>>> Data(QueryResults.java:132)
>>> at org.eclipse.birt.report.data.adapter.impl.DataSetMetaDataHel
>>> per.getRuntimeMetaData(DataSetMetaDataHelper.java:196)
>>> at org.eclipse.birt.report.data.adapter.impl.DataSetMetaDataHel
>>> per.getRealMetaData(DataSetMetaDataHelper.java:155)
>>> at org.eclipse.birt.report.data.adapter.impl.DataSetMetaDataHel
>>> per.getDataSetMetaData(DataSetMetaDataHelper.java:117)
>>> at org.eclipse.birt.report.data.adapter.impl.DataSetMetaDataHel
>>> per.refreshMetaData(DataSetMetaDataHelper.java:385)
>>> at org.eclipse.birt.report.data.adapter.impl.DataRequestSession
>>> Impl.refreshMetaData(DataRequestSessionImpl.java:414)
>>> at org.eclipse.birt.report.designer.data.ui.dataset.ExternalUIU
>>> til.updateColumnCache(ExternalUIUtil.java:109)
>>> at org.eclipse.birt.report.designer.data.ui.providers.DefaultDa
>>> taServiceProvider.updateColumnCache(DefaultDataServiceProvider.java:139)
>>> at org.eclipse.birt.report.designer.internal.ui.data.DataServic
>>> e.updateColumnCache(DataService.java:173)
>>> at org.eclipse.birt.report.designer.data.ui.dataset.DataSetUIUt
>>> il.updateColumnCache(DataSetUIUtil.java:99)
>>> at org.eclipse.birt.report.designer.data.ui.dataset.DataSetEdit
>>> or.okPressed(DataSetEditor.java:687)
>>> at org.eclipse.birt.report.designer.data.ui.property.AbstractPr
>>> opertyDialog.buttonPressed(AbstractPropertyDialog.java:650)
>>> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav
>>> a:618)
>>> at 

Re: [Dev] - Upgrade Google Guava version in Carbon-mediation

2016-11-25 Thread Nuwan Wimalasekara
Hi Thilini,

Guava is used by JSON Schema Validator mediator and It need to be tested
with guava version 18.

Thanks,
Nuwanw

On Fri, Nov 25, 2016 at 1:46 PM, Thilini Shanika  wrote:

> Hi ESB Team,
>
> In order to get rid of Guava version conflicts in APIM, we need to upgrade
> the guava version (version 15 to version 18) shift with carbon-mediation.
>
> Can you please review and merge PR[1]
>
> [1] - https://github.com/wso2/carbon-mediation/pull/760/files
>
> Thanks
>
> --
> Thilini Shanika
> Senior Software Engineer
> WSO2, Inc.; http://wso2.com
> 20, Palmgrove Avenue, Colombo 3
>
> E-mail: tgtshan...@gmail.com
>
>


-- 
Nuwan Wimalasekara
Associate Technical Lead
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

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


[Dev] Any risk to upgrade the Carbon Core to 4.4.10 on AS 5.3.0

2016-11-25 Thread wenxzhen
Dear all,


Is there any potential risk to upgrade the Core version from v4.4.1 to v4.4.10 
on AS 5.3.0? As we can see from the POM.xml from AS 5.3.0:


5.3.0
${product.as.version}





4.5.3
4.4.1
4.4.7
4.4.8
4.5.5
4.4.3



Do I need to do the corresponding on the other components, e.g. Commons, 
Registry, Identify, Multitenancy and etc


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


[Dev] Representing Business Units as Tenants in WSO2 IS

2016-11-25 Thread Johann Nallathamby
Hi Hanen,

I am moving this discussion to a new thread in dev@wso2.org, because it
seemed that the question is slightly off topic: its a query about an
existing product capability and generally we discuss such stuff in the dev
mailing list.

To answer your question, yes it is absolutely possible to manage users of
each BU within an individual tenant. Please note that a tenant within WSO2
IS, is completely isolated from all other tenants. So you won't be able to
do cross tenant identity management, etc. Each tenant can have its own set
of users, roles, permissions, etc. as well. Regarding attribute profiles,
each user has one, which can be managed by him/her and the admin of that
tenant based on permissions.

It is a very abstract answer for an abstract question :). So I am pretty
sure there will be lot more details you would need to iron out by getting
into specifics of your requirement.

Regards,
Johann.

-- Forwarded message --
From: Hanen Ben Rhouma 
Date: Thu, Nov 24, 2016 at 3:36 PM
Subject: Re: [Architecture] [C5] Different user profiles for different
domains
To: architect...@wso2.org


Hello guys,

Actually we have a requirement and I thought it might be nice to share it
with you given that we're thinking of WSO2 IS as a future solution for
managing identities/authorization and users within our company: we need to
manage what we call business units under each tenant/organization and a
user is belonging to one business unit (BU) so his profile and privileges
depend on which BU he belongs, is such granularity possible within WSO2 ?

Regards,


*Hanen Ben Rhouma*
*Java Tech Lead*

-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Governance Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] - Upgrade Google Guava version in Carbon-mediation

2016-11-25 Thread Thilini Shanika
Hi ESB Team,

In order to get rid of Guava version conflicts in APIM, we need to upgrade
the guava version (version 15 to version 18) shift with carbon-mediation.

Can you please review and merge PR[1]

[1] - https://github.com/wso2/carbon-mediation/pull/760/files

Thanks

-- 
Thilini Shanika
Senior Software Engineer
WSO2, Inc.; http://wso2.com
20, Palmgrove Avenue, Colombo 3

E-mail: tgtshan...@gmail.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev