Re: [Dev] Displaying the username & email of users in EMM console

2015-11-04 Thread Udara Rathnayake
For ES we have done a similar UI fix to display name of the
asset/publisher, when there is a lengthy name.
Not sure it's going to suit here but you can have a look.

On Wed, Nov 4, 2015 at 9:58 AM, Harshan Liyanage  wrote:

> Hi,
>
> We need to show the username & email of users in EMM console. But the
> existing UI theme can not be used to show lengthy user names [1]. My
> suggestion is to only show the username & email without their text-labels
> (Username & Email).
>
> WDYT?
>
> [1]. https://wso2.org/jira/browse/EMM-926
>
> Thanks,
>
> Harshan Liyanage
> Software Engineer
> Mobile: *+94724423048*
> Email: hars...@wso2.com
> Blog : http://harshanliyanage.blogspot.com/
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Product IOT server build failed

2015-11-04 Thread Prabath Abeysekera
Hi Menaka,

I'm seeing quite a few maven warnings printed as part of the above shared
exception trace. Please fix those as well.

Cheers,
Prabath

On Tue, Nov 3, 2015 at 12:51 PM, Menaka Jayawardena  wrote:

> Build successful and server is running properly.
>
> Thank you very much :-)
>
> On Tue, Nov 3, 2015 at 12:13 PM, Rasika Perera  wrote:
>
>> This is fixed now.
>>
>> On Tue, Nov 3, 2015 at 12:01 AM, Menaka Jayawardena 
>> wrote:
>>
>>> Hello,
>>>
>>> I built the given repositories in order with mvn clean install. All of
>>> those build successfully except the IOT server. [1]
>>>
>>> [1]  https://github.com/wso2-incubator/product-iot-server
>>>
>>> This is the full stack trace.
>>>
>>> menaka@menaka-ThinkPad-T530:~/Documents/WSO2/product-iot-server$ mvn
>>> clean install -e
>>> [INFO] Error stacktraces are turned on.
>>> [INFO] Scanning for projects...
>>> [ERROR] The build could not read 1 project -> [Help 1]
>>> org.apache.maven.project.ProjectBuildingException: Some problems were
>>> encountered while processing the POMs:
>>> [FATAL] Non-resolvable parent POM: Could not find artifact
>>> org.wso2.iot:wso2iot-parent:pom:1.0.0-SNAPSHOT and 'parent.relativePath'
>>> points at wrong local POM @ line 24, column 10
>>> [WARNING]
>>> 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)'
>>> must be unique:
>>> org.wso2.carbon.devicemgt:org.wso2.carbon.policy.mgt.core:jar -> duplicate
>>> declaration of version ${carbon.device.mgt.version} @
>>> org.wso2.iot:wso2iot-parent:1.0.0-SNAPSHOT,
>>> /home/menaka/Documents/WSO2/product-iot-server/pom.xml, line 415, column 25
>>> [WARNING]
>>> 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)'
>>> must be unique:
>>> org.wso2.carbon.devicemgt:org.wso2.carbon.policy.mgt.common:jar ->
>>> duplicate declaration of version ${carbon.device.mgt.version} @
>>> org.wso2.iot:wso2iot-parent:1.0.0-SNAPSHOT,
>>> /home/menaka/Documents/WSO2/product-iot-server/pom.xml, line 420, column 25
>>> [WARNING] 'version' contains an expression but should be a constant. @
>>> org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl:${carbon.iot.device.mgt.version},
>>> /home/menaka/Documents/WSO2/product-iot-server/modules/samples/firealarm/src/org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl/pom.xml,
>>> line 24, column 11
>>> [WARNING] 'version' contains an expression but should be a constant. @
>>> org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.firealarm:${carbon.iot.device.mgt.version},
>>> /home/menaka/Documents/WSO2/product-iot-server/modules/samples/firealarm/src/pom.xml,
>>> line 13, column 11
>>> [WARNING] 'version' contains an expression but should be a constant. @
>>> org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.firealarm.service.impl:${carbon.iot.device.mgt.version},
>>> /home/menaka/Documents/WSO2/product-iot-server/modules/samples/firealarm/src/org.wso2.carbon.device.mgt.iot.sample.firealarm.service.impl/pom.xml,
>>> line 14, column 14
>>> [WARNING] 'version' contains an expression but should be a constant. @
>>> org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.firealarm:${carbon.iot.device.mgt.version},
>>> /home/menaka/Documents/WSO2/product-iot-server/modules/samples/firealarm/src/pom.xml,
>>> line 13, column 11
>>> [WARNING] 'version' contains an expression but should be a constant. @
>>> org.wso2.carbon.device.mgt.iot.server.sample:iot-server-samples:${carbon.iot.device.mgt.version},
>>> /home/menaka/Documents/WSO2/product-iot-server/modules/samples/pom.xml,
>>> line 27, column 14
>>> [WARNING] 'version' contains an expression but should be a constant. @
>>> org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl:${carbon.iot.device.mgt.version},
>>> /home/menaka/Documents/WSO2/product-iot-server/modules/samples/android_sense/src/org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl/pom.xml,
>>> line 24, column 11
>>> [WARNING] 'version' contains an expression but should be a constant. @
>>> org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.android.sense:${carbon.iot.device.mgt.version},
>>> /home/menaka/Documents/WSO2/product-iot-server/modules/samples/android_sense/src/pom.xml,
>>> line 13, column 11
>>> [WARNING] 'version' contains an expression but should be a constant. @
>>> org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.android.sense.service.impl:${carbon.iot.device.mgt.version},
>>> /home/menaka/Documents/WSO2/product-iot-server/modules/samples/android_sense/src/org.wso2.carbon.device.mgt.iot.sample.android.sense.service.impl/pom.xml,
>>> line 14, column 14
>>> [WARNING] 'version' contains an expression but should be a constant. @
>>> 

Re: [Dev] Product IOT server build failed

2015-11-04 Thread Menaka Jayawardena
Hi Prabath,

Thank you very much.
I'll check it.

Best Regards
Menaka

On Thu, Nov 5, 2015 at 7:58 AM, Prabath Abeysekera 
wrote:

> Hi Menaka,
>
> I'm seeing quite a few maven warnings printed as part of the above shared
> exception trace. Please fix those as well.
>
> Cheers,
> Prabath
>
> On Tue, Nov 3, 2015 at 12:51 PM, Menaka Jayawardena 
> wrote:
>
>> Build successful and server is running properly.
>>
>> Thank you very much :-)
>>
>> On Tue, Nov 3, 2015 at 12:13 PM, Rasika Perera  wrote:
>>
>>> This is fixed now.
>>>
>>> On Tue, Nov 3, 2015 at 12:01 AM, Menaka Jayawardena 
>>> wrote:
>>>
 Hello,

 I built the given repositories in order with mvn clean install. All of
 those build successfully except the IOT server. [1]

 [1]  https://github.com/wso2-incubator/product-iot-server

 This is the full stack trace.

 menaka@menaka-ThinkPad-T530:~/Documents/WSO2/product-iot-server$ mvn
 clean install -e
 [INFO] Error stacktraces are turned on.
 [INFO] Scanning for projects...
 [ERROR] The build could not read 1 project -> [Help 1]
 org.apache.maven.project.ProjectBuildingException: Some problems were
 encountered while processing the POMs:
 [FATAL] Non-resolvable parent POM: Could not find artifact
 org.wso2.iot:wso2iot-parent:pom:1.0.0-SNAPSHOT and 'parent.relativePath'
 points at wrong local POM @ line 24, column 10
 [WARNING]
 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)'
 must be unique:
 org.wso2.carbon.devicemgt:org.wso2.carbon.policy.mgt.core:jar -> duplicate
 declaration of version ${carbon.device.mgt.version} @
 org.wso2.iot:wso2iot-parent:1.0.0-SNAPSHOT,
 /home/menaka/Documents/WSO2/product-iot-server/pom.xml, line 415, column 25
 [WARNING]
 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)'
 must be unique:
 org.wso2.carbon.devicemgt:org.wso2.carbon.policy.mgt.common:jar ->
 duplicate declaration of version ${carbon.device.mgt.version} @
 org.wso2.iot:wso2iot-parent:1.0.0-SNAPSHOT,
 /home/menaka/Documents/WSO2/product-iot-server/pom.xml, line 420, column 25
 [WARNING] 'version' contains an expression but should be a constant. @
 org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl:${carbon.iot.device.mgt.version},
 /home/menaka/Documents/WSO2/product-iot-server/modules/samples/firealarm/src/org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl/pom.xml,
 line 24, column 11
 [WARNING] 'version' contains an expression but should be a constant. @
 org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.firealarm:${carbon.iot.device.mgt.version},
 /home/menaka/Documents/WSO2/product-iot-server/modules/samples/firealarm/src/pom.xml,
 line 13, column 11
 [WARNING] 'version' contains an expression but should be a constant. @
 org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.firealarm.service.impl:${carbon.iot.device.mgt.version},
 /home/menaka/Documents/WSO2/product-iot-server/modules/samples/firealarm/src/org.wso2.carbon.device.mgt.iot.sample.firealarm.service.impl/pom.xml,
 line 14, column 14
 [WARNING] 'version' contains an expression but should be a constant. @
 org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.firealarm:${carbon.iot.device.mgt.version},
 /home/menaka/Documents/WSO2/product-iot-server/modules/samples/firealarm/src/pom.xml,
 line 13, column 11
 [WARNING] 'version' contains an expression but should be a constant. @
 org.wso2.carbon.device.mgt.iot.server.sample:iot-server-samples:${carbon.iot.device.mgt.version},
 /home/menaka/Documents/WSO2/product-iot-server/modules/samples/pom.xml,
 line 27, column 14
 [WARNING] 'version' contains an expression but should be a constant. @
 org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl:${carbon.iot.device.mgt.version},
 /home/menaka/Documents/WSO2/product-iot-server/modules/samples/android_sense/src/org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl/pom.xml,
 line 24, column 11
 [WARNING] 'version' contains an expression but should be a constant. @
 org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.android.sense:${carbon.iot.device.mgt.version},
 /home/menaka/Documents/WSO2/product-iot-server/modules/samples/android_sense/src/pom.xml,
 line 13, column 11
 [WARNING] 'version' contains an expression but should be a constant. @
 org.wso2.carbon.device.mgt.iot.server.sample:org.wso2.carbon.device.mgt.iot.sample.android.sense.service.impl:${carbon.iot.device.mgt.version},
 

[Dev] [DEV] Error when Running Automation Tests in Parallel

2015-11-04 Thread Akalanka Pagoda Arachchi
Hi All,

When we configure to run automation tests in parallel, following error is
thrown intermittently.

I"ve enabled to run 10 threads in parallel with the following config in
testng.xml file.



Stacktrace

java.lang.NullPointerException
at org.apache.xerces.dom.ParentNode.nodeListGetLength(Unknown Source)
at org.apache.xerces.dom.ParentNode.getLength(Unknown Source)
at 
org.wso2.carbon.automation.engine.context.AutomationContext.extractUser(AutomationContext.java:307)
at 
org.wso2.carbon.automation.engine.context.AutomationContext.getSuperTenant(AutomationContext.java:286)
at 
org.wso2.carbon.automation.engine.context.AutomationContext.getContextTenant(AutomationContext.java:336)
at 
org.wso2.carbon.automation.engine.context.AutomationContext.getContextUrls(AutomationContext.java:477)
at 
org.wso2.mb.integration.common.utils.backend.MBIntegrationBaseTest.init(MBIntegrationBaseTest.java:59)
at 
org.wso2.mb.integration.tests.amqp.functional.AutoAcknowledgementsTestCase.prepare(AutoAcknowledgementsTestCase.java:61)


There are kind of similar issue reported regarding DOM usage with
threads [1]. This is happening when initialising each test with
following two lines.


automationContext = new AutomationContext("MB", userMode);

backendURL = automationContext.getContextUrls().getBackEndUrl();


Any idea on this?


Thanks,

Akalanka


[1] - https://issues.apache.org/jira/browse/XERCESJ-727




-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [EMM] iOS launcher icons for new agent

2015-11-04 Thread Inosh Perera
Hi Dilshan,

EMM 2.0.0 iOS agent does not yet have a launcher icon set for it. When
doing bit of a reading I realized, before iOS 7 images needs a naming
convention, such as 2x, 3x to support multiple devices, such as iPad and
iPhone[1]. Also after iOS 7 and 8, the way of doing seem to be with
xcassets. Please correct me if any of it is wrong and could you please tell
how this was handled in EMM 1.1.0 Agent so that the orientation
changes/display size changes are handled properly and where I can find the
relevant images.

[1].
http://stackoverflow.com/questions/26020979/xcode-6-xcassets-for-universal-image-support

Regards,
Inosh

-- 
Inosh Perera
Software Engineer, WSO2 Inc.
Tel: 0785293686
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Displaying the username & email of users in EMM console

2015-11-04 Thread Jerad Rutnam
Hi Kamidu,

It's a good idea. But I feels it will looks bit clutter since we have the
action icons. And even for an icon it will take some space. WDYT?

Cheers!
Jerad

On Thu, Nov 5, 2015 at 10:09 AM, Harshan Liyanage  wrote:

> Hi,
>
> Prabath also had a similar idea. That's also a good suggestion. So lets
> get the feedback from UX team.
>
> Thanks,
>
> Harshan Liyanage
> Software Engineer
> Mobile: *+94724423048*
> Email: hars...@wso2.com
> Blog : http://harshanliyanage.blogspot.com/
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
> On Thu, Nov 5, 2015 at 10:06 AM, Kamidu Punchihewa 
> wrote:
>
>> Hi,
>>
>> +1 for both ideas.
>> What if we replace the lable user name and email to a small icon like in
>> GitHub or Twitter.
>> @ Harshan When users using separate user store with predefined  users the
>> user name can be the email it self EMM had these kind of requirements In
>> that kind a scenarios sharon's suggestion is really valuable.
>>
>> Cheers
>>
>> Kamidu Sachith Punchihewa
>> *Software Engineer*
>> WSO2, Inc.
>> lean . enterprise . middleware
>> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>>
>>
>> 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, retransmit, 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.
>>
>> On Thu, Nov 5, 2015 at 9:27 AM, Harshan Liyanage 
>> wrote:
>>
>>> Hi all,
>>>
>>> Thanks for your valuable ideas. Yeah, we need to show the label for
>>> other properties, but since we are not showing them in the grid-view we can
>>> omit the labels from grid-view.  So +1 for both ideas.
>>>
>>> Regards,
>>>
>>> Harshan Liyanage
>>> Software Engineer
>>> Mobile: *+94724423048*
>>> Email: hars...@wso2.com
>>> Blog : http://harshanliyanage.blogspot.com/
>>> *WSO2, Inc. :** wso2.com *
>>> lean.enterprise.middleware.
>>>
>>> On Thu, Nov 5, 2015 at 8:59 AM, Sharon David  wrote:
>>>
 Hi,

 +1 to Jerad's suggestion.
 Small concern, if the mail is not mentioned its better to keep it blank
 without mentioning "unspecified" .

 On Thu, Nov 5, 2015 at 8:52 AM, Jerad Rutnam  wrote:

> Hi Harshan,
>
> Grid view here is an optional. So what I suggest is to enforce list
> view on load. And yes it's not necessary here to show the label "Username,
> Email", but for other values like "Role, Type" etc ... we have to show the
> label.
>
> So +1 for removing the labels for those 2 values in grid view.
>
> Cheers!
> Jerad
>
> On Thu, Nov 5, 2015 at 3:59 AM, Udara Rathnayake 
> wrote:
>
>> For ES we have done a similar UI fix to display name of the
>> asset/publisher, when there is a lengthy name.
>> Not sure it's going to suit here but you can have a look.
>>
>> On Wed, Nov 4, 2015 at 9:58 AM, Harshan Liyanage 
>> wrote:
>>
>>> Hi,
>>>
>>> We need to show the username & email of users in EMM console. But
>>> the existing UI theme can not be used to show lengthy user names [1]. My
>>> suggestion is to only show the username & email without their 
>>> text-labels
>>> (Username & Email).
>>>
>>> WDYT?
>>>
>>> [1]. https://wso2.org/jira/browse/EMM-926
>>>
>>> Thanks,
>>>
>>> Harshan Liyanage
>>> Software Engineer
>>> Mobile: *+94724423048*
>>> Email: hars...@wso2.com
>>> Blog : http://harshanliyanage.blogspot.com/
>>> *WSO2, Inc. :** wso2.com *
>>> lean.enterprise.middleware.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>



 --
 Sharon David
 Software Engineer - UI/UX  |   WSO2 Inc

 +94 777 668 411  |  shar...@wso2.com  |   http://wso2.com

>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> 

Re: [Dev] WSO2 Private PaaS 4.1.0 EC2 Demo AMI

2015-11-04 Thread Gayan Gunarathne
Great Stuff AKila!

I have some questions

1. How can user select the products that user need to deploy with the PPaaS?
2. Are we using embedded CEP for health stats publishing?Can user select to
external cep?
3. AFAIR DAS is running in the same PPaaS instance.How can user enable
disable the DAS metering and monitoring stuff?

May be we can have the demo image for only one region and if someone needs
in the other region he can copy from there.

Thanks,
Gayan

On Wed, Nov 4, 2015 at 8:17 PM, Akila Ravihansa Perera 
wrote:

> Hi,
>
> I've created an EC2 AMI preconfigured with WSO2 Private PaaS 4.1.0 and
> WSO2 cartridges. The demo AMI contains init scripts to configure PPaaS,
> ActiveMQ and Nginx load-balancer extension. You need to pass PPaaS specific
> parameters as user data when launching this demo AMI and the init script
> will configure the products, deploy artifacts and cartridges.
> It will also configure WSO2 DAS with PPaaS gadgets which is used to
> provide monitoring and metering related information.
>
>  This will be a very convenient method for users to get started with
> Private PaaS since it reduces most of the configuration related tasks. I've
> written a blog post [1] explaining how to setup WSO2 Private PaaS 4.1.0
> with this demo AMI.
>
> [1]
> http://blog.ravihansa3000.com/2015/11/deploying-wso2-private-paas-410-using.html
>
> Thanks.
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Admin/Tenant Admin Users cannot be filtered to get the SCIM ID

2015-11-04 Thread Chamila Wijayarathna
Hi Nadeesha,

When creating super admin or tenant admin users, they don't get created
with a SCIM ID since they are considered as special users in IS. Because of
this when listing users through scim, those users will not get listed.
But if you want, you can add a SCIM ID manually by updating the user and
then you will be able to list the also as SCIM Users.

When listing users of tenants, you need to use credentials of tenant admin
users. When sending SCIM request with admin:admin, you will only see users
at super tenant. Also for filter, don't use @tenant.com, because if u
logged in as tenant admin and list users, there you won't see user name
with @tenant.com, so your curl command to filter a user at tenant should be
as follows.

curl -v -k --user ad...@tenant.com:admin123
https://localhost:9443/wso2/scim/Users?filter=userNameEqtenant


Thanks

On Wed, Nov 4, 2015 at 8:40 PM, Nadeesha Meegoda  wrote:

> Hi Chamila,
>
> I'm using the embedded ldap which comes default in IS. In that SCIM comes
> enabled as default.
>
> On Wed, Nov 4, 2015 at 6:27 PM, Chamila Wijayarathna 
> wrote:
>
>> Hi Nadeesha,
>>
>> What is the value of SCIMEnabled configuration in your user-mgt.xml?
>>
>> Are you using LDAP or JDBC user store manager?
>>
>> Thanks
>>
>> On Wed, Nov 4, 2015 at 6:20 PM, Nadeesha Meegoda 
>> wrote:
>>
>>> Hi IS Team,
>>>
>>> I was trying to filter and get admin users SCIM ID and failed, even
>>> tried for tenant admin and still I couldn't filter and get the SCIM ID
>>>
>>> Command used :
>>> curl -v -k --user admin:admin
>>> https://localhost:9443/wso2/scim/Users?filter=userNameEqadmin
>>> curl -v -k --user admin:admin
>>> https://localhost:9443/wso2/scim/Users?filter=usernameeqten...@hello.com
>>>
>>> Searching through the jira found out that in the past, listing admin
>>> users as scim users were removed as per [1]
>>>
>>> How can we filter and get the admin/tenant admin SCIM ID?
>>>
>>> [1] - https://wso2.org/jira/browse/IDENTITY-503
>>>
>>> Thanks
>>>
>>> --
>>> *Nadeesha Meegoda*
>>> Software Engineer - QA
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> email : nadees...@wso2.com
>>> mobile: +94783639540
>>> <%2B94%2077%202273555>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Chamila Dilshan Wijayarathna,*
>> Software Engineer
>> Mobile:(+94)788193620
>> WSO2 Inc., http://wso2.com/
>>
>
>
>
> --
> *Nadeesha Meegoda*
> Software Engineer - QA
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> email : nadees...@wso2.com
> mobile: +94783639540
> <%2B94%2077%202273555>
>



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


Re: [Dev] [EMM] iOS launcher icons for new agent

2015-11-04 Thread Dilshan Edirisuriya
Hi Inosh,

Orientations is already handled in our project. For icons we have to add
those in xcassets. Only thing is it needs to have several sizes for
different devices with different OS. Sizes are listed in [1]. Just place it
in in place holders in the UI so it will work.

[1] -
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html

Regards,

Dilshan

On Thu, Nov 5, 2015 at 6:08 AM, Inosh Perera  wrote:

> Hi Dilshan,
>
> EMM 2.0.0 iOS agent does not yet have a launcher icon set for it. When
> doing bit of a reading I realized, before iOS 7 images needs a naming
> convention, such as 2x, 3x to support multiple devices, such as iPad and
> iPhone[1]. Also after iOS 7 and 8, the way of doing seem to be with
> xcassets. Please correct me if any of it is wrong and could you please tell
> how this was handled in EMM 1.1.0 Agent so that the orientation
> changes/display size changes are handled properly and where I can find the
> relevant images.
>
> [1].
> http://stackoverflow.com/questions/26020979/xcode-6-xcassets-for-universal-image-support
>
> Regards,
> Inosh
>
> --
> Inosh Perera
> Software Engineer, WSO2 Inc.
> Tel: 0785293686
>



-- 
Dilshan Edirisuriya
Senior Software Engineer - WSO2
Mob: + 94 777878905
http://wso2.com/
https://www.linkedin.com/profile/view?id=50486426
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM-200] Clustering documentation is not available

2015-11-04 Thread Chathurika De Silva
Hi

Any update on this please, as we need to go for deployment soon.

Thank You
Erandi

On Thu, Oct 29, 2015 at 11:06 AM, Samuel Gnaniah  wrote:

> Hi EMM team,
>
> Please provide some content for this.
>
> Thanks,
>
> *Samuel Gnaniah*
> Lead Technical Writer
>
> WSO2 (pvt.) Ltd.
> Colombo, Sri Lanka
> (+94) 773131798
>
> On Thu, Oct 29, 2015 at 10:25 AM, Chathurika De Silva <
> chathuri...@wso2.com> wrote:
>
>> Hi
>>
>> The clustering guide in [1] is not currently available. Can you please
>> provide us documentation on this as this is currently blocking our testing
>> process.
>>
>> Please find the jira reported on this [2]
>>
>> [1] https://docs.wso2.com/display/CLUSTER44x/Clustering+WSO2+Products
>> [2] https://wso2.org/jira/browse/DOCUMENTATION-2626
>>
>> Thank You
>> Erandi
>> --
>> *Chathurika Erandi*
>> Software Engineer,
>> WSO2 Inc.
>>
>> *E-mail:* chathuri...@wso2.com
>> *Mobile: *+94714 328 612
>> *Blog*: chathurikaerandi.blogspot.com
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "WSO2 Techcontent Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to techcontent-group+unsubscr...@wso2.com.
>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>
>
>


-- 
*Chathurika Erandi*
Software Engineer,
WSO2 Inc.

*E-mail:* chathuri...@wso2.com
*Mobile: *+94714 328 612
*Blog*: chathurikaerandi.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Displaying the username & email of users in EMM console

2015-11-04 Thread Kamidu Punchihewa
Hi,

+1 for both ideas.
What if we replace the lable user name and email to a small icon like in
GitHub or Twitter.
@ Harshan When users using separate user store with predefined  users the
user name can be the email it self EMM had these kind of requirements In
that kind a scenarios sharon's suggestion is really valuable.

Cheers

Kamidu Sachith Punchihewa
*Software Engineer*
WSO2, Inc.
lean . enterprise . middleware
Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>


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,
retransmit, 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.

On Thu, Nov 5, 2015 at 9:27 AM, Harshan Liyanage  wrote:

> Hi all,
>
> Thanks for your valuable ideas. Yeah, we need to show the label for other
> properties, but since we are not showing them in the grid-view we can omit
> the labels from grid-view.  So +1 for both ideas.
>
> Regards,
>
> Harshan Liyanage
> Software Engineer
> Mobile: *+94724423048*
> Email: hars...@wso2.com
> Blog : http://harshanliyanage.blogspot.com/
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
> On Thu, Nov 5, 2015 at 8:59 AM, Sharon David  wrote:
>
>> Hi,
>>
>> +1 to Jerad's suggestion.
>> Small concern, if the mail is not mentioned its better to keep it blank
>> without mentioning "unspecified" .
>>
>> On Thu, Nov 5, 2015 at 8:52 AM, Jerad Rutnam  wrote:
>>
>>> Hi Harshan,
>>>
>>> Grid view here is an optional. So what I suggest is to enforce list view
>>> on load. And yes it's not necessary here to show the label "Username,
>>> Email", but for other values like "Role, Type" etc ... we have to show the
>>> label.
>>>
>>> So +1 for removing the labels for those 2 values in grid view.
>>>
>>> Cheers!
>>> Jerad
>>>
>>> On Thu, Nov 5, 2015 at 3:59 AM, Udara Rathnayake 
>>> wrote:
>>>
 For ES we have done a similar UI fix to display name of the
 asset/publisher, when there is a lengthy name.
 Not sure it's going to suit here but you can have a look.

 On Wed, Nov 4, 2015 at 9:58 AM, Harshan Liyanage 
 wrote:

> Hi,
>
> We need to show the username & email of users in EMM console. But the
> existing UI theme can not be used to show lengthy user names [1]. My
> suggestion is to only show the username & email without their text-labels
> (Username & Email).
>
> WDYT?
>
> [1]. https://wso2.org/jira/browse/EMM-926
>
> Thanks,
>
> Harshan Liyanage
> Software Engineer
> Mobile: *+94724423048*
> Email: hars...@wso2.com
> Blog : http://harshanliyanage.blogspot.com/
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

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


>>>
>>>
>>> --
>>> *Jerad Rutnam*
>>> *Software Engineer*
>>>
>>> WSO2 Inc.
>>> lean | enterprise | middleware
>>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>>
>>
>>
>>
>> --
>> Sharon David
>> Software Engineer - UI/UX  |   WSO2 Inc
>>
>> +94 777 668 411  |  shar...@wso2.com  |   http://wso2.com
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Private PaaS 4.1.0 EC2 Demo AMI

2015-11-04 Thread Mariangela Hills
Hi Imesh,

+1 I have created a JIRA [1] to track this task.

[1] https://wso2.org/jira/browse/DOCUMENTATION-2672

Regards,
Mariangela


*Mariangela Hills*
Senior Technical Writer - WSO2, Inc. http://wso2.com
Committer and PMC member - Apache Stratos
email:mariang...@wso2.com | mobile: +94 773 500185

On Thu, Nov 5, 2015 at 1:07 AM, Imesh Gunaratne  wrote:

> Great work Akila!!
> Indeed this is the most convenient method for users to try out WSO2
> Private PaaS 4.1.0 on AWS.
>
> A quick question, have we published the AMIs publicly in different
> regions? If so we can have a page in the Wiki mentioning them.
>
> @Mari: Shall we add this guideline to the documentation?
>
> Thanks
>
> On Wed, Nov 4, 2015 at 6:47 AM, Akila Ravihansa Perera  > wrote:
>
>> Hi,
>>
>> I've created an EC2 AMI preconfigured with WSO2 Private PaaS 4.1.0 and
>> WSO2 cartridges. The demo AMI contains init scripts to configure PPaaS,
>> ActiveMQ and Nginx load-balancer extension. You need to pass PPaaS specific
>> parameters as user data when launching this demo AMI and the init script
>> will configure the products, deploy artifacts and cartridges.
>> It will also configure WSO2 DAS with PPaaS gadgets which is used to
>> provide monitoring and metering related information.
>>
>>  This will be a very convenient method for users to get started with
>> Private PaaS since it reduces most of the configuration related tasks. I've
>> written a blog post [1] explaining how to setup WSO2 Private PaaS 4.1.0
>> with this demo AMI.
>>
>> [1]
>> http://blog.ravihansa3000.com/2015/11/deploying-wso2-private-paas-410-using.html
>>
>> Thanks.
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.;  http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.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 Private PaaS 4.1.0 EC2 Demo AMI

2015-11-04 Thread Akila Ravihansa Perera
Hi Gayan,

Please see my answers inline.

1. How can user select the products that user need to deploy with the PPaaS?
>

All cartridges released with Private PaaS cartridges 4.1.1 are added at the
instance startup. But the applications are not deployed (will be in CREATED
state). It is up to the user to login to the console and deploy the apps as
desired.


> 2. Are we using embedded CEP for health stats publishing?Can user select
> to external cep?
>

It is currently configured in single JVM mode with embedded CEP. Since this
is only a demo instance, no need to go for an external CEP I think.


> 3. AFAIR DAS is running in the same PPaaS instance.How can user enable
> disable the DAS metering and monitoring stuff?
>

DAS is running in the same instance with a port offset. It is enabled by
default. Since this is a demo AMI it is better to showcase all possible
features we have.


>
> May be we can have the demo image for only one region and if someone needs
> in the other region he can copy from there.
>

Yes, but I'm not sure whether AMIs can be directly copied from a region to
another region. Anyway it  is only a matter of copying those script files
and artifacts to create a demo AMI.

Thanks.

-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

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


Re: [Dev] Displaying the username & email of users in EMM console

2015-11-04 Thread Jerad Rutnam
Hi Harshan,

Grid view here is an optional. So what I suggest is to enforce list view on
load. And yes it's not necessary here to show the label "Username, Email",
but for other values like "Role, Type" etc ... we have to show the label.

So +1 for removing the labels for those 2 values in grid view.

Cheers!
Jerad

On Thu, Nov 5, 2015 at 3:59 AM, Udara Rathnayake  wrote:

> For ES we have done a similar UI fix to display name of the
> asset/publisher, when there is a lengthy name.
> Not sure it's going to suit here but you can have a look.
>
> On Wed, Nov 4, 2015 at 9:58 AM, Harshan Liyanage  wrote:
>
>> Hi,
>>
>> We need to show the username & email of users in EMM console. But the
>> existing UI theme can not be used to show lengthy user names [1]. My
>> suggestion is to only show the username & email without their text-labels
>> (Username & Email).
>>
>> WDYT?
>>
>> [1]. https://wso2.org/jira/browse/EMM-926
>>
>> Thanks,
>>
>> Harshan Liyanage
>> Software Engineer
>> Mobile: *+94724423048*
>> Email: hars...@wso2.com
>> Blog : http://harshanliyanage.blogspot.com/
>> *WSO2, Inc. :** wso2.com *
>> lean.enterprise.middleware.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Jerad Rutnam*
*Software Engineer*

WSO2 Inc.
lean | enterprise | middleware
M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Displaying the username & email of users in EMM console

2015-11-04 Thread Sharon David
Hi,

+1 to Jerad's suggestion.
Small concern, if the mail is not mentioned its better to keep it blank
without mentioning "unspecified" .

On Thu, Nov 5, 2015 at 8:52 AM, Jerad Rutnam  wrote:

> Hi Harshan,
>
> Grid view here is an optional. So what I suggest is to enforce list view
> on load. And yes it's not necessary here to show the label "Username,
> Email", but for other values like "Role, Type" etc ... we have to show the
> label.
>
> So +1 for removing the labels for those 2 values in grid view.
>
> Cheers!
> Jerad
>
> On Thu, Nov 5, 2015 at 3:59 AM, Udara Rathnayake  wrote:
>
>> For ES we have done a similar UI fix to display name of the
>> asset/publisher, when there is a lengthy name.
>> Not sure it's going to suit here but you can have a look.
>>
>> On Wed, Nov 4, 2015 at 9:58 AM, Harshan Liyanage 
>> wrote:
>>
>>> Hi,
>>>
>>> We need to show the username & email of users in EMM console. But the
>>> existing UI theme can not be used to show lengthy user names [1]. My
>>> suggestion is to only show the username & email without their text-labels
>>> (Username & Email).
>>>
>>> WDYT?
>>>
>>> [1]. https://wso2.org/jira/browse/EMM-926
>>>
>>> Thanks,
>>>
>>> Harshan Liyanage
>>> Software Engineer
>>> Mobile: *+94724423048*
>>> Email: hars...@wso2.com
>>> Blog : http://harshanliyanage.blogspot.com/
>>> *WSO2, Inc. :** wso2.com *
>>> lean.enterprise.middleware.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>



-- 
Sharon David
Software Engineer - UI/UX  |   WSO2 Inc

+94 777 668 411  |  shar...@wso2.com  |   http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Displaying the username & email of users in EMM console

2015-11-04 Thread Harshan Liyanage
Hi,

Prabath also had a similar idea. That's also a good suggestion. So lets get
the feedback from UX team.

Thanks,

Harshan Liyanage
Software Engineer
Mobile: *+94724423048*
Email: hars...@wso2.com
Blog : http://harshanliyanage.blogspot.com/
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.

On Thu, Nov 5, 2015 at 10:06 AM, Kamidu Punchihewa 
wrote:

> Hi,
>
> +1 for both ideas.
> What if we replace the lable user name and email to a small icon like in
> GitHub or Twitter.
> @ Harshan When users using separate user store with predefined  users the
> user name can be the email it self EMM had these kind of requirements In
> that kind a scenarios sharon's suggestion is really valuable.
>
> Cheers
>
> Kamidu Sachith Punchihewa
> *Software Engineer*
> WSO2, Inc.
> lean . enterprise . middleware
> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>
>
> 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, retransmit, 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.
>
> On Thu, Nov 5, 2015 at 9:27 AM, Harshan Liyanage  wrote:
>
>> Hi all,
>>
>> Thanks for your valuable ideas. Yeah, we need to show the label for other
>> properties, but since we are not showing them in the grid-view we can omit
>> the labels from grid-view.  So +1 for both ideas.
>>
>> Regards,
>>
>> Harshan Liyanage
>> Software Engineer
>> Mobile: *+94724423048*
>> Email: hars...@wso2.com
>> Blog : http://harshanliyanage.blogspot.com/
>> *WSO2, Inc. :** wso2.com *
>> lean.enterprise.middleware.
>>
>> On Thu, Nov 5, 2015 at 8:59 AM, Sharon David  wrote:
>>
>>> Hi,
>>>
>>> +1 to Jerad's suggestion.
>>> Small concern, if the mail is not mentioned its better to keep it blank
>>> without mentioning "unspecified" .
>>>
>>> On Thu, Nov 5, 2015 at 8:52 AM, Jerad Rutnam  wrote:
>>>
 Hi Harshan,

 Grid view here is an optional. So what I suggest is to enforce list
 view on load. And yes it's not necessary here to show the label "Username,
 Email", but for other values like "Role, Type" etc ... we have to show the
 label.

 So +1 for removing the labels for those 2 values in grid view.

 Cheers!
 Jerad

 On Thu, Nov 5, 2015 at 3:59 AM, Udara Rathnayake 
 wrote:

> For ES we have done a similar UI fix to display name of the
> asset/publisher, when there is a lengthy name.
> Not sure it's going to suit here but you can have a look.
>
> On Wed, Nov 4, 2015 at 9:58 AM, Harshan Liyanage 
> wrote:
>
>> Hi,
>>
>> We need to show the username & email of users in EMM console. But the
>> existing UI theme can not be used to show lengthy user names [1]. My
>> suggestion is to only show the username & email without their text-labels
>> (Username & Email).
>>
>> WDYT?
>>
>> [1]. https://wso2.org/jira/browse/EMM-926
>>
>> Thanks,
>>
>> Harshan Liyanage
>> Software Engineer
>> Mobile: *+94724423048*
>> Email: hars...@wso2.com
>> Blog : http://harshanliyanage.blogspot.com/
>> *WSO2, Inc. :** wso2.com *
>> lean.enterprise.middleware.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Jerad Rutnam*
 *Software Engineer*

 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com

>>>
>>>
>>>
>>> --
>>> Sharon David
>>> Software Engineer - UI/UX  |   WSO2 Inc
>>>
>>> +94 777 668 411  |  shar...@wso2.com  |   http://wso2.com
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] iOS launcher icons for new agent

2015-11-04 Thread Inosh Perera
Hi Dilshan,


Got it. Do you have these images with you from EMM 1.1.0 agent. I couldn't
find these in the old agent repository.

Regards,
Inosh

On Thu, Nov 5, 2015 at 11:29 AM, Dilshan Edirisuriya 
wrote:

> Hi Inosh,
>
> Orientations is already handled in our project. For icons we have to add
> those in xcassets. Only thing is it needs to have several sizes for
> different devices with different OS. Sizes are listed in [1]. Just place it
> in in place holders in the UI so it will work.
>
> [1] -
> https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html
>
> Regards,
>
> Dilshan
>
> On Thu, Nov 5, 2015 at 6:08 AM, Inosh Perera  wrote:
>
>> Hi Dilshan,
>>
>> EMM 2.0.0 iOS agent does not yet have a launcher icon set for it. When
>> doing bit of a reading I realized, before iOS 7 images needs a naming
>> convention, such as 2x, 3x to support multiple devices, such as iPad and
>> iPhone[1]. Also after iOS 7 and 8, the way of doing seem to be with
>> xcassets. Please correct me if any of it is wrong and could you please tell
>> how this was handled in EMM 1.1.0 Agent so that the orientation
>> changes/display size changes are handled properly and where I can find the
>> relevant images.
>>
>> [1].
>> http://stackoverflow.com/questions/26020979/xcode-6-xcassets-for-universal-image-support
>>
>> Regards,
>> Inosh
>>
>> --
>> Inosh Perera
>> Software Engineer, WSO2 Inc.
>> Tel: 0785293686
>>
>
>
>
> --
> Dilshan Edirisuriya
> Senior Software Engineer - WSO2
> Mob: + 94 777878905
> http://wso2.com/
> https://www.linkedin.com/profile/view?id=50486426
>



-- 
Inosh Perera
Software Engineer, WSO2 Inc.
Tel: 0785293686
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Admin/Tenant Admin Users cannot be filtered to get the SCIM ID

2015-11-04 Thread Gayan Gunawardana
On Thu, Nov 5, 2015 at 11:26 AM, Chamila Wijayarathna 
wrote:

> Hi Nadeesha,
>
> When creating super admin or tenant admin users, they don't get created
> with a SCIM ID since they are considered as special users in IS. Because of
> this when listing users through scim, those users will not get listed.
> But if you want, you can add a SCIM ID manually by updating the user and
> then you will be able to list the also as SCIM Users.
>
> When listing users of tenants, you need to use credentials of tenant admin
> users. When sending SCIM request with admin:admin, you will only see users
> at super tenant. Also for filter, don't use @tenant.com, because if u
> logged in as tenant admin and list users, there you won't see user name
> with @tenant.com, so your curl command to filter a user at tenant should
> be as follows.
>
> curl -v -k --user ad...@tenant.com:admin123
> https://localhost:9443/wso2/scim/Users?filter=userNameEqtenant
> 
>
> Thanks
>
> On Wed, Nov 4, 2015 at 8:40 PM, Nadeesha Meegoda 
> wrote:
>
>> Hi Chamila,
>>
>> I'm using the embedded ldap which comes default in IS. In that SCIM comes
>> enabled as default.
>>
>> On Wed, Nov 4, 2015 at 6:27 PM, Chamila Wijayarathna 
>> wrote:
>>
>>> Hi Nadeesha,
>>>
>>> What is the value of SCIMEnabled configuration in your user-mgt.xml?
>>>
>>> Are you using LDAP or JDBC user store manager?
>>>
>> @Chamila

admin user is added in very fist server start up by calling
"addInitialAdminData" in AbstractUserStoreManager. In embedded ldap
scenario concrete "doAddUser" method will be invoked in
ReadWriteLDAPUserStoreManager so user will be directly added to user store
without going through SCIM listener (without going through any listener).
Since there is no SCIM listener engagement SCIM ID will not be added to
user store.

I am not sure about we are not getting SCIM ID just because of admin user
is a special user or kind of implementation we have right now.

Adding Johann.

>
>>> Thanks
>>>
>>> On Wed, Nov 4, 2015 at 6:20 PM, Nadeesha Meegoda 
>>> wrote:
>>>
 Hi IS Team,

 I was trying to filter and get admin users SCIM ID and failed, even
 tried for tenant admin and still I couldn't filter and get the SCIM ID

 Command used :
 curl -v -k --user admin:admin
 https://localhost:9443/wso2/scim/Users?filter=userNameEqadmin
 curl -v -k --user admin:admin
 https://localhost:9443/wso2/scim/Users?filter=usernameeqten...@hello.com

 Searching through the jira found out that in the past, listing admin
 users as scim users were removed as per [1]

 How can we filter and get the admin/tenant admin SCIM ID?

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

 Thanks

 --
 *Nadeesha Meegoda*
 Software Engineer - QA
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 email : nadees...@wso2.com
 mobile: +94783639540
 <%2B94%2077%202273555>

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


>>>
>>>
>>> --
>>> *Chamila Dilshan Wijayarathna,*
>>> Software Engineer
>>> Mobile:(+94)788193620
>>> WSO2 Inc., http://wso2.com/
>>>
>>
>>
>>
>> --
>> *Nadeesha Meegoda*
>> Software Engineer - QA
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> email : nadees...@wso2.com
>> mobile: +94783639540
>> <%2B94%2077%202273555>
>>
>
>
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>



-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [EMM]Switching view in login successful in iOS agent

2015-11-04 Thread Inosh Perera
Hi Dilshan,

I need to switch from LoginViewController to ViewController in the
Main.Storyboard when the login is successful. I'm getting view is not in
hierarchy issue when trying to do so as bellow. Do you know how this can be
resolved? Additionally I tried,   [self.window makeKeyAndVisible]; as well.
If I try the bellow code on applicationDidBecomeActive in AppDeligate.m the
view is shown properly. But the issue is only shown when calling inside the
callback method handleOpenURL.

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main"
bundle:nil];

UIViewController *unregisterViewController = [storyboard
instantiateViewControllerWithIdentifier:@"unregisterViewController"];

unregisterViewController.modalPresentationStyle =
UIModalPresentationFullScreen;

[self.window.rootViewController presentViewController:unregister
ViewController animated:NO completion:nil];


*iOSMDMAgent[605:101413] Warning: Attempt to present  on  whose view is not in the window
hierarchy!*

Regards,
Inosh

-- 
Inosh Perera
Software Engineer, WSO2 Inc.
Tel: 0785293686
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Office 365 SSO

2015-11-04 Thread Gayan Gunawardana
Hi Junior,

We are still in progress with Office 365 SSO integration with WSO2 IS. We
will let you know once we are done with it.

On Wed, Nov 4, 2015 at 10:55 PM, Júnior  wrote:

> Hi,
>
> Do you guys have a tutorial or documentation about Office 365 SSO with
> WSO2 IS?
>
> Att.
>
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Private PaaS 4.1.0 EC2 Demo AMI

2015-11-04 Thread Akila Ravihansa Perera
Hi Imesh,

The demo AMI is currently publicly available only in Asia Pacific
(Singapore) region.

AMI ID: ami-323dfa51
AMI Name: WSO2 Private PaaS 4.1.0 - Demo AMI


I've created a repo with all the scripts and template modules used to
create the demo AMI at [1]. Do we need to create AMI's for every region?
Since everything is scripted it's just a matter of copying those artifacts
to an instance in other regions.

[1] https://github.com/ravihansa3000/wso2ppaas-demo-ami

Thanks.



On Thu, Nov 5, 2015 at 1:07 AM, Imesh Gunaratne  wrote:

> Great work Akila!!
> Indeed this is the most convenient method for users to try out WSO2
> Private PaaS 4.1.0 on AWS.
>
> A quick question, have we published the AMIs publicly in different
> regions? If so we can have a page in the Wiki mentioning them.
>
> @Mari: Shall we add this guideline to the documentation?
>
> Thanks
>
> On Wed, Nov 4, 2015 at 6:47 AM, Akila Ravihansa Perera  > wrote:
>
>> Hi,
>>
>> I've created an EC2 AMI preconfigured with WSO2 Private PaaS 4.1.0 and
>> WSO2 cartridges. The demo AMI contains init scripts to configure PPaaS,
>> ActiveMQ and Nginx load-balancer extension. You need to pass PPaaS specific
>> parameters as user data when launching this demo AMI and the init script
>> will configure the products, deploy artifacts and cartridges.
>> It will also configure WSO2 DAS with PPaaS gadgets which is used to
>> provide monitoring and metering related information.
>>
>>  This will be a very convenient method for users to get started with
>> Private PaaS since it reduces most of the configuration related tasks. I've
>> written a blog post [1] explaining how to setup WSO2 Private PaaS 4.1.0
>> with this demo AMI.
>>
>> [1]
>> http://blog.ravihansa3000.com/2015/11/deploying-wso2-private-paas-410-using.html
>>
>> Thanks.
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.;  http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.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
>
>


-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

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


Re: [Dev] IOT-Server does not start-up correctly

2015-11-04 Thread Ayyoob Hamza
Hi Menaka,
Have raised this issue while back on https://wso2.org/jira/browse/CEP-1375.
Will send a pull request to merge the changes.

Thanks
Ayyoob

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Wed, Nov 4, 2015 at 2:57 PM, Menaka Jayawardena  wrote:

> Thank you Charitha
>
>
>
> On Wed, Nov 4, 2015 at 2:54 PM, Charitha Goonetilleke 
> wrote:
>
>> Hi Menaka,
>>
>> I found that, there are two versions of axis2 bundles available in the
>> pack and seems they are conflicting with each other. So need to figure out
>> what are the components that exporting those two different versions. I'll
>> fix them and update the thread.
>>
>>
>> Thanks & regards,
>> /charithag
>>
>> On Wed, Nov 4, 2015 at 2:48 PM, Menaka Jayawardena 
>> wrote:
>>
>>> Thank you very much Aruna.
>>>
>>> I'll try it.
>>>
>>> On Wed, Nov 4, 2015 at 2:27 PM, Aruna Karunarathna 
>>> wrote:
>>>


 On Wed, Nov 4, 2015 at 2:21 PM, Menaka Jayawardena 
 wrote:

> Hello,
>
> I cloned the repositories for the iot-server project and built it.
>
> Build order:
>
> 1. https://github.com/ayyoob/carbon-identity (git checkout master)
>
> 2. https://github.com/ruwany/carbon-apimgt (git checkout
> release-1.10.x)
>
> 3. https://github.com/ayyoob/carbon-store (git checkout build-pack)
>
> 4. https://github.com/ayyoob/carbon-device-mgt (git checkout
> build-pack)
>
> 5. https://github.com/wso2-incubator/iot-server-extensions (git
> checkout wso2con-sf)
>
> 6. https://github.com/ayyoob/carbon-event-processing (git checkout
> buildpack4)
>
> 7.  https://github.com/wso2-incubator/product-iot-server (git
> checkout master)
>
> Building was completed successfully.
>
> But when starting the iot-server, it starts-up and keep giving the
> following message.
>
> [2015-11-04 14:07:13,794]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization 
> is
> delayed due to the following unsatisfied items:
> [2015-11-04 14:07:13,795]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for
> required OSGiAxis2Service: org.wso2.carbon.event.processor.admin-2.0.9
>
> What would be the solution for this issue?
>

 Not sure about the repos and the order of the repos you have built.
 Seems like some required services are not present. You can get more
 insight running the server with -DosgiConsole and do some osgi service
 level debugging.

>
> Thank you very much.
> Best Redards
>
> Menaka Madushanka
>
> --
> Menaka Madushanka Jayawardena
> Software Engineering Intern
> men...@wso2.com
> Mobile:- +94 71 8851183/ +94 71 3505470
> LinkedIn - Menaka Jayawardena
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 *Aruna Sujith Karunarathna *| Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


>>>
>>>
>>>
>>> --
>>> Menaka Madushanka Jayawardena
>>> Software Engineering Intern
>>> men...@wso2.com
>>> Mobile:- +94 71 8851183/ +94 71 3505470
>>> LinkedIn - Menaka Jayawardena
>>> 
>>>
>>
>>
>>
>> --
>> *Charitha Goonetilleke*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 751 3669 <%2B94777513669>
>> Twitter:@CharithaWs , fb: charithag
>> , linkedin: charithag
>> 
>>
>
>
>
> --
> Menaka Madushanka Jayawardena
> Software Engineering Intern
> men...@wso2.com
> Mobile:- +94 71 8851183/ +94 71 3505470
> LinkedIn - Menaka Jayawardena
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Identifying the Back-channel request format in Spring Security SAML Single Logout

2015-11-04 Thread Indunil Upeksha Rathnayake
Hi,

I am working on the *SP initiated single logout* in identity server,
when *Spring
Security SAML extension* is involved.

In this scenario, a *back-channel request* has to be sent to Spring
Security SAML Single Logout endpoint from the identity server.

The issue is in identifying the necessary format of the back-channel logout
request that need to be sent from the IS to the Spring Security SAML
application. I've tried out sending requests in following [1] and [2]
formats. But received failed single logout response from with status code
[3] and [4] respectively.

I've herewith attached the requests which has been tested in IS. Really
appreciate any help on identifying the proper format.

[1]   SAML :

..


[2]  SAML SOAP binding :
http://schemas.xmlsoap.org/soap/envelope/
">


..




[3]  Response : Moved Temporarily, Status Code : 302

[4]  Response : Internal Server Error, Status Code : 500

Reference :

http://docs.spring.io/spring-security-saml/docs/current/reference/html/chapter-quick-start.html

https://docs.oasis-open.org/security/saml/v2.0/saml-bindings-2.0-os.pdf


Thanks and Regards

-- 

Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc
Emailindu...@wso2.com


soap_request
Description: Binary data


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


Re: [Dev] [APIM] [DAS] Error in publishing APIM stats to DAS

2015-11-04 Thread Sinthuja Ragendran
Hi Rushmin,

Spark JDBC connector first drops the existing table and recreates, but
anyhow to execute for the first time you need to have the table created.
Therefore please create the tables in the database by running mysql script
[1] which was given in the blog post.

[1]
https://github.com/ruks/WSO2-APIM_DAS_Analytics_CApp/tree/v1.0.2/dbscripts

Thanks,
Sinthuja.

On Wed, Nov 4, 2015 at 7:24 PM, Rushmin Fernando  wrote:

> Hi Devs,
>
> I was trying to publish APIM stats to DAS following this blog [1]
>
> And in DAS console I got the following error.
>
> [2015-11-04 12:10:08,163] ERROR
> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
> executing task: Can't call commit when autocommit=true
> java.lang.RuntimeException: Can't call commit when autocommit=true
> at
> org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:193)
> at org.apache.spark.sql.sources.InsertIntoDataSource.run(commands.scala:53)
> at
> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
> at
> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
> at
> org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
> at
> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
> at
> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
> at
> org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
> at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
> at
> org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
> at
> org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
> at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
> at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
> at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
> at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)
>
>
> Immediately after that error the below error was there.
>
> [2015-11-04 12:15:00,027] ERROR
> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
> executing task: Error while connecting to datasource WSO2AM_STATS_DB :
> Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't exist
> java.lang.RuntimeException: Error while connecting to datasource
> WSO2AM_STATS_DB : Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't
> exist
> at
> org.apache.spark.sql.jdbc.carbon.JDBCRelation.liftedTree1$1(JDBCRelation.scala:143)
> at
> org.apache.spark.sql.jdbc.carbon.JDBCRelation.(JDBCRelation.scala:137)
> at
> org.apache.spark.sql.jdbc.carbon.AnalyticsJDBCRelationProvider.createRelation(JDBCRelation.scala:119)
> at org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:269)
> at org.apache.spark.sql.sources.CreateTempTableUsing.run(ddl.scala:412)
> at
> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
> at
> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
> at
> org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
> at
> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
> at
> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
> at
> org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
> at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
> at
> org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
> at
> org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
> at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
> at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
> at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
> at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)
>
>
> As the error message says the 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY'
> table was gone !
>
> *I added the relaxAutoCommit=true property to the JDBC connection string
> to solve the first error message and stat feature worked.*
>
> Is the table deletion, a result of the first error (trying to commit when
> auto commit is enabled)
>
> Thanks
> Rushmin
>
>
>
>
> [1] -
> http://blog.rukspot.com/2015/09/publishing-apim-runtime-statistics-to.html
>
>
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> email : rush...@wso2.com
> mobile : +94772310855
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sinthuja Rajendran*
Associate Technical Lead
WSO2, Inc.:http://wso2.com

Blog: http://sinthu-rajan.blogspot.com/
Mobile: +94774273955
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] [DAS] Error in publishing APIM stats to DAS

2015-11-04 Thread Rushmin Fernando
Hi Sinthuja,

Yes the relaxAutoCommit parameter was not there in the beginning and the
table drop was probably due to that.

Having the relaxAutoCommit in place and recreating the tables solved the
issue :-)

Just wanted to know whether the auto-commit related error caused the table
drop.

Thank you for your clarification.

Thanks
Rushmin

On Wed, Nov 4, 2015 at 2:20 PM, Sinthuja Ragendran 
wrote:

> Hi Rushmin,
>
> Did you create the table after encountering the exception, and adding
> the relaxAutoCommit parameter as well? Because during the exception phase
> it could have got dropped, and now it's again searching for the non-
> existing table. Hence I wanted to make sure, you ran the mysql script now,
> and still seeing this exception.
>
> Thanks,
> Sinthuja.
>
> On Wed, Nov 4, 2015 at 7:46 PM, Rushmin Fernando  wrote:
>
>> Hi Sinthuja,
>>
>> Thanks for the quick response.
>>
>> I did create the tables as per the instructions :-)
>>
>> But 'API_REQUEST_SUMMARY' table was gone after the auto-commit error,
>> causing the subsequent error messages.
>>
>> I could reproduce it consistently.
>>
>> Thanks
>> Rushhmin
>>
>>
>> On Wed, Nov 4, 2015 at 2:09 PM, Sinthuja Ragendran 
>> wrote:
>>
>>> Hi Rushmin,
>>>
>>> Spark JDBC connector first drops the existing table and recreates, but
>>> anyhow to execute for the first time you need to have the table created.
>>> Therefore please create the tables in the database by running mysql script
>>> [1] which was given in the blog post.
>>>
>>> [1]
>>> https://github.com/ruks/WSO2-APIM_DAS_Analytics_CApp/tree/v1.0.2/dbscripts
>>>
>>> Thanks,
>>> Sinthuja.
>>>
>>> On Wed, Nov 4, 2015 at 7:24 PM, Rushmin Fernando 
>>> wrote:
>>>
 Hi Devs,

 I was trying to publish APIM stats to DAS following this blog [1]

 And in DAS console I got the following error.

 [2015-11-04 12:10:08,163] ERROR
 {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
 executing task: Can't call commit when autocommit=true
 java.lang.RuntimeException: Can't call commit when autocommit=true
 at
 org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:193)
 at
 org.apache.spark.sql.sources.InsertIntoDataSource.run(commands.scala:53)
 at
 org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
 at
 org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
 at
 org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
 at
 org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
 at
 org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
 at
 org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
 at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
 at
 org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
 at
 org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
 at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
 at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
 at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
 at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)


 Immediately after that error the below error was there.

 [2015-11-04 12:15:00,027] ERROR
 {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
 executing task: Error while connecting to datasource WSO2AM_STATS_DB :
 Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't exist
 java.lang.RuntimeException: Error while connecting to datasource
 WSO2AM_STATS_DB : Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't
 exist
 at
 org.apache.spark.sql.jdbc.carbon.JDBCRelation.liftedTree1$1(JDBCRelation.scala:143)
 at
 org.apache.spark.sql.jdbc.carbon.JDBCRelation.(JDBCRelation.scala:137)
 at
 org.apache.spark.sql.jdbc.carbon.AnalyticsJDBCRelationProvider.createRelation(JDBCRelation.scala:119)
 at org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:269)
 at org.apache.spark.sql.sources.CreateTempTableUsing.run(ddl.scala:412)
 at
 org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
 at
 org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
 at
 org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
 at
 org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
 at
 org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
 at
 org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
 at 

Re: [Dev] [APIM] [DAS] Error in publishing APIM stats to DAS

2015-11-04 Thread Sinthuja Ragendran
Hi Rushmin,

Did you create the table after encountering the exception, and adding
the relaxAutoCommit parameter as well? Because during the exception phase
it could have got dropped, and now it's again searching for the non-
existing table. Hence I wanted to make sure, you ran the mysql script now,
and still seeing this exception.

Thanks,
Sinthuja.

On Wed, Nov 4, 2015 at 7:46 PM, Rushmin Fernando  wrote:

> Hi Sinthuja,
>
> Thanks for the quick response.
>
> I did create the tables as per the instructions :-)
>
> But 'API_REQUEST_SUMMARY' table was gone after the auto-commit error,
> causing the subsequent error messages.
>
> I could reproduce it consistently.
>
> Thanks
> Rushhmin
>
>
> On Wed, Nov 4, 2015 at 2:09 PM, Sinthuja Ragendran 
> wrote:
>
>> Hi Rushmin,
>>
>> Spark JDBC connector first drops the existing table and recreates, but
>> anyhow to execute for the first time you need to have the table created.
>> Therefore please create the tables in the database by running mysql script
>> [1] which was given in the blog post.
>>
>> [1]
>> https://github.com/ruks/WSO2-APIM_DAS_Analytics_CApp/tree/v1.0.2/dbscripts
>>
>> Thanks,
>> Sinthuja.
>>
>> On Wed, Nov 4, 2015 at 7:24 PM, Rushmin Fernando 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> I was trying to publish APIM stats to DAS following this blog [1]
>>>
>>> And in DAS console I got the following error.
>>>
>>> [2015-11-04 12:10:08,163] ERROR
>>> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
>>> executing task: Can't call commit when autocommit=true
>>> java.lang.RuntimeException: Can't call commit when autocommit=true
>>> at
>>> org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:193)
>>> at
>>> org.apache.spark.sql.sources.InsertIntoDataSource.run(commands.scala:53)
>>> at
>>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
>>> at
>>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
>>> at
>>> org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
>>> at
>>> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
>>> at
>>> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
>>> at
>>> org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
>>> at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
>>> at
>>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
>>> at
>>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
>>> at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
>>> at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
>>> at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
>>> at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)
>>>
>>>
>>> Immediately after that error the below error was there.
>>>
>>> [2015-11-04 12:15:00,027] ERROR
>>> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
>>> executing task: Error while connecting to datasource WSO2AM_STATS_DB :
>>> Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't exist
>>> java.lang.RuntimeException: Error while connecting to datasource
>>> WSO2AM_STATS_DB : Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't
>>> exist
>>> at
>>> org.apache.spark.sql.jdbc.carbon.JDBCRelation.liftedTree1$1(JDBCRelation.scala:143)
>>> at
>>> org.apache.spark.sql.jdbc.carbon.JDBCRelation.(JDBCRelation.scala:137)
>>> at
>>> org.apache.spark.sql.jdbc.carbon.AnalyticsJDBCRelationProvider.createRelation(JDBCRelation.scala:119)
>>> at org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:269)
>>> at org.apache.spark.sql.sources.CreateTempTableUsing.run(ddl.scala:412)
>>> at
>>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
>>> at
>>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
>>> at
>>> org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
>>> at
>>> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
>>> at
>>> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
>>> at
>>> org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
>>> at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
>>> at
>>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
>>> at
>>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
>>> at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
>>> at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
>>> at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
>>> at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)
>>>
>>>
>>> As the error message says the 

[Dev] WSO2 Private PaaS 4.1.0 EC2 Demo AMI

2015-11-04 Thread Akila Ravihansa Perera
Hi,

I've created an EC2 AMI preconfigured with WSO2 Private PaaS 4.1.0 and WSO2
cartridges. The demo AMI contains init scripts to configure PPaaS, ActiveMQ
and Nginx load-balancer extension. You need to pass PPaaS specific
parameters as user data when launching this demo AMI and the init script
will configure the products, deploy artifacts and cartridges.
It will also configure WSO2 DAS with PPaaS gadgets which is used to provide
monitoring and metering related information.

 This will be a very convenient method for users to get started with
Private PaaS since it reduces most of the configuration related tasks. I've
written a blog post [1] explaining how to setup WSO2 Private PaaS 4.1.0
with this demo AMI.

[1]
http://blog.ravihansa3000.com/2015/11/deploying-wso2-private-paas-410-using.html

Thanks.

-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

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


[Dev] Displaying the username & email of users in EMM console

2015-11-04 Thread Harshan Liyanage
Hi,

We need to show the username & email of users in EMM console. But the
existing UI theme can not be used to show lengthy user names [1]. My
suggestion is to only show the username & email without their text-labels
(Username & Email).

WDYT?

[1]. https://wso2.org/jira/browse/EMM-926

Thanks,

Harshan Liyanage
Software Engineer
Mobile: *+94724423048*
Email: hars...@wso2.com
Blog : http://harshanliyanage.blogspot.com/
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Admin/Tenant Admin Users cannot be filtered to get the SCIM ID

2015-11-04 Thread Nadeesha Meegoda
Hi Chamila,

I'm using the embedded ldap which comes default in IS. In that SCIM comes
enabled as default.

On Wed, Nov 4, 2015 at 6:27 PM, Chamila Wijayarathna 
wrote:

> Hi Nadeesha,
>
> What is the value of SCIMEnabled configuration in your user-mgt.xml?
>
> Are you using LDAP or JDBC user store manager?
>
> Thanks
>
> On Wed, Nov 4, 2015 at 6:20 PM, Nadeesha Meegoda 
> wrote:
>
>> Hi IS Team,
>>
>> I was trying to filter and get admin users SCIM ID and failed, even tried
>> for tenant admin and still I couldn't filter and get the SCIM ID
>>
>> Command used :
>> curl -v -k --user admin:admin
>> https://localhost:9443/wso2/scim/Users?filter=userNameEqadmin
>> curl -v -k --user admin:admin
>> https://localhost:9443/wso2/scim/Users?filter=usernameeqten...@hello.com
>>
>> Searching through the jira found out that in the past, listing admin
>> users as scim users were removed as per [1]
>>
>> How can we filter and get the admin/tenant admin SCIM ID?
>>
>> [1] - https://wso2.org/jira/browse/IDENTITY-503
>>
>> Thanks
>>
>> --
>> *Nadeesha Meegoda*
>> Software Engineer - QA
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> email : nadees...@wso2.com
>> mobile: +94783639540
>> <%2B94%2077%202273555>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>



-- 
*Nadeesha Meegoda*
Software Engineer - QA
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
email : nadees...@wso2.com
mobile: +94783639540
<%2B94%2077%202273555>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] [DAS] Error in publishing APIM stats to DAS

2015-11-04 Thread Rushmin Fernando
Hi Sinthuja,

Thanks for the quick response.

I did create the tables as per the instructions :-)

But 'API_REQUEST_SUMMARY' table was gone after the auto-commit error,
causing the subsequent error messages.

I could reproduce it consistently.

Thanks
Rushhmin


On Wed, Nov 4, 2015 at 2:09 PM, Sinthuja Ragendran 
wrote:

> Hi Rushmin,
>
> Spark JDBC connector first drops the existing table and recreates, but
> anyhow to execute for the first time you need to have the table created.
> Therefore please create the tables in the database by running mysql script
> [1] which was given in the blog post.
>
> [1]
> https://github.com/ruks/WSO2-APIM_DAS_Analytics_CApp/tree/v1.0.2/dbscripts
>
> Thanks,
> Sinthuja.
>
> On Wed, Nov 4, 2015 at 7:24 PM, Rushmin Fernando  wrote:
>
>> Hi Devs,
>>
>> I was trying to publish APIM stats to DAS following this blog [1]
>>
>> And in DAS console I got the following error.
>>
>> [2015-11-04 12:10:08,163] ERROR
>> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
>> executing task: Can't call commit when autocommit=true
>> java.lang.RuntimeException: Can't call commit when autocommit=true
>> at
>> org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:193)
>> at
>> org.apache.spark.sql.sources.InsertIntoDataSource.run(commands.scala:53)
>> at
>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
>> at
>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
>> at
>> org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
>> at
>> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
>> at
>> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
>> at
>> org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
>> at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
>> at
>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
>> at
>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
>> at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
>> at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
>> at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
>> at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)
>>
>>
>> Immediately after that error the below error was there.
>>
>> [2015-11-04 12:15:00,027] ERROR
>> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
>> executing task: Error while connecting to datasource WSO2AM_STATS_DB :
>> Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't exist
>> java.lang.RuntimeException: Error while connecting to datasource
>> WSO2AM_STATS_DB : Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't
>> exist
>> at
>> org.apache.spark.sql.jdbc.carbon.JDBCRelation.liftedTree1$1(JDBCRelation.scala:143)
>> at
>> org.apache.spark.sql.jdbc.carbon.JDBCRelation.(JDBCRelation.scala:137)
>> at
>> org.apache.spark.sql.jdbc.carbon.AnalyticsJDBCRelationProvider.createRelation(JDBCRelation.scala:119)
>> at org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:269)
>> at org.apache.spark.sql.sources.CreateTempTableUsing.run(ddl.scala:412)
>> at
>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
>> at
>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
>> at
>> org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
>> at
>> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
>> at
>> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
>> at
>> org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
>> at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
>> at
>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
>> at
>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
>> at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
>> at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
>> at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
>> at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)
>>
>>
>> As the error message says the 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY'
>> table was gone !
>>
>> *I added the relaxAutoCommit=true property to the JDBC connection string
>> to solve the first error message and stat feature worked.*
>>
>> Is the table deletion, a result of the first error (trying to commit when
>> auto commit is enabled)
>>
>> Thanks
>> Rushmin
>>
>>
>>
>>
>> [1] -
>> http://blog.rukspot.com/2015/09/publishing-apim-runtime-statistics-to.html
>>
>>
>>
>> --
>> *Rushmin Fernando*
>> *Technical Lead*
>>
>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>
>> email : rush...@wso2.com
>> 

Re: [Dev] IOT-Server does not start-up correctly

2015-11-04 Thread Menaka Jayawardena
Thank you Ayyoob...!!!

On Wed, Nov 4, 2015 at 5:01 PM, Ayyoob Hamza  wrote:

> Hi Menaka,
> Have raised this issue while back on https://wso2.org/jira/browse/CEP-1375.
> Will send a pull request to merge the changes.
>
> Thanks
> Ayyoob
>
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
> On Wed, Nov 4, 2015 at 2:57 PM, Menaka Jayawardena 
> wrote:
>
>> Thank you Charitha
>>
>>
>>
>> On Wed, Nov 4, 2015 at 2:54 PM, Charitha Goonetilleke > > wrote:
>>
>>> Hi Menaka,
>>>
>>> I found that, there are two versions of axis2 bundles available in the
>>> pack and seems they are conflicting with each other. So need to figure out
>>> what are the components that exporting those two different versions. I'll
>>> fix them and update the thread.
>>>
>>>
>>> Thanks & regards,
>>> /charithag
>>>
>>> On Wed, Nov 4, 2015 at 2:48 PM, Menaka Jayawardena 
>>> wrote:
>>>
 Thank you very much Aruna.

 I'll try it.

 On Wed, Nov 4, 2015 at 2:27 PM, Aruna Karunarathna 
 wrote:

>
>
> On Wed, Nov 4, 2015 at 2:21 PM, Menaka Jayawardena 
> wrote:
>
>> Hello,
>>
>> I cloned the repositories for the iot-server project and built it.
>>
>> Build order:
>>
>> 1. https://github.com/ayyoob/carbon-identity (git checkout master)
>>
>> 2. https://github.com/ruwany/carbon-apimgt (git checkout
>> release-1.10.x)
>>
>> 3. https://github.com/ayyoob/carbon-store (git checkout build-pack)
>>
>> 4. https://github.com/ayyoob/carbon-device-mgt (git checkout
>> build-pack)
>>
>> 5. https://github.com/wso2-incubator/iot-server-extensions (git
>> checkout wso2con-sf)
>>
>> 6. https://github.com/ayyoob/carbon-event-processing (git checkout
>> buildpack4)
>>
>> 7.  https://github.com/wso2-incubator/product-iot-server (git
>> checkout master)
>>
>> Building was completed successfully.
>>
>> But when starting the iot-server, it starts-up and keep giving the
>> following message.
>>
>> [2015-11-04 14:07:13,794]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization 
>> is
>> delayed due to the following unsatisfied items:
>> [2015-11-04 14:07:13,795]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for
>> required OSGiAxis2Service: org.wso2.carbon.event.processor.admin-2.0.9
>>
>> What would be the solution for this issue?
>>
>
> Not sure about the repos and the order of the repos you have built.
> Seems like some required services are not present. You can get more
> insight running the server with -DosgiConsole and do some osgi service
> level debugging.
>
>>
>> Thank you very much.
>> Best Redards
>>
>> Menaka Madushanka
>>
>> --
>> Menaka Madushanka Jayawardena
>> Software Engineering Intern
>> men...@wso2.com
>> Mobile:- +94 71 8851183/ +94 71 3505470
>> LinkedIn - Menaka Jayawardena
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



 --
 Menaka Madushanka Jayawardena
 Software Engineering Intern
 men...@wso2.com
 Mobile:- +94 71 8851183/ +94 71 3505470
 LinkedIn - Menaka Jayawardena
 

>>>
>>>
>>>
>>> --
>>> *Charitha Goonetilleke*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 77 751 3669 <%2B94777513669>
>>> Twitter:@CharithaWs , fb: charithag
>>> , linkedin: charithag
>>> 
>>>
>>
>>
>>
>> --
>> Menaka Madushanka Jayawardena
>> Software Engineering Intern
>> men...@wso2.com
>> Mobile:- +94 71 8851183/ +94 71 3505470
>> LinkedIn - Menaka Jayawardena
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Menaka Madushanka Jayawardena
Software Engineering Intern
men...@wso2.com
Mobile:- +94 71 8851183/ +94 71 3505470
LinkedIn - Menaka Jayawardena 
___
Dev mailing list
Dev@wso2.org

Re: [Dev] [BRS] BRS 2.2.0 - snapshot goes OOM in clustered setup during load test

2015-11-04 Thread Milinda Perera
Hi Manoj,

Yes it contains hazelcast_3.5.2.wso2v1

Thanks,
Milinda

On Wed, Nov 4, 2015 at 5:13 PM, Manoj Kumara  wrote:

> Can you check the pack contain the Hazelcast 3.5.2 upgrade patch.
>
> Regards,
> Manoj
>
> *Manoj Kumara*
> WSO2 Inc. *| **lean. enterprise. middleware.*
> *Mobile:* +94 713 448188
>
> On Wed, Nov 4, 2015 at 11:30 AM, Milinda Perera  wrote:
>
>> Hi,
>>
>> When we perform load test for BRS 2.2.0 snapshot in 2 node cluster setup
>> (for [1]) with simple rule, we get following error and one node goes OOM
>> (Below log is from Master node. In another test worker node goes OOM and
>> ERROR {org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred
>> while running CacheCleanupTask is shown in the Master).
>>
>> FYI : Currently we have upgraded BRS to carbon kernel 4.4.2
>>
>> [2015-11-04 13:02:17,583] ERROR
>> {org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred while
>> running CacheCleanupTask
>> com.hazelcast.core.OperationTimeoutException: No response for 12 ms.
>> Aborting invocation! Invocation{ serviceName='hz:impl:mapService',
>> op=ClearOperation{}, partitionId=0, replicaIndex=0, tryCount=250,
>> tryPauseMillis=500, invokeCount=1, callTimeout=6,
>> target=Address[10.100.5.92]:4001, backupsExpected=0, backupsCompleted=0} No
>> response has been received!  backups-expected:0 backups-completed: 0
>> at
>> com.hazelcast.spi.impl.operationservice.impl.Invocation.newOperationTimeoutException(Invocation.java:491)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.waitForResponse(InvocationFuture.java:277)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:224)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:204)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.retryFailedPartitions(InvokeOnPartitions.java:131)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.invoke(InvokeOnPartitions.java:67)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl.invokeOnAllPartitions(OperationServiceImpl.java:326)
>> at
>> com.hazelcast.map.impl.proxy.MapProxySupport.clearInternal(MapProxySupport.java:914)
>> at
>> com.hazelcast.map.impl.proxy.MapProxyImpl.clearInternal(MapProxyImpl.java:71)
>> at
>> com.hazelcast.map.impl.proxy.MapProxyImpl.clear(MapProxyImpl.java:532)
>> at
>> org.wso2.carbon.core.clustering.hazelcast.HazelcastDistributedMapProvider$DistMap.clear(HazelcastDistributedMapProvider.java:172)
>> at org.wso2.carbon.caching.impl.CacheImpl.stop(CacheImpl.java:734)
>> at
>> org.wso2.carbon.caching.impl.CarbonCacheManager.removeCache(CarbonCacheManager.java:168)
>> at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:769)
>> at
>> org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:931)
>> at
>> org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61)
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>> 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)
>> at -- End remote and begin local stack-trace --.(Unknown
>> Source)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveApplicationResponse(InvocationFuture.java:384)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveApplicationResponseOrThrowException(InvocationFuture.java:334)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:225)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:204)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.retryFailedPartitions(InvokeOnPartitions.java:131)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.invoke(InvokeOnPartitions.java:67)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl.invokeOnAllPartitions(OperationServiceImpl.java:326)
>> at
>> com.hazelcast.map.impl.proxy.MapProxySupport.clearInternal(MapProxySupport.java:914)
>> at
>> com.hazelcast.map.impl.proxy.MapProxyImpl.clearInternal(MapProxyImpl.java:71)
>> at
>> com.hazelcast.map.impl.proxy.MapProxyImpl.clear(MapProxyImpl.java:532)
>> at
>> 

[Dev] [IS] Admin/Tenant Admin Users cannot be filtered to get the SCIM ID

2015-11-04 Thread Nadeesha Meegoda
Hi IS Team,

I was trying to filter and get admin users SCIM ID and failed, even tried
for tenant admin and still I couldn't filter and get the SCIM ID

Command used :
curl -v -k --user admin:admin
https://localhost:9443/wso2/scim/Users?filter=userNameEqadmin
curl -v -k --user admin:admin
https://localhost:9443/wso2/scim/Users?filter=usernameeqten...@hello.com

Searching through the jira found out that in the past, listing admin users
as scim users were removed as per [1]

How can we filter and get the admin/tenant admin SCIM ID?

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

Thanks

-- 
*Nadeesha Meegoda*
Software Engineer - QA
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
email : nadees...@wso2.com
mobile: +94783639540
<%2B94%2077%202273555>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BRS] BRS 2.2.0 - snapshot goes OOM in clustered setup during load test

2015-11-04 Thread Milinda Perera
Hi,

When we perform load test for BRS 2.2.0 snapshot in 2 node cluster setup
(for [1]) with simple rule, we get following error and one node goes OOM
(Below log is from Master node. In another test worker node goes OOM and
ERROR {org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred
while running CacheCleanupTask is shown in the Master).

FYI : Currently we have upgraded BRS to carbon kernel 4.4.2

[2015-11-04 13:02:17,583] ERROR
{org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred while
running CacheCleanupTask
com.hazelcast.core.OperationTimeoutException: No response for 12 ms.
Aborting invocation! Invocation{ serviceName='hz:impl:mapService',
op=ClearOperation{}, partitionId=0, replicaIndex=0, tryCount=250,
tryPauseMillis=500, invokeCount=1, callTimeout=6,
target=Address[10.100.5.92]:4001, backupsExpected=0, backupsCompleted=0} No
response has been received!  backups-expected:0 backups-completed: 0
at
com.hazelcast.spi.impl.operationservice.impl.Invocation.newOperationTimeoutException(Invocation.java:491)
at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.waitForResponse(InvocationFuture.java:277)
at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:224)
at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:204)
at
com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.retryFailedPartitions(InvokeOnPartitions.java:131)
at
com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.invoke(InvokeOnPartitions.java:67)
at
com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl.invokeOnAllPartitions(OperationServiceImpl.java:326)
at
com.hazelcast.map.impl.proxy.MapProxySupport.clearInternal(MapProxySupport.java:914)
at
com.hazelcast.map.impl.proxy.MapProxyImpl.clearInternal(MapProxyImpl.java:71)
at
com.hazelcast.map.impl.proxy.MapProxyImpl.clear(MapProxyImpl.java:532)
at
org.wso2.carbon.core.clustering.hazelcast.HazelcastDistributedMapProvider$DistMap.clear(HazelcastDistributedMapProvider.java:172)
at org.wso2.carbon.caching.impl.CacheImpl.stop(CacheImpl.java:734)
at
org.wso2.carbon.caching.impl.CarbonCacheManager.removeCache(CarbonCacheManager.java:168)
at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:769)
at
org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:931)
at
org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
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)
at -- End remote and begin local stack-trace --.(Unknown Source)
at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveApplicationResponse(InvocationFuture.java:384)
at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveApplicationResponseOrThrowException(InvocationFuture.java:334)
at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:225)
at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:204)
at
com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.retryFailedPartitions(InvokeOnPartitions.java:131)
at
com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.invoke(InvokeOnPartitions.java:67)
at
com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl.invokeOnAllPartitions(OperationServiceImpl.java:326)
at
com.hazelcast.map.impl.proxy.MapProxySupport.clearInternal(MapProxySupport.java:914)
at
com.hazelcast.map.impl.proxy.MapProxyImpl.clearInternal(MapProxyImpl.java:71)
at
com.hazelcast.map.impl.proxy.MapProxyImpl.clear(MapProxyImpl.java:532)
at
org.wso2.carbon.core.clustering.hazelcast.HazelcastDistributedMapProvider$DistMap.clear(HazelcastDistributedMapProvider.java:172)
at org.wso2.carbon.caching.impl.CacheImpl.stop(CacheImpl.java:734)
at
org.wso2.carbon.caching.impl.CarbonCacheManager.removeCache(CarbonCacheManager.java:168)
at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:769)
at
org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:931)
at
org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at

Re: [Dev] [BRS] BRS 2.2.0 - snapshot goes OOM in clustered setup during load test

2015-11-04 Thread Manoj Kumara
Ok, better to check the heap dumps then.

Regards,
Manoj

*Manoj Kumara*
WSO2 Inc. *| **lean. enterprise. middleware.*
*Mobile:* +94 713 448188

On Wed, Nov 4, 2015 at 11:49 AM, Milinda Perera  wrote:

> Hi Manoj,
>
> Yes it contains hazelcast_3.5.2.wso2v1
>
> Thanks,
> Milinda
>
> On Wed, Nov 4, 2015 at 5:13 PM, Manoj Kumara  wrote:
>
>> Can you check the pack contain the Hazelcast 3.5.2 upgrade patch.
>>
>> Regards,
>> Manoj
>>
>> *Manoj Kumara*
>> WSO2 Inc. *| **lean. enterprise. middleware.*
>> *Mobile:* +94 713 448188
>>
>> On Wed, Nov 4, 2015 at 11:30 AM, Milinda Perera 
>> wrote:
>>
>>> Hi,
>>>
>>> When we perform load test for BRS 2.2.0 snapshot in 2 node cluster setup
>>> (for [1]) with simple rule, we get following error and one node goes OOM
>>> (Below log is from Master node. In another test worker node goes OOM and
>>> ERROR {org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred
>>> while running CacheCleanupTask is shown in the Master).
>>>
>>> FYI : Currently we have upgraded BRS to carbon kernel 4.4.2
>>>
>>> [2015-11-04 13:02:17,583] ERROR
>>> {org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred while
>>> running CacheCleanupTask
>>> com.hazelcast.core.OperationTimeoutException: No response for 12 ms.
>>> Aborting invocation! Invocation{ serviceName='hz:impl:mapService',
>>> op=ClearOperation{}, partitionId=0, replicaIndex=0, tryCount=250,
>>> tryPauseMillis=500, invokeCount=1, callTimeout=6,
>>> target=Address[10.100.5.92]:4001, backupsExpected=0, backupsCompleted=0} No
>>> response has been received!  backups-expected:0 backups-completed: 0
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.Invocation.newOperationTimeoutException(Invocation.java:491)
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.waitForResponse(InvocationFuture.java:277)
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:224)
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:204)
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.retryFailedPartitions(InvokeOnPartitions.java:131)
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.invoke(InvokeOnPartitions.java:67)
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl.invokeOnAllPartitions(OperationServiceImpl.java:326)
>>> at
>>> com.hazelcast.map.impl.proxy.MapProxySupport.clearInternal(MapProxySupport.java:914)
>>> at
>>> com.hazelcast.map.impl.proxy.MapProxyImpl.clearInternal(MapProxyImpl.java:71)
>>> at
>>> com.hazelcast.map.impl.proxy.MapProxyImpl.clear(MapProxyImpl.java:532)
>>> at
>>> org.wso2.carbon.core.clustering.hazelcast.HazelcastDistributedMapProvider$DistMap.clear(HazelcastDistributedMapProvider.java:172)
>>> at org.wso2.carbon.caching.impl.CacheImpl.stop(CacheImpl.java:734)
>>> at
>>> org.wso2.carbon.caching.impl.CarbonCacheManager.removeCache(CarbonCacheManager.java:168)
>>> at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:769)
>>> at
>>> org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:931)
>>> at
>>> org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>>> 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)
>>> at -- End remote and begin local stack-trace --.(Unknown
>>> Source)
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveApplicationResponse(InvocationFuture.java:384)
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveApplicationResponseOrThrowException(InvocationFuture.java:334)
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:225)
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:204)
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.retryFailedPartitions(InvokeOnPartitions.java:131)
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.invoke(InvokeOnPartitions.java:67)
>>> at
>>> com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl.invokeOnAllPartitions(OperationServiceImpl.java:326)
>>> at

Re: [Dev] IOT-Server does not start-up correctly

2015-11-04 Thread Menaka Jayawardena
Problem solved :-)

On Wed, Nov 4, 2015 at 5:05 PM, Menaka Jayawardena  wrote:

> Thank you Ayyoob...!!!
>
> On Wed, Nov 4, 2015 at 5:01 PM, Ayyoob Hamza  wrote:
>
>> Hi Menaka,
>> Have raised this issue while back on
>> https://wso2.org/jira/browse/CEP-1375. Will send a pull request to merge
>> the changes.
>>
>> Thanks
>> Ayyoob
>>
>> *Ayyoob Hamza*
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>
>> On Wed, Nov 4, 2015 at 2:57 PM, Menaka Jayawardena 
>> wrote:
>>
>>> Thank you Charitha
>>>
>>>
>>>
>>> On Wed, Nov 4, 2015 at 2:54 PM, Charitha Goonetilleke <
>>> charit...@wso2.com> wrote:
>>>
 Hi Menaka,

 I found that, there are two versions of axis2 bundles available in the
 pack and seems they are conflicting with each other. So need to figure out
 what are the components that exporting those two different versions. I'll
 fix them and update the thread.


 Thanks & regards,
 /charithag

 On Wed, Nov 4, 2015 at 2:48 PM, Menaka Jayawardena 
 wrote:

> Thank you very much Aruna.
>
> I'll try it.
>
> On Wed, Nov 4, 2015 at 2:27 PM, Aruna Karunarathna 
> wrote:
>
>>
>>
>> On Wed, Nov 4, 2015 at 2:21 PM, Menaka Jayawardena 
>> wrote:
>>
>>> Hello,
>>>
>>> I cloned the repositories for the iot-server project and built it.
>>>
>>> Build order:
>>>
>>> 1. https://github.com/ayyoob/carbon-identity (git checkout master)
>>>
>>> 2. https://github.com/ruwany/carbon-apimgt (git checkout
>>> release-1.10.x)
>>>
>>> 3. https://github.com/ayyoob/carbon-store (git checkout build-pack)
>>>
>>> 4. https://github.com/ayyoob/carbon-device-mgt (git checkout
>>> build-pack)
>>>
>>> 5. https://github.com/wso2-incubator/iot-server-extensions (git
>>> checkout wso2con-sf)
>>>
>>> 6. https://github.com/ayyoob/carbon-event-processing (git checkout
>>> buildpack4)
>>>
>>> 7.  https://github.com/wso2-incubator/product-iot-server (git
>>> checkout master)
>>>
>>> Building was completed successfully.
>>>
>>> But when starting the iot-server, it starts-up and keep giving the
>>> following message.
>>>
>>> [2015-11-04 14:07:13,794]  WARN
>>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon 
>>> initialization is
>>> delayed due to the following unsatisfied items:
>>> [2015-11-04 14:07:13,795]  WARN
>>> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for
>>> required OSGiAxis2Service:
>>> org.wso2.carbon.event.processor.admin-2.0.9
>>>
>>> What would be the solution for this issue?
>>>
>>
>> Not sure about the repos and the order of the repos you have built.
>> Seems like some required services are not present. You can get more
>> insight running the server with -DosgiConsole and do some osgi service
>> level debugging.
>>
>>>
>>> Thank you very much.
>>> Best Redards
>>>
>>> Menaka Madushanka
>>>
>>> --
>>> Menaka Madushanka Jayawardena
>>> Software Engineering Intern
>>> men...@wso2.com
>>> Mobile:- +94 71 8851183/ +94 71 3505470
>>> LinkedIn - Menaka Jayawardena
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> Menaka Madushanka Jayawardena
> Software Engineering Intern
> men...@wso2.com
> Mobile:- +94 71 8851183/ +94 71 3505470
> LinkedIn - Menaka Jayawardena
> 
>



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

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

>>>
>>>
>>>
>>> --
>>> Menaka Madushanka Jayawardena
>>> Software Engineering Intern
>>> men...@wso2.com
>>> Mobile:- +94 71 8851183/ +94 71 3505470
>>> LinkedIn - Menaka Jayawardena
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Menaka 

[Dev] [APIM] [DAS] Error in publishing APIM stats to DAS

2015-11-04 Thread Rushmin Fernando
Hi Devs,

I was trying to publish APIM stats to DAS following this blog [1]

And in DAS console I got the following error.

[2015-11-04 12:10:08,163] ERROR
{org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
executing task: Can't call commit when autocommit=true
java.lang.RuntimeException: Can't call commit when autocommit=true
at
org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:193)
at org.apache.spark.sql.sources.InsertIntoDataSource.run(commands.scala:53)
at
org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
at
org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
at
org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
at
org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
at
org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
at
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
at
org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
at
org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)


Immediately after that error the below error was there.

[2015-11-04 12:15:00,027] ERROR
{org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
executing task: Error while connecting to datasource WSO2AM_STATS_DB :
Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't exist
java.lang.RuntimeException: Error while connecting to datasource
WSO2AM_STATS_DB : Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't
exist
at
org.apache.spark.sql.jdbc.carbon.JDBCRelation.liftedTree1$1(JDBCRelation.scala:143)
at
org.apache.spark.sql.jdbc.carbon.JDBCRelation.(JDBCRelation.scala:137)
at
org.apache.spark.sql.jdbc.carbon.AnalyticsJDBCRelationProvider.createRelation(JDBCRelation.scala:119)
at org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:269)
at org.apache.spark.sql.sources.CreateTempTableUsing.run(ddl.scala:412)
at
org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
at
org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
at
org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
at
org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
at
org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
at
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
at
org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
at
org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)


As the error message says the 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY'
table was gone !

*I added the relaxAutoCommit=true property to the JDBC connection string to
solve the first error message and stat feature worked.*

Is the table deletion, a result of the first error (trying to commit when
auto commit is enabled)

Thanks
Rushmin




[1] -
http://blog.rukspot.com/2015/09/publishing-apim-runtime-statistics-to.html



-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Admin/Tenant Admin Users cannot be filtered to get the SCIM ID

2015-11-04 Thread Chamila Wijayarathna
Hi Nadeesha,

What is the value of SCIMEnabled configuration in your user-mgt.xml?

Are you using LDAP or JDBC user store manager?

Thanks

On Wed, Nov 4, 2015 at 6:20 PM, Nadeesha Meegoda  wrote:

> Hi IS Team,
>
> I was trying to filter and get admin users SCIM ID and failed, even tried
> for tenant admin and still I couldn't filter and get the SCIM ID
>
> Command used :
> curl -v -k --user admin:admin
> https://localhost:9443/wso2/scim/Users?filter=userNameEqadmin
> curl -v -k --user admin:admin
> https://localhost:9443/wso2/scim/Users?filter=usernameeqten...@hello.com
>
> Searching through the jira found out that in the past, listing admin users
> as scim users were removed as per [1]
>
> How can we filter and get the admin/tenant admin SCIM ID?
>
> [1] - https://wso2.org/jira/browse/IDENTITY-503
>
> Thanks
>
> --
> *Nadeesha Meegoda*
> Software Engineer - QA
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> email : nadees...@wso2.com
> mobile: +94783639540
> <%2B94%2077%202273555>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [BRS] BRS 2.2.0 - snapshot goes OOM in clustered setup during load test

2015-11-04 Thread Manoj Kumara
Can you check the pack contain the Hazelcast 3.5.2 upgrade patch.

Regards,
Manoj

*Manoj Kumara*
WSO2 Inc. *| **lean. enterprise. middleware.*
*Mobile:* +94 713 448188

On Wed, Nov 4, 2015 at 11:30 AM, Milinda Perera  wrote:

> Hi,
>
> When we perform load test for BRS 2.2.0 snapshot in 2 node cluster setup
> (for [1]) with simple rule, we get following error and one node goes OOM
> (Below log is from Master node. In another test worker node goes OOM and
> ERROR {org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred
> while running CacheCleanupTask is shown in the Master).
>
> FYI : Currently we have upgraded BRS to carbon kernel 4.4.2
>
> [2015-11-04 13:02:17,583] ERROR
> {org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred while
> running CacheCleanupTask
> com.hazelcast.core.OperationTimeoutException: No response for 12 ms.
> Aborting invocation! Invocation{ serviceName='hz:impl:mapService',
> op=ClearOperation{}, partitionId=0, replicaIndex=0, tryCount=250,
> tryPauseMillis=500, invokeCount=1, callTimeout=6,
> target=Address[10.100.5.92]:4001, backupsExpected=0, backupsCompleted=0} No
> response has been received!  backups-expected:0 backups-completed: 0
> at
> com.hazelcast.spi.impl.operationservice.impl.Invocation.newOperationTimeoutException(Invocation.java:491)
> at
> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.waitForResponse(InvocationFuture.java:277)
> at
> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:224)
> at
> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:204)
> at
> com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.retryFailedPartitions(InvokeOnPartitions.java:131)
> at
> com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.invoke(InvokeOnPartitions.java:67)
> at
> com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl.invokeOnAllPartitions(OperationServiceImpl.java:326)
> at
> com.hazelcast.map.impl.proxy.MapProxySupport.clearInternal(MapProxySupport.java:914)
> at
> com.hazelcast.map.impl.proxy.MapProxyImpl.clearInternal(MapProxyImpl.java:71)
> at
> com.hazelcast.map.impl.proxy.MapProxyImpl.clear(MapProxyImpl.java:532)
> at
> org.wso2.carbon.core.clustering.hazelcast.HazelcastDistributedMapProvider$DistMap.clear(HazelcastDistributedMapProvider.java:172)
> at org.wso2.carbon.caching.impl.CacheImpl.stop(CacheImpl.java:734)
> at
> org.wso2.carbon.caching.impl.CarbonCacheManager.removeCache(CarbonCacheManager.java:168)
> at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:769)
> at
> org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:931)
> at
> org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> 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)
> at -- End remote and begin local stack-trace --.(Unknown
> Source)
> at
> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveApplicationResponse(InvocationFuture.java:384)
> at
> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveApplicationResponseOrThrowException(InvocationFuture.java:334)
> at
> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:225)
> at
> com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:204)
> at
> com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.retryFailedPartitions(InvokeOnPartitions.java:131)
> at
> com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.invoke(InvokeOnPartitions.java:67)
> at
> com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl.invokeOnAllPartitions(OperationServiceImpl.java:326)
> at
> com.hazelcast.map.impl.proxy.MapProxySupport.clearInternal(MapProxySupport.java:914)
> at
> com.hazelcast.map.impl.proxy.MapProxyImpl.clearInternal(MapProxyImpl.java:71)
> at
> com.hazelcast.map.impl.proxy.MapProxyImpl.clear(MapProxyImpl.java:532)
> at
> org.wso2.carbon.core.clustering.hazelcast.HazelcastDistributedMapProvider$DistMap.clear(HazelcastDistributedMapProvider.java:172)
> at org.wso2.carbon.caching.impl.CacheImpl.stop(CacheImpl.java:734)
> at
> 

Re: [Dev] [APIM] [DAS] Error in publishing APIM stats to DAS

2015-11-04 Thread Rushmin Fernando
Yes that explains ! Thanks Sinthuja :-)

On Wed, Nov 4, 2015 at 3:36 PM, Sinthuja Ragendran 
wrote:

> Hi Rushmin,
>
>
> On Wed, Nov 4, 2015 at 8:53 PM, Rushmin Fernando  wrote:
>
>> Hi Sinthuja,
>>
>> Yes the relaxAutoCommit parameter was not there in the beginning and the
>> table drop was probably due to that.
>>
>> Having the relaxAutoCommit in place and recreating the tables solved the
>> issue :-)
>>
>
> Great!
>
>
>>
>> Just wanted to know whether the auto-commit related error caused the
>> table drop.
>>
>
> No, it didn't cause the table to drop, the default behaviour it self will
> drop the table and create it again; but due to the exception, the creation
> part didn't happen and only dropping the table was executed.
>
> Thanks,
> Sinthuja.
>
>>
>> Thank you for your clarification.
>>
>> Thanks
>> Rushmin
>>
>> On Wed, Nov 4, 2015 at 2:20 PM, Sinthuja Ragendran 
>> wrote:
>>
>>> Hi Rushmin,
>>>
>>> Did you create the table after encountering the exception, and adding
>>> the relaxAutoCommit parameter as well? Because during the exception phase
>>> it could have got dropped, and now it's again searching for the non-
>>> existing table. Hence I wanted to make sure, you ran the mysql script now,
>>> and still seeing this exception.
>>>
>>> Thanks,
>>> Sinthuja.
>>>
>>> On Wed, Nov 4, 2015 at 7:46 PM, Rushmin Fernando 
>>> wrote:
>>>
 Hi Sinthuja,

 Thanks for the quick response.

 I did create the tables as per the instructions :-)

 But 'API_REQUEST_SUMMARY' table was gone after the auto-commit error,
 causing the subsequent error messages.

 I could reproduce it consistently.

 Thanks
 Rushhmin


 On Wed, Nov 4, 2015 at 2:09 PM, Sinthuja Ragendran 
 wrote:

> Hi Rushmin,
>
> Spark JDBC connector first drops the existing table and recreates, but
> anyhow to execute for the first time you need to have the table created.
> Therefore please create the tables in the database by running mysql script
> [1] which was given in the blog post.
>
> [1]
> https://github.com/ruks/WSO2-APIM_DAS_Analytics_CApp/tree/v1.0.2/dbscripts
>
> Thanks,
> Sinthuja.
>
> On Wed, Nov 4, 2015 at 7:24 PM, Rushmin Fernando 
> wrote:
>
>> Hi Devs,
>>
>> I was trying to publish APIM stats to DAS following this blog [1]
>>
>> And in DAS console I got the following error.
>>
>> [2015-11-04 12:10:08,163] ERROR
>> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
>> executing task: Can't call commit when autocommit=true
>> java.lang.RuntimeException: Can't call commit when autocommit=true
>> at
>> org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:193)
>> at
>> org.apache.spark.sql.sources.InsertIntoDataSource.run(commands.scala:53)
>> at
>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
>> at
>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
>> at
>> org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
>> at
>> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
>> at
>> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
>> at
>> org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
>> at
>> org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
>> at
>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
>> at
>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
>> at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
>> at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
>> at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
>> at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)
>>
>>
>> Immediately after that error the below error was there.
>>
>> [2015-11-04 12:15:00,027] ERROR
>> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
>> executing task: Error while connecting to datasource WSO2AM_STATS_DB :
>> Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't exist
>> java.lang.RuntimeException: Error while connecting to datasource
>> WSO2AM_STATS_DB : Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't
>> exist
>> at
>> org.apache.spark.sql.jdbc.carbon.JDBCRelation.liftedTree1$1(JDBCRelation.scala:143)
>> at
>> org.apache.spark.sql.jdbc.carbon.JDBCRelation.(JDBCRelation.scala:137)
>> at
>> org.apache.spark.sql.jdbc.carbon.AnalyticsJDBCRelationProvider.createRelation(JDBCRelation.scala:119)
>> at
>> 

Re: [Dev] [APIM] [DAS] Error in publishing APIM stats to DAS

2015-11-04 Thread Rushmin Fernando
@Rukshan, you may have to update the blog accordingly :-) (saying that
auto-commit should be disabled)

On Wed, Nov 4, 2015 at 3:23 PM, Rushmin Fernando  wrote:

> Hi Sinthuja,
>
> Yes the relaxAutoCommit parameter was not there in the beginning and the
> table drop was probably due to that.
>
> Having the relaxAutoCommit in place and recreating the tables solved the
> issue :-)
>
> Just wanted to know whether the auto-commit related error caused the table
> drop.
>
> Thank you for your clarification.
>
> Thanks
> Rushmin
>
> On Wed, Nov 4, 2015 at 2:20 PM, Sinthuja Ragendran 
> wrote:
>
>> Hi Rushmin,
>>
>> Did you create the table after encountering the exception, and adding
>> the relaxAutoCommit parameter as well? Because during the exception phase
>> it could have got dropped, and now it's again searching for the non-
>> existing table. Hence I wanted to make sure, you ran the mysql script now,
>> and still seeing this exception.
>>
>> Thanks,
>> Sinthuja.
>>
>> On Wed, Nov 4, 2015 at 7:46 PM, Rushmin Fernando 
>> wrote:
>>
>>> Hi Sinthuja,
>>>
>>> Thanks for the quick response.
>>>
>>> I did create the tables as per the instructions :-)
>>>
>>> But 'API_REQUEST_SUMMARY' table was gone after the auto-commit error,
>>> causing the subsequent error messages.
>>>
>>> I could reproduce it consistently.
>>>
>>> Thanks
>>> Rushhmin
>>>
>>>
>>> On Wed, Nov 4, 2015 at 2:09 PM, Sinthuja Ragendran 
>>> wrote:
>>>
 Hi Rushmin,

 Spark JDBC connector first drops the existing table and recreates, but
 anyhow to execute for the first time you need to have the table created.
 Therefore please create the tables in the database by running mysql script
 [1] which was given in the blog post.

 [1]
 https://github.com/ruks/WSO2-APIM_DAS_Analytics_CApp/tree/v1.0.2/dbscripts

 Thanks,
 Sinthuja.

 On Wed, Nov 4, 2015 at 7:24 PM, Rushmin Fernando 
 wrote:

> Hi Devs,
>
> I was trying to publish APIM stats to DAS following this blog [1]
>
> And in DAS console I got the following error.
>
> [2015-11-04 12:10:08,163] ERROR
> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
> executing task: Can't call commit when autocommit=true
> java.lang.RuntimeException: Can't call commit when autocommit=true
> at
> org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:193)
> at
> org.apache.spark.sql.sources.InsertIntoDataSource.run(commands.scala:53)
> at
> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
> at
> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
> at
> org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
> at
> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
> at
> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
> at
> org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
> at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
> at
> org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
> at
> org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
> at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
> at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
> at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
> at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)
>
>
> Immediately after that error the below error was there.
>
> [2015-11-04 12:15:00,027] ERROR
> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
> executing task: Error while connecting to datasource WSO2AM_STATS_DB :
> Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't exist
> java.lang.RuntimeException: Error while connecting to datasource
> WSO2AM_STATS_DB : Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't
> exist
> at
> org.apache.spark.sql.jdbc.carbon.JDBCRelation.liftedTree1$1(JDBCRelation.scala:143)
> at
> org.apache.spark.sql.jdbc.carbon.JDBCRelation.(JDBCRelation.scala:137)
> at
> org.apache.spark.sql.jdbc.carbon.AnalyticsJDBCRelationProvider.createRelation(JDBCRelation.scala:119)
> at
> org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:269)
> at org.apache.spark.sql.sources.CreateTempTableUsing.run(ddl.scala:412)
> at
> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
> at
> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
> at
> org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
> at

Re: [Dev] [APIM] [DAS] Error in publishing APIM stats to DAS

2015-11-04 Thread Rukshan Premathunga
Hi Rushmin/Sinthuja,

I'll update the blog accordingly. Thanks for Pointing the issue and
Solution.

Thanks and Regards.

On Wed, Nov 4, 2015 at 9:09 PM, Rushmin Fernando  wrote:

> Yes that explains ! Thanks Sinthuja :-)
>
> On Wed, Nov 4, 2015 at 3:36 PM, Sinthuja Ragendran 
> wrote:
>
>> Hi Rushmin,
>>
>>
>> On Wed, Nov 4, 2015 at 8:53 PM, Rushmin Fernando 
>> wrote:
>>
>>> Hi Sinthuja,
>>>
>>> Yes the relaxAutoCommit parameter was not there in the beginning and the
>>> table drop was probably due to that.
>>>
>>> Having the relaxAutoCommit in place and recreating the tables solved the
>>> issue :-)
>>>
>>
>> Great!
>>
>>
>>>
>>> Just wanted to know whether the auto-commit related error caused the
>>> table drop.
>>>
>>
>> No, it didn't cause the table to drop, the default behaviour it self will
>> drop the table and create it again; but due to the exception, the creation
>> part didn't happen and only dropping the table was executed.
>>
>> Thanks,
>> Sinthuja.
>>
>>>
>>> Thank you for your clarification.
>>>
>>> Thanks
>>> Rushmin
>>>
>>> On Wed, Nov 4, 2015 at 2:20 PM, Sinthuja Ragendran 
>>> wrote:
>>>
 Hi Rushmin,

 Did you create the table after encountering the exception, and adding
 the relaxAutoCommit parameter as well? Because during the exception phase
 it could have got dropped, and now it's again searching for the non-
 existing table. Hence I wanted to make sure, you ran the mysql script now,
 and still seeing this exception.

 Thanks,
 Sinthuja.

 On Wed, Nov 4, 2015 at 7:46 PM, Rushmin Fernando 
 wrote:

> Hi Sinthuja,
>
> Thanks for the quick response.
>
> I did create the tables as per the instructions :-)
>
> But 'API_REQUEST_SUMMARY' table was gone after the auto-commit error,
> causing the subsequent error messages.
>
> I could reproduce it consistently.
>
> Thanks
> Rushhmin
>
>
> On Wed, Nov 4, 2015 at 2:09 PM, Sinthuja Ragendran 
> wrote:
>
>> Hi Rushmin,
>>
>> Spark JDBC connector first drops the existing table and recreates,
>> but anyhow to execute for the first time you need to have the table
>> created. Therefore please create the tables in the database by running
>> mysql script [1] which was given in the blog post.
>>
>> [1]
>> https://github.com/ruks/WSO2-APIM_DAS_Analytics_CApp/tree/v1.0.2/dbscripts
>>
>> Thanks,
>> Sinthuja.
>>
>> On Wed, Nov 4, 2015 at 7:24 PM, Rushmin Fernando 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> I was trying to publish APIM stats to DAS following this blog [1]
>>>
>>> And in DAS console I got the following error.
>>>
>>> [2015-11-04 12:10:08,163] ERROR
>>> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
>>> executing task: Can't call commit when autocommit=true
>>> java.lang.RuntimeException: Can't call commit when autocommit=true
>>> at
>>> org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:193)
>>> at
>>> org.apache.spark.sql.sources.InsertIntoDataSource.run(commands.scala:53)
>>> at
>>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
>>> at
>>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
>>> at
>>> org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
>>> at
>>> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
>>> at
>>> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
>>> at
>>> org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
>>> at
>>> org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
>>> at
>>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
>>> at
>>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
>>> at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
>>> at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
>>> at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
>>> at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)
>>>
>>>
>>> Immediately after that error the below error was there.
>>>
>>> [2015-11-04 12:15:00,027] ERROR
>>> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
>>> executing task: Error while connecting to datasource WSO2AM_STATS_DB :
>>> Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't exist
>>> java.lang.RuntimeException: Error while connecting to datasource
>>> WSO2AM_STATS_DB : Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't
>>> exist
>>> 

Re: [Dev] [APIM] [DAS] Error in publishing APIM stats to DAS

2015-11-04 Thread Sinthuja Ragendran
Hi Rushmin,


On Wed, Nov 4, 2015 at 8:53 PM, Rushmin Fernando  wrote:

> Hi Sinthuja,
>
> Yes the relaxAutoCommit parameter was not there in the beginning and the
> table drop was probably due to that.
>
> Having the relaxAutoCommit in place and recreating the tables solved the
> issue :-)
>

Great!


>
> Just wanted to know whether the auto-commit related error caused the table
> drop.
>

No, it didn't cause the table to drop, the default behaviour it self will
drop the table and create it again; but due to the exception, the creation
part didn't happen and only dropping the table was executed.

Thanks,
Sinthuja.

>
> Thank you for your clarification.
>
> Thanks
> Rushmin
>
> On Wed, Nov 4, 2015 at 2:20 PM, Sinthuja Ragendran 
> wrote:
>
>> Hi Rushmin,
>>
>> Did you create the table after encountering the exception, and adding
>> the relaxAutoCommit parameter as well? Because during the exception phase
>> it could have got dropped, and now it's again searching for the non-
>> existing table. Hence I wanted to make sure, you ran the mysql script now,
>> and still seeing this exception.
>>
>> Thanks,
>> Sinthuja.
>>
>> On Wed, Nov 4, 2015 at 7:46 PM, Rushmin Fernando 
>> wrote:
>>
>>> Hi Sinthuja,
>>>
>>> Thanks for the quick response.
>>>
>>> I did create the tables as per the instructions :-)
>>>
>>> But 'API_REQUEST_SUMMARY' table was gone after the auto-commit error,
>>> causing the subsequent error messages.
>>>
>>> I could reproduce it consistently.
>>>
>>> Thanks
>>> Rushhmin
>>>
>>>
>>> On Wed, Nov 4, 2015 at 2:09 PM, Sinthuja Ragendran 
>>> wrote:
>>>
 Hi Rushmin,

 Spark JDBC connector first drops the existing table and recreates, but
 anyhow to execute for the first time you need to have the table created.
 Therefore please create the tables in the database by running mysql script
 [1] which was given in the blog post.

 [1]
 https://github.com/ruks/WSO2-APIM_DAS_Analytics_CApp/tree/v1.0.2/dbscripts

 Thanks,
 Sinthuja.

 On Wed, Nov 4, 2015 at 7:24 PM, Rushmin Fernando 
 wrote:

> Hi Devs,
>
> I was trying to publish APIM stats to DAS following this blog [1]
>
> And in DAS console I got the following error.
>
> [2015-11-04 12:10:08,163] ERROR
> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
> executing task: Can't call commit when autocommit=true
> java.lang.RuntimeException: Can't call commit when autocommit=true
> at
> org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:193)
> at
> org.apache.spark.sql.sources.InsertIntoDataSource.run(commands.scala:53)
> at
> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
> at
> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
> at
> org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
> at
> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
> at
> org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
> at
> org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
> at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
> at
> org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
> at
> org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
> at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
> at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
> at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
> at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)
>
>
> Immediately after that error the below error was there.
>
> [2015-11-04 12:15:00,027] ERROR
> {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
> executing task: Error while connecting to datasource WSO2AM_STATS_DB :
> Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't exist
> java.lang.RuntimeException: Error while connecting to datasource
> WSO2AM_STATS_DB : Table 'TP_WSO2AM_STATS_DB.API_REQUEST_SUMMARY' doesn't
> exist
> at
> org.apache.spark.sql.jdbc.carbon.JDBCRelation.liftedTree1$1(JDBCRelation.scala:143)
> at
> org.apache.spark.sql.jdbc.carbon.JDBCRelation.(JDBCRelation.scala:137)
> at
> org.apache.spark.sql.jdbc.carbon.AnalyticsJDBCRelationProvider.createRelation(JDBCRelation.scala:119)
> at
> org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:269)
> at org.apache.spark.sql.sources.CreateTempTableUsing.run(ddl.scala:412)
> at
> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
> at
> 

[Dev] Office 365 SSO

2015-11-04 Thread Júnior
Hi,

Do you guys have a tutorial or documentation about Office 365 SSO with WSO2
IS?

Att.

-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] [DAS] Error in publishing APIM stats to DAS

2015-11-04 Thread Niranda Perera
Hi Rushmin,

yes, what Sinthuja explained is correct. this is a known bug in the current
CarbonJDBC connector and it is expected to fixed in the upcoming DAS patch
release.

rgds

On Wed, Nov 4, 2015 at 9:46 PM, Rukshan Premathunga 
wrote:

> Hi Rushmin/Sinthuja,
>
> I'll update the blog accordingly. Thanks for Pointing the issue and
> Solution.
>
> Thanks and Regards.
>
> On Wed, Nov 4, 2015 at 9:09 PM, Rushmin Fernando  wrote:
>
>> Yes that explains ! Thanks Sinthuja :-)
>>
>> On Wed, Nov 4, 2015 at 3:36 PM, Sinthuja Ragendran 
>> wrote:
>>
>>> Hi Rushmin,
>>>
>>>
>>> On Wed, Nov 4, 2015 at 8:53 PM, Rushmin Fernando 
>>> wrote:
>>>
 Hi Sinthuja,

 Yes the relaxAutoCommit parameter was not there in the beginning and
 the table drop was probably due to that.

 Having the relaxAutoCommit in place and recreating the tables solved
 the issue :-)

>>>
>>> Great!
>>>
>>>

 Just wanted to know whether the auto-commit related error caused the
 table drop.

>>>
>>> No, it didn't cause the table to drop, the default behaviour it self
>>> will drop the table and create it again; but due to the exception, the
>>> creation part didn't happen and only dropping the table was executed.
>>>
>>> Thanks,
>>> Sinthuja.
>>>

 Thank you for your clarification.

 Thanks
 Rushmin

 On Wed, Nov 4, 2015 at 2:20 PM, Sinthuja Ragendran 
 wrote:

> Hi Rushmin,
>
> Did you create the table after encountering the exception, and adding
> the relaxAutoCommit parameter as well? Because during the exception phase
> it could have got dropped, and now it's again searching for the non-
> existing table. Hence I wanted to make sure, you ran the mysql script now,
> and still seeing this exception.
>
> Thanks,
> Sinthuja.
>
> On Wed, Nov 4, 2015 at 7:46 PM, Rushmin Fernando 
> wrote:
>
>> Hi Sinthuja,
>>
>> Thanks for the quick response.
>>
>> I did create the tables as per the instructions :-)
>>
>> But 'API_REQUEST_SUMMARY' table was gone after the auto-commit error,
>> causing the subsequent error messages.
>>
>> I could reproduce it consistently.
>>
>> Thanks
>> Rushhmin
>>
>>
>> On Wed, Nov 4, 2015 at 2:09 PM, Sinthuja Ragendran > > wrote:
>>
>>> Hi Rushmin,
>>>
>>> Spark JDBC connector first drops the existing table and recreates,
>>> but anyhow to execute for the first time you need to have the table
>>> created. Therefore please create the tables in the database by running
>>> mysql script [1] which was given in the blog post.
>>>
>>> [1]
>>> https://github.com/ruks/WSO2-APIM_DAS_Analytics_CApp/tree/v1.0.2/dbscripts
>>>
>>> Thanks,
>>> Sinthuja.
>>>
>>> On Wed, Nov 4, 2015 at 7:24 PM, Rushmin Fernando 
>>> wrote:
>>>
 Hi Devs,

 I was trying to publish APIM stats to DAS following this blog [1]

 And in DAS console I got the following error.

 [2015-11-04 12:10:08,163] ERROR
 {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter} -  Error in
 executing task: Can't call commit when autocommit=true
 java.lang.RuntimeException: Can't call commit when autocommit=true
 at
 org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:193)
 at
 org.apache.spark.sql.sources.InsertIntoDataSource.run(commands.scala:53)
 at
 org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)
 at
 org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)
 at
 org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)
 at
 org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
 at
 org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:88)
 at
 org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
 at
 org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)
 at
 org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)
 at
 org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)
 at org.apache.spark.sql.DataFrame.(DataFrame.scala:144)
 at org.apache.spark.sql.DataFrame.(DataFrame.scala:128)
 at org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)
 at org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)


 Immediately after that error the below error was there.

 [2015-11-04 

[Dev] Two-way dependencies in G-REG 5.1

2015-11-04 Thread John Hawkins
Hi Folks,

I just downloaded and ran G-REG 5.1 - nice UI !!

I then created two REST API's (API1 and API2)
I associated API1 with API2 ( API1 is 'owned by' API2)
I then drilled down from  API1  to the impact analysis which showed the
dependency that correctly says API1 is owned by API2.

However, when I drill down from API2 to the dependency analysis it doesn't
show that API2 owns API1.

To my mind it should, shouldn't it ? After all owner and ownee is a two-way
relation?

thanks,
John.

John Hawkins
Director: Solutions Architecture
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IOT-Server does not start-up correctly

2015-11-04 Thread Menaka Jayawardena
Thank you very much Aruna.

I'll try it.

On Wed, Nov 4, 2015 at 2:27 PM, Aruna Karunarathna  wrote:

>
>
> On Wed, Nov 4, 2015 at 2:21 PM, Menaka Jayawardena 
> wrote:
>
>> Hello,
>>
>> I cloned the repositories for the iot-server project and built it.
>>
>> Build order:
>>
>> 1. https://github.com/ayyoob/carbon-identity (git checkout master)
>>
>> 2. https://github.com/ruwany/carbon-apimgt (git checkout release-1.10.x)
>>
>> 3. https://github.com/ayyoob/carbon-store (git checkout build-pack)
>>
>> 4. https://github.com/ayyoob/carbon-device-mgt (git checkout build-pack)
>>
>> 5. https://github.com/wso2-incubator/iot-server-extensions (git checkout
>> wso2con-sf)
>>
>> 6. https://github.com/ayyoob/carbon-event-processing (git checkout
>> buildpack4)
>>
>> 7.  https://github.com/wso2-incubator/product-iot-server (git checkout
>> master)
>>
>> Building was completed successfully.
>>
>> But when starting the iot-server, it starts-up and keep giving the
>> following message.
>>
>> [2015-11-04 14:07:13,794]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
>> delayed due to the following unsatisfied items:
>> [2015-11-04 14:07:13,795]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for
>> required OSGiAxis2Service: org.wso2.carbon.event.processor.admin-2.0.9
>>
>> What would be the solution for this issue?
>>
>
> Not sure about the repos and the order of the repos you have built.
> Seems like some required services are not present. You can get more
> insight running the server with -DosgiConsole and do some osgi service
> level debugging.
>
>>
>> Thank you very much.
>> Best Redards
>>
>> Menaka Madushanka
>>
>> --
>> Menaka Madushanka Jayawardena
>> Software Engineering Intern
>> men...@wso2.com
>> Mobile:- +94 71 8851183/ +94 71 3505470
>> LinkedIn - Menaka Jayawardena
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
Menaka Madushanka Jayawardena
Software Engineering Intern
men...@wso2.com
Mobile:- +94 71 8851183/ +94 71 3505470
LinkedIn - Menaka Jayawardena 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IOT-Server does not start-up correctly

2015-11-04 Thread Charitha Goonetilleke
Hi Menaka,

I found that, there are two versions of axis2 bundles available in the pack
and seems they are conflicting with each other. So need to figure out what
are the components that exporting those two different versions. I'll fix
them and update the thread.


Thanks & regards,
/charithag

On Wed, Nov 4, 2015 at 2:48 PM, Menaka Jayawardena  wrote:

> Thank you very much Aruna.
>
> I'll try it.
>
> On Wed, Nov 4, 2015 at 2:27 PM, Aruna Karunarathna  wrote:
>
>>
>>
>> On Wed, Nov 4, 2015 at 2:21 PM, Menaka Jayawardena 
>> wrote:
>>
>>> Hello,
>>>
>>> I cloned the repositories for the iot-server project and built it.
>>>
>>> Build order:
>>>
>>> 1. https://github.com/ayyoob/carbon-identity (git checkout master)
>>>
>>> 2. https://github.com/ruwany/carbon-apimgt (git checkout release-1.10.x)
>>>
>>> 3. https://github.com/ayyoob/carbon-store (git checkout build-pack)
>>>
>>> 4. https://github.com/ayyoob/carbon-device-mgt (git checkout build-pack)
>>>
>>> 5. https://github.com/wso2-incubator/iot-server-extensions (git
>>> checkout wso2con-sf)
>>>
>>> 6. https://github.com/ayyoob/carbon-event-processing (git checkout
>>> buildpack4)
>>>
>>> 7.  https://github.com/wso2-incubator/product-iot-server (git checkout
>>> master)
>>>
>>> Building was completed successfully.
>>>
>>> But when starting the iot-server, it starts-up and keep giving the
>>> following message.
>>>
>>> [2015-11-04 14:07:13,794]  WARN
>>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
>>> delayed due to the following unsatisfied items:
>>> [2015-11-04 14:07:13,795]  WARN
>>> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for
>>> required OSGiAxis2Service: org.wso2.carbon.event.processor.admin-2.0.9
>>>
>>> What would be the solution for this issue?
>>>
>>
>> Not sure about the repos and the order of the repos you have built.
>> Seems like some required services are not present. You can get more
>> insight running the server with -DosgiConsole and do some osgi service
>> level debugging.
>>
>>>
>>> Thank you very much.
>>> Best Redards
>>>
>>> Menaka Madushanka
>>>
>>> --
>>> Menaka Madushanka Jayawardena
>>> Software Engineering Intern
>>> men...@wso2.com
>>> Mobile:- +94 71 8851183/ +94 71 3505470
>>> LinkedIn - Menaka Jayawardena
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> Menaka Madushanka Jayawardena
> Software Engineering Intern
> men...@wso2.com
> Mobile:- +94 71 8851183/ +94 71 3505470
> LinkedIn - Menaka Jayawardena
> 
>



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


Re: [Dev] IOT-Server does not start-up correctly

2015-11-04 Thread Menaka Jayawardena
Thank you Charitha



On Wed, Nov 4, 2015 at 2:54 PM, Charitha Goonetilleke 
wrote:

> Hi Menaka,
>
> I found that, there are two versions of axis2 bundles available in the
> pack and seems they are conflicting with each other. So need to figure out
> what are the components that exporting those two different versions. I'll
> fix them and update the thread.
>
>
> Thanks & regards,
> /charithag
>
> On Wed, Nov 4, 2015 at 2:48 PM, Menaka Jayawardena 
> wrote:
>
>> Thank you very much Aruna.
>>
>> I'll try it.
>>
>> On Wed, Nov 4, 2015 at 2:27 PM, Aruna Karunarathna 
>> wrote:
>>
>>>
>>>
>>> On Wed, Nov 4, 2015 at 2:21 PM, Menaka Jayawardena 
>>> wrote:
>>>
 Hello,

 I cloned the repositories for the iot-server project and built it.

 Build order:

 1. https://github.com/ayyoob/carbon-identity (git checkout master)

 2. https://github.com/ruwany/carbon-apimgt (git checkout
 release-1.10.x)

 3. https://github.com/ayyoob/carbon-store (git checkout build-pack)

 4. https://github.com/ayyoob/carbon-device-mgt (git checkout
 build-pack)

 5. https://github.com/wso2-incubator/iot-server-extensions (git
 checkout wso2con-sf)

 6. https://github.com/ayyoob/carbon-event-processing (git checkout
 buildpack4)

 7.  https://github.com/wso2-incubator/product-iot-server (git checkout
 master)

 Building was completed successfully.

 But when starting the iot-server, it starts-up and keep giving the
 following message.

 [2015-11-04 14:07:13,794]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
 delayed due to the following unsatisfied items:
 [2015-11-04 14:07:13,795]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for
 required OSGiAxis2Service: org.wso2.carbon.event.processor.admin-2.0.9

 What would be the solution for this issue?

>>>
>>> Not sure about the repos and the order of the repos you have built.
>>> Seems like some required services are not present. You can get more
>>> insight running the server with -DosgiConsole and do some osgi service
>>> level debugging.
>>>

 Thank you very much.
 Best Redards

 Menaka Madushanka

 --
 Menaka Madushanka Jayawardena
 Software Engineering Intern
 men...@wso2.com
 Mobile:- +94 71 8851183/ +94 71 3505470
 LinkedIn - Menaka Jayawardena
 

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


>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>
>>>
>>
>>
>>
>> --
>> Menaka Madushanka Jayawardena
>> Software Engineering Intern
>> men...@wso2.com
>> Mobile:- +94 71 8851183/ +94 71 3505470
>> LinkedIn - Menaka Jayawardena
>> 
>>
>
>
>
> --
> *Charitha Goonetilleke*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 751 3669 <%2B94777513669>
> Twitter:@CharithaWs , fb: charithag
> , linkedin: charithag
> 
>



-- 
Menaka Madushanka Jayawardena
Software Engineering Intern
men...@wso2.com
Mobile:- +94 71 8851183/ +94 71 3505470
LinkedIn - Menaka Jayawardena 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Plan for next DS -M6 release.

2015-11-04 Thread Ayesha Dissanayaka
+Waruna and dev-group.

On Wed, Nov 4, 2015 at 10:53 AM, Ayesha Dissanayaka  wrote:

> Hi all,
> As of now we can go for next milestone release tommorow.
>
>- Marcus is working on few UES fixes and he'll be able to complete
>them today.
>
>
>- We are looking into how to ship dashboard sample.
>   - we decided to run a cmd from corresponding samples folder so that
>   sample gadgets get copied to /store/carbon.super/gadgets location and
>   ready-made dashboard to the relevant registry location.
>   - users are given another script command to remove the sample
>   gadgets from gadget location along with the sample dashboard from 
> registry.
>   - Hopefully we can finish this off tomorrow.
>
>
>- Lalanke is working including IS components to DS which are required
>by his feature. If we could get this done before tomorrow we can include it
>in the release.
>
>
>- Custom Banner feature implemented by Lasantha can be merged and
>include in M6. Can Manu please create a redmine entry for this one.
>
>
>- Lasantha's dashboard editor needs some improvement to be done for
>dashboard view support from dynamic layouts and needs further testing. Can
>we include this in M7 release?
>- Rajeenthini is continuing to work on tests.
>
>
>- I am currently looking to the product-es build failure.
>
> Manu please add Marcus, Lasantha and Lalanke to jira project so that we
> can close the issues they have fixed before the release.
>
> Any other inputs?
>
> Thanks!
>
> -Ayesha
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> 
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com 
>



-- 
*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] IOT-Server does not start-up correctly

2015-11-04 Thread Menaka Jayawardena
Hello,

I cloned the repositories for the iot-server project and built it.

Build order:

1. https://github.com/ayyoob/carbon-identity (git checkout master)

2. https://github.com/ruwany/carbon-apimgt (git checkout release-1.10.x)

3. https://github.com/ayyoob/carbon-store (git checkout build-pack)

4. https://github.com/ayyoob/carbon-device-mgt (git checkout build-pack)

5. https://github.com/wso2-incubator/iot-server-extensions (git checkout
wso2con-sf)

6. https://github.com/ayyoob/carbon-event-processing (git checkout
buildpack4)

7.  https://github.com/wso2-incubator/product-iot-server (git checkout
master)

Building was completed successfully.

But when starting the iot-server, it starts-up and keep giving the
following message.

[2015-11-04 14:07:13,794]  WARN
{org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
delayed due to the following unsatisfied items:
[2015-11-04 14:07:13,795]  WARN
{org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for
required OSGiAxis2Service: org.wso2.carbon.event.processor.admin-2.0.9

What would be the solution for this issue?

Thank you very much.
Best Redards

Menaka Madushanka

-- 
Menaka Madushanka Jayawardena
Software Engineering Intern
men...@wso2.com
Mobile:- +94 71 8851183/ +94 71 3505470
LinkedIn - Menaka Jayawardena 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IOT-Server does not start-up correctly

2015-11-04 Thread Aruna Karunarathna
On Wed, Nov 4, 2015 at 2:21 PM, Menaka Jayawardena  wrote:

> Hello,
>
> I cloned the repositories for the iot-server project and built it.
>
> Build order:
>
> 1. https://github.com/ayyoob/carbon-identity (git checkout master)
>
> 2. https://github.com/ruwany/carbon-apimgt (git checkout release-1.10.x)
>
> 3. https://github.com/ayyoob/carbon-store (git checkout build-pack)
>
> 4. https://github.com/ayyoob/carbon-device-mgt (git checkout build-pack)
>
> 5. https://github.com/wso2-incubator/iot-server-extensions (git checkout
> wso2con-sf)
>
> 6. https://github.com/ayyoob/carbon-event-processing (git checkout
> buildpack4)
>
> 7.  https://github.com/wso2-incubator/product-iot-server (git checkout
> master)
>
> Building was completed successfully.
>
> But when starting the iot-server, it starts-up and keep giving the
> following message.
>
> [2015-11-04 14:07:13,794]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
> delayed due to the following unsatisfied items:
> [2015-11-04 14:07:13,795]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for
> required OSGiAxis2Service: org.wso2.carbon.event.processor.admin-2.0.9
>
> What would be the solution for this issue?
>

Not sure about the repos and the order of the repos you have built.
Seems like some required services are not present. You can get more insight
running the server with -DosgiConsole and do some osgi service level
debugging.

>
> Thank you very much.
> Best Redards
>
> Menaka Madushanka
>
> --
> Menaka Madushanka Jayawardena
> Software Engineering Intern
> men...@wso2.com
> Mobile:- +94 71 8851183/ +94 71 3505470
> LinkedIn - Menaka Jayawardena
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Aruna Sujith Karunarathna *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Occurring more callbacks after the initial run of the android app-Siddhi

2015-11-04 Thread Lakini Senanayaka
Hi Lasantha,

Thank you for the clarifications.I have added same stream again and again
to the same siddhi  manager instance.
I fixed it and now the app is working fine.

Thanks

On Tue, Nov 3, 2015 at 5:28 PM, Lasantha Fernando  wrote:

>
>
> On 3 November 2015 at 16:09, Lakini Senanayaka  wrote:
>
>> Hi Lasantha,
>>
>> This is the class I'm calling and instantiate the CEP object.
>>
>> package org.wso2.edgeanalyticsservice1;
>>
>> import android.app.Service;
>> import android.content.Intent;
>> import android.os.IBinder;
>> import android.util.Log;
>>
>> /**
>>  * This class implements IEdgeAnalyticService.aidl interface
>>  */
>> public class EdgeAnalyticsService extends Service {
>>
>> private CEP mCep;
>> private TaskManager taskManager=null;
>>
>> public EdgeAnalyticsService() {
>> mCep = new CEP();
>> }
>>
>> @Override
>> public void onCreate() {
>> }
>>
>> /** Returns the IBinder object for the connection */
>> @Override
>> public IBinder onBind(Intent intent) {
>> taskManager=null;
>> return mBinder;
>> }
>>
>> @Override
>> public int onStartCommand(Intent intent, int flags, int startId) {
>> return Service.START_STICKY;
>> }
>>
>> @Override
>> public boolean onUnbind (Intent intent){
>> return false;
>> }
>>
>> @Override
>> public void onDestroy() {
>> stopSelf();
>> }
>>
>> /** Implementation of methods in the IEdgeAnalyticsService interface */
>> public final IEdgeAnalyticsService.Stub mBinder = new 
>> IEdgeAnalyticsService.Stub() {
>>
>> IEdgeAnalyticServiceCallback mIEdgeAnalyticServiceCallback=null;
>>
>> @Override
>> public void getServiceNormal(String type, String streamDefinition, 
>> String stream, String query, String 
>> callbackFunctionName,IEdgeAnalyticServiceCallback cb) {
>>
>> mIEdgeAnalyticServiceCallback = cb;
>>
>>
>> /** Add the details to CEP if the Client is Type1 */
>> if (type.equalsIgnoreCase("TYPE1")) {
>> mCep.cepAddDetails(getApplicationContext(), 
>> streamDefinition, stream, query, callbackFunctionName, cb);
>> }
>>
>> /** Add the details to CEP if the Client is 
>> Type2-LOCATION_SERVICE */
>> else if (type.equalsIgnoreCase("LOCATION_SERVICE")) {
>> mCep.cepAddDetails(getApplicationContext(), "define stream 
>> LocationStream (latitude double,longitude double); ", "LocationStream", 
>> query, callbackFunctionName,cb);
>> taskManager = new 
>> TaskManager(getApplicationContext(),"LocationStream",mIEdgeAnalyticServiceCallback,mCep);
>> taskManager.initializeServiceType(type);
>> }
>>
>> /** Add the details to CEP if the Client is 
>> Type2-HUMIDITY_SERVICE */
>> else if (type.equalsIgnoreCase("HUMIDITY_SERVICE")) {
>> mCep.cepAddDetails(getApplicationContext(), "define stream 
>> HumidityStream (humidity float); ", "HumidityStream", query, 
>> callbackFunctionName, cb);
>> taskManager = new 
>> TaskManager(getApplicationContext(),"HumidityStream",mIEdgeAnalyticServiceCallback,mCep);
>> taskManager.initializeServiceType(type);
>> }
>>
>> /** Add the details to CEP if the Client is 
>> Type2-TEMPERATURE_SERVICE */
>> else if (type.equalsIgnoreCase("TEMPERATURE_SERVICE")) {
>> mCep.cepAddDetails(getApplicationContext(), "define stream 
>> temperatureStream (tempValue float); ", "temperatureStream", query, 
>> callbackFunctionName,cb);
>> taskManager = new 
>> TaskManager(getApplicationContext(),"temperatureStream",mIEdgeAnalyticServiceCallback,mCep);
>> taskManager.initializeServiceType(type);
>> }
>>
>> /** Add the details to CEP if the Client is 
>> Type2-INTENSITY_SERVICE*/
>> else if (type.equalsIgnoreCase("INTENSITY_SERVICE")) {
>> Log.d("client","INTENSITY SERVICE");
>> mCep.cepAddDetails(getApplicationContext(), "define stream 
>> lightIntensityStream (lightValue double); ", "lightIntensityStream", query, 
>> callbackFunctionName, cb);
>> taskManager = new 
>> TaskManager(getApplicationContext(),"lightIntensityStream",mIEdgeAnalyticServiceCallback,mCep);
>> taskManager.initializeServiceType(type);
>>
>> }
>> }
>>
>> //get servicePatterns
>> @Override
>> public void getServicePattern(String type, String streamDefinition, 
>> String stream, String query1,String query2 ,String 
>> callbackFunctionName1,String 
>> callbackFunctionName2,IEdgeAnalyticServiceCallback cb) {
>>
>> mIEdgeAnalyticServiceCallback = cb;
>>
>> /** Add the details to CEP if the Client is Type1 */
>> if 

Re: [Dev] [IS] [SP01][H2] install_sp.sh script copies h2 database into a wrong location

2015-11-04 Thread Tharindu Edirisinghe
Hi Johann,

I checked this scenario Madusanka mentioned... YES what he has mentioned is
correct. The thing is this is Service Pack 1. So we cannot change it now
since it is already released... I checked the same for Service Pack 2 and
there we don't do such thing as copying the h2 database file.. instead we
ask to use -Dsetup option in the README file. so this has no impact to SP2.

Thanks,
TharinduE

On Tue, Nov 3, 2015 at 9:04 PM, Johann Nallathamby  wrote:

> @Thainrdu, can you take a quick look at this ?
>
> On Wed, Nov 4, 2015 at 9:56 AM, Madusanka Premaratne 
> wrote:
>
>> Hi IS Team,
>> I have installed sp1 to IS 5.0.0 in my local machine with local H2 db.
>> And found the script install_sp.sh copies new database to /wso2is-5.0.0
>> /repository/. The correct location is /wso2is-5.0.0
>> /repository/database/.
>>
>> In the readme you have guided to start the server with -Dsetup which
>> creates a new database in correct location but the copied databases also
>> exists in a wrong location.
>>
>> I have attached the corrected script herewith.
>>
>> Thanks,
>> Madusanka
>>
>> --
>> *Madusanka Premaratne* | Associate Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>> Email: madusan...@wso2.com | Web: www.wso2.com
>>
>> [image: Facebook]  [image: Twitter]
>>  [image: Google Plus]
>>  [image:
>> Linkedin]  [image: Instagram]
>>  [image: Skype]
>> 
>>
>>
>
>
> --
> 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 *
>



-- 

Tharindu Edirisinghe
Software Engineer | WSO2 Inc
Identity Server Team
Blog : tharindue.blogspot.com
mobile : 408-714-8437
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Builder] Jenkins build became unstable: product-es #7768

2015-11-04 Thread Ayesha Dissanayaka
On Tue, Nov 3, 2015 at 11:20 PM, Nipuna Chandradasa 
wrote:

>
> org.wso2.es.ui.integration.test.store.ESStoreSocialSharingTestCase.testTwitterSharing
> 


This should be fixed by [1]. Let's wait for a jenkins build.

[1]
https://github.com/wso2/product-es/commit/2cb1262503fd88c91a451234769be091baf4759a

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


Re: [Dev] [Builder] Jenkins build became unstable: product-es #7768

2015-11-04 Thread Ayesha Dissanayaka
The reason for this test failure is the change in the order of query
parameters in an autogenerated twitter url, which was used for assert check.

On Wed, Nov 4, 2015 at 1:55 PM, Ayesha Dissanayaka  wrote:

>
> On Tue, Nov 3, 2015 at 11:20 PM, Nipuna Chandradasa 
> wrote:
>
>>
>> org.wso2.es.ui.integration.test.store.ESStoreSocialSharingTestCase.testTwitterSharing
>> 
>
>
> This should be fixed by [1]. Let's wait for a jenkins build.
>
> [1]
> https://github.com/wso2/product-es/commit/2cb1262503fd88c91a451234769be091baf4759a
>
> Thanks!
> -Ayesha
>
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> 
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com 
>



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


Re: [Dev] Plan for next DS -M6 release.

2015-11-04 Thread Nipuna Chandradasa
Hi all,

When we are shipping the sample dashboard what we gonna do is:

1. Create a another .sh specifically to run the sample configuration as ESB
team has done. File name will be like wso2server-sample.sh
2. This will copy the gadgets needed for the dashboard from samples folder
to gadget folder in portal
3. Then using jaggery.conf we'll add dashboard json data to registry...

Thank you.

On Wed, Nov 4, 2015 at 2:13 PM, Ayesha Dissanayaka  wrote:

> +Waruna and dev-group.
>
> On Wed, Nov 4, 2015 at 10:53 AM, Ayesha Dissanayaka 
> wrote:
>
>> Hi all,
>> As of now we can go for next milestone release tommorow.
>>
>>- Marcus is working on few UES fixes and he'll be able to complete
>>them today.
>>
>>
>>- We are looking into how to ship dashboard sample.
>>   - we decided to run a cmd from corresponding samples folder so
>>   that sample gadgets get copied to /store/carbon.super/gadgets location 
>> and
>>   ready-made dashboard to the relevant registry location.
>>   - users are given another script command to remove the sample
>>   gadgets from gadget location along with the sample dashboard from 
>> registry.
>>   - Hopefully we can finish this off tomorrow.
>>
>>
>>- Lalanke is working including IS components to DS which are required
>>by his feature. If we could get this done before tomorrow we can include 
>> it
>>in the release.
>>
>>
>>- Custom Banner feature implemented by Lasantha can be merged and
>>include in M6. Can Manu please create a redmine entry for this one.
>>
>>
>>- Lasantha's dashboard editor needs some improvement to be done for
>>dashboard view support from dynamic layouts and needs further testing. Can
>>we include this in M7 release?
>>- Rajeenthini is continuing to work on tests.
>>
>>
>>- I am currently looking to the product-es build failure.
>>
>> Manu please add Marcus, Lasantha and Lalanke to jira project so that we
>> can close the issues they have fixed before the release.
>>
>> Any other inputs?
>>
>> Thanks!
>>
>> -Ayesha
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> *Ayesha Dissanayaka*
>> Software Engineer,
>> WSO2, Inc : http://wso2.com
>> 
>> 20, Palmgrove Avenue, Colombo 3
>> E-Mail: aye...@wso2.com 
>>
>
>
>
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> 
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com 
>



-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Builder] Jenkins build became unstable: product-es #7768

2015-11-04 Thread Manuranga Perera
FYI, the reason we can only got this now is because the issue is
intermittency occurring with low frequency.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev