Re: [Dev] [ESB][Twitter_Connector] no dependency information available Error

2015-07-02 Thread Keerthika Mahendralingam
For Twitter connector, there are no test cases available. You can check the
connector manually.

On Fri, Jul 3, 2015 at 12:12 PM, Rajjaz Mohammed  wrote:

> my Earlier repo is working fine.  only i made the mistake in my pom file
> as version as 1.0.0 when i build the integration base then i changed to
> 1.0.1 then its work fine. but is there any test cases to check?
>
> On Fri, Jul 3, 2015 at 12:04 PM, Rajjaz Mohammed  wrote:
>
>> tanks keerthika,
>> Finally i found the error was in my integration base pom file. mistakenly
>> version changes to 1.0.0 but Connector expecting 1.0.1. that was the reason
>> for error. now build Success
>>
>> On Fri, Jul 3, 2015 at 11:42 AM, Malaka Silva  wrote:
>>
>>> Merged
>>>
>>> On Fri, Jul 3, 2015 at 11:24 AM, Keerthika Mahendralingam <
>>> keerth...@wso2.com> wrote:
>>>
 Hi Rajjaz,
 You need to build integration base before build any other connector.
 You can find the integration base at [1].

 @Malaka,
 Can we merge the pull request [1].

 [1]. https://github.com/wso2/esb-connectors/pull/109

 Thanks,

 On Fri, Jul 3, 2015 at 11:17 AM, Rajjaz Mohammed 
 wrote:

> Hi All,
> When i try to build a Twitter Connector I’m getting the following
> error message with Build Failure. is there any Suggestions to Correct it?
>
> 
> 
> [WARNING] The POM for org.eclipse:org.sat4j.core:jar:2.1.0.v20090520
> is invalid, transitive dependencies (if any) will not be available, enable
> debug logging for more details
> [WARNING] The POM for org.eclipse:org.sat4j.pb:jar:2.1.0.v20090520 is
> invalid, transitive dependencies (if any) will not be available, enable
> debug logging for more details
> [WARNING] The POM for org.eclipse:com.ibm.icu:jar:4.0.1.v20090415 is
> invalid, transitive dependencies (if any) will not be available, enable
> debug logging for more details
> [WARNING] The POM for
> org.wso2.esb.integration:integration-base:jar:1.0.1 is missing, no
> dependency information available
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 3.721s
> [INFO] Finished at: Fri Jul 03 11:13:07 IST 2015
> [INFO] Final Memory: 34M/574M
> [INFO]
> 
> [ERROR] Failed to execute goal on project
> org.wso2.carbon.connector.twitter: Could not resolve dependencies for
> project
> org.wso2.carbon.connector:org.wso2.carbon.connector.twitter:jar:1.0.0:
> Failure to find org.wso2.esb.integration:integration-base:jar:1.0.1 in
> http://twitter4j.org/maven2 was cached in the local repository,
> resolution will not be reattempted until the update interval of
> twitter4j.org has elapsed or updates are forced -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>
>
>
> --
> Thank you
> Best Regards
>
> Rajjaz HM
> Associate Software Engineer
> WSO2 Inc. 
> lean.enterprise.middleware
> Mobile : +94752833834
> Email  :raj...@wso2.com
>
> LinkedIn 
> Blogger 
> WSO2 Profile 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware

>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>> Thank you
>> Best Regards
>>
>> Rajjaz HM
>> Associate Software Engineer
>> WSO2 Inc. 

Re: [Dev] Please add ML-CEP extension feature to CEP P2 repo

2015-07-02 Thread Nirmal Fernando
Sorry version should be;

1.0.1-SNAPSHOT

On Fri, Jul 3, 2015 at 12:11 PM, Nirmal Fernando  wrote:

> Hi CEP team,
>
> $Subject.
> https://github.com/wso2/product-ml/blob/master/modules/p2-profile/pom.xml#L226
>
> Version is 1.0.0-SNAPSHOT
>
> --
>
> Thanks & regards,
> Nirmal
>
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 

Thanks & regards,
Nirmal

Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB][Twitter_Connector] no dependency information available Error

2015-07-02 Thread Rajjaz Mohammed
my Earlier repo is working fine.  only i made the mistake in my pom file as
version as 1.0.0 when i build the integration base then i changed to 1.0.1
then its work fine. but is there any test cases to check?

On Fri, Jul 3, 2015 at 12:04 PM, Rajjaz Mohammed  wrote:

> tanks keerthika,
> Finally i found the error was in my integration base pom file. mistakenly
> version changes to 1.0.0 but Connector expecting 1.0.1. that was the reason
> for error. now build Success
>
> On Fri, Jul 3, 2015 at 11:42 AM, Malaka Silva  wrote:
>
>> Merged
>>
>> On Fri, Jul 3, 2015 at 11:24 AM, Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> Hi Rajjaz,
>>> You need to build integration base before build any other connector. You
>>> can find the integration base at [1].
>>>
>>> @Malaka,
>>> Can we merge the pull request [1].
>>>
>>> [1]. https://github.com/wso2/esb-connectors/pull/109
>>>
>>> Thanks,
>>>
>>> On Fri, Jul 3, 2015 at 11:17 AM, Rajjaz Mohammed 
>>> wrote:
>>>
 Hi All,
 When i try to build a Twitter Connector I’m getting the following error
 message with Build Failure. is there any Suggestions to Correct it?

 
 
 [WARNING] The POM for org.eclipse:org.sat4j.core:jar:2.1.0.v20090520 is
 invalid, transitive dependencies (if any) will not be available, enable
 debug logging for more details
 [WARNING] The POM for org.eclipse:org.sat4j.pb:jar:2.1.0.v20090520 is
 invalid, transitive dependencies (if any) will not be available, enable
 debug logging for more details
 [WARNING] The POM for org.eclipse:com.ibm.icu:jar:4.0.1.v20090415 is
 invalid, transitive dependencies (if any) will not be available, enable
 debug logging for more details
 [WARNING] The POM for
 org.wso2.esb.integration:integration-base:jar:1.0.1 is missing, no
 dependency information available
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 3.721s
 [INFO] Finished at: Fri Jul 03 11:13:07 IST 2015
 [INFO] Final Memory: 34M/574M
 [INFO]
 
 [ERROR] Failed to execute goal on project
 org.wso2.carbon.connector.twitter: Could not resolve dependencies for
 project
 org.wso2.carbon.connector:org.wso2.carbon.connector.twitter:jar:1.0.0:
 Failure to find org.wso2.esb.integration:integration-base:jar:1.0.1 in
 http://twitter4j.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of
 twitter4j.org has elapsed or updates are forced -> [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with
 the -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException



 --
 Thank you
 Best Regards

 Rajjaz HM
 Associate Software Engineer
 WSO2 Inc. 
 lean.enterprise.middleware
 Mobile : +94752833834
 Email  :raj...@wso2.com

 LinkedIn 
 Blogger 
 WSO2 Profile 

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


>>>
>>>
>>> --
>>> 
>>> Keerthika Mahendralingam
>>> Associate Software Engineer
>>> Mobile :+94 (0) 776 121144
>>> keerth...@wso2.com
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>
>
>
> --
> Thank you
> Best Regards
>
> Rajjaz HM
> Associate Software Engineer
> WSO2 Inc. 
> lean.enterprise.middleware
> Mobile : +94752833834
> Email  :raj...@wso2.com
>
> LinkedIn 
> Blogger 
> WSO2 Profile 
>



-- 
Thank you
Best Regards

Rajjaz HM
Associate 

[Dev] Please add ML-CEP extension feature to CEP P2 repo

2015-07-02 Thread Nirmal Fernando
Hi CEP team,

$Subject.
https://github.com/wso2/product-ml/blob/master/modules/p2-profile/pom.xml#L226

Version is 1.0.0-SNAPSHOT

-- 

Thanks & regards,
Nirmal

Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] The table 'UM_USER_ROLE' is full

2015-07-02 Thread Nirodha Pramod
Hi,

The script was taken from the AM 1.9.0 registry database script.

-Nirodha

On Fri, Jul 3, 2015 at 12:05 PM, Nirodha Pramod  wrote:

> Hi,
>
> I get the below set of errors when running the registry database script on
> a mysql NDB cluster. Could this be a script issue or Mysql config issue?
>
> Any thought on this would be appreciated.
>
>
>
>
> Query OK, 0 rows affected (0.24 sec)
>
> Query OK, 0 rows affected (0.20 sec)
>
> ERROR 1114 (HY000): The table 'UM_ROLE_PERMISSION' is full
> Query OK, 0 rows affected (0.21 sec)
>
> ERROR 1114 (HY000): The table 'UM_USER_ROLE' is full
> ERROR 1114 (HY000): The table 'UM_SHARED_USER_ROLE' is full
> ERROR 1296 (HY000): Got error 708 'No more attribute metadata records
> (increase MaxNoOfAttributes)' from NDBCLUSTER
> ERROR 1114 (HY000): The table 'UM_USER_ATTRIBUTE' is full
> ERROR 1114 (HY000): The table 'UM_DIALECT' is full
> ERROR 1296 (HY000): Got error 708 'No more attribute metadata records
> (increase MaxNoOfAttributes)' from NDBCLUSTER
> ERROR 1114 (HY000): The table 'UM_PROFILE_CONFIG' is full
> ERROR 1114 (HY000): The table 'UM_HYBRID_ROLE' is full
> ERROR 1296 (HY000): Got error 708 'No more attribute metadata records
> (increase MaxNoOfAttributes)' from NDBCLUSTER
> ERROR 1114 (HY000): The table 'UM_SYSTEM_ROLE' is full
> ERROR 1114 (HY000): The table 'UM_SYSTEM_USER_ROLE' is full
> ERROR 1114 (HY000): The table 'UM_HYBRID_REMEMBER_ME' is full
> ERROR 1114 (HY000): The table 'UM_CUSTOM_USERSTORE' is full
>
> ​Thanks,
> Nirodha​
>
> --
>
> *Nirodha Gallage*
> Associate Technical Lead, QA.
> WSO2 Inc.: http://wso2.com/
> Mobile: +94716429078
>



-- 

*Nirodha Gallage*
Associate Technical Lead, QA.
WSO2 Inc.: http://wso2.com/
Mobile: +94716429078
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] The table 'UM_USER_ROLE' is full

2015-07-02 Thread Nirodha Pramod
Hi,

I get the below set of errors when running the registry database script on
a mysql NDB cluster. Could this be a script issue or Mysql config issue?

Any thought on this would be appreciated.




Query OK, 0 rows affected (0.24 sec)

Query OK, 0 rows affected (0.20 sec)

ERROR 1114 (HY000): The table 'UM_ROLE_PERMISSION' is full
Query OK, 0 rows affected (0.21 sec)

ERROR 1114 (HY000): The table 'UM_USER_ROLE' is full
ERROR 1114 (HY000): The table 'UM_SHARED_USER_ROLE' is full
ERROR 1296 (HY000): Got error 708 'No more attribute metadata records
(increase MaxNoOfAttributes)' from NDBCLUSTER
ERROR 1114 (HY000): The table 'UM_USER_ATTRIBUTE' is full
ERROR 1114 (HY000): The table 'UM_DIALECT' is full
ERROR 1296 (HY000): Got error 708 'No more attribute metadata records
(increase MaxNoOfAttributes)' from NDBCLUSTER
ERROR 1114 (HY000): The table 'UM_PROFILE_CONFIG' is full
ERROR 1114 (HY000): The table 'UM_HYBRID_ROLE' is full
ERROR 1296 (HY000): Got error 708 'No more attribute metadata records
(increase MaxNoOfAttributes)' from NDBCLUSTER
ERROR 1114 (HY000): The table 'UM_SYSTEM_ROLE' is full
ERROR 1114 (HY000): The table 'UM_SYSTEM_USER_ROLE' is full
ERROR 1114 (HY000): The table 'UM_HYBRID_REMEMBER_ME' is full
ERROR 1114 (HY000): The table 'UM_CUSTOM_USERSTORE' is full

​Thanks,
Nirodha​

-- 

*Nirodha Gallage*
Associate Technical Lead, QA.
WSO2 Inc.: http://wso2.com/
Mobile: +94716429078
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB][Twitter_Connector] no dependency information available Error

2015-07-02 Thread Rajjaz Mohammed
tanks keerthika,
Finally i found the error was in my integration base pom file. mistakenly
version changes to 1.0.0 but Connector expecting 1.0.1. that was the reason
for error. now build Success

On Fri, Jul 3, 2015 at 11:42 AM, Malaka Silva  wrote:

> Merged
>
> On Fri, Jul 3, 2015 at 11:24 AM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Rajjaz,
>> You need to build integration base before build any other connector. You
>> can find the integration base at [1].
>>
>> @Malaka,
>> Can we merge the pull request [1].
>>
>> [1]. https://github.com/wso2/esb-connectors/pull/109
>>
>> Thanks,
>>
>> On Fri, Jul 3, 2015 at 11:17 AM, Rajjaz Mohammed  wrote:
>>
>>> Hi All,
>>> When i try to build a Twitter Connector I’m getting the following error
>>> message with Build Failure. is there any Suggestions to Correct it?
>>>
>>> 
>>> 
>>> [WARNING] The POM for org.eclipse:org.sat4j.core:jar:2.1.0.v20090520 is
>>> invalid, transitive dependencies (if any) will not be available, enable
>>> debug logging for more details
>>> [WARNING] The POM for org.eclipse:org.sat4j.pb:jar:2.1.0.v20090520 is
>>> invalid, transitive dependencies (if any) will not be available, enable
>>> debug logging for more details
>>> [WARNING] The POM for org.eclipse:com.ibm.icu:jar:4.0.1.v20090415 is
>>> invalid, transitive dependencies (if any) will not be available, enable
>>> debug logging for more details
>>> [WARNING] The POM for
>>> org.wso2.esb.integration:integration-base:jar:1.0.1 is missing, no
>>> dependency information available
>>> [INFO]
>>> 
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> 
>>> [INFO] Total time: 3.721s
>>> [INFO] Finished at: Fri Jul 03 11:13:07 IST 2015
>>> [INFO] Final Memory: 34M/574M
>>> [INFO]
>>> 
>>> [ERROR] Failed to execute goal on project
>>> org.wso2.carbon.connector.twitter: Could not resolve dependencies for
>>> project
>>> org.wso2.carbon.connector:org.wso2.carbon.connector.twitter:jar:1.0.0:
>>> Failure to find org.wso2.esb.integration:integration-base:jar:1.0.1 in
>>> http://twitter4j.org/maven2 was cached in the local repository,
>>> resolution will not be reattempted until the update interval of
>>> twitter4j.org has elapsed or updates are forced -> [Help 1]
>>> [ERROR]
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>>> -e switch.
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR]
>>> [ERROR] For more information about the errors and possible solutions,
>>> please read the following articles:
>>> [ERROR] [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>>>
>>>
>>>
>>> --
>>> Thank you
>>> Best Regards
>>>
>>> Rajjaz HM
>>> Associate Software Engineer
>>> WSO2 Inc. 
>>> lean.enterprise.middleware
>>> Mobile : +94752833834
>>> Email  :raj...@wso2.com
>>>
>>> LinkedIn 
>>> Blogger 
>>> WSO2 Profile 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 
>> Keerthika Mahendralingam
>> Associate Software Engineer
>> Mobile :+94 (0) 776 121144
>> keerth...@wso2.com
>> WSO2, Inc.
>> lean . enterprise . middleware
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
Thank you
Best Regards

Rajjaz HM
Associate Software Engineer
WSO2 Inc. 
lean.enterprise.middleware
Mobile : +94752833834
Email  :raj...@wso2.com

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


[Dev] Please review and merge PR for IDENTITY-2774

2015-07-02 Thread Nuwandi Wickramasinghe
Hi
Find fix for [1] in [2]

[1] https://wso2.org/jira/browse/IDENTITY-2774
[2] https://github.com/wso2/carbon-identity/pull/535

-- 

Best Regards,

Nuwandi Wickramasinghe

Software Engineer

WSO2 Inc.

Web : http://wso2.com

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


Re: [Dev] [ESB][Twitter_Connector] no dependency information available Error

2015-07-02 Thread Keerthika Mahendralingam
Thank you Malaka.

On Fri, Jul 3, 2015 at 11:42 AM, Malaka Silva  wrote:

> Merged
>
> On Fri, Jul 3, 2015 at 11:24 AM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Rajjaz,
>> You need to build integration base before build any other connector. You
>> can find the integration base at [1].
>>
>> @Malaka,
>> Can we merge the pull request [1].
>>
>> [1]. https://github.com/wso2/esb-connectors/pull/109
>>
>> Thanks,
>>
>> On Fri, Jul 3, 2015 at 11:17 AM, Rajjaz Mohammed  wrote:
>>
>>> Hi All,
>>> When i try to build a Twitter Connector I’m getting the following error
>>> message with Build Failure. is there any Suggestions to Correct it?
>>>
>>> 
>>> 
>>> [WARNING] The POM for org.eclipse:org.sat4j.core:jar:2.1.0.v20090520 is
>>> invalid, transitive dependencies (if any) will not be available, enable
>>> debug logging for more details
>>> [WARNING] The POM for org.eclipse:org.sat4j.pb:jar:2.1.0.v20090520 is
>>> invalid, transitive dependencies (if any) will not be available, enable
>>> debug logging for more details
>>> [WARNING] The POM for org.eclipse:com.ibm.icu:jar:4.0.1.v20090415 is
>>> invalid, transitive dependencies (if any) will not be available, enable
>>> debug logging for more details
>>> [WARNING] The POM for
>>> org.wso2.esb.integration:integration-base:jar:1.0.1 is missing, no
>>> dependency information available
>>> [INFO]
>>> 
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> 
>>> [INFO] Total time: 3.721s
>>> [INFO] Finished at: Fri Jul 03 11:13:07 IST 2015
>>> [INFO] Final Memory: 34M/574M
>>> [INFO]
>>> 
>>> [ERROR] Failed to execute goal on project
>>> org.wso2.carbon.connector.twitter: Could not resolve dependencies for
>>> project
>>> org.wso2.carbon.connector:org.wso2.carbon.connector.twitter:jar:1.0.0:
>>> Failure to find org.wso2.esb.integration:integration-base:jar:1.0.1 in
>>> http://twitter4j.org/maven2 was cached in the local repository,
>>> resolution will not be reattempted until the update interval of
>>> twitter4j.org has elapsed or updates are forced -> [Help 1]
>>> [ERROR]
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>>> -e switch.
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR]
>>> [ERROR] For more information about the errors and possible solutions,
>>> please read the following articles:
>>> [ERROR] [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>>>
>>>
>>>
>>> --
>>> Thank you
>>> Best Regards
>>>
>>> Rajjaz HM
>>> Associate Software Engineer
>>> WSO2 Inc. 
>>> lean.enterprise.middleware
>>> Mobile : +94752833834
>>> Email  :raj...@wso2.com
>>>
>>> LinkedIn 
>>> Blogger 
>>> WSO2 Profile 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 
>> Keerthika Mahendralingam
>> Associate Software Engineer
>> Mobile :+94 (0) 776 121144
>> keerth...@wso2.com
>> WSO2, Inc.
>> lean . enterprise . middleware
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 

Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DevStudio errors

2015-07-02 Thread Harshana Eranga Martin
Hi Susinda,

I think that is the plan. No one is using this now. So we are safe toremove
it now.

Thanks and Regards,
Harshana

On Friday, July 3, 2015, Susinda Perera  wrote:

>
>
> On Thu, Jul 2, 2015 at 10:31 PM, Viraj Rajaguru  > wrote:
>
>> Hi John,
>>
>> Currently there are two types of ESB editors in DevS 3.7.1.
>> 1. Tree structured ESB editor (deprecated)
>>
>
> @ Jasintha/Viraj
> Isnt it the time for us to remove the old esb editor? Can we do this for
> 3.8.0 release, i think this would reduce many issues.
>
> 2. Drag and drop ESB diagram editor (recommended)
>>
>> Deprecated tree structured ESB editor is outdated and we are not
>> maintaining it.(We are removing this deprecated editor in next DevS 3.8.0
>> release). You are getting saving issues/design to source switching issues
>> with old editor because it's outdated.
>>
>> So the solution here is to open ESB config files using recommended ESB
>> editor by just double clicking on the config file. (Double click event will
>> trigger config file to open in the recommended ESB diagram editor.) Using
>> other options such as Right click on config file --> "Open With" --> ESB
>> Editor, use "Ctrl" + "Shift" + R to open config files, will result to open
>> config files in deprecated ESB editor.
>>
>> It seems mentioned *java.lang.NullPointerException *exception is not the
>> root cause for the issues. Please attach the full error
>> log($workspace/.metadata/.log) to check the actual error.
>>
>> Thanks,
>> Viraj.
>>
>>
>>
>> On Thu, Jul 2, 2015 at 5:47 PM, John Hawkins > > wrote:
>>
>>> Sorry- I meant to put that in the original message !!
>>>
>>> Here is the "data" section of the error in eclipse
>>> eclipse.buildId=4.3.2.M20140221-1700
>>> java.version=1.7.0_79
>>> java.vendor=Oracle Corporation
>>> BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
>>> Framework arguments:  -product org.eclipse.epp.package.jee.product
>>> -keyring /Users/wso2/.eclipse_keyring -showlocation
>>> Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product
>>> org.eclipse.epp.package.jee.product -keyring /Users/wso2/.eclipse_keyring
>>> -showlocation
>>>
>>>
>>> And I downloaded devstudio (3.7.1) right of the wso2.com pages (two
>>> days ago) - as a single, eclipse included, bundle - *not* installed into a
>>> pre-existing eclipse.
>>>
>>>
>>> thanks,
>>> John.
>>>
>>>
>>> John Hawkins
>>> Director: Solutions Architecture
>>>
>>>
>>> On Thu, Jul 2, 2015 at 12:39 PM, Harshana Eranga Martin <
>>> harshan...@gmail.com
>>> > wrote:
>>>
 Hi John,

 What is the Dev Studio version you are using? Did you download it from
 the Products listing in wso2.com? What is the JDK version you are
 using?

 Thanks and Regards,
 Harshana
 --
 Harshana Eranga Martin

 Committer - Eclipse ECF: http://www.eclipse.org/ecf/
 Blog: http://harshana05.blogspot.com
 Profile: https://www.google.com/profiles/harshana05

 On 2 July 2015 at 19:29, John Hawkins >>> > wrote:

> Hi Folks,
>
> I'm getting a few errors with DevStudio which are really beginning to
> bug me. I can't see anyone else having these errors so I'll put it out
> there so you folks may be able to guide me as to what to do ( or you may
> have seen them before but google has let me down :-)
>
> Key problem is that eclipse/dev studio is struggling to save files
> e.g. an api.xml file or a proxy-service.xml file. This shows itself when I
> try to save a diagram or when I try to move from the diagram to the source
> view. The first error in the chain is...
>
>
>
> *Problems occurred when invoking code from plug-in:
> "org.eclipse.ui.workbench". which has the stacktrace of *
>
> *java.lang.NullPointerException*
> * at
> org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.selectionChanged(CompatibilityPart.java:435)*
> * at
> org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:110)*
> * at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)*
> * at
> org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChange(MultiPageSelectionProvider.java:108)*
> * etc.etc.*
>
>
>
>
> It then has three other errors along those lines.
>
> This may or may not be related but.What also happens is that files
> also don't look right in the esb editor.. They come out as a tree 
> structure
> and not the nice diagram editor. In order to get around this (and get it
> opening in the nice diagram editor) I have to close the WSO2 ESB Graphical
> perspective and then re-open the Dev Studio (by going "Dev Studio->Open
> Dashboard". That solves the problem of the editor not showing the 
> graphical
> view and also seems to solve the problem of file saving. However, it's not
> long before both problems come back - but I have no idea what sequence of
> event

Re: [Dev] DevStudio errors

2015-07-02 Thread Gayan Yalpathwala
We have removed the old ESB editor from DevStudio 3.8.0.
Please refer: https://wso2.org/jira/browse/TOOLS-2867

Thanks,

On Fri, Jul 3, 2015 at 11:18 AM, Susinda Perera  wrote:

>
>
> On Thu, Jul 2, 2015 at 10:31 PM, Viraj Rajaguru  wrote:
>
>> Hi John,
>>
>> Currently there are two types of ESB editors in DevS 3.7.1.
>> 1. Tree structured ESB editor (deprecated)
>>
>
> @ Jasintha/Viraj
> Isnt it the time for us to remove the old esb editor? Can we do this for
> 3.8.0 release, i think this would reduce many issues.
>
> 2. Drag and drop ESB diagram editor (recommended)
>>
>> Deprecated tree structured ESB editor is outdated and we are not
>> maintaining it.(We are removing this deprecated editor in next DevS 3.8.0
>> release). You are getting saving issues/design to source switching issues
>> with old editor because it's outdated.
>>
>> So the solution here is to open ESB config files using recommended ESB
>> editor by just double clicking on the config file. (Double click event will
>> trigger config file to open in the recommended ESB diagram editor.) Using
>> other options such as Right click on config file --> "Open With" --> ESB
>> Editor, use "Ctrl" + "Shift" + R to open config files, will result to open
>> config files in deprecated ESB editor.
>>
>> It seems mentioned *java.lang.NullPointerException *exception is not the
>> root cause for the issues. Please attach the full error
>> log($workspace/.metadata/.log) to check the actual error.
>>
>> Thanks,
>> Viraj.
>>
>>
>>
>> On Thu, Jul 2, 2015 at 5:47 PM, John Hawkins  wrote:
>>
>>> Sorry- I meant to put that in the original message !!
>>>
>>> Here is the "data" section of the error in eclipse
>>> eclipse.buildId=4.3.2.M20140221-1700
>>> java.version=1.7.0_79
>>> java.vendor=Oracle Corporation
>>> BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
>>> Framework arguments:  -product org.eclipse.epp.package.jee.product
>>> -keyring /Users/wso2/.eclipse_keyring -showlocation
>>> Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product
>>> org.eclipse.epp.package.jee.product -keyring /Users/wso2/.eclipse_keyring
>>> -showlocation
>>>
>>>
>>> And I downloaded devstudio (3.7.1) right of the wso2.com pages (two
>>> days ago) - as a single, eclipse included, bundle - *not* installed into a
>>> pre-existing eclipse.
>>>
>>>
>>> thanks,
>>> John.
>>>
>>>
>>> John Hawkins
>>> Director: Solutions Architecture
>>>
>>>
>>> On Thu, Jul 2, 2015 at 12:39 PM, Harshana Eranga Martin <
>>> harshan...@gmail.com> wrote:
>>>
 Hi John,

 What is the Dev Studio version you are using? Did you download it from
 the Products listing in wso2.com? What is the JDK version you are
 using?

 Thanks and Regards,
 Harshana
 --
 Harshana Eranga Martin

 Committer - Eclipse ECF: http://www.eclipse.org/ecf/
 Blog: http://harshana05.blogspot.com
 Profile: https://www.google.com/profiles/harshana05

 On 2 July 2015 at 19:29, John Hawkins  wrote:

> Hi Folks,
>
> I'm getting a few errors with DevStudio which are really beginning to
> bug me. I can't see anyone else having these errors so I'll put it out
> there so you folks may be able to guide me as to what to do ( or you may
> have seen them before but google has let me down :-)
>
> Key problem is that eclipse/dev studio is struggling to save files
> e.g. an api.xml file or a proxy-service.xml file. This shows itself when I
> try to save a diagram or when I try to move from the diagram to the source
> view. The first error in the chain is...
>
>
>
> *Problems occurred when invoking code from plug-in:
> "org.eclipse.ui.workbench". which has the stacktrace of *
>
> *java.lang.NullPointerException*
> * at
> org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.selectionChanged(CompatibilityPart.java:435)*
> * at
> org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:110)*
> * at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)*
> * at
> org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChange(MultiPageSelectionProvider.java:108)*
> * etc.etc.*
>
>
>
>
> It then has three other errors along those lines.
>
> This may or may not be related but.What also happens is that files
> also don't look right in the esb editor.. They come out as a tree 
> structure
> and not the nice diagram editor. In order to get around this (and get it
> opening in the nice diagram editor) I have to close the WSO2 ESB Graphical
> perspective and then re-open the Dev Studio (by going "Dev Studio->Open
> Dashboard". That solves the problem of the editor not showing the 
> graphical
> view and also seems to solve the problem of file saving. However, it's not
> long before both problems come back - but I have no idea what sequence of
> events makes them c

Re: [Dev] [ESB][Twitter_Connector] no dependency information available Error

2015-07-02 Thread Malaka Silva
Merged

On Fri, Jul 3, 2015 at 11:24 AM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi Rajjaz,
> You need to build integration base before build any other connector. You
> can find the integration base at [1].
>
> @Malaka,
> Can we merge the pull request [1].
>
> [1]. https://github.com/wso2/esb-connectors/pull/109
>
> Thanks,
>
> On Fri, Jul 3, 2015 at 11:17 AM, Rajjaz Mohammed  wrote:
>
>> Hi All,
>> When i try to build a Twitter Connector I’m getting the following error
>> message with Build Failure. is there any Suggestions to Correct it?
>>
>> 
>> 
>> [WARNING] The POM for org.eclipse:org.sat4j.core:jar:2.1.0.v20090520 is
>> invalid, transitive dependencies (if any) will not be available, enable
>> debug logging for more details
>> [WARNING] The POM for org.eclipse:org.sat4j.pb:jar:2.1.0.v20090520 is
>> invalid, transitive dependencies (if any) will not be available, enable
>> debug logging for more details
>> [WARNING] The POM for org.eclipse:com.ibm.icu:jar:4.0.1.v20090415 is
>> invalid, transitive dependencies (if any) will not be available, enable
>> debug logging for more details
>> [WARNING] The POM for org.wso2.esb.integration:integration-base:jar:1.0.1
>> is missing, no dependency information available
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 3.721s
>> [INFO] Finished at: Fri Jul 03 11:13:07 IST 2015
>> [INFO] Final Memory: 34M/574M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal on project
>> org.wso2.carbon.connector.twitter: Could not resolve dependencies for
>> project
>> org.wso2.carbon.connector:org.wso2.carbon.connector.twitter:jar:1.0.0:
>> Failure to find org.wso2.esb.integration:integration-base:jar:1.0.1 in
>> http://twitter4j.org/maven2 was cached in the local repository,
>> resolution will not be reattempted until the update interval of
>> twitter4j.org has elapsed or updates are forced -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>>
>>
>>
>> --
>> Thank you
>> Best Regards
>>
>> Rajjaz HM
>> Associate Software Engineer
>> WSO2 Inc. 
>> lean.enterprise.middleware
>> Mobile : +94752833834
>> Email  :raj...@wso2.com
>>
>> LinkedIn 
>> Blogger 
>> WSO2 Profile 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 
> Keerthika Mahendralingam
> Associate Software Engineer
> Mobile :+94 (0) 776 121144
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>



-- 

Best Regards,

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

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


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


Re: [Dev] Setting JAVA_HOME in Solaris 11

2015-07-02 Thread Shiva Balachandran
Hi All,

The blog shared by Vinod worked. Looks like we have to set it in .profile
file.

Thank you for the help.

Regards,

Shiva Balachandran

On Thu, Jul 2, 2015 at 7:45 PM, Milan Perera  wrote:

> Hi Shiva,
>
> First try *java -version* command and see you still get the version as
> the 1.7. If it is yes, that means you may have some
> simlinks in your /usr/bin for java, javac that are still linked to jdk 1.7.
>
> So remove these links first and then try to setup $JAVA_HOME environment
> variable and add $JAVA_HOME/bin to $PATH variable.
>
> Regards,
>
> On Thu, Jul 2, 2015 at 5:33 PM, Viraj Senevirathne 
> wrote:
>
>> Hi,
>>
>> check out this link [1] which have relevant information on the topic.It
>> says that when you install JDK-6 and JDK-7 is already installed, the
>> /usr/java links will continue to point to the JDK with the higher major
>> version. So if you want to set jdk 1.6 follow this link [2].
>>
>> [1] https://blogs.oracle.com/taylor22/entry/java_home_on_solaris_11
>>
>> [2] https://docs.oracle.com/cd/E36784_01/html/E36802/gnztu.html
>>
>> Thanks,
>>
>> On Thu, Jul 2, 2015 at 5:14 PM, Shiva Balachandran 
>> wrote:
>>
>>> Hi All,
>>>
>>> Im trying to setup and run WSO2 APIM on Solaris, I am unable to
>>> configure JAVA HOME. The OS comes with JRE 1.7.0. Therefore i tried
>>> launching the server without specifying the JAVA_HOME in .bashrc, but i get
>>> the error, JAVA_HOME Not defined.
>>>
>>> Then, downloaded JDK 1.6.45 and extracted the pack and set the
>>> $JAVA_HOME in .bashrc, and still i get the same error after sourcing and
>>> restarting the VM.
>>>
>>> Anyone configured and run WSO2 products on Solris 11? Need to know the
>>> right way to set the JAVA_HOME.
>>>
>>> Thank you.
>>>
>>> Regards,
>>> --
>>> Shiva Balachandran
>>> Software Engineer
>>> WSO2 Inc.
>>>
>>> Mobile - +94 774445788
>>> Blog - https://shivabalachandran.wordpress.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Viraj Senevirathne
>> Software Engineer; WSO2, Inc.
>>
>> Mobile : +94 71 818 4742 <%2B94%20%280%29%20773%20451194>
>> Email : vir...@wso2.com 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Milan Harindu Perera
> Software Engineer
> *WSO2, Inc*
> (+94) 77 309 7088
> lean . enterprise . middleware
> 
>



-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

Mobile - +94 774445788
Blog - https://shivabalachandran.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] questions on APPM100

2015-07-02 Thread Gayan Gunawardana
looping to APPM team.

On Fri, Jul 3, 2015 at 7:48 AM, Bill Liu  wrote:

>  Greetings all:
>
>
>
> I have some questions about the usage of APPM100 product:
>
> 1.   How to set port offset to APPM100? I go to  directory>/repository/conf/carbon.xml, then change 0 to
> 10.  Is it enough?
>
> But for my experiment,  when I just did as the above, I have problems to
> login/login out with using https://ip:9453/carbon because I found that
> there are a lot of hard-coded part for port 9443 as follows:
>
> ./event-broker.xml:39:9443
> ./sso-idp-config.xml:23:
> https://localhost:9443/store/acs
> ./sso-idp-config.xml:29:
> https://localhost:9443/social/acs
> ./sso-idp-config.xml:35:
> https://localhost:9443/publisher/acs
> ./security/authenticators.xml:36: name="IdentityProviderSSOServiceURL">https://localhost:9443/samlsso
> 
> ./identity.xml:22:https://localhost:9443/openidserver
> 
> ./identity.xml:24:https://localhost:9443/openid/
> 
> ./identity.xml:81:
> https://localhost:9443/oauth/request-token
> ./identity.xml:82:
> https://localhost:9443/oauth/access-token
> ./identity.xml:83:
> https://localhost:9443/oauth/authorize-url
> ./identity.xml:210:
> https://localhost:9443/samlsso
> ./tomcat/catalina-server.xml:30:redirectPort="9443"
> ./tomcat/catalina-server.xml:53:port="9443"
> ./axis2/axis2.xml_PT:470:
> ./axis2/axis2.xml_NHTTP:472:
> ./axis2/axis2.xml:470:
> ./carbon.xml:117: e.g. Offset=2 and HTTPS port=9443 will set the
> effective HTTPS port to 9445
> ./app-manager.xml:539:
> https://localhost:9443,http://localhost:9763
> ./app-manager.xml:555:
> https://localhost:9443/samlsso
> ./app-manager.xml:563:
> https://localhost:9443
> ./app-manager.xml:591:https://localhost:9443
> 
> ./registry.xml:198:

Re: [Dev] [ESB][Twitter_Connector] no dependency information available Error

2015-07-02 Thread Keerthika Mahendralingam
Hi Rajjaz,
You need to build integration base before build any other connector. You
can find the integration base at [1].

@Malaka,
Can we merge the pull request [1].

[1]. https://github.com/wso2/esb-connectors/pull/109

Thanks,

On Fri, Jul 3, 2015 at 11:17 AM, Rajjaz Mohammed  wrote:

> Hi All,
> When i try to build a Twitter Connector I’m getting the following error
> message with Build Failure. is there any Suggestions to Correct it?
>
> 
> 
> [WARNING] The POM for org.eclipse:org.sat4j.core:jar:2.1.0.v20090520 is
> invalid, transitive dependencies (if any) will not be available, enable
> debug logging for more details
> [WARNING] The POM for org.eclipse:org.sat4j.pb:jar:2.1.0.v20090520 is
> invalid, transitive dependencies (if any) will not be available, enable
> debug logging for more details
> [WARNING] The POM for org.eclipse:com.ibm.icu:jar:4.0.1.v20090415 is
> invalid, transitive dependencies (if any) will not be available, enable
> debug logging for more details
> [WARNING] The POM for org.wso2.esb.integration:integration-base:jar:1.0.1
> is missing, no dependency information available
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 3.721s
> [INFO] Finished at: Fri Jul 03 11:13:07 IST 2015
> [INFO] Final Memory: 34M/574M
> [INFO]
> 
> [ERROR] Failed to execute goal on project
> org.wso2.carbon.connector.twitter: Could not resolve dependencies for
> project
> org.wso2.carbon.connector:org.wso2.carbon.connector.twitter:jar:1.0.0:
> Failure to find org.wso2.esb.integration:integration-base:jar:1.0.1 in
> http://twitter4j.org/maven2 was cached in the local repository,
> resolution will not be reattempted until the update interval of
> twitter4j.org has elapsed or updates are forced -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>
>
>
> --
> Thank you
> Best Regards
>
> Rajjaz HM
> Associate Software Engineer
> WSO2 Inc. 
> lean.enterprise.middleware
> Mobile : +94752833834
> Email  :raj...@wso2.com
>
> LinkedIn 
> Blogger 
> WSO2 Profile 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] NDatasource stub and class loading issue

2015-07-02 Thread Rajith Vitharana
Hi,

Both fixes should be there right? unless ui.stub packages will be exported
by both stub  component and ui component.

Thanks,

On Fri, Jul 3, 2015 at 10:58 AM, Ravi Undupitiya  wrote:

> Hi All,
>
> There's a class loading issue affecting ESB described in [1]. This has
> happened due to changes in [2].
>
> We can fix this issue using [3] however kernel team suggests the fix in
> [2] breaks the package naming convention used as per other UI stubs. @Manoj
> has more details on this.
>
> Please advise whether we should go ahead with fix in [3].
>
>
> [1] https://wso2.org/jira/browse/ESBJAVA-3734
> [2]
> https://github.com/wso2/carbon-commons/commit/3cb5ee0b3f3086fb0e300e2bae7a91f7b365f197
> [3] https://github.com/wso2/carbon-commons/pull/103/files
>
>
>
> Thanks,
> --
> *Ravi Undupitiya*
> Senior Software Engineer; WSO2 http://wso2.com
>
>
> *E-mail: r...@wso2.com **M: **+94 772 930 712
> <%2B94%C2%A0772%20930%20712>*
>
> Lean . Enterprise . Middleware
>



-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DevStudio errors

2015-07-02 Thread Susinda Perera
On Thu, Jul 2, 2015 at 10:31 PM, Viraj Rajaguru  wrote:

> Hi John,
>
> Currently there are two types of ESB editors in DevS 3.7.1.
> 1. Tree structured ESB editor (deprecated)
>

@ Jasintha/Viraj
Isnt it the time for us to remove the old esb editor? Can we do this for
3.8.0 release, i think this would reduce many issues.

2. Drag and drop ESB diagram editor (recommended)
>
> Deprecated tree structured ESB editor is outdated and we are not
> maintaining it.(We are removing this deprecated editor in next DevS 3.8.0
> release). You are getting saving issues/design to source switching issues
> with old editor because it's outdated.
>
> So the solution here is to open ESB config files using recommended ESB
> editor by just double clicking on the config file. (Double click event will
> trigger config file to open in the recommended ESB diagram editor.) Using
> other options such as Right click on config file --> "Open With" --> ESB
> Editor, use "Ctrl" + "Shift" + R to open config files, will result to open
> config files in deprecated ESB editor.
>
> It seems mentioned *java.lang.NullPointerException *exception is not the
> root cause for the issues. Please attach the full error
> log($workspace/.metadata/.log) to check the actual error.
>
> Thanks,
> Viraj.
>
>
>
> On Thu, Jul 2, 2015 at 5:47 PM, John Hawkins  wrote:
>
>> Sorry- I meant to put that in the original message !!
>>
>> Here is the "data" section of the error in eclipse
>> eclipse.buildId=4.3.2.M20140221-1700
>> java.version=1.7.0_79
>> java.vendor=Oracle Corporation
>> BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
>> Framework arguments:  -product org.eclipse.epp.package.jee.product
>> -keyring /Users/wso2/.eclipse_keyring -showlocation
>> Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product
>> org.eclipse.epp.package.jee.product -keyring /Users/wso2/.eclipse_keyring
>> -showlocation
>>
>>
>> And I downloaded devstudio (3.7.1) right of the wso2.com pages (two days
>> ago) - as a single, eclipse included, bundle - *not* installed into a
>> pre-existing eclipse.
>>
>>
>> thanks,
>> John.
>>
>>
>> John Hawkins
>> Director: Solutions Architecture
>>
>>
>> On Thu, Jul 2, 2015 at 12:39 PM, Harshana Eranga Martin <
>> harshan...@gmail.com> wrote:
>>
>>> Hi John,
>>>
>>> What is the Dev Studio version you are using? Did you download it from
>>> the Products listing in wso2.com? What is the JDK version you are using?
>>>
>>> Thanks and Regards,
>>> Harshana
>>> --
>>> Harshana Eranga Martin
>>>
>>> Committer - Eclipse ECF: http://www.eclipse.org/ecf/
>>> Blog: http://harshana05.blogspot.com
>>> Profile: https://www.google.com/profiles/harshana05
>>>
>>> On 2 July 2015 at 19:29, John Hawkins  wrote:
>>>
 Hi Folks,

 I'm getting a few errors with DevStudio which are really beginning to
 bug me. I can't see anyone else having these errors so I'll put it out
 there so you folks may be able to guide me as to what to do ( or you may
 have seen them before but google has let me down :-)

 Key problem is that eclipse/dev studio is struggling to save files e.g.
 an api.xml file or a proxy-service.xml file. This shows itself when I try
 to save a diagram or when I try to move from the diagram to the source
 view. The first error in the chain is...



 *Problems occurred when invoking code from plug-in:
 "org.eclipse.ui.workbench". which has the stacktrace of *

 *java.lang.NullPointerException*
 * at
 org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.selectionChanged(CompatibilityPart.java:435)*
 * at
 org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:110)*
 * at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)*
 * at
 org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChange(MultiPageSelectionProvider.java:108)*
 * etc.etc.*




 It then has three other errors along those lines.

 This may or may not be related but.What also happens is that files
 also don't look right in the esb editor.. They come out as a tree structure
 and not the nice diagram editor. In order to get around this (and get it
 opening in the nice diagram editor) I have to close the WSO2 ESB Graphical
 perspective and then re-open the Dev Studio (by going "Dev Studio->Open
 Dashboard". That solves the problem of the editor not showing the graphical
 view and also seems to solve the problem of file saving. However, it's not
 long before both problems come back - but I have no idea what sequence of
 events makes them come back !

 I realise this is a bit of a random problem - but it's really making
 editing a very long winded process so any help would be much appreciated !!




 many thanks
 John.

 John Hawkins
 Director: Solutions Architecture


 ___

[Dev] [ESB][Twitter_Connector] no dependency information available Error

2015-07-02 Thread Rajjaz Mohammed
Hi All,
When i try to build a Twitter Connector I’m getting the following error
message with Build Failure. is there any Suggestions to Correct it?



[WARNING] The POM for org.eclipse:org.sat4j.core:jar:2.1.0.v20090520 is
invalid, transitive dependencies (if any) will not be available, enable
debug logging for more details
[WARNING] The POM for org.eclipse:org.sat4j.pb:jar:2.1.0.v20090520 is
invalid, transitive dependencies (if any) will not be available, enable
debug logging for more details
[WARNING] The POM for org.eclipse:com.ibm.icu:jar:4.0.1.v20090415 is
invalid, transitive dependencies (if any) will not be available, enable
debug logging for more details
[WARNING] The POM for org.wso2.esb.integration:integration-base:jar:1.0.1
is missing, no dependency information available
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 3.721s
[INFO] Finished at: Fri Jul 03 11:13:07 IST 2015
[INFO] Final Memory: 34M/574M
[INFO]

[ERROR] Failed to execute goal on project
org.wso2.carbon.connector.twitter: Could not resolve dependencies for
project
org.wso2.carbon.connector:org.wso2.carbon.connector.twitter:jar:1.0.0:
Failure to find org.wso2.esb.integration:integration-base:jar:1.0.1 in
http://twitter4j.org/maven2 was cached in the local repository, resolution
will not be reattempted until the update interval of twitter4j.org has
elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException



-- 
Thank you
Best Regards

Rajjaz HM
Associate Software Engineer
WSO2 Inc. 
lean.enterprise.middleware
Mobile : +94752833834
Email  :raj...@wso2.com

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


Re: [Dev] Issue with Hazelcast node shutdown not being detected until 6-8 minutes in CEP HA mode

2015-07-02 Thread Ramindu De Silva
Hi all,

Even though the above solution works, according to ""[URGENT] (QSPPROD-30)
[AAALife] Issue of maintaining member nodes\ caching in Hazelcast cluster
if one node get crashed" thread, by reducing the heartbeat there can be
some drawbacks.

anyone knows the reason for the scenario to work locally and not to work
when the two nodes are deployed remotely?

Best Regards,

On Fri, Jul 3, 2015 at 8:33 AM, Ramindu De Silva  wrote:

> Hi Hemika,
>
> The above mentioned scenario solved the issue and working as expected.
> Thanks a lot.
>
> Best Regards,
>
> On Thu, Jul 2, 2015 at 7:42 PM, Hemika Kodikara  wrote:
>
>> Hi Ramindu,
>>
>> I am not exactly sure whats causing this issue. Can you try adding [1] to
>> your conf folder and change the hazelcast.max.no.heartbeat.seconds=600 to
>> a lower value ? like 5(implying 5 seconds) or so.
>> Hazelcast sends hearbeats to check whether other nodes are alive or not
>> [2]. You can use the mentioned config to change the time gaps at which the
>> heart beats are sent.
>>
>> This is just a hunch.
>>
>> [1] -
>> https://github.com/wso2/product-mb/blob/master/modules/distribution/src/main/conf/hazelcast.properties
>> [2] -
>> http://docs.hazelcast.org/docs/3.4/manual/html/configurationproperties.html
>>
>> Regards,
>> Hemika
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>> On Thu, Jul 2, 2015 at 12:57 PM, Ramindu De Silva 
>> wrote:
>>
>>> Hi all,
>>>
>>> I have 2 CEP nodes deployed remotely and enabled with HA configurations.
>>> And when the active cep goes down, the passive CEP gets active only after
>>> 6-8 minutes.
>>>
>>> But when i do the same scenario locally, the passive CEP gets active
>>> instantly.
>>>
>>> Any suggestions to overcome this issue will be greatly appreciated.
>>>
>>> Best Regards,
>>>
>>> --
>>> *Ramindu De Silva*
>>> Software Engineer
>>> WSO2 Inc.: http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email: ramin...@wso2.com 
>>> mob: +94 772339350
>>> mob: +94 782731766
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> *Ramindu De Silva*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94 772339350
> mob: +94 782731766
>



-- 
*Ramindu De Silva*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com 
mob: +94 772339350
mob: +94 782731766
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] NDatasource stub and class loading issue

2015-07-02 Thread Ravi Undupitiya
Hi All,

There's a class loading issue affecting ESB described in [1]. This has
happened due to changes in [2].

We can fix this issue using [3] however kernel team suggests the fix in [2]
breaks the package naming convention used as per other UI stubs. @Manoj has
more details on this.

Please advise whether we should go ahead with fix in [3].


[1] https://wso2.org/jira/browse/ESBJAVA-3734
[2]
https://github.com/wso2/carbon-commons/commit/3cb5ee0b3f3086fb0e300e2bae7a91f7b365f197
[3] https://github.com/wso2/carbon-commons/pull/103/files



Thanks,
-- 
*Ravi Undupitiya*
Senior Software Engineer; WSO2 http://wso2.com


*E-mail: r...@wso2.com **M: **+94 772 930 712*

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


Re: [Dev] [Orbit] Please review the PR for Spark 1.4.0 upgrade

2015-07-02 Thread Nirmal Fernando
Thank you!!

On Fri, Jul 3, 2015 at 10:49 AM, Maheshika Goonetilleke 
wrote:

> Hi Nirmal
>
> Successfully deployed.
>
> On Fri, Jul 3, 2015 at 9:30 AM, Nirmal Fernando  wrote:
>
>> Thanks Supun! @Maheshika can we please release this?
>>
>> On Fri, Jul 3, 2015 at 9:28 AM, Supun Malinga  wrote:
>>
>>> Merged.
>>>
>>> thanks,
>>>
>>> On Fri, Jul 3, 2015 at 8:42 AM, Nirmal Fernando  wrote:
>>>
 Please review and merge the PR for Spark-mllib 140:
 https://github.com/wso2/orbit/pull/108

 On Thu, Jul 2, 2015 at 4:58 PM, Niranda Perera 
 wrote:

> thanks Kasun :-)
>
> On Thu, Jul 2, 2015 at 4:57 PM, KasunG Gajasinghe 
> wrote:
>
>> Hi Niranda,
>>
>> Released the bundles.
>>
>> On Thu, Jul 2, 2015 at 2:36 PM, Niranda Perera 
>> wrote:
>>
>>> Hi Maheshika,
>>>
>>> could you please deploy the following orbit bundles?
>>>
>>> paranamer/2.6.wso2v1
>>> spark-core_2.10/1.4.0.wso2v1
>>> spark-sql_2.10/1.4.0.wso2v1
>>> spark-streaming_2.10/1.4.0.wso2v1
>>>
>>> thanks
>>>
>>> On Thu, Jul 2, 2015 at 2:23 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Niranda,

 I have merged the PR.

 Regards,
 Nira

 On Thu, Jul 2, 2015 at 2:01 PM, Niranda Perera 
 wrote:

> Hi Niranjan,
>
> I just made the changes. could you please review?
>
> On Thu, Jul 2, 2015 at 1:51 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Niranda,
>>
>> As per the offline discussion we had with KasunG, please change
>> the export package version to the project's (pom) version.
>>
>> Regards,
>> Nira
>>
>> On Wed, Jul 1, 2015 at 8:39 PM, Niranda Perera 
>> wrote:
>>
>>> the link in the above mail has to change to [1].
>>>
>>> sorry about the inconvenience.
>>>
>>> rgds
>>>
>>> [1] https://github.com/wso2/orbit/pull/105
>>>
>>> On Wed, Jul 1, 2015 at 8:34 PM, Niranda Perera >> > wrote:
>>>
 Hi Sameera,

 Could you please review this PR [1] for Spark 1.4.0.

 this upgrades spark-core and spark-sql from 1.3.0 to 1.4.0.
 this upgrade is done, because 1.4.0 has some important bug fixes 
 related to
 spark clustering and we need to include these in the DAS (BAM) 
 3.0.0 beta

 it also adds paranamer/2.6.wso2v1 which is a runtime dependency

 cheers

 [1] https://github.com/wso2/orbit/pull/83

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 
 https://pythagoreanscript.wordpress.com/

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



 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

>>>
>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso

Re: [Dev] [Orbit] Please review the PR for Spark 1.4.0 upgrade

2015-07-02 Thread Maheshika Goonetilleke
Hi Nirmal

Successfully deployed.

On Fri, Jul 3, 2015 at 9:30 AM, Nirmal Fernando  wrote:

> Thanks Supun! @Maheshika can we please release this?
>
> On Fri, Jul 3, 2015 at 9:28 AM, Supun Malinga  wrote:
>
>> Merged.
>>
>> thanks,
>>
>> On Fri, Jul 3, 2015 at 8:42 AM, Nirmal Fernando  wrote:
>>
>>> Please review and merge the PR for Spark-mllib 140:
>>> https://github.com/wso2/orbit/pull/108
>>>
>>> On Thu, Jul 2, 2015 at 4:58 PM, Niranda Perera  wrote:
>>>
 thanks Kasun :-)

 On Thu, Jul 2, 2015 at 4:57 PM, KasunG Gajasinghe 
 wrote:

> Hi Niranda,
>
> Released the bundles.
>
> On Thu, Jul 2, 2015 at 2:36 PM, Niranda Perera 
> wrote:
>
>> Hi Maheshika,
>>
>> could you please deploy the following orbit bundles?
>>
>> paranamer/2.6.wso2v1
>> spark-core_2.10/1.4.0.wso2v1
>> spark-sql_2.10/1.4.0.wso2v1
>> spark-streaming_2.10/1.4.0.wso2v1
>>
>> thanks
>>
>> On Thu, Jul 2, 2015 at 2:23 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Niranda,
>>>
>>> I have merged the PR.
>>>
>>> Regards,
>>> Nira
>>>
>>> On Thu, Jul 2, 2015 at 2:01 PM, Niranda Perera 
>>> wrote:
>>>
 Hi Niranjan,

 I just made the changes. could you please review?

 On Thu, Jul 2, 2015 at 1:51 PM, Niranjan Karunanandham <
 niran...@wso2.com> wrote:

> Hi Niranda,
>
> As per the offline discussion we had with KasunG, please change
> the export package version to the project's (pom) version.
>
> Regards,
> Nira
>
> On Wed, Jul 1, 2015 at 8:39 PM, Niranda Perera 
> wrote:
>
>> the link in the above mail has to change to [1].
>>
>> sorry about the inconvenience.
>>
>> rgds
>>
>> [1] https://github.com/wso2/orbit/pull/105
>>
>> On Wed, Jul 1, 2015 at 8:34 PM, Niranda Perera 
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> Could you please review this PR [1] for Spark 1.4.0.
>>>
>>> this upgrades spark-core and spark-sql from 1.3.0 to 1.4.0. this
>>> upgrade is done, because 1.4.0 has some important bug fixes related 
>>> to
>>> spark clustering and we need to include these in the DAS (BAM) 
>>> 3.0.0 beta
>>>
>>> it also adds paranamer/2.6.wso2v1 which is a runtime dependency
>>>
>>> cheers
>>>
>>> [1] https://github.com/wso2/orbit/pull/83
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 
 https://pythagoreanscript.wordpress.com/

>>>
>>>
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> Senior Software Engineer - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 
 https://pythagoreanscript.wordpress.com/

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


>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>> __

[Dev] [Registry] Sql Exception: Timeout trying to lock table "REG_RESOURCE" while upgrading to C 4.4.0

2015-07-02 Thread Ruwan Abeykoon
Hi G-Reg team,
I have encountered the following error while upgrading AppManager to use
carbon 4.4.0

Registry version : 4.4.3
Governance Version : 4.5.1

What could be the cause?

--

[2015-07-02 19:00:18,911] ERROR - AsyncIndexer Error while indexing.

org.wso2.carbon.registry.core.exceptions.RegistryException: Error at
IndexDocumentCreator when getting Registry Comment.

at
org.wso2.carbon.registry.indexing.indexer.IndexDocumentCreator.addComments(IndexDocumentCreator.java:217)

at
org.wso2.carbon.registry.indexing.indexer.IndexDocumentCreator.createIndexDocument(IndexDocumentCreator.java:110)

at
org.wso2.carbon.registry.indexing.AsyncIndexer$IndexingTask.createIndexDocument(AsyncIndexer.java:212)

at
org.wso2.carbon.registry.indexing.AsyncIndexer$IndexingTask.run(AsyncIndexer.java:196)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

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

Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException:
Failed to check the existence of the resource
/_system/governance/appmgt/applicationdata/provider/admin/a31/a31/webapp.
Timeout trying to lock table "REG_RESOURCE"; SQL statement:

SELECT REG_VERSION FROM REG_RESOURCE WHERE REG_PATH_ID=? AND REG_NAME=? AND
REG_TENANT_ID=? [50200-140]

at
org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.getVersion(JDBCResourceDAO.java:206)

at
org.wso2.carbon.registry.core.utils.RegistryUtils.getResourceWithMinimumData(RegistryUtils.java:1804)

at
org.wso2.carbon.registry.core.jdbc.dao.JDBCCommentsVersionDAO.getResourceWithMinimumData(JDBCCommentsVersionDAO.java:521)

at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.getComments(EmbeddedRegistry.java:1980)

at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.getComments(CacheBackedRegistry.java:381)

at
org.wso2.carbon.registry.core.session.UserRegistry.getCommentsInternal(UserRegistry.java:1590)

at
org.wso2.carbon.registry.core.session.UserRegistry.access$3100(UserRegistry.java:60)

at
org.wso2.carbon.registry.core.session.UserRegistry$32.run(UserRegistry.java:1573)

at
org.wso2.carbon.registry.core.session.UserRegistry$32.run(UserRegistry.java:1570)

at java.security.AccessController.doPrivileged(Native Method)

at
org.wso2.carbon.registry.core.session.UserRegistry.getComments(UserRegistry.java:1570)

at
org.wso2.carbon.registry.indexing.indexer.IndexDocumentCreator.addComments(IndexDocumentCreator.java:213)

... 8 more

Caused by: org.h2.jdbc.JdbcSQLException: Timeout trying to lock table
"REG_RESOURCE"; SQL statement:

-- 

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

email: ruw...@wso2.com
phone:(+94) 39736
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Production Endpoint validation button returns invalid for Wikipedia sample- API Manager 1.9.0

2015-07-02 Thread Nuwan Dias
We should check for 405 as well because we handle it specially and consider
it a valid endpoint because 405 means HEAD is not supported but the
endpoint exists.

Thanks,
NuwanD.

On Fri, Jul 3, 2015 at 10:15 AM, Nuwan Dias  wrote:

> Hi,
>
> We (Saneth, Myself and TharinduA) had a chat and this is what we came up
> with to test this usecase.
>
> 1. Deploy a jax-rs backend which has endpoints which would return 2xx,
> 3xx, 4xx and 5xx responses for HTTP HEAD.
>
> 2. The endpoint validity button should say valid for the 2xx and 3xx
> responses but say invalid for the 4xx and 5xx responses.
>
> Thanks,
> NuwanD.
>
> On Thu, Jul 2, 2015 at 5:08 PM, Sanjeewa Malalgoda 
> wrote:
>
>>
>>
>> On Thu, Jul 2, 2015 at 4:56 PM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> Hi Sanjeewa,
>>>
>>> 1) Doesn't this "Test" functionality confuse because it return
>>> as "invalid" for the wikipedia  endpoint that is used in APIM samples [1]
>>> ?. But sample is working correctly with out any issue.
>>>
>>> 2) Backend automation of APIM-29 [2] is blocked due to this, what is the
>>> correct and recommended approach to test the functionality of "Test" button
>>> ?
>>>
>> Provide URL which return 2XX or 3XX result for http head method. Base
>> server URL should return that response.
>> We cannot test each and every resource client define. What we do here is
>> validate base server url.
>> When you invoke service you may append different path,query parameters
>> and it may dispatch to different resource and you may get correct response
>> that is why sample works.
>> Hope this is clear.
>>
>> Thanks,
>> sanjeewa,
>>
>>>
>>>
>>> [1]
>>> https://docs.wso2.com/display/AM160/Deploying+and+Testing+Wikipedia+API
>>> [2]
>>> https://testlink.wso2.com/linkto.php?tprojectPrefix=APIM&item=testcase&id=APIM-29
>>>
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile: +94772325511
>>>
>>> On Tue, Jun 30, 2015 at 11:42 AM, Sanjeewa Malalgoda 
>>> wrote:
>>>
 In test method what we do is HTTP head call to back end(standard
 approach for check service availability).
 And it should return 2XX or 3XX response for that. Otherwise it will
 fail.

 Thanks,
 sanjeewa.

 On Tue, Jun 30, 2015 at 11:38 AM, Lasitha Deergawansa >>> > wrote:

> Hi APIM Team,
>
> Is there any reason for this behavior of this test button?
>
> Regards,
> Lasitha.
>
> On Tue, Jun 23, 2015 at 12:44 PM, Lasitha Deergawansa <
> lasi...@wso2.com> wrote:
>
>> Hi All,
>>
>> I have created the Wikipedia API manually which was in sample[1]  and
>> it is working fine. After I clicked on "Edit" and try to validate "Test"
>> button in "Production end point" in API implementation page it gives as
>> "invalid".
>> Endpoint: http://en.wikipedia.org/w/api.php
>>
>>
>> [1]-
>> https://docs.wso2.com/display/AM160/Deploying+and+Testing+Wikipedia+API
>>
>> Regards,
>> Lasitha.
>>
>>
>>
>


 --

 *Sanjeewa Malalgoda*
 WSO2 Inc.
 Mobile : +94713068779

  blog
 :http://sanjeewamalalgoda.blogspot.com/
 



>>>
>>
>>
>> --
>>
>> *Sanjeewa Malalgoda*
>> WSO2 Inc.
>> Mobile : +94713068779
>>
>>  blog
>> :http://sanjeewamalalgoda.blogspot.com/
>> 
>>
>>
>>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Production Endpoint validation button returns invalid for Wikipedia sample- API Manager 1.9.0

2015-07-02 Thread Nuwan Dias
Hi,

We (Saneth, Myself and TharinduA) had a chat and this is what we came up
with to test this usecase.

1. Deploy a jax-rs backend which has endpoints which would return 2xx, 3xx,
4xx and 5xx responses for HTTP HEAD.

2. The endpoint validity button should say valid for the 2xx and 3xx
responses but say invalid for the 4xx and 5xx responses.

Thanks,
NuwanD.

On Thu, Jul 2, 2015 at 5:08 PM, Sanjeewa Malalgoda 
wrote:

>
>
> On Thu, Jul 2, 2015 at 4:56 PM, Saneth Dharmakeerthi 
> wrote:
>
>> Hi Sanjeewa,
>>
>> 1) Doesn't this "Test" functionality confuse because it return
>> as "invalid" for the wikipedia  endpoint that is used in APIM samples [1]
>> ?. But sample is working correctly with out any issue.
>>
>> 2) Backend automation of APIM-29 [2] is blocked due to this, what is the
>> correct and recommended approach to test the functionality of "Test" button
>> ?
>>
> Provide URL which return 2XX or 3XX result for http head method. Base
> server URL should return that response.
> We cannot test each and every resource client define. What we do here is
> validate base server url.
> When you invoke service you may append different path,query parameters and
> it may dispatch to different resource and you may get correct response that
> is why sample works.
> Hope this is clear.
>
> Thanks,
> sanjeewa,
>
>>
>>
>> [1]
>> https://docs.wso2.com/display/AM160/Deploying+and+Testing+Wikipedia+API
>> [2]
>> https://testlink.wso2.com/linkto.php?tprojectPrefix=APIM&item=testcase&id=APIM-29
>>
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Tue, Jun 30, 2015 at 11:42 AM, Sanjeewa Malalgoda 
>> wrote:
>>
>>> In test method what we do is HTTP head call to back end(standard
>>> approach for check service availability).
>>> And it should return 2XX or 3XX response for that. Otherwise it will
>>> fail.
>>>
>>> Thanks,
>>> sanjeewa.
>>>
>>> On Tue, Jun 30, 2015 at 11:38 AM, Lasitha Deergawansa 
>>> wrote:
>>>
 Hi APIM Team,

 Is there any reason for this behavior of this test button?

 Regards,
 Lasitha.

 On Tue, Jun 23, 2015 at 12:44 PM, Lasitha Deergawansa >>> > wrote:

> Hi All,
>
> I have created the Wikipedia API manually which was in sample[1]  and
> it is working fine. After I clicked on "Edit" and try to validate "Test"
> button in "Production end point" in API implementation page it gives as
> "invalid".
> Endpoint: http://en.wikipedia.org/w/api.php
>
>
> [1]-
> https://docs.wso2.com/display/AM160/Deploying+and+Testing+Wikipedia+API
>
> Regards,
> Lasitha.
>
>
>

>>>
>>>
>>> --
>>>
>>> *Sanjeewa Malalgoda*
>>> WSO2 Inc.
>>> Mobile : +94713068779
>>>
>>>  blog
>>> :http://sanjeewamalalgoda.blogspot.com/
>>> 
>>>
>>>
>>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  blog
> :http://sanjeewamalalgoda.blogspot.com/
> 
>
>
>


-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Exception when running a JMX application in AS multi-tenant environment

2015-07-02 Thread Supun Malinga
Hi,

Shouldn't we include this by default.. ?

thanks,

On Fri, Jul 3, 2015 at 10:02 AM, Chathura Priyankara 
wrote:

> Hi,
>
> I was able to solve this issue by adding rmi context in carbon.xml
> as mentioned in [1].
>
> [1]
> http://wso2.com/library/articles/2013/02/jmx-monitoring-wso2-bam/#multitenancy
>
> Thanks,
> Chathura.
>
> On Thu, Jul 2, 2015 at 11:13 PM, Chathura Priyankara 
> wrote:
>
>> Hi All,
>>
>> When I'm trying to use JMX webapp in AS multi tenant environment I'm
>> getting following exception.
>>
>> org.springframework.web.util.NestedServletException: Request processing
>> failed; nested exception is java.lang.IllegalArgumentException:
>> rmiURLContext: name is not an RMI URL: 1
>>
>> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:927)
>>
>> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
>>
>> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> root cause
>>
>> java.lang.IllegalArgumentException: rmiURLContext: name is not an RMI
>> URL: 1
>>
>> com.sun.jndi.url.rmi.rmiURLContext.getRootURLContext(rmiURLContext.java:64)
>>
>> com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:200)
>>
>> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.getInitialContext(CarbonContextDataHolder.java:886)
>>
>> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:951)
>> javax.naming.InitialContext.lookup(InitialContext.java:411)
>>
>> javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1929)
>>
>> javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1896)
>> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:286)
>> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:249)
>> org.wso2.carbon.jms.HelloController.printWelcome(HelloController.java:23)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> java.lang.reflect.Method.invoke(Method.java:606)
>>
>> org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
>>
>> org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:439)
>>
>> org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:427)
>>
>> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
>>
>> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
>>
>> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915)
>>
>> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
>>
>> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>
>> However this works fine in super tenant mode.
>> The JMX service URL that I'm using is as follows
>> service:jmx:rmi://localhost:1199/jndi/rmi://localhost:1199/jmxrmi.
>>
>> I found similar exceptions are reported in few places but I could not
>> solve this in AS.
>> Any suggestion to overcome this issue is highly appreciated.
>>
>> Thanks,
>> Chathura.
>>
>>
>>
>> --
>> Chathura Priyankara
>> Software Engineer | WSO2 Inc.
>> Mobile : +94718795340
>> Blog : www.codeoncloud.blogspot.com
>>
>
>
>
> --
> Chathura Priyankara
> Software Engineer | WSO2 Inc.
> Mobile : +94718795340
> Blog : www.codeoncloud.blogspot.com
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Exception when running a JMX application in AS multi-tenant environment

2015-07-02 Thread Chathura Priyankara
Hi,

I was able to solve this issue by adding rmi context in carbon.xml
as mentioned in [1].

[1]
http://wso2.com/library/articles/2013/02/jmx-monitoring-wso2-bam/#multitenancy

Thanks,
Chathura.

On Thu, Jul 2, 2015 at 11:13 PM, Chathura Priyankara 
wrote:

> Hi All,
>
> When I'm trying to use JMX webapp in AS multi tenant environment I'm
> getting following exception.
>
> org.springframework.web.util.NestedServletException: Request processing
> failed; nested exception is java.lang.IllegalArgumentException:
> rmiURLContext: name is not an RMI URL: 1
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:927)
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
>
> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> root cause
>
> java.lang.IllegalArgumentException: rmiURLContext: name is not an RMI URL:
> 1
> com.sun.jndi.url.rmi.rmiURLContext.getRootURLContext(rmiURLContext.java:64)
>
> com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:200)
>
> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.getInitialContext(CarbonContextDataHolder.java:886)
>
> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:951)
> javax.naming.InitialContext.lookup(InitialContext.java:411)
>
> javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1929)
>
> javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1896)
> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:286)
> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:249)
> org.wso2.carbon.jms.HelloController.printWelcome(HelloController.java:23)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> java.lang.reflect.Method.invoke(Method.java:606)
>
> org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
>
> org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:439)
>
> org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:427)
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
>
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915)
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
>
> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
> However this works fine in super tenant mode.
> The JMX service URL that I'm using is as follows
> service:jmx:rmi://localhost:1199/jndi/rmi://localhost:1199/jmxrmi.
>
> I found similar exceptions are reported in few places but I could not
> solve this in AS.
> Any suggestion to overcome this issue is highly appreciated.
>
> Thanks,
> Chathura.
>
>
>
> --
> Chathura Priyankara
> Software Engineer | WSO2 Inc.
> Mobile : +94718795340
> Blog : www.codeoncloud.blogspot.com
>



-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dynamically setting sequence key

2015-07-02 Thread Rukshani Weerasinha
Hi,

Thank you for this information. It will be added to the docs. I will reply
once that is done.

Best Regards,
Rukshani.

On Thu, Jul 2, 2015 at 9:53 PM, Amal Gunatilake  wrote:

> The same can be done with switch mediator, but then once we add a new
> sequence we need to update the existing code (switch mediator) by adding a
> new case.
> With the proposed idea we can add any number of dynamic sequences without
> updating the existing code. :)
>
> On Thu, Jul 2, 2015 at 6:17 PM, Amal Gunatilake  wrote:
>
>>
>>
>> On Thu, Jul 2, 2015 at 6:02 PM, Amal Gunatilake  wrote:
>>
>>> Hi Team,
>>>
>>> I think it's better to add the following configuration on "*How to
>>> switch between sequence using property*" to the sequence mediator
>>> documentation.
>>>
>>> There was a requirement to switch between sequences based on a message
>>> header parameter when there is a *WS chaining*. (I have attached the
>>> diagram which related to initial requirement for better understanding)
>>>
>>> This can be done with following approach.
>>>
>>> *Set the custom header in the message*
>>>
>>> 
>>> http://example.com/esb/destination"; name="ns:destination" 
>>> scope="default" value="sequence1"/>
>>>
>>>
>>> *How to extract the property and dynamically switch the sequence*
>>>
>>> http://example.com/esb/destination"; name="DESTINATION" 
>>> expression="//ns:destination"/>>> key="{get-property('DESTINATION')}"/>
>>>
>>> Since this is a already available functionality, I think we can add this
>>> valuable information to the WSO2 ESB documentation. WDYT?
>>>
>>> Best regards,
>>> Amal.
>>>
>>>
>>> --
>>> *Amal Gunatilake*
>>>  Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>
>>
>>
>> --
>> *Amal Gunatilake*
>>  Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>



-- 
Rukshani Weerasinha

WSO2 Inc.
Web:http://wso2.com
Mobile: 0777 683 738
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Please review the PR for Spark 1.4.0 upgrade

2015-07-02 Thread Nirmal Fernando
Thanks Supun! @Maheshika can we please release this?

On Fri, Jul 3, 2015 at 9:28 AM, Supun Malinga  wrote:

> Merged.
>
> thanks,
>
> On Fri, Jul 3, 2015 at 8:42 AM, Nirmal Fernando  wrote:
>
>> Please review and merge the PR for Spark-mllib 140:
>> https://github.com/wso2/orbit/pull/108
>>
>> On Thu, Jul 2, 2015 at 4:58 PM, Niranda Perera  wrote:
>>
>>> thanks Kasun :-)
>>>
>>> On Thu, Jul 2, 2015 at 4:57 PM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi Niranda,

 Released the bundles.

 On Thu, Jul 2, 2015 at 2:36 PM, Niranda Perera 
 wrote:

> Hi Maheshika,
>
> could you please deploy the following orbit bundles?
>
> paranamer/2.6.wso2v1
> spark-core_2.10/1.4.0.wso2v1
> spark-sql_2.10/1.4.0.wso2v1
> spark-streaming_2.10/1.4.0.wso2v1
>
> thanks
>
> On Thu, Jul 2, 2015 at 2:23 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Niranda,
>>
>> I have merged the PR.
>>
>> Regards,
>> Nira
>>
>> On Thu, Jul 2, 2015 at 2:01 PM, Niranda Perera 
>> wrote:
>>
>>> Hi Niranjan,
>>>
>>> I just made the changes. could you please review?
>>>
>>> On Thu, Jul 2, 2015 at 1:51 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Niranda,

 As per the offline discussion we had with KasunG, please change the
 export package version to the project's (pom) version.

 Regards,
 Nira

 On Wed, Jul 1, 2015 at 8:39 PM, Niranda Perera 
 wrote:

> the link in the above mail has to change to [1].
>
> sorry about the inconvenience.
>
> rgds
>
> [1] https://github.com/wso2/orbit/pull/105
>
> On Wed, Jul 1, 2015 at 8:34 PM, Niranda Perera 
> wrote:
>
>> Hi Sameera,
>>
>> Could you please review this PR [1] for Spark 1.4.0.
>>
>> this upgrades spark-core and spark-sql from 1.3.0 to 1.4.0. this
>> upgrade is done, because 1.4.0 has some important bug fixes related 
>> to
>> spark clustering and we need to include these in the DAS (BAM) 3.0.0 
>> beta
>>
>> it also adds paranamer/2.6.wso2v1 which is a runtime dependency
>>
>> cheers
>>
>> [1] https://github.com/wso2/orbit/pull/83
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

>>>
>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>
>>
>>
>> --
>>
>> *Niranjan Karunanandham*
>> Senior Software Engineer - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>



 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



>>>
>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>



-- 

Thanks & regards,
Nirmal

As

Re: [Dev] [Orbit] Please review the PR for Spark 1.4.0 upgrade

2015-07-02 Thread Supun Malinga
Merged.

thanks,

On Fri, Jul 3, 2015 at 8:42 AM, Nirmal Fernando  wrote:

> Please review and merge the PR for Spark-mllib 140:
> https://github.com/wso2/orbit/pull/108
>
> On Thu, Jul 2, 2015 at 4:58 PM, Niranda Perera  wrote:
>
>> thanks Kasun :-)
>>
>> On Thu, Jul 2, 2015 at 4:57 PM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Niranda,
>>>
>>> Released the bundles.
>>>
>>> On Thu, Jul 2, 2015 at 2:36 PM, Niranda Perera  wrote:
>>>
 Hi Maheshika,

 could you please deploy the following orbit bundles?

 paranamer/2.6.wso2v1
 spark-core_2.10/1.4.0.wso2v1
 spark-sql_2.10/1.4.0.wso2v1
 spark-streaming_2.10/1.4.0.wso2v1

 thanks

 On Thu, Jul 2, 2015 at 2:23 PM, Niranjan Karunanandham <
 niran...@wso2.com> wrote:

> Hi Niranda,
>
> I have merged the PR.
>
> Regards,
> Nira
>
> On Thu, Jul 2, 2015 at 2:01 PM, Niranda Perera 
> wrote:
>
>> Hi Niranjan,
>>
>> I just made the changes. could you please review?
>>
>> On Thu, Jul 2, 2015 at 1:51 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Niranda,
>>>
>>> As per the offline discussion we had with KasunG, please change the
>>> export package version to the project's (pom) version.
>>>
>>> Regards,
>>> Nira
>>>
>>> On Wed, Jul 1, 2015 at 8:39 PM, Niranda Perera 
>>> wrote:
>>>
 the link in the above mail has to change to [1].

 sorry about the inconvenience.

 rgds

 [1] https://github.com/wso2/orbit/pull/105

 On Wed, Jul 1, 2015 at 8:34 PM, Niranda Perera 
 wrote:

> Hi Sameera,
>
> Could you please review this PR [1] for Spark 1.4.0.
>
> this upgrades spark-core and spark-sql from 1.3.0 to 1.4.0. this
> upgrade is done, because 1.4.0 has some important bug fixes related to
> spark clustering and we need to include these in the DAS (BAM) 3.0.0 
> beta
>
> it also adds paranamer/2.6.wso2v1 which is a runtime dependency
>
> cheers
>
> [1] https://github.com/wso2/orbit/pull/83
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>



 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 
 https://pythagoreanscript.wordpress.com/

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


>>>
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> Senior Software Engineer - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 
 https://pythagoreanscript.wordpress.com/

>>>
>>>
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Please review the PR for Spark 1.4.0 upgrade

2015-07-02 Thread Nirmal Fernando
Please review and merge the PR for Spark-mllib 140:
https://github.com/wso2/orbit/pull/108

On Thu, Jul 2, 2015 at 4:58 PM, Niranda Perera  wrote:

> thanks Kasun :-)
>
> On Thu, Jul 2, 2015 at 4:57 PM, KasunG Gajasinghe  wrote:
>
>> Hi Niranda,
>>
>> Released the bundles.
>>
>> On Thu, Jul 2, 2015 at 2:36 PM, Niranda Perera  wrote:
>>
>>> Hi Maheshika,
>>>
>>> could you please deploy the following orbit bundles?
>>>
>>> paranamer/2.6.wso2v1
>>> spark-core_2.10/1.4.0.wso2v1
>>> spark-sql_2.10/1.4.0.wso2v1
>>> spark-streaming_2.10/1.4.0.wso2v1
>>>
>>> thanks
>>>
>>> On Thu, Jul 2, 2015 at 2:23 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Niranda,

 I have merged the PR.

 Regards,
 Nira

 On Thu, Jul 2, 2015 at 2:01 PM, Niranda Perera 
 wrote:

> Hi Niranjan,
>
> I just made the changes. could you please review?
>
> On Thu, Jul 2, 2015 at 1:51 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Niranda,
>>
>> As per the offline discussion we had with KasunG, please change the
>> export package version to the project's (pom) version.
>>
>> Regards,
>> Nira
>>
>> On Wed, Jul 1, 2015 at 8:39 PM, Niranda Perera 
>> wrote:
>>
>>> the link in the above mail has to change to [1].
>>>
>>> sorry about the inconvenience.
>>>
>>> rgds
>>>
>>> [1] https://github.com/wso2/orbit/pull/105
>>>
>>> On Wed, Jul 1, 2015 at 8:34 PM, Niranda Perera 
>>> wrote:
>>>
 Hi Sameera,

 Could you please review this PR [1] for Spark 1.4.0.

 this upgrades spark-core and spark-sql from 1.3.0 to 1.4.0. this
 upgrade is done, because 1.4.0 has some important bug fixes related to
 spark clustering and we need to include these in the DAS (BAM) 3.0.0 
 beta

 it also adds paranamer/2.6.wso2v1 which is a runtime dependency

 cheers

 [1] https://github.com/wso2/orbit/pull/83

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 
 https://pythagoreanscript.wordpress.com/

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



 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

>>>
>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Thanks & regards,
Nirmal

Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Exporting bundles with proper versions

2015-07-02 Thread Rajith Vitharana
Hi,

Most of the current OSGI bundles are not exporting proper package versions
in the manifest file. I feel like it's better if we can enforce this at
least in the future releases, so we may use proper package versions and
follow OSGI best practices. It will also resolve so many class not found
issues and method not found issue in build time as well. which will
increase the product quality.

Thanks

-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue with Hazelcast node shutdown not being detected until 6-8 minutes in CEP HA mode

2015-07-02 Thread Ramindu De Silva
Hi Hemika,

The above mentioned scenario solved the issue and working as expected.
Thanks a lot.

Best Regards,

On Thu, Jul 2, 2015 at 7:42 PM, Hemika Kodikara  wrote:

> Hi Ramindu,
>
> I am not exactly sure whats causing this issue. Can you try adding [1] to
> your conf folder and change the hazelcast.max.no.heartbeat.seconds=600 to
> a lower value ? like 5(implying 5 seconds) or so.
> Hazelcast sends hearbeats to check whether other nodes are alive or not
> [2]. You can use the mentioned config to change the time gaps at which the
> heart beats are sent.
>
> This is just a hunch.
>
> [1] -
> https://github.com/wso2/product-mb/blob/master/modules/distribution/src/main/conf/hazelcast.properties
> [2] -
> http://docs.hazelcast.org/docs/3.4/manual/html/configurationproperties.html
>
> Regards,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>
> On Thu, Jul 2, 2015 at 12:57 PM, Ramindu De Silva 
> wrote:
>
>> Hi all,
>>
>> I have 2 CEP nodes deployed remotely and enabled with HA configurations.
>> And when the active cep goes down, the passive CEP gets active only after
>> 6-8 minutes.
>>
>> But when i do the same scenario locally, the passive CEP gets active
>> instantly.
>>
>> Any suggestions to overcome this issue will be greatly appreciated.
>>
>> Best Regards,
>>
>> --
>> *Ramindu De Silva*
>> Software Engineer
>> WSO2 Inc.: http://wso2.com
>> lean.enterprise.middleware
>>
>> email: ramin...@wso2.com 
>> mob: +94 772339350
>> mob: +94 782731766
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
*Ramindu De Silva*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com 
mob: +94 772339350
mob: +94 782731766
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] questions on APPM100

2015-07-02 Thread Bill Liu
Greetings all:

 

I have some questions about the usage of APPM100 product:

1.   How to set port offset to APPM100? I go to /repository/conf/carbon.xml, then change 0 to
10.  Is it enough?

But for my experiment,  when I just did as the above, I have problems to
login/login out with using https://ip:9453/carbon because I found that there
are a lot of hard-coded part for port 9443 as follows:

./event-broker.xml:39:9443
./sso-idp-config.xml:23:

https://localhost:9443/store/acs
./sso-idp-config.xml:29:

https://localhost:9443/social/acs
./sso-idp-config.xml:35:

https://localhost:9443/publisher/acs
./security/authenticators.xml:36: 
https://localhost:9443/samlsso
./identity.xml:22:

https://localhost:9443/openidserver
./identity.xml:24: 
https://localhost:9443/openid/
./identity.xml:81:

https://localhost:9443/oauth/request-token
./identity.xml:82:

https://localhost:9443/oauth/access-token
./identity.xml:83:

https://localhost:9443/oauth/authorize-url
./identity.xml:210:

https://localhost:9443/samlsso
./tomcat/catalina-server.xml:30:redirectPort="9443" 
./tomcat/catalina-server.xml:53:port="9443"
./axis2/axis2.xml_PT:470:
./axis2/axis2.xml_NHTTP:472:
./axis2/axis2.xml:470:
./carbon.xml:117: e.g. Offset=2 and HTTPS port=9443 will set the
effective HTTPS port to 9445
./app-manager.xml:539:
 https://localhost:9443, 
http://localhost:9763
./app-manager.xml:555:

https://localhost:9443/samlsso
./app-manager.xml:563:
 https://localhost:9443
./app-manager.xml:591: 
https://localhost:9443
./registry.xml:198:

Re: [Dev] how to set up WSO2 APP manager for this special case?

2015-07-02 Thread Bill Liu
Shashiks and Rushmin and all:

Thanks for your fast reply! I totally understood what you wrote.

I knew that I need web servers like Tomcat or Application server to deploy apps 
first. I understood that part. That’s not my question.  In my case, each 
developer has his own account and deploy their apps on Application Server 
already. That task has been done!

 

My question is after that, each developer wants to deploy his own apps in a 
common store, which will be used by a lot of subscribers.

Say, by using  the guide from  
https://docs.wso2.com/display/APPM100/Quick+Start+Guide  , each developer will 
have both creator and publisher roles. Since each developer has publisher role, 
he can publish/unpublish other developers’ apps. That’s not what I want. I want 
each app from one developer is invisible to others. In my case, I don’t have a 
dedicated person for only publisher role. So each developer must have both 
creator and publisher role because otherwise it will delay the process of 
publishing apps.

So my questions are:

1.   Can we use “creating users with different roles” to resolve the above 
issue?

2.   If NO to question 1, then can we use multi-tenant model to do it. That 
is, each developer will be one tenant and has his own domain like 
developer1.com, developer2.com etc such that each developer’s apps will be 
invisible to others. And after that, they will share their apps in a common 
place, i.e.,  a external store, which is something like WSO2 API manager’s 
implementation 
https://docs.wso2.com/display/AM180/Publish+to+multiple+external+API+stores . I 
noticed that APPM100 has the multi-tenant feature, but it seems that it doesn’t 
have the feature of “external store”. How to do “external store” in APPM100?

 

Please advice! 

Thanks in advance!

Bill

 

From: Shashika Karunatilaka [mailto:shashikabo...@gmail.com] 
Sent: Thursday, July 02, 2015 10:06 AM
To: Rushmin Fernando
Cc: Bill Liu; WSO2 Developers' List
Subject: Re: [Dev] how to set up WSO2 APP manager for this special case?

 

Hi Bill,

 

To address your question 1, in WSO2 Application server, for the created tenant 
you can create each developer a separate account(note this yours accounts need 
to have web app management permission on there user account)for the same 
domain, then the developer can upload the web apps using that account

 

Thank You.

 

On Thu, Jul 2, 2015 at 12:41 PM, Rushmin Fernando  > wrote:

Hi Bill,

 

App Manager is a product which helps to govern applications. So you can't 
'deploy' apps in App Manager. In order to deploy apps you can use WSO2 
Application Server [1].

 

Once you have a set of deployed applications across the organization (can be in 
different application servers) you can use App Manager to publish those apps 
and allow users to subscribe.

 

The end users are not aware of the actual application urls, rather they will be 
using the app through the gateway in App Manager. 

 

(By adopting this gateway approach App Manager can have governance when the end 
users use the app)

 

Having set that background,

 

You can have different developers to deploy their apps to WSO2 Application 
Server and create the relevant proxy apps in WSO2 App Manager. And they can 
then submit the this proxy app for review and the a user who has publishing 
permission can approve and publish it.

 

Hope this answers your question :-)

 

 

Thanks

Rushmin

 

[1] - http://wso2.com/products/application-server/

 

 

 

On Thu, Jul 2, 2015 at 7:45 AM, Bill Liu  > wrote:

Thank you Sam and all!

Here I have new question on this. I have the similar scenario, but it’s  for 
WSO2 APP Manager. Here we try to deploy web applications like war files instead 
of API’s. I currently download the binary version 1.0.0 of WSO2 App Manager 
from http://wso2.com/products/app-manager

 

The case is like this:

1.   I have a lot of developers. Each developer develops his/her own web 
applications. And each developer publishes only his own applications, not other 
developers’ applications.

2.   We want to share those applications in a common place to an external 
store such that all subscribers can subscribe to them.

 

How can I do it? 

Thanks in advance!

Bill

 

From: Sam Sivayogam [mailto:s...@wso2.com 
 ] 
Sent: Wednesday, May 27, 2015 11:36 PM
To: Bill Liu
Cc: WSO2 Developers' List
Subject: Re: [Dev] how to set up WSO2 API manager for this special case?

 

Hi Bill,

 

You can use tenants[1] to achieve your use-case. What you can do is, add two 
tenants (refer [2]  ) for developer1 and developer2. When you are adding a 
tenant you will add an admin user for that tenant so using that developer1 and 
developer2 can login to their tenants. When users are adding APIs In Tenant 
mode the API's will remain in their own tenants and will not be visible to 
others. If you want to share the apis developed by developer1 and developer2 in 
a common place you need to publish the API's to an external stor

[Dev] [Orbit] Please review and merge the PR for Lucene 5.2.1 and asm-all 4.1

2015-07-02 Thread Gimantha Bandara
Hi,

Please review and merge [1]

[1] https://github.com/wso2/orbit/pull/107

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


[Dev] BPS Jaggery UI Review Notes

2015-07-02 Thread Waruna Jayaweera
Hi All,

Following updates has been discussed on $subject.

BPMN Explorer

   1. When statistics page get zoom up(When scree size change) charts'
   positions get misplaced and having some issues with content
   arrangement. Layout having some issues depend on screen size.
   2. Add different colour instead on black for active instances in pie
   charts

Human-Task Explorer

   1. Remove coloured circles in my tasks pages. They have alignment issue
   with different scree sizes.
   2. When page Zoom up or Down, There were some issues with page menu and
   content (Same as BPMN explorer). Layout having some issues depend on screen
   size.
   3. Save and Complete buttons needs to adapted to the theme.(you can
   click on mytasks >> start) to view the issue.
   4. Unwanted lines in History tab in task page.
   5. Notifications and Search Menu icons are same. Need to have proper
   icon for notification.
   6. Notification table in Notification List page as some alignment issues.

Please update the thread if there are any further updates.

Best regards,
WarunaJ

-- 
Regards,

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


[Dev] [AS] Exception when running a JMX application in AS multi-tenant environment

2015-07-02 Thread Chathura Priyankara
Hi All,

When I'm trying to use JMX webapp in AS multi tenant environment I'm
getting following exception.

org.springframework.web.util.NestedServletException: Request processing
failed; nested exception is java.lang.IllegalArgumentException:
rmiURLContext: name is not an RMI URL: 1
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:927)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
root cause

java.lang.IllegalArgumentException: rmiURLContext: name is not an RMI URL: 1
com.sun.jndi.url.rmi.rmiURLContext.getRootURLContext(rmiURLContext.java:64)
com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:200)
org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.getInitialContext(CarbonContextDataHolder.java:886)
org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:951)
javax.naming.InitialContext.lookup(InitialContext.java:411)
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1929)
javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1896)
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:286)
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:249)
org.wso2.carbon.jms.HelloController.printWelcome(HelloController.java:23)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:439)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:427)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

However this works fine in super tenant mode.
The JMX service URL that I'm using is as follows
service:jmx:rmi://localhost:1199/jndi/rmi://localhost:1199/jmxrmi.

I found similar exceptions are reported in few places but I could not solve
this in AS.
Any suggestion to overcome this issue is highly appreciated.

Thanks,
Chathura.



-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deploying an ESB Connector with a cApp?

2015-07-02 Thread Malaka Silva
Hi All,

Shakila will be starting to implement this functionality from ESB side.

@Shakila - Any blockers user this mail thread to discuss.

On Tue, Jun 30, 2015 at 5:57 PM, Jasintha Dasanayake 
wrote:

> From tooling perspective, this is similar to class mediator deployment
> using Capp , Since Capp class mediator deployment now working fine with
> Capp so this can be done , However this is also  kind of sever extension so
> we have to educate the users to use this properly.
>
> Thanks and Regards
> /Jasintha
>
> On Tue, Jun 30, 2015 at 5:11 PM, Kasun Indrasiri  wrote:
>
>> Hi,
>>
>> AFAIR, this was discussed several times. But in the context of ESB as a
>> service, I think this will be quite useful. I don't think we have any
>> technical difficulty in doing this.
>>
>> Use case :
>> - We want to invoke a twitter operation.
>> - Import the twitter connector from connector-store( into DevS) and use
>> the twitter connector operation in our mediation logic.
>> - Now we want to deploy the artifact into ESB but it is required to
>> deploy/enable the connector beforehand. (If the connector is not deployed
>> in the ESB instance, this config deployment will fail.)
>> - If we can include the connector as part of the cApp, then the connector
>> deployment is completely transparent to the users.
>>
>> WDYT?
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
>
> *Jasintha Dasanayake*
>
> *Senior Software EngineerWSO2 Inc. | http://wso2.com
> lean . enterprise . middleware*
>
>
> *mobile :- 0711368118 <0711368118>*
>



-- 

Best Regards,

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

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


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


Re: [Dev] ESB-4.9.0-Beta - Cluster set up

2015-07-02 Thread Elilmatha Sivanesan
Hi all ,

The error was missing wso2registry config in registry.xml file Resolved now.


jdbc/WSO2CarbonDB


Thanks.

On Thu, Jul 2, 2015 at 10:47 PM, Elilmatha Sivanesan 
wrote:

>
> Hi ,
>
> Please ignore the above error. Please find the below error log.
>
> elilmathas-MacBook-Pro:bin elilmatha$ sh wso2server.sh
>
> JAVA_HOME environment variable is set to
> /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
>
> CARBON_HOME environment variable is set to
> /Users/elilmatha/Desktop/MQTT/clusteresbs/beta/worker/WSO2_ESB_WORKER_HOME
>
> [2015-07-02 22:44:20,944]  INFO - CarbonCoreActivator Starting WSO2
> Carbon...
>
> [2015-07-02 22:44:20,948]  INFO - CarbonCoreActivator Operating System :
> Mac OS X 10.9.5, x86_64
>
> [2015-07-02 22:44:20,948]  INFO - CarbonCoreActivator Java Home:
> /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre
>
> [2015-07-02 22:44:20,948]  INFO - CarbonCoreActivator Java Version :
> 1.7.0_79
>
> [2015-07-02 22:44:20,948]  INFO - CarbonCoreActivator Java VM  :
> Java HotSpot(TM) 64-Bit Server VM 24.79-b02,Oracle Corporation
>
> [2015-07-02 22:44:20,948]  INFO - CarbonCoreActivator Carbon Home  :
> /Users/elilmatha/Desktop/MQTT/clusteresbs/beta/worker/WSO2_ESB_WORKER_HOME
>
> [2015-07-02 22:44:20,948]  INFO - CarbonCoreActivator Java Temp Dir:
> /Users/elilmatha/Desktop/MQTT/clusteresbs/beta/worker/WSO2_ESB_WORKER_HOME/tmp
>
> [2015-07-02 22:44:20,949]  INFO - CarbonCoreActivator User :
> elilmatha, en-US, Asia/Colombo
>
> [2015-07-02 22:44:21,038]  WARN - ValidationResultPrinter Carbon is
> configured to use the default keystore (wso2carbon.jks). To maximize
> security when deploying to a production environment, configure a new
> keystore with a unique password in the production server profile.
>
> [2015-07-02 22:44:21,040]  WARN - ValidationResultPrinter Swap Memory size
> (MB): 1024 of the system is below the recommended minimum size :2047
>
> [2015-07-02 22:44:21,050]  INFO - AgentHolder Agent created !
>
> [2015-07-02 22:44:21,072]  INFO - AgentDS Successfully deployed Agent
> Client
>
> [2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for http://cxf.apache.org/blueprint/core
>
> [2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for http://cxf.apache.org/configuration/beans
>
> [2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for
> http://cxf.apache.org/configuration/parameterized-types
>
> [2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for
> http://cxf.apache.org/configuration/security
>
> [2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for http://schemas.xmlsoap.org/wsdl/
>
> [2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for http://www.w3.org/2005/08/addressing
>
> [2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for
> http://schemas.xmlsoap.org/ws/2004/08/addressing
>
> [2015-07-02 22:44:23,022] ERROR - RegistryContext Couldn't find db
> configuration 'wso2registry'
>
> [2015-07-02 22:44:23,024] ERROR - EmbeddedRegistryService Failed to
> configure the embedded registry. Invalid data access manager.
>
> [2015-07-02 22:44:23,025] ERROR - RegistryCoreServiceComponent Failed to
> activate Registry Core bundle
>
> org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to
> configure the embedded registry. Invalid data access manager.
>
> at
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.configure(EmbeddedRegistryService.java:167)
>
> at
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.(EmbeddedRegistryService.java:99)
>
> at
> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.getEmbeddedRegistryService(RegistryCoreServiceComponent.java:585)
>
> at
> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.buildRegistryService(RegistryCoreServiceComponent.java:518)
>
> at
> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:123)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:606)
>
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
>
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(

Re: [Dev] ESB-4.9.0-Beta - Cluster set up

2015-07-02 Thread Elilmatha Sivanesan
Hi ,

Please ignore the above error. Please find the below error log.

elilmathas-MacBook-Pro:bin elilmatha$ sh wso2server.sh

JAVA_HOME environment variable is set to
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home

CARBON_HOME environment variable is set to
/Users/elilmatha/Desktop/MQTT/clusteresbs/beta/worker/WSO2_ESB_WORKER_HOME

[2015-07-02 22:44:20,944]  INFO - CarbonCoreActivator Starting WSO2
Carbon...

[2015-07-02 22:44:20,948]  INFO - CarbonCoreActivator Operating System :
Mac OS X 10.9.5, x86_64

[2015-07-02 22:44:20,948]  INFO - CarbonCoreActivator Java Home:
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre

[2015-07-02 22:44:20,948]  INFO - CarbonCoreActivator Java Version :
1.7.0_79

[2015-07-02 22:44:20,948]  INFO - CarbonCoreActivator Java VM  :
Java HotSpot(TM) 64-Bit Server VM 24.79-b02,Oracle Corporation

[2015-07-02 22:44:20,948]  INFO - CarbonCoreActivator Carbon Home  :
/Users/elilmatha/Desktop/MQTT/clusteresbs/beta/worker/WSO2_ESB_WORKER_HOME

[2015-07-02 22:44:20,948]  INFO - CarbonCoreActivator Java Temp Dir:
/Users/elilmatha/Desktop/MQTT/clusteresbs/beta/worker/WSO2_ESB_WORKER_HOME/tmp

[2015-07-02 22:44:20,949]  INFO - CarbonCoreActivator User :
elilmatha, en-US, Asia/Colombo

[2015-07-02 22:44:21,038]  WARN - ValidationResultPrinter Carbon is
configured to use the default keystore (wso2carbon.jks). To maximize
security when deploying to a production environment, configure a new
keystore with a unique password in the production server profile.

[2015-07-02 22:44:21,040]  WARN - ValidationResultPrinter Swap Memory size
(MB): 1024 of the system is below the recommended minimum size :2047

[2015-07-02 22:44:21,050]  INFO - AgentHolder Agent created !

[2015-07-02 22:44:21,072]  INFO - AgentDS Successfully deployed Agent Client

[2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://cxf.apache.org/blueprint/core

[2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://cxf.apache.org/configuration/beans

[2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for
http://cxf.apache.org/configuration/parameterized-types

[2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://cxf.apache.org/configuration/security

[2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://schemas.xmlsoap.org/wsdl/

[2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://www.w3.org/2005/08/addressing

[2015-07-02 22:44:21,279]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for
http://schemas.xmlsoap.org/ws/2004/08/addressing

[2015-07-02 22:44:23,022] ERROR - RegistryContext Couldn't find db
configuration 'wso2registry'

[2015-07-02 22:44:23,024] ERROR - EmbeddedRegistryService Failed to
configure the embedded registry. Invalid data access manager.

[2015-07-02 22:44:23,025] ERROR - RegistryCoreServiceComponent Failed to
activate Registry Core bundle

org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to
configure the embedded registry. Invalid data access manager.

at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.configure(EmbeddedRegistryService.java:167)

at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.(EmbeddedRegistryService.java:99)

at
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.getEmbeddedRegistryService(RegistryCoreServiceComponent.java:585)

at
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.buildRegistryService(RegistryCoreServiceComponent.java:518)

at
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:123)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)

at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)

at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)

at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)

at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)

at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)

at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)

at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107

Re: [Dev] how to set up WSO2 APP manager for this special case?

2015-07-02 Thread Shashika Karunatilaka
Hi Bill,

To address your question 1, in WSO2 Application server, for the created
tenant you can create each developer a separate account(note this yours
accounts need to have web app management permission on there user
account)for the same domain, then the developer can upload the web apps
using that account

Thank You.

On Thu, Jul 2, 2015 at 12:41 PM, Rushmin Fernando > wrote:

> Hi Bill,
>
> App Manager is a product which helps to govern applications. So you can't
> 'deploy' apps in App Manager. In order to deploy apps you can use WSO2
> Application Server [1].
>
> Once you have a set of deployed applications across the organization (can
> be in different application servers) you can use App Manager to publish
> those apps and allow users to subscribe.
>
> The end users are not aware of the actual application urls, rather they
> will be using the app through the gateway in App Manager.
>
> (By adopting this gateway approach App Manager can have governance when
> the end users use the app)
>
> Having set that background,
>
> You can have different developers to deploy their apps to WSO2 Application
> Server and create the relevant proxy apps in WSO2 App Manager. And they can
> then submit the this proxy app for review and the a user who has publishing
> permission can approve and publish it.
>
> Hope this answers your question :-)
>
>
> Thanks
> Rushmin
>
> [1] - http://wso2.com/products/application-server/
>
>
>
> On Thu, Jul 2, 2015 at 7:45 AM, Bill Liu  > wrote:
>
>>  Thank you Sam and all!
>>
>> Here I have new question on this. I have the similar scenario, but it’s
>>  for WSO2 APP Manager. Here we try to deploy web applications like war
>> files instead of API’s. I currently download the binary version 1.0.0 of
>> WSO2 App Manager from http://wso2.com/products/app-manager
>>
>>
>>
>> The case is like this:
>>
>> 1.   I have a lot of developers. Each developer develops his/her own
>> web applications. And each developer publishes only his own applications,
>> not other developers’ applications.
>>
>> 2.   We want to share those applications in a common place to an
>> external store such that all subscribers can subscribe to them.
>>
>>
>>
>> How can I do it?
>>
>> Thanks in advance!
>>
>> Bill
>>
>>
>>
>> *From:* Sam Sivayogam [mailto:s...@wso2.com
>> ]
>> *Sent:* Wednesday, May 27, 2015 11:36 PM
>> *To:* Bill Liu
>> *Cc:* WSO2 Developers' List
>> *Subject:* Re: [Dev] how to set up WSO2 API manager for this special
>> case?
>>
>>
>>
>> Hi Bill,
>>
>>
>>
>> You can use tenants[1] to achieve your use-case. What you can do is, add
>> two tenants (refer [2]  ) for developer1 and developer2. When you are
>> adding a tenant you will add an admin user for that tenant so using that
>> developer1 and developer2 can login to their tenants. When users are adding
>> APIs In Tenant mode the API's will remain in their own tenants and will not
>> be visible to others. If you want to share the apis developed by developer1
>> and developer2 in a common place you need to publish the API's to an
>> external store. In your case you can set super tenant (which will be added
>> by default) as the external store and you can publish the APIs to super
>> tenant's store. refer [3] to setup an external store
>>
>>
>>
>> [1]. https://docs.wso2.com/display/AM180/Multi+Tenant+Architecture
>>
>> [2]. https://docs.wso2.com/display/AM180/Managing+Tenants
>>
>> [3].
>> https://docs.wso2.com/display/AM180/Publish+to+multiple+external+API+stores
>>
>>
>>
>> Thanks,
>>
>> Sam
>>
>>
>>
>> On Thu, May 28, 2015 at 3:25 AM, Bill Liu > > wrote:
>>
>> Greetings all:
>>
>>
>>
>> I am learning WSO2 API manager. I downloaded the binary version 1.8.0
>> from URL, http://wso2.com/api-management/try-it/.  I try to set up the
>> WSO2 API manager to achieve my goal  like this:
>>
>> Here I have a group of developers, like developer1, developer2 and etc.
>> Each developer develops mutiple api's. For example, developer1 develops two
>> api's like api1_1, api1_2. And developer2 develops three api's like api2_1,
>> api2_2, api2_3. Here each developer are allowed to publish ONLY his/her own
>> api's to API store; in other words each developer is NOT allowed to publish
>> any other developer's api's to API store. For example, developer1 is
>> allowed to publish api1_1 and api1_2, but is not allowed to publish api2_1,
>> api2_2, api2_3. And developer2 is allowed to publish api2_1, api2_2 and
>> api2_3, but is not allowed to publish api1_1 and api1_2.
>>
>> The catch here is that the current implementation of WSO2 API manager
>> allows each developer to publish other developer's api, which is not my
>> goal.
>>
>>
>>
>> Please advice how to configure WSO2 API manager to achieve my goal. Or
>> it's impossible?
>>
>> Any suggestion will be highly appreciated.
>>
>>
>>
>> Thanks in advance,
>>
>> Bill
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org 
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>

[Dev] Json-smart 1.1.1 bundle

2015-07-02 Thread Malaka Silva
Hi Carbon Team,

Please check and merge the orbit bundle.

https://github.com/wso2/orbit/pull/106

Best Regards,

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

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


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


Re: [Dev] DevStudio errors

2015-07-02 Thread Viraj Rajaguru
Hi John,

Currently there are two types of ESB editors in DevS 3.7.1.
1. Tree structured ESB editor (deprecated)
2. Drag and drop ESB diagram editor (recommended)

Deprecated tree structured ESB editor is outdated and we are not
maintaining it.(We are removing this deprecated editor in next DevS 3.8.0
release). You are getting saving issues/design to source switching issues
with old editor because it's outdated.

So the solution here is to open ESB config files using recommended ESB
editor by just double clicking on the config file. (Double click event will
trigger config file to open in the recommended ESB diagram editor.) Using
other options such as Right click on config file --> "Open With" --> ESB
Editor, use "Ctrl" + "Shift" + R to open config files, will result to open
config files in deprecated ESB editor.

It seems mentioned *java.lang.NullPointerException *exception is not the
root cause for the issues. Please attach the full error
log($workspace/.metadata/.log) to check the actual error.

Thanks,
Viraj.



On Thu, Jul 2, 2015 at 5:47 PM, John Hawkins  wrote:

> Sorry- I meant to put that in the original message !!
>
> Here is the "data" section of the error in eclipse
> eclipse.buildId=4.3.2.M20140221-1700
> java.version=1.7.0_79
> java.vendor=Oracle Corporation
> BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
> Framework arguments:  -product org.eclipse.epp.package.jee.product
> -keyring /Users/wso2/.eclipse_keyring -showlocation
> Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product
> org.eclipse.epp.package.jee.product -keyring /Users/wso2/.eclipse_keyring
> -showlocation
>
>
> And I downloaded devstudio (3.7.1) right of the wso2.com pages (two days
> ago) - as a single, eclipse included, bundle - *not* installed into a
> pre-existing eclipse.
>
>
> thanks,
> John.
>
>
> John Hawkins
> Director: Solutions Architecture
>
>
> On Thu, Jul 2, 2015 at 12:39 PM, Harshana Eranga Martin <
> harshan...@gmail.com> wrote:
>
>> Hi John,
>>
>> What is the Dev Studio version you are using? Did you download it from
>> the Products listing in wso2.com? What is the JDK version you are using?
>>
>> Thanks and Regards,
>> Harshana
>> --
>> Harshana Eranga Martin
>>
>> Committer - Eclipse ECF: http://www.eclipse.org/ecf/
>> Blog: http://harshana05.blogspot.com
>> Profile: https://www.google.com/profiles/harshana05
>>
>> On 2 July 2015 at 19:29, John Hawkins  wrote:
>>
>>> Hi Folks,
>>>
>>> I'm getting a few errors with DevStudio which are really beginning to
>>> bug me. I can't see anyone else having these errors so I'll put it out
>>> there so you folks may be able to guide me as to what to do ( or you may
>>> have seen them before but google has let me down :-)
>>>
>>> Key problem is that eclipse/dev studio is struggling to save files e.g.
>>> an api.xml file or a proxy-service.xml file. This shows itself when I try
>>> to save a diagram or when I try to move from the diagram to the source
>>> view. The first error in the chain is...
>>>
>>>
>>>
>>> *Problems occurred when invoking code from plug-in:
>>> "org.eclipse.ui.workbench". which has the stacktrace of *
>>>
>>> *java.lang.NullPointerException*
>>> * at
>>> org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.selectionChanged(CompatibilityPart.java:435)*
>>> * at
>>> org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:110)*
>>> * at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)*
>>> * at
>>> org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChange(MultiPageSelectionProvider.java:108)*
>>> * etc.etc.*
>>>
>>>
>>>
>>>
>>> It then has three other errors along those lines.
>>>
>>> This may or may not be related but.What also happens is that files
>>> also don't look right in the esb editor.. They come out as a tree structure
>>> and not the nice diagram editor. In order to get around this (and get it
>>> opening in the nice diagram editor) I have to close the WSO2 ESB Graphical
>>> perspective and then re-open the Dev Studio (by going "Dev Studio->Open
>>> Dashboard". That solves the problem of the editor not showing the graphical
>>> view and also seems to solve the problem of file saving. However, it's not
>>> long before both problems come back - but I have no idea what sequence of
>>> events makes them come back !
>>>
>>> I realise this is a bit of a random problem - but it's really making
>>> editing a very long winded process so any help would be much appreciated !!
>>>
>>>
>>>
>>>
>>> many thanks
>>> John.
>>>
>>> John Hawkins
>>> Director: Solutions Architecture
>>>
>>>
>>> ___
>>> 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
>
>


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

Mobile: +94 77 3683068

Re: [Dev] Dynamically setting sequence key

2015-07-02 Thread Amal Gunatilake
The same can be done with switch mediator, but then once we add a new
sequence we need to update the existing code (switch mediator) by adding a
new case.
With the proposed idea we can add any number of dynamic sequences without
updating the existing code. :)

On Thu, Jul 2, 2015 at 6:17 PM, Amal Gunatilake  wrote:

>
>
> On Thu, Jul 2, 2015 at 6:02 PM, Amal Gunatilake  wrote:
>
>> Hi Team,
>>
>> I think it's better to add the following configuration on "*How to
>> switch between sequence using property*" to the sequence mediator
>> documentation.
>>
>> There was a requirement to switch between sequences based on a message
>> header parameter when there is a *WS chaining*. (I have attached the
>> diagram which related to initial requirement for better understanding)
>>
>> This can be done with following approach.
>>
>> *Set the custom header in the message*
>>
>> 
>> http://example.com/esb/destination"; name="ns:destination" 
>> scope="default" value="sequence1"/>
>>
>>
>> *How to extract the property and dynamically switch the sequence*
>>
>> http://example.com/esb/destination"; name="DESTINATION" 
>> expression="//ns:destination"/>> key="{get-property('DESTINATION')}"/>
>>
>> Since this is a already available functionality, I think we can add this
>> valuable information to the WSO2 ESB documentation. WDYT?
>>
>> Best regards,
>> Amal.
>>
>>
>> --
>> *Amal Gunatilake*
>>  Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>



-- 
*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] Developer Studio > Eclipse-Tools > #1607 has FAILED. Change made by [unknown].

2015-07-02 Thread Bamboo

---
Developer Studio > Eclipse-Tools > #1607 failed.
---
Code has been updated by [unknown].
No failed tests found, a possible compilation error.

https://wso2.org/bamboo/browse/DS0001-DSET01-1607/

-
Currently Responsible
-

No one is responsible for fixing this build.



--
Failing Jobs
--
  - Default Job (Default Stage): No tests found.



--
Code Changes
--
[unknown]:

>Repository has changed but Bamboo is unable to extract changes between 
>revision 0c6a847e3de4ad3322fcdbc6f76062be8328a5c8 and 
>bdc22507d49f1bd4fc4b4350df644ca8ab2d0a5d.



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Best Practice in Throwing Exceptions in test methods signature

2015-07-02 Thread Hemika Kodikara
Hi Nuwan,

Yes, I have missed out on that point. You are correct.

Regards,
Hemika

Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +9477762

On Thu, Jul 2, 2015 at 7:41 PM, Nuwan Wimalasekara  wrote:

> Hi Hemika,
>
> It does not matter. You can have "expectedExceptions" attribute with any
> exception class when the method signature throws Exception class. Cause
> expectedExceptions will check the instance of thrown exception class with
> the exception class defined with expectedExceptions. Below sample test
> method will marked as passed.
>
>
> @Test( expectedExceptions = {*IOException*.class})
> public void testMethod() throws *Exception* {
> .
> throw new *IOException*("File Not Found");
> }
>
> Thanks,
> Nuwanw
>
> On Thu, Jul 2, 2015 at 6:53 PM, Hemika Kodikara  wrote:
>
>> Hi Nuwan,
>>
>> Sorry for barging in like this.
>> I agree with your statement, but what if we want to pass a test cases
>> only if a specific exception is thrown. TestNG allows the
>> "expectedExceptions" annotation to help this out. See [1]. Else we would
>> have to use a try/catch to catch the specific exception and then pass or
>> fail the test case using Assert.fail() method depending on the
>> implementation.
>>
>> [1] - http://www.tutorialspoint.com/testng/testng_exception_test.htm
>>
>> Regards,
>> Hemika
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>> On Thu, Jul 2, 2015 at 6:16 PM, Nuwan Wimalasekara 
>> wrote:
>>
>>> Hi
>>>
>>> It is always better to throw the Exception(super class) as a best
>>> practice when we define a test method rather than throwing the list of
>>> particular exceptions since no one will catch those exception and handle
>>> explicitly. Then it will ensure that the test method will not break once
>>> the methods used within the test method changed and in the test reports It
>>> shows the actual Exception class. So It will ease the test classes
>>> maintainability.
>>>
>>> @Test()
>>> public void testMethod() throws *Exception*  {
>>>
>>>  
>>>   }
>>>
>>> Thanks,
>>> Nuwanw
>>>
>>> --
>>> Nuwan Wimalasekara
>>> Senior Software Engineer - Test Automation
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> phone: +94 71 668 4620
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Setting JAVA_HOME in Solaris 11

2015-07-02 Thread Milan Perera
Hi Shiva,

First try *java -version* command and see you still get the version as the
1.7. If it is yes, that means you may have some
simlinks in your /usr/bin for java, javac that are still linked to jdk 1.7.

So remove these links first and then try to setup $JAVA_HOME environment
variable and add $JAVA_HOME/bin to $PATH variable.

Regards,

On Thu, Jul 2, 2015 at 5:33 PM, Viraj Senevirathne  wrote:

> Hi,
>
> check out this link [1] which have relevant information on the topic.It
> says that when you install JDK-6 and JDK-7 is already installed, the
> /usr/java links will continue to point to the JDK with the higher major
> version. So if you want to set jdk 1.6 follow this link [2].
>
> [1] https://blogs.oracle.com/taylor22/entry/java_home_on_solaris_11
>
> [2] https://docs.oracle.com/cd/E36784_01/html/E36802/gnztu.html
>
> Thanks,
>
> On Thu, Jul 2, 2015 at 5:14 PM, Shiva Balachandran  wrote:
>
>> Hi All,
>>
>> Im trying to setup and run WSO2 APIM on Solaris, I am unable to configure
>> JAVA HOME. The OS comes with JRE 1.7.0. Therefore i tried launching the
>> server without specifying the JAVA_HOME in .bashrc, but i get the error,
>> JAVA_HOME Not defined.
>>
>> Then, downloaded JDK 1.6.45 and extracted the pack and set the $JAVA_HOME
>> in .bashrc, and still i get the same error after sourcing and restarting
>> the VM.
>>
>> Anyone configured and run WSO2 products on Solris 11? Need to know the
>> right way to set the JAVA_HOME.
>>
>> Thank you.
>>
>> Regards,
>> --
>> Shiva Balachandran
>> Software Engineer
>> WSO2 Inc.
>>
>> Mobile - +94 774445788
>> Blog - https://shivabalachandran.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Viraj Senevirathne
> Software Engineer; WSO2, Inc.
>
> Mobile : +94 71 818 4742 <%2B94%20%280%29%20773%20451194>
> Email : vir...@wso2.com 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Milan Harindu Perera
Software Engineer
*WSO2, Inc*
(+94) 77 309 7088
lean . enterprise . middleware

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


Re: [Dev] Issue with Hazelcast node shutdown not being detected until 6-8 minutes in CEP HA mode

2015-07-02 Thread Hemika Kodikara
Hi Ramindu,

I am not exactly sure whats causing this issue. Can you try adding [1] to
your conf folder and change the hazelcast.max.no.heartbeat.seconds=600 to a
lower value ? like 5(implying 5 seconds) or so.
Hazelcast sends hearbeats to check whether other nodes are alive or not
[2]. You can use the mentioned config to change the time gaps at which the
heart beats are sent.

This is just a hunch.

[1] -
https://github.com/wso2/product-mb/blob/master/modules/distribution/src/main/conf/hazelcast.properties
[2] -
http://docs.hazelcast.org/docs/3.4/manual/html/configurationproperties.html

Regards,
Hemika

Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +9477762

On Thu, Jul 2, 2015 at 12:57 PM, Ramindu De Silva  wrote:

> Hi all,
>
> I have 2 CEP nodes deployed remotely and enabled with HA configurations.
> And when the active cep goes down, the passive CEP gets active only after
> 6-8 minutes.
>
> But when i do the same scenario locally, the passive CEP gets active
> instantly.
>
> Any suggestions to overcome this issue will be greatly appreciated.
>
> Best Regards,
>
> --
> *Ramindu De Silva*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94 772339350
> mob: +94 782731766
>
> ___
> 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] Best Practice in Throwing Exceptions in test methods signature

2015-07-02 Thread Nuwan Wimalasekara
Hi Hemika,

It does not matter. You can have "expectedExceptions" attribute with any
exception class when the method signature throws Exception class. Cause
expectedExceptions will check the instance of thrown exception class with
the exception class defined with expectedExceptions. Below sample test
method will marked as passed.


@Test( expectedExceptions = {*IOException*.class})
public void testMethod() throws *Exception* {
.
throw new *IOException*("File Not Found");
}

Thanks,
Nuwanw

On Thu, Jul 2, 2015 at 6:53 PM, Hemika Kodikara  wrote:

> Hi Nuwan,
>
> Sorry for barging in like this.
> I agree with your statement, but what if we want to pass a test cases only
> if a specific exception is thrown. TestNG allows the "expectedExceptions"
> annotation to help this out. See [1]. Else we would have to use a try/catch
> to catch the specific exception and then pass or fail the test case using
> Assert.fail() method depending on the implementation.
>
> [1] - http://www.tutorialspoint.com/testng/testng_exception_test.htm
>
> Regards,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>
> On Thu, Jul 2, 2015 at 6:16 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi
>>
>> It is always better to throw the Exception(super class) as a best
>> practice when we define a test method rather than throwing the list of
>> particular exceptions since no one will catch those exception and handle
>> explicitly. Then it will ensure that the test method will not break once
>> the methods used within the test method changed and in the test reports It
>> shows the actual Exception class. So It will ease the test classes
>> maintainability.
>>
>> @Test()
>> public void testMethod() throws *Exception*  {
>>
>>  
>>   }
>>
>> Thanks,
>> Nuwanw
>>
>> --
>> Nuwan Wimalasekara
>> Senior Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

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


Re: [Dev] [AppFac] Error occurred while loading user application list

2015-07-02 Thread Fathima Dilhasha
Hi Dimuthu,

My tenant id is, dilhasha.wso2.com@dilhashan

Thanks.
Regards,
Dilhasha
 On 2 Jul 2015 10:45, "Dimuthu Leelarathne"  wrote:

> Hi Fathima,
>
> Please send me your tenant details.
>
> thanks,
> dimuthu
>
>
> On Thu, Jul 2, 2015 at 7:27 AM,  wrote:
>
>>  This could be due to corrupted appinfo rxt.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> *From:* Fathima Dilhasha 
>> *Sent:* ‎Thursday‎, ‎July‎ ‎2‎, ‎2015 ‎5‎:‎32‎ ‎AM
>> *To:* Punnadi Gunarathna 
>> *Cc:* WSO2 Developers' List 
>>
>> Hi Punnadi,
>>
>> I started getting this error since last night. I didn't do any activity
>> except for few REST API commands. For example login, app details,
>> triggering a build, etc.
>>
>> Thanks.
>> Regards,
>> Dilhasha
>>
>>
>>
>>
>> Fathima Dilhasha Nazeer 
>> (M.N.F.Dilhasha)
>> Undergraduate | Department of Computer Science and Engineering
>> University of Moratuwa
>> Sri Lanka
>>
>> On Thu, Jul 2, 2015 at 5:18 AM, Punnadi Gunarathna 
>> wrote:
>>
>>> Hi Fathima,
>>>
>>> In that case we will have to dig down what the exact reason of causing
>>> this failure.
>>> When did you start getting this error? What was the last activity you
>>> did prior getting this behavior?
>>>
>>> We can ask someone from cloud team to check the AF logs.
>>>
>>> On Thu, Jul 2, 2015 at 5:16 AM, Fathima Dilhasha >> > wrote:
>>>
 Hi Dimuthu,

 It seems the problem is with that particular account. I created another
 account and it works well without any errors.

 Thanks.
 Regards,
 Dilhasha

 Fathima Dilhasha Nazeer 
 (M.N.F.Dilhasha)
 Undergraduate | Department of Computer Science and Engineering
 University of Moratuwa
 Sri Lanka

 On Thu, Jul 2, 2015 at 5:10 AM, Fathima Dilhasha <
 dilhasha@gmail.com> wrote:

>
> Hi Dimuthu,
>
> No it is not. I'm still getting that error.
>
> Thanks.
> Regards,
> Dilhasha
>
> Fathima Dilhasha Nazeer 
> (M.N.F.Dilhasha)
> Undergraduate | Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> On Wed, Jul 1, 2015 at 10:46 PM, Dimuthu Leelarathne <
> dimut...@wso2.com> wrote:
>
>> Hi Dilhasha,
>>
>> Is this a one time occurring or repeated?
>>
>> thanks,
>> dimuthu
>>
>>
>> On Wed, Jul 1, 2015 at 9:14 PM, Fathima Dilhasha <
>> dilhasha@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I'm getting an error "Error occurred while loading user application
>>> list" in the Application Manager page of App cloud. I have attached
>>> a screen shot of the error I'm getting. Please let me know the reason 
>>> for
>>> this and any way to correct it.
>>>
>>> Thanks.
>>> Regards,
>>> Dilhasha
>>>
>>> Fathima Dilhasha Nazeer 
>>> (M.N.F.Dilhasha)
>>> Undergraduate | Department of Computer Science and Engineering
>>> University of Moratuwa
>>> Sri Lanka
>>>
>>
>>
>>
>> --
>> Dimuthu Leelarathne
>> Director & Product Lead of App Factory
>>
>> WSO2, Inc. (http://wso2.com)
>> email: dimut...@wso2.com
>> Mobile : 0773661935
>>
>> Lean . Enterprise . Middleware
>>
>
>

>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Punnadi Gunarathna
>>> Senior Software Engineer,
>>> WSO2, Inc.; http://wso2.com 
>>> Blog: http://hi-my-world.blogspot.com/
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>>
>>>
>>>
>>>  
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Dimuthu Leelarathne
> Director & Product Lead of App Factory
>
> WSO2, Inc. (http://wso2.com)
> email: dimut...@wso2.com
> Mobile : 0773661935
>
> Lean . Enterprise . Middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] server restart in eclipse dupe bug

2015-07-02 Thread John Hawkins
Excellent - will do - many thanks !

John Hawkins
Director: Solutions Architecture


On Thu, Jul 2, 2015 at 2:45 PM, Isuru Perera  wrote:

> Done. Please add a comment to the original issue.
>
> Thanks!
>
> On Thu, Jul 2, 2015 at 7:03 PM, John Hawkins  wrote:
>
>> OK, please - can you close the clone as well please ?
>>
>> John Hawkins
>> Director: Solutions Architecture
>>
>>
>> On Thu, Jul 2, 2015 at 2:32 PM, Isuru Perera  wrote:
>>
>>> I see the "Reopen Issue" button. I think it's visible as I'm a
>>> developer. Shall I reopen?
>>>
>>> On Thu, Jul 2, 2015 at 6:54 PM, John Hawkins  wrote:
>>>
 Turns out that I had to "clone" it rather than "re-open" - is that what
 you meant or do I just not have the authority to re-open?

 John Hawkins
 Director: Solutions Architecture


 On Thu, Jul 2, 2015 at 2:20 PM, Isuru Perera  wrote:

> Hi John,
>
> It's okay to re-open the JIRA as you can reproduce the issue.
>
> On Thu, Jul 2, 2015 at 6:16 PM, John Hawkins  wrote:
>
>> Hi Folks,
>>
>> I get the same problem as someone else did last year -
>> https://wso2.org/jira/browse/TOOLS-2597
>>
>> That defect is marked closed and un-reproducable - I can reproduce it
>> everytime I restart the ESB server in eclipse server view :-)
>>
>> I'm guessing that what is going on is that whatever is monitoring for
>> the server to close is not working quite correctly and is restarting the
>> server too soon and therefore hitting the port clash. (I've had this sort
>> of thing before when ports are held open even though you think they are
>> closed. I don't know if this is the exact error but very similar - very
>> annoying and OS dependent !).
>>
>> What's the best way to re-open this bug? I'm happy to help in
>> reproducing it if you folks can't in order to get you more information or
>> try out fixes ?
>>
>> many thanks,
>> John.
>>
>> John Hawkins
>> Director: Solutions Architecture
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2
> 
>


>>>
>>>
>>> --
>>> Isuru Perera
>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>> Contact: +IsuruPereraWSO2
>>> 
>>>
>>
>>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] server restart in eclipse dupe bug

2015-07-02 Thread Isuru Perera
Done. Please add a comment to the original issue.

Thanks!

On Thu, Jul 2, 2015 at 7:03 PM, John Hawkins  wrote:

> OK, please - can you close the clone as well please ?
>
> John Hawkins
> Director: Solutions Architecture
>
>
> On Thu, Jul 2, 2015 at 2:32 PM, Isuru Perera  wrote:
>
>> I see the "Reopen Issue" button. I think it's visible as I'm a developer.
>> Shall I reopen?
>>
>> On Thu, Jul 2, 2015 at 6:54 PM, John Hawkins  wrote:
>>
>>> Turns out that I had to "clone" it rather than "re-open" - is that what
>>> you meant or do I just not have the authority to re-open?
>>>
>>> John Hawkins
>>> Director: Solutions Architecture
>>>
>>>
>>> On Thu, Jul 2, 2015 at 2:20 PM, Isuru Perera  wrote:
>>>
 Hi John,

 It's okay to re-open the JIRA as you can reproduce the issue.

 On Thu, Jul 2, 2015 at 6:16 PM, John Hawkins  wrote:

> Hi Folks,
>
> I get the same problem as someone else did last year -
> https://wso2.org/jira/browse/TOOLS-2597
>
> That defect is marked closed and un-reproducable - I can reproduce it
> everytime I restart the ESB server in eclipse server view :-)
>
> I'm guessing that what is going on is that whatever is monitoring for
> the server to close is not working quite correctly and is restarting the
> server too soon and therefore hitting the port clash. (I've had this sort
> of thing before when ports are held open even though you think they are
> closed. I don't know if this is the exact error but very similar - very
> annoying and OS dependent !).
>
> What's the best way to re-open this bug? I'm happy to help in
> reproducing it if you folks can't in order to get you more information or
> try out fixes ?
>
> many thanks,
> John.
>
> John Hawkins
> Director: Solutions Architecture
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Isuru Perera
 Associate Technical Lead | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha
 Contact: +IsuruPereraWSO2
 

>>>
>>>
>>
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2 
>>
>
>


-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] server restart in eclipse dupe bug

2015-07-02 Thread John Hawkins
OK, please - can you close the clone as well please ?

John Hawkins
Director: Solutions Architecture


On Thu, Jul 2, 2015 at 2:32 PM, Isuru Perera  wrote:

> I see the "Reopen Issue" button. I think it's visible as I'm a developer.
> Shall I reopen?
>
> On Thu, Jul 2, 2015 at 6:54 PM, John Hawkins  wrote:
>
>> Turns out that I had to "clone" it rather than "re-open" - is that what
>> you meant or do I just not have the authority to re-open?
>>
>> John Hawkins
>> Director: Solutions Architecture
>>
>>
>> On Thu, Jul 2, 2015 at 2:20 PM, Isuru Perera  wrote:
>>
>>> Hi John,
>>>
>>> It's okay to re-open the JIRA as you can reproduce the issue.
>>>
>>> On Thu, Jul 2, 2015 at 6:16 PM, John Hawkins  wrote:
>>>
 Hi Folks,

 I get the same problem as someone else did last year -
 https://wso2.org/jira/browse/TOOLS-2597

 That defect is marked closed and un-reproducable - I can reproduce it
 everytime I restart the ESB server in eclipse server view :-)

 I'm guessing that what is going on is that whatever is monitoring for
 the server to close is not working quite correctly and is restarting the
 server too soon and therefore hitting the port clash. (I've had this sort
 of thing before when ports are held open even though you think they are
 closed. I don't know if this is the exact error but very similar - very
 annoying and OS dependent !).

 What's the best way to re-open this bug? I'm happy to help in
 reproducing it if you folks can't in order to get you more information or
 try out fixes ?

 many thanks,
 John.

 John Hawkins
 Director: Solutions Architecture


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


>>>
>>>
>>> --
>>> Isuru Perera
>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>> Contact: +IsuruPereraWSO2
>>> 
>>>
>>
>>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] server restart in eclipse dupe bug

2015-07-02 Thread Isuru Perera
I see the "Reopen Issue" button. I think it's visible as I'm a developer.
Shall I reopen?

On Thu, Jul 2, 2015 at 6:54 PM, John Hawkins  wrote:

> Turns out that I had to "clone" it rather than "re-open" - is that what
> you meant or do I just not have the authority to re-open?
>
> John Hawkins
> Director: Solutions Architecture
>
>
> On Thu, Jul 2, 2015 at 2:20 PM, Isuru Perera  wrote:
>
>> Hi John,
>>
>> It's okay to re-open the JIRA as you can reproduce the issue.
>>
>> On Thu, Jul 2, 2015 at 6:16 PM, John Hawkins  wrote:
>>
>>> Hi Folks,
>>>
>>> I get the same problem as someone else did last year -
>>> https://wso2.org/jira/browse/TOOLS-2597
>>>
>>> That defect is marked closed and un-reproducable - I can reproduce it
>>> everytime I restart the ESB server in eclipse server view :-)
>>>
>>> I'm guessing that what is going on is that whatever is monitoring for
>>> the server to close is not working quite correctly and is restarting the
>>> server too soon and therefore hitting the port clash. (I've had this sort
>>> of thing before when ports are held open even though you think they are
>>> closed. I don't know if this is the exact error but very similar - very
>>> annoying and OS dependent !).
>>>
>>> What's the best way to re-open this bug? I'm happy to help in
>>> reproducing it if you folks can't in order to get you more information or
>>> try out fixes ?
>>>
>>> many thanks,
>>> John.
>>>
>>> John Hawkins
>>> Director: Solutions Architecture
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2 
>>
>
>


-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] server restart in eclipse dupe bug

2015-07-02 Thread John Hawkins
Turns out that I had to "clone" it rather than "re-open" - is that what you
meant or do I just not have the authority to re-open?

John Hawkins
Director: Solutions Architecture


On Thu, Jul 2, 2015 at 2:20 PM, Isuru Perera  wrote:

> Hi John,
>
> It's okay to re-open the JIRA as you can reproduce the issue.
>
> On Thu, Jul 2, 2015 at 6:16 PM, John Hawkins  wrote:
>
>> Hi Folks,
>>
>> I get the same problem as someone else did last year -
>> https://wso2.org/jira/browse/TOOLS-2597
>>
>> That defect is marked closed and un-reproducable - I can reproduce it
>> everytime I restart the ESB server in eclipse server view :-)
>>
>> I'm guessing that what is going on is that whatever is monitoring for the
>> server to close is not working quite correctly and is restarting the server
>> too soon and therefore hitting the port clash. (I've had this sort of thing
>> before when ports are held open even though you think they are closed. I
>> don't know if this is the exact error but very similar - very annoying and
>> OS dependent !).
>>
>> What's the best way to re-open this bug? I'm happy to help in reproducing
>> it if you folks can't in order to get you more information or try out fixes
>> ?
>>
>> many thanks,
>> John.
>>
>> John Hawkins
>> Director: Solutions Architecture
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Best Practice in Throwing Exceptions in test methods signature

2015-07-02 Thread Hemika Kodikara
Hi Nuwan,

Sorry for barging in like this.
I agree with your statement, but what if we want to pass a test cases only
if a specific exception is thrown. TestNG allows the "expectedExceptions"
annotation to help this out. See [1]. Else we would have to use a try/catch
to catch the specific exception and then pass or fail the test case using
Assert.fail() method depending on the implementation.

[1] - http://www.tutorialspoint.com/testng/testng_exception_test.htm

Regards,
Hemika

Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +9477762

On Thu, Jul 2, 2015 at 6:16 PM, Nuwan Wimalasekara  wrote:

> Hi
>
> It is always better to throw the Exception(super class) as a best practice
> when we define a test method rather than throwing the list of particular
> exceptions since no one will catch those exception and handle explicitly.
> Then it will ensure that the test method will not break once the methods
> used within the test method changed and in the test reports It shows the
> actual Exception class. So It will ease the test classes maintainability.
>
> @Test()
> public void testMethod() throws *Exception*  {
>
>  
>   }
>
> Thanks,
> Nuwanw
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] server restart in eclipse dupe bug

2015-07-02 Thread John Hawkins
Ah, OK  - thanks; will do.

John Hawkins
Director: Solutions Architecture


On Thu, Jul 2, 2015 at 2:20 PM, Isuru Perera  wrote:

> Hi John,
>
> It's okay to re-open the JIRA as you can reproduce the issue.
>
> On Thu, Jul 2, 2015 at 6:16 PM, John Hawkins  wrote:
>
>> Hi Folks,
>>
>> I get the same problem as someone else did last year -
>> https://wso2.org/jira/browse/TOOLS-2597
>>
>> That defect is marked closed and un-reproducable - I can reproduce it
>> everytime I restart the ESB server in eclipse server view :-)
>>
>> I'm guessing that what is going on is that whatever is monitoring for the
>> server to close is not working quite correctly and is restarting the server
>> too soon and therefore hitting the port clash. (I've had this sort of thing
>> before when ports are held open even though you think they are closed. I
>> don't know if this is the exact error but very similar - very annoying and
>> OS dependent !).
>>
>> What's the best way to re-open this bug? I'm happy to help in reproducing
>> it if you folks can't in order to get you more information or try out fixes
>> ?
>>
>> many thanks,
>> John.
>>
>> John Hawkins
>> Director: Solutions Architecture
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] server restart in eclipse dupe bug

2015-07-02 Thread Isuru Perera
Hi John,

It's okay to re-open the JIRA as you can reproduce the issue.

On Thu, Jul 2, 2015 at 6:16 PM, John Hawkins  wrote:

> Hi Folks,
>
> I get the same problem as someone else did last year -
> https://wso2.org/jira/browse/TOOLS-2597
>
> That defect is marked closed and un-reproducable - I can reproduce it
> everytime I restart the ESB server in eclipse server view :-)
>
> I'm guessing that what is going on is that whatever is monitoring for the
> server to close is not working quite correctly and is restarting the server
> too soon and therefore hitting the port clash. (I've had this sort of thing
> before when ports are held open even though you think they are closed. I
> don't know if this is the exact error but very similar - very annoying and
> OS dependent !).
>
> What's the best way to re-open this bug? I'm happy to help in reproducing
> it if you folks can't in order to get you more information or try out fixes
> ?
>
> many thanks,
> John.
>
> John Hawkins
> Director: Solutions Architecture
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dynamically setting sequence key

2015-07-02 Thread Amal Gunatilake
On Thu, Jul 2, 2015 at 6:02 PM, Amal Gunatilake  wrote:

> Hi Team,
>
> I think it's better to add the following configuration on "*How to switch
> between sequence using property*" to the sequence mediator documentation.
>
> There was a requirement to switch between sequences based on a message
> header parameter when there is a *WS chaining*. (I have attached the
> diagram which related to initial requirement for better understanding)
>
> This can be done with following approach.
>
> *Set the custom header in the message*
>
> 
> http://example.com/esb/destination"; name="ns:destination" 
> scope="default" value="sequence1"/>
>
>
> *How to extract the property and dynamically switch the sequence*
>
> http://example.com/esb/destination"; name="DESTINATION" 
> expression="//ns:destination"/>
>
> Since this is a already available functionality, I think we can add this
> valuable information to the WSO2 ESB documentation. WDYT?
>
> Best regards,
> Amal.
>
>
> --
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>



-- 
*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Best Practice in Throwing Exceptions in test methods signature

2015-07-02 Thread Nuwan Wimalasekara
Hi

It is always better to throw the Exception(super class) as a best practice
when we define a test method rather than throwing the list of particular
exceptions since no one will catch those exception and handle explicitly.
Then it will ensure that the test method will not break once the methods
used within the test method changed and in the test reports It shows the
actual Exception class. So It will ease the test classes maintainability.

@Test()
public void testMethod() throws *Exception*  {

 
  }

Thanks,
Nuwanw

-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

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


[Dev] server restart in eclipse dupe bug

2015-07-02 Thread John Hawkins
Hi Folks,

I get the same problem as someone else did last year -
https://wso2.org/jira/browse/TOOLS-2597

That defect is marked closed and un-reproducable - I can reproduce it
everytime I restart the ESB server in eclipse server view :-)

I'm guessing that what is going on is that whatever is monitoring for the
server to close is not working quite correctly and is restarting the server
too soon and therefore hitting the port clash. (I've had this sort of thing
before when ports are held open even though you think they are closed. I
don't know if this is the exact error but very similar - very annoying and
OS dependent !).

What's the best way to re-open this bug? I'm happy to help in reproducing
it if you folks can't in order to get you more information or try out fixes
?

many thanks,
John.

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


[Dev] ESB-4.9.0-Beta - Cluster set up

2015-07-02 Thread Elilmatha Sivanesan
Hi all,

I'm working on $subject. When I start the esb after setting up the cluster
settings I get the following error. Can anyone suggest me the reason for
this.

esb:bin elilmatha$ sh wso2server.sh ­Dsetup

JAVA_HOME environment variable is set to
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home

CARBON_HOME environment variable is set to
/Users/elilmatha/Desktop/MQTT/clusteresbs/beta/WSO2_ESB_MGR_HOME

[2015-07-02 17:54:01,622]  INFO - CarbonCoreActivator Starting WSO2
Carbon...

[2015-07-02 17:54:01,628]  INFO - CarbonCoreActivator Operating System :
Mac OS X 10.9.5, x86_64

[2015-07-02 17:54:01,628]  INFO - CarbonCoreActivator Java Home:
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre

[2015-07-02 17:54:01,628]  INFO - CarbonCoreActivator Java Version :
1.7.0_79

[2015-07-02 17:54:01,628]  INFO - CarbonCoreActivator Java VM  :
Java HotSpot(TM) 64-Bit Server VM 24.79-b02,Oracle Corporation

[2015-07-02 17:54:01,628]  INFO - CarbonCoreActivator Carbon Home  :
/Users/elilmatha/Desktop/MQTT/clusteresbs/beta/WSO2_ESB_MGR_HOME

[2015-07-02 17:54:01,629]  INFO - CarbonCoreActivator Java Temp Dir:
/Users/elilmatha/Desktop/MQTT/clusteresbs/beta/WSO2_ESB_MGR_HOME/tmp

[2015-07-02 17:54:01,629]  INFO - CarbonCoreActivator User :
elilmatha, en-US, Asia/Colombo

[2015-07-02 17:54:01,719]  WARN - ValidationResultPrinter Carbon is
configured to use the default keystore (wso2carbon.jks). To maximize
security when deploying to a production environment, configure a new
keystore with a unique password in the production server profile.

[2015-07-02 17:54:01,721]  WARN - ValidationResultPrinter Swap Memory size
(MB): 1024 of the system is below the recommended minimum size :2047

[2015-07-02 17:54:01,731]  INFO - AgentHolder Agent created !

[2015-07-02 17:54:01,753]  INFO - AgentDS Successfully deployed Agent Client

[2015-07-02 17:54:02,005]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://cxf.apache.org/blueprint/core

[2015-07-02 17:54:02,005]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://cxf.apache.org/configuration/beans

[2015-07-02 17:54:02,005]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for
http://cxf.apache.org/configuration/parameterized-types

[2015-07-02 17:54:02,005]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://cxf.apache.org/configuration/security

[2015-07-02 17:54:02,005]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://schemas.xmlsoap.org/wsdl/

[2015-07-02 17:54:02,005]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://www.w3.org/2005/08/addressing

[2015-07-02 17:54:02,005]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for
http://schemas.xmlsoap.org/ws/2004/08/addressing

[2015-07-02 17:54:03,500] ERROR - JDBCUserStoreManager Error occurred while
updating string values to database.

com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime
value: '' for column 'UM_CHANGED_TIME' at row 1

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2924)

at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)

at
com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1120)

at
com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:675)

at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1162)

at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1079)

at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1064)

at
org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.updateStringValuesToDatabase(JDBCUserStoreManager.java:2067)

at
org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.persistUser(JDBCUserStoreManager.java:1177)

at
org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doAddUser(JDBCUserStoreManager.java:1144)

at
org.wso2.carbon.user.core.common.AbstractUserStoreManager.addInitialAdminData(AbstractUserStoreManager.java:3235)

at
org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.(JDBCUserStoreManager.java:259)

at
org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.(JDBCUserStoreManager.java:198)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at
org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:333)

at
org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:199)

at org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:108)

at
org.wso2.carbon.user.core.common.DefaultRealmService.i

[Dev] Per Car File Logging for ESB as a Service

2015-07-02 Thread Nadeeshaan Gunasinghe
Hi all,
There is a concern regarding the $subject. If we are going to add the cApp
name for the logs in order to allow the filtering the logs based on the
cApp we need to append the cApp name for each log.
Up to the deployment level this can be achieved. But the issue rises when
trying to do the same at the invocation level.
What would be the best approach to achieve this?

Regards,

   *Nadeeshaan Gunasinghe*
Software Engineer, WSO2 Inc. http://wso2.com
 +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe <#>
 
  

Get a signature like this: Click here!

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


Re: [Dev] DevStudio errors

2015-07-02 Thread John Hawkins
Sorry- I meant to put that in the original message !!

Here is the "data" section of the error in eclipse
eclipse.buildId=4.3.2.M20140221-1700
java.version=1.7.0_79
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product -keyring
/Users/wso2/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product
org.eclipse.epp.package.jee.product -keyring /Users/wso2/.eclipse_keyring
-showlocation


And I downloaded devstudio (3.7.1) right of the wso2.com pages (two days
ago) - as a single, eclipse included, bundle - *not* installed into a
pre-existing eclipse.


thanks,
John.


John Hawkins
Director: Solutions Architecture


On Thu, Jul 2, 2015 at 12:39 PM, Harshana Eranga Martin <
harshan...@gmail.com> wrote:

> Hi John,
>
> What is the Dev Studio version you are using? Did you download it from the
> Products listing in wso2.com? What is the JDK version you are using?
>
> Thanks and Regards,
> Harshana
> --
> Harshana Eranga Martin
>
> Committer - Eclipse ECF: http://www.eclipse.org/ecf/
> Blog: http://harshana05.blogspot.com
> Profile: https://www.google.com/profiles/harshana05
>
> On 2 July 2015 at 19:29, John Hawkins  wrote:
>
>> Hi Folks,
>>
>> I'm getting a few errors with DevStudio which are really beginning to bug
>> me. I can't see anyone else having these errors so I'll put it out there so
>> you folks may be able to guide me as to what to do ( or you may have seen
>> them before but google has let me down :-)
>>
>> Key problem is that eclipse/dev studio is struggling to save files e.g.
>> an api.xml file or a proxy-service.xml file. This shows itself when I try
>> to save a diagram or when I try to move from the diagram to the source
>> view. The first error in the chain is...
>>
>>
>>
>> *Problems occurred when invoking code from plug-in:
>> "org.eclipse.ui.workbench". which has the stacktrace of *
>>
>> *java.lang.NullPointerException*
>> * at
>> org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.selectionChanged(CompatibilityPart.java:435)*
>> * at
>> org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:110)*
>> * at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)*
>> * at
>> org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChange(MultiPageSelectionProvider.java:108)*
>> * etc.etc.*
>>
>>
>>
>>
>> It then has three other errors along those lines.
>>
>> This may or may not be related but.What also happens is that files
>> also don't look right in the esb editor.. They come out as a tree structure
>> and not the nice diagram editor. In order to get around this (and get it
>> opening in the nice diagram editor) I have to close the WSO2 ESB Graphical
>> perspective and then re-open the Dev Studio (by going "Dev Studio->Open
>> Dashboard". That solves the problem of the editor not showing the graphical
>> view and also seems to solve the problem of file saving. However, it's not
>> long before both problems come back - but I have no idea what sequence of
>> events makes them come back !
>>
>> I realise this is a bit of a random problem - but it's really making
>> editing a very long winded process so any help would be much appreciated !!
>>
>>
>>
>>
>> many thanks
>> John.
>>
>> John Hawkins
>> Director: Solutions Architecture
>>
>>
>> ___
>> 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] [HACKATHON][DAS] Working with the Analytics Dashboard

2015-07-02 Thread Maheshakya Wijewardena
This works. Thanks.
Earlier, 'Create Gadget' wizard raised an exception due to some Hbase DAL
configuration error. After fixing that, this works fine.

Best regards.

On Thu, Jul 2, 2015 at 1:32 PM, Dunith Dhanushka  wrote:

> Hi Maheshakya,
>
> What's the version of DAS you are testing?
>
> Analytics Dashboard had undergone some UX changes after the alpha release
> and those changes are being documented at the moment. I assume your
> requirement is to create a gadget from an eventstream or a table stored in
> the DAL layer and add it to a dashboard (Correct me of I'm wrong). So in
> that case, you can use the gadget generation wizard for that.
>
> After UX changes, Gadget gen wizard link has been relocated to user's
> welcome page which can be accessed using URL [1]. There you'll see a link
> named "CREATE GADGET" to start the wizard.
>
>
> [1] https://:9443/portal/
>
> Regards,
> Dunith
>
>
>
> On Thu, Jul 2, 2015 at 12:26 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> Hi DAS team,
>>
>> The current documentation of analytics dashboard[1] seems
>> obsolete(describes an older dashboard).
>>
>> I'm trying to create a dash board for an event stream stored in a record
>> store. With the current dash board setting, it's not possible to provide
>> event stream info or any other table info in the record stores. How do I
>> create a dashboard for such scenario?
>>
>> [1] https://docs.wso2.com/display/DAS300/Adding+a+Dashboard
>>
>> Best regards.
>> --
>> Pruthuvi Maheshakya Wijewardena
>> Software Engineer
>> WSO2 Lanka (Pvt) Ltd
>> Email: mahesha...@wso2.com
>> Mobile: +94711228855
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Regards,
>
> Dunith Dhanushka,
> Senior Software Engineer - BAM,
> WSO2 Inc,
>
> Mobile - +94 71 8615744
> Blog - dunithd.wordpress.com 
> Twitter - @dunithd 
>



-- 
Pruthuvi Maheshakya Wijewardena
Software Engineer
WSO2 Lanka (Pvt) Ltd
Email: mahesha...@wso2.com
Mobile: +94711228855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Setting JAVA_HOME in Solaris 11

2015-07-02 Thread Viraj Senevirathne
Hi,

check out this link [1] which have relevant information on the topic.It
says that when you install JDK-6 and JDK-7 is already installed, the
/usr/java links will continue to point to the JDK with the higher major
version. So if you want to set jdk 1.6 follow this link [2].

[1] https://blogs.oracle.com/taylor22/entry/java_home_on_solaris_11

[2] https://docs.oracle.com/cd/E36784_01/html/E36802/gnztu.html

Thanks,

On Thu, Jul 2, 2015 at 5:14 PM, Shiva Balachandran  wrote:

> Hi All,
>
> Im trying to setup and run WSO2 APIM on Solaris, I am unable to configure
> JAVA HOME. The OS comes with JRE 1.7.0. Therefore i tried launching the
> server without specifying the JAVA_HOME in .bashrc, but i get the error,
> JAVA_HOME Not defined.
>
> Then, downloaded JDK 1.6.45 and extracted the pack and set the $JAVA_HOME
> in .bashrc, and still i get the same error after sourcing and restarting
> the VM.
>
> Anyone configured and run WSO2 products on Solris 11? Need to know the
> right way to set the JAVA_HOME.
>
> Thank you.
>
> Regards,
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
> Blog - https://shivabalachandran.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Viraj Senevirathne
Software Engineer; WSO2, Inc.

Mobile : +94 71 818 4742 <%2B94%20%280%29%20773%20451194>
Email : vir...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Setting JAVA_HOME in Solaris 11

2015-07-02 Thread Vinod Kavinda
Hi Shiva,

Try putting in ~/.profile. I found it from [1].

[1] -
http://www.geekality.net/2011/02/02/how-to-set-java_home-and-where-is-whereis-on-solaris/

Regards,
Vinod

On Thu, Jul 2, 2015 at 5:14 PM, Shiva Balachandran  wrote:

> Hi All,
>
> Im trying to setup and run WSO2 APIM on Solaris, I am unable to configure
> JAVA HOME. The OS comes with JRE 1.7.0. Therefore i tried launching the
> server without specifying the JAVA_HOME in .bashrc, but i get the error,
> JAVA_HOME Not defined.
>
> Then, downloaded JDK 1.6.45 and extracted the pack and set the $JAVA_HOME
> in .bashrc, and still i get the same error after sourcing and restarting
> the VM.
>
> Anyone configured and run WSO2 products on Solris 11? Need to know the
> right way to set the JAVA_HOME.
>
> Thank you.
>
> Regards,
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
> Blog - https://shivabalachandran.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Setting JAVA_HOME in Solaris 11

2015-07-02 Thread Ashan Dhananjaya
Hi Shiva,

If you not try with the double quotes please try with it.It may work like
this.

$ export  JAVA_HOME="home/jdk1.7_15"

*note the quotes.

Thank You!
Best Regards,
Ashan

On Thu, Jul 2, 2015 at 5:14 PM, Shiva Balachandran  wrote:

> Hi All,
>
> Im trying to setup and run WSO2 APIM on Solaris, I am unable to configure
> JAVA HOME. The OS comes with JRE 1.7.0. Therefore i tried launching the
> server without specifying the JAVA_HOME in .bashrc, but i get the error,
> JAVA_HOME Not defined.
>
> Then, downloaded JDK 1.6.45 and extracted the pack and set the $JAVA_HOME
> in .bashrc, and still i get the same error after sourcing and restarting
> the VM.
>
> Anyone configured and run WSO2 products on Solris 11? Need to know the
> right way to set the JAVA_HOME.
>
> Thank you.
>
> Regards,
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
> Blog - https://shivabalachandran.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ashan Dhananjaya Kumara
Trainee Software Engineer, WSO2 Inc.
Inc: *WSO2 Inc. *
Phone : +94715547461
Blog : http://ashandhananjaya.blogspot.com/
Twitter  : https://twitter.com/Dhananjaya92
Say ello :https://ello.co/ashandk
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] How to access namespace of a XML element from the xpath, in a Proxy?

2015-07-02 Thread Supun Sethunga
Hi,

Found a workaround :)
I can rather check whether there's any element exists for a given namespace
like below, and perform the respective action.

  https://sample/namespace1"; xpath="$body/*/a:*">
  ...
  ...
  

Still, would like to know whether the $subject is possible?

Thanks,
Supun


On Thu, Jul 2, 2015 at 4:52 PM, Supun Sethunga  wrote:

> Hi,
>
> Suppose I have the following incoming message to an ESB proxy.
>
> https://sample/namespace1";>
> 333
> 444
> 
>
> And I want to do separate actions depending on the  namespace. (i.e. one
> action if the namespace is "https://sample/*namespace1*"; and a different
> action if the namespace is "https://sample/*namespace2*";).
>
> Is it possible to achieve $subject in such a situation? (so that I can
> filter/switch)?
>
> Seems it is not possible to access the namespace in the same way normal
> xml attributes are accessed. Tried logging  *expression="$body/parent/@*"*,
> which printed only 123 and 789, but not the namespace. Any other possible
> workarounds?
>
> Thanks,
> Supun
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>



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


[Dev] Setting JAVA_HOME in Solaris 11

2015-07-02 Thread Shiva Balachandran
Hi All,

Im trying to setup and run WSO2 APIM on Solaris, I am unable to configure
JAVA HOME. The OS comes with JRE 1.7.0. Therefore i tried launching the
server without specifying the JAVA_HOME in .bashrc, but i get the error,
JAVA_HOME Not defined.

Then, downloaded JDK 1.6.45 and extracted the pack and set the $JAVA_HOME
in .bashrc, and still i get the same error after sourcing and restarting
the VM.

Anyone configured and run WSO2 products on Solris 11? Need to know the
right way to set the JAVA_HOME.

Thank you.

Regards,
-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

Mobile - +94 774445788
Blog - https://shivabalachandran.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DevStudio errors

2015-07-02 Thread Harshana Eranga Martin
Hi John,

What is the Dev Studio version you are using? Did you download it from the
Products listing in wso2.com? What is the JDK version you are using?

Thanks and Regards,
Harshana
--
Harshana Eranga Martin

Committer - Eclipse ECF: http://www.eclipse.org/ecf/
Blog: http://harshana05.blogspot.com
Profile: https://www.google.com/profiles/harshana05

On 2 July 2015 at 19:29, John Hawkins  wrote:

> Hi Folks,
>
> I'm getting a few errors with DevStudio which are really beginning to bug
> me. I can't see anyone else having these errors so I'll put it out there so
> you folks may be able to guide me as to what to do ( or you may have seen
> them before but google has let me down :-)
>
> Key problem is that eclipse/dev studio is struggling to save files e.g. an
> api.xml file or a proxy-service.xml file. This shows itself when I try to
> save a diagram or when I try to move from the diagram to the source view.
> The first error in the chain is...
>
>
>
> *Problems occurred when invoking code from plug-in:
> "org.eclipse.ui.workbench". which has the stacktrace of *
>
> *java.lang.NullPointerException*
> * at
> org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.selectionChanged(CompatibilityPart.java:435)*
> * at
> org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:110)*
> * at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)*
> * at
> org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChange(MultiPageSelectionProvider.java:108)*
> * etc.etc.*
>
>
>
>
> It then has three other errors along those lines.
>
> This may or may not be related but.What also happens is that files
> also don't look right in the esb editor.. They come out as a tree structure
> and not the nice diagram editor. In order to get around this (and get it
> opening in the nice diagram editor) I have to close the WSO2 ESB Graphical
> perspective and then re-open the Dev Studio (by going "Dev Studio->Open
> Dashboard". That solves the problem of the editor not showing the graphical
> view and also seems to solve the problem of file saving. However, it's not
> long before both problems come back - but I have no idea what sequence of
> events makes them come back !
>
> I realise this is a bit of a random problem - but it's really making
> editing a very long winded process so any help would be much appreciated !!
>
>
>
>
> many thanks
> John.
>
> John Hawkins
> Director: Solutions Architecture
>
>
> ___
> 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] Production Endpoint validation button returns invalid for Wikipedia sample- API Manager 1.9.0

2015-07-02 Thread Sanjeewa Malalgoda
On Thu, Jul 2, 2015 at 4:56 PM, Saneth Dharmakeerthi 
wrote:

> Hi Sanjeewa,
>
> 1) Doesn't this "Test" functionality confuse because it return
> as "invalid" for the wikipedia  endpoint that is used in APIM samples [1]
> ?. But sample is working correctly with out any issue.
>
> 2) Backend automation of APIM-29 [2] is blocked due to this, what is the
> correct and recommended approach to test the functionality of "Test" button
> ?
>
Provide URL which return 2XX or 3XX result for http head method. Base
server URL should return that response.
We cannot test each and every resource client define. What we do here is
validate base server url.
When you invoke service you may append different path,query parameters and
it may dispatch to different resource and you may get correct response that
is why sample works.
Hope this is clear.

Thanks,
sanjeewa,

>
>
> [1]
> https://docs.wso2.com/display/AM160/Deploying+and+Testing+Wikipedia+API
> [2]
> https://testlink.wso2.com/linkto.php?tprojectPrefix=APIM&item=testcase&id=APIM-29
>
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Tue, Jun 30, 2015 at 11:42 AM, Sanjeewa Malalgoda 
> wrote:
>
>> In test method what we do is HTTP head call to back end(standard approach
>> for check service availability).
>> And it should return 2XX or 3XX response for that. Otherwise it will fail.
>>
>> Thanks,
>> sanjeewa.
>>
>> On Tue, Jun 30, 2015 at 11:38 AM, Lasitha Deergawansa 
>> wrote:
>>
>>> Hi APIM Team,
>>>
>>> Is there any reason for this behavior of this test button?
>>>
>>> Regards,
>>> Lasitha.
>>>
>>> On Tue, Jun 23, 2015 at 12:44 PM, Lasitha Deergawansa 
>>> wrote:
>>>
 Hi All,

 I have created the Wikipedia API manually which was in sample[1]  and
 it is working fine. After I clicked on "Edit" and try to validate "Test"
 button in "Production end point" in API implementation page it gives as
 "invalid".
 Endpoint: http://en.wikipedia.org/w/api.php


 [1]-
 https://docs.wso2.com/display/AM160/Deploying+and+Testing+Wikipedia+API

 Regards,
 Lasitha.



>>>
>>
>>
>> --
>>
>> *Sanjeewa Malalgoda*
>> WSO2 Inc.
>> Mobile : +94713068779
>>
>>  blog
>> :http://sanjeewamalalgoda.blogspot.com/
>> 
>>
>>
>>
>


-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

 blog
:http://sanjeewamalalgoda.blogspot.com/

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


[Dev] [Bamboo-Build] Developer Studio > Eclipse-Tools > #1606 has FAILED. Change made by susankha nirmala.

2015-07-02 Thread Bamboo

---
Developer Studio > Eclipse-Tools > #1606 failed.
---
Code has been updated by susankha nirmala.
No failed tests found, a possible compilation error.

https://wso2.org/bamboo/browse/DS0001-DSET01-1606/

-
Currently Responsible
-

No one is responsible for fixing this build.



--
Failing Jobs
--
  - Default Job (Default Stage): No tests found.



--
Code Changes
--
susankha nirmala (0c6a847e3de4ad3322fcdbc6f76062be8328a5c8):

>change groupid of dataservice project pom
>

susankha nirmala (daaa2bcf554fa8ff9b6ff9606495349e39c26023):

>change packging in dataservice pom
>



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Please review the PR for Spark 1.4.0 upgrade

2015-07-02 Thread Niranda Perera
thanks Kasun :-)

On Thu, Jul 2, 2015 at 4:57 PM, KasunG Gajasinghe  wrote:

> Hi Niranda,
>
> Released the bundles.
>
> On Thu, Jul 2, 2015 at 2:36 PM, Niranda Perera  wrote:
>
>> Hi Maheshika,
>>
>> could you please deploy the following orbit bundles?
>>
>> paranamer/2.6.wso2v1
>> spark-core_2.10/1.4.0.wso2v1
>> spark-sql_2.10/1.4.0.wso2v1
>> spark-streaming_2.10/1.4.0.wso2v1
>>
>> thanks
>>
>> On Thu, Jul 2, 2015 at 2:23 PM, Niranjan Karunanandham > > wrote:
>>
>>> Hi Niranda,
>>>
>>> I have merged the PR.
>>>
>>> Regards,
>>> Nira
>>>
>>> On Thu, Jul 2, 2015 at 2:01 PM, Niranda Perera  wrote:
>>>
 Hi Niranjan,

 I just made the changes. could you please review?

 On Thu, Jul 2, 2015 at 1:51 PM, Niranjan Karunanandham <
 niran...@wso2.com> wrote:

> Hi Niranda,
>
> As per the offline discussion we had with KasunG, please change the
> export package version to the project's (pom) version.
>
> Regards,
> Nira
>
> On Wed, Jul 1, 2015 at 8:39 PM, Niranda Perera 
> wrote:
>
>> the link in the above mail has to change to [1].
>>
>> sorry about the inconvenience.
>>
>> rgds
>>
>> [1] https://github.com/wso2/orbit/pull/105
>>
>> On Wed, Jul 1, 2015 at 8:34 PM, Niranda Perera 
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> Could you please review this PR [1] for Spark 1.4.0.
>>>
>>> this upgrades spark-core and spark-sql from 1.3.0 to 1.4.0. this
>>> upgrade is done, because 1.4.0 has some important bug fixes related to
>>> spark clustering and we need to include these in the DAS (BAM) 3.0.0 
>>> beta
>>>
>>> it also adds paranamer/2.6.wso2v1 which is a runtime dependency
>>>
>>> cheers
>>>
>>> [1] https://github.com/wso2/orbit/pull/83
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 
 https://pythagoreanscript.wordpress.com/

>>>
>>>
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> Senior Software Engineer - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



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


[Dev] DevStudio errors

2015-07-02 Thread John Hawkins
Hi Folks,

I'm getting a few errors with DevStudio which are really beginning to bug
me. I can't see anyone else having these errors so I'll put it out there so
you folks may be able to guide me as to what to do ( or you may have seen
them before but google has let me down :-)

Key problem is that eclipse/dev studio is struggling to save files e.g. an
api.xml file or a proxy-service.xml file. This shows itself when I try to
save a diagram or when I try to move from the diagram to the source view.
The first error in the chain is...



*Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench". which has the stacktrace of *

*java.lang.NullPointerException*
* at
org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.selectionChanged(CompatibilityPart.java:435)*
* at
org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:110)*
* at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)*
* at
org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChange(MultiPageSelectionProvider.java:108)*
* etc.etc.*




It then has three other errors along those lines.

This may or may not be related but.What also happens is that files also
don't look right in the esb editor.. They come out as a tree structure and
not the nice diagram editor. In order to get around this (and get it
opening in the nice diagram editor) I have to close the WSO2 ESB Graphical
perspective and then re-open the Dev Studio (by going "Dev Studio->Open
Dashboard". That solves the problem of the editor not showing the graphical
view and also seems to solve the problem of file saving. However, it's not
long before both problems come back - but I have no idea what sequence of
events makes them come back !

I realise this is a bit of a random problem - but it's really making
editing a very long winded process so any help would be much appreciated !!




many thanks
John.

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


Re: [Dev] [Orbit] Please review the PR for Spark 1.4.0 upgrade

2015-07-02 Thread KasunG Gajasinghe
Hi Niranda,

Released the bundles.

On Thu, Jul 2, 2015 at 2:36 PM, Niranda Perera  wrote:

> Hi Maheshika,
>
> could you please deploy the following orbit bundles?
>
> paranamer/2.6.wso2v1
> spark-core_2.10/1.4.0.wso2v1
> spark-sql_2.10/1.4.0.wso2v1
> spark-streaming_2.10/1.4.0.wso2v1
>
> thanks
>
> On Thu, Jul 2, 2015 at 2:23 PM, Niranjan Karunanandham 
> wrote:
>
>> Hi Niranda,
>>
>> I have merged the PR.
>>
>> Regards,
>> Nira
>>
>> On Thu, Jul 2, 2015 at 2:01 PM, Niranda Perera  wrote:
>>
>>> Hi Niranjan,
>>>
>>> I just made the changes. could you please review?
>>>
>>> On Thu, Jul 2, 2015 at 1:51 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Niranda,

 As per the offline discussion we had with KasunG, please change the
 export package version to the project's (pom) version.

 Regards,
 Nira

 On Wed, Jul 1, 2015 at 8:39 PM, Niranda Perera 
 wrote:

> the link in the above mail has to change to [1].
>
> sorry about the inconvenience.
>
> rgds
>
> [1] https://github.com/wso2/orbit/pull/105
>
> On Wed, Jul 1, 2015 at 8:34 PM, Niranda Perera 
> wrote:
>
>> Hi Sameera,
>>
>> Could you please review this PR [1] for Spark 1.4.0.
>>
>> this upgrades spark-core and spark-sql from 1.3.0 to 1.4.0. this
>> upgrade is done, because 1.4.0 has some important bug fixes related to
>> spark clustering and we need to include these in the DAS (BAM) 3.0.0 beta
>>
>> it also adds paranamer/2.6.wso2v1 which is a runtime dependency
>>
>> cheers
>>
>> [1] https://github.com/wso2/orbit/pull/83
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

>>>
>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>
>>
>>
>> --
>>
>> *Niranjan Karunanandham*
>> Senior Software Engineer - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>



-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Production Endpoint validation button returns invalid for Wikipedia sample- API Manager 1.9.0

2015-07-02 Thread Saneth Dharmakeerthi
Hi Sanjeewa,

1) Doesn't this "Test" functionality confuse because it return as "invalid"
for the wikipedia  endpoint that is used in APIM samples [1] ?. But sample
is working correctly with out any issue.

2) Backend automation of APIM-29 [2] is blocked due to this, what is the
correct and recommended approach to test the functionality of "Test" button
?


[1] https://docs.wso2.com/display/AM160/Deploying+and+Testing+Wikipedia+API
[2]
https://testlink.wso2.com/linkto.php?tprojectPrefix=APIM&item=testcase&id=APIM-29


Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Tue, Jun 30, 2015 at 11:42 AM, Sanjeewa Malalgoda 
wrote:

> In test method what we do is HTTP head call to back end(standard approach
> for check service availability).
> And it should return 2XX or 3XX response for that. Otherwise it will fail.
>
> Thanks,
> sanjeewa.
>
> On Tue, Jun 30, 2015 at 11:38 AM, Lasitha Deergawansa 
> wrote:
>
>> Hi APIM Team,
>>
>> Is there any reason for this behavior of this test button?
>>
>> Regards,
>> Lasitha.
>>
>> On Tue, Jun 23, 2015 at 12:44 PM, Lasitha Deergawansa 
>> wrote:
>>
>>> Hi All,
>>>
>>> I have created the Wikipedia API manually which was in sample[1]  and it
>>> is working fine. After I clicked on "Edit" and try to validate "Test"
>>> button in "Production end point" in API implementation page it gives as
>>> "invalid".
>>> Endpoint: http://en.wikipedia.org/w/api.php
>>>
>>>
>>> [1]-
>>> https://docs.wso2.com/display/AM160/Deploying+and+Testing+Wikipedia+API
>>>
>>> Regards,
>>> Lasitha.
>>>
>>>
>>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  blog
> :http://sanjeewamalalgoda.blogspot.com/
> 
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] How to access namespace of a XML element from the xpath, in a Proxy?

2015-07-02 Thread Supun Sethunga
Hi,

Suppose I have the following incoming message to an ESB proxy.

https://sample/namespace1";>
333
444


And I want to do separate actions depending on the  namespace. (i.e. one
action if the namespace is "https://sample/*namespace1*"; and a different
action if the namespace is "https://sample/*namespace2*";).

Is it possible to achieve $subject in such a situation? (so that I can
filter/switch)?

Seems it is not possible to access the namespace in the same way normal xml
attributes are accessed. Tried logging  *expression="$body/parent/@*"*,
which printed only 123 and 789, but not the namespace. Any other possible
workarounds?

Thanks,
Supun

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


Re: [Dev] WSO2 Committers += Thushara Ranawaka

2015-07-02 Thread Suhan Dharmasuriya
Congrats Thushara!!!

On Thu, Jul 2, 2015 at 4:47 PM, Ashan Dhananjaya  wrote:

> All the very best Thushara!
>
> On Thu, Jul 2, 2015 at 4:46 PM, Damith Wickramasinghe 
> wrote:
>
>> Congratz Thushara... !!
>>
>> On Thu, Jul 2, 2015 at 11:21 AM, Rajith Roshan  wrote:
>>
>>> Congratulations Thushara !!
>>>
>>> On Thu, Jul 2, 2015 at 10:28 AM, Tharik Kanaka  wrote:
>>>
 Congratulations Thushara

 On Thu, Jul 2, 2015 at 10:12 AM, Madhawa Gunasekara 
 wrote:

> Congratulations Thushara !! :)
>
> On Thu, Jul 2, 2015 at 9:34 AM, Waruna De Silva 
> wrote:
>
>> Hi Devs,
>>
>> It's my pleasure to welcome Thushara Ranawaka as a WSO2 Committer.
>> Thushara, welcome aboard and keep up the good work!
>>
>> Thanks!
>> Waruna
>>
>> --
>>
>> --
>> Waruna De Silva.
>> Director of Engineering ; WSO2, Inc.;  http://wso2.com/
>> cell +94 777 316866
>>
>> Lean . Enterprise . Middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 *Tharik Kanaka*

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: tha...@wso2.com | Web: www.wso2.com

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


>>>
>>>
>>> --
>>> Rajith Roshan
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> 
>> lean.enterprise.middleware
>>
>> mobile: *+94728671315 <%2B94728671315>*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ashan Dhananjaya Kumara
> Trainee Software Engineer, WSO2 Inc.
> Inc: *WSO2 Inc. *
> Phone : +94715547461
> Blog : http://ashandhananjaya.blogspot.com/
> Twitter  : https://twitter.com/Dhananjaya92
> Say ello :https://ello.co/ashandk
>
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Thushara Ranawaka

2015-07-02 Thread Ashan Dhananjaya
All the very best Thushara!

On Thu, Jul 2, 2015 at 4:46 PM, Damith Wickramasinghe 
wrote:

> Congratz Thushara... !!
>
> On Thu, Jul 2, 2015 at 11:21 AM, Rajith Roshan  wrote:
>
>> Congratulations Thushara !!
>>
>> On Thu, Jul 2, 2015 at 10:28 AM, Tharik Kanaka  wrote:
>>
>>> Congratulations Thushara
>>>
>>> On Thu, Jul 2, 2015 at 10:12 AM, Madhawa Gunasekara 
>>> wrote:
>>>
 Congratulations Thushara !! :)

 On Thu, Jul 2, 2015 at 9:34 AM, Waruna De Silva 
 wrote:

> Hi Devs,
>
> It's my pleasure to welcome Thushara Ranawaka as a WSO2 Committer.
> Thushara, welcome aboard and keep up the good work!
>
> Thanks!
> Waruna
>
> --
>
> --
> Waruna De Silva.
> Director of Engineering ; WSO2, Inc.;  http://wso2.com/
> cell +94 777 316866
>
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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

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


>>>
>>>
>>> --
>>>
>>> *Tharik Kanaka*
>>>
>>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>>>
>>> Email: tha...@wso2.com | Web: www.wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rajith Roshan
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ashan Dhananjaya Kumara
Trainee Software Engineer, WSO2 Inc.
Inc: *WSO2 Inc. *
Phone : +94715547461
Blog : http://ashandhananjaya.blogspot.com/
Twitter  : https://twitter.com/Dhananjaya92
Say ello :https://ello.co/ashandk
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Thushara Ranawaka

2015-07-02 Thread Damith Wickramasinghe
Congratz Thushara... !!

On Thu, Jul 2, 2015 at 11:21 AM, Rajith Roshan  wrote:

> Congratulations Thushara !!
>
> On Thu, Jul 2, 2015 at 10:28 AM, Tharik Kanaka  wrote:
>
>> Congratulations Thushara
>>
>> On Thu, Jul 2, 2015 at 10:12 AM, Madhawa Gunasekara 
>> wrote:
>>
>>> Congratulations Thushara !! :)
>>>
>>> On Thu, Jul 2, 2015 at 9:34 AM, Waruna De Silva 
>>> wrote:
>>>
 Hi Devs,

 It's my pleasure to welcome Thushara Ranawaka as a WSO2 Committer.
 Thushara, welcome aboard and keep up the good work!

 Thanks!
 Waruna

 --

 --
 Waruna De Silva.
 Director of Engineering ; WSO2, Inc.;  http://wso2.com/
 cell +94 777 316866

 Lean . Enterprise . Middleware


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


>>>
>>>
>>> --
>>> *Madhawa Gunasekara*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 719411002 <+94+719411002>
>>> blog: *http://madhawa-gunasekara.blogspot.com
>>> *
>>> linkedin: *http://lk.linkedin.com/in/mgunasekara
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Tharik Kanaka*
>>
>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>>
>> Email: tha...@wso2.com | Web: www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Roshan
> Software Engineer, WSO2 Inc.
> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

lean.enterprise.middleware

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


[Dev] [WS-Trust] KeyType

2015-07-02 Thread Gayan Gunawardana
Hi Devs,

What is the subject conformation method we can use for NoProofKey (

http://schemas.xmlsoap.org/ws/2005/05/identity/NoProofKey).
According to [1]
"9.2 Key and Encryption Requirements" they mentioned about three key types

1. http://docs.oasis-open.org/ws-sx/ws-trust/200512/PublicKey
2. http://docs.oasis-open.org/ws-sx/ws-trust/200512/SymmetricKey
3. http://docs.oasis-open.org/ws-sx/ws-trust/200512/Bearer

AFAIK
If the KeyType contains the value PublicKey or SymmetricKey, the subject
confirmation method is Holder-Of-Key. If the KeyType contains the value
Bearer, the subject confirmation method is Bearer.
Is NoProofKey equal to Bearer type ?
[1] http://docs.oasis-open.org/ws-sx/ws-trust/v1.4/ws-trust.html

Thanks,
Gayan


-- 
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] [Orbit] Please review the PR for Spark 1.4.0 upgrade

2015-07-02 Thread Niranda Perera
Hi Maheshika,

could you please deploy the following orbit bundles?

paranamer/2.6.wso2v1
spark-core_2.10/1.4.0.wso2v1
spark-sql_2.10/1.4.0.wso2v1
spark-streaming_2.10/1.4.0.wso2v1

thanks

On Thu, Jul 2, 2015 at 2:23 PM, Niranjan Karunanandham 
wrote:

> Hi Niranda,
>
> I have merged the PR.
>
> Regards,
> Nira
>
> On Thu, Jul 2, 2015 at 2:01 PM, Niranda Perera  wrote:
>
>> Hi Niranjan,
>>
>> I just made the changes. could you please review?
>>
>> On Thu, Jul 2, 2015 at 1:51 PM, Niranjan Karunanandham > > wrote:
>>
>>> Hi Niranda,
>>>
>>> As per the offline discussion we had with KasunG, please change the
>>> export package version to the project's (pom) version.
>>>
>>> Regards,
>>> Nira
>>>
>>> On Wed, Jul 1, 2015 at 8:39 PM, Niranda Perera  wrote:
>>>
 the link in the above mail has to change to [1].

 sorry about the inconvenience.

 rgds

 [1] https://github.com/wso2/orbit/pull/105

 On Wed, Jul 1, 2015 at 8:34 PM, Niranda Perera 
 wrote:

> Hi Sameera,
>
> Could you please review this PR [1] for Spark 1.4.0.
>
> this upgrades spark-core and spark-sql from 1.3.0 to 1.4.0. this
> upgrade is done, because 1.4.0 has some important bug fixes related to
> spark clustering and we need to include these in the DAS (BAM) 3.0.0 beta
>
> it also adds paranamer/2.6.wso2v1 which is a runtime dependency
>
> cheers
>
> [1] https://github.com/wso2/orbit/pull/83
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>



 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 
 https://pythagoreanscript.wordpress.com/

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


>>>
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> Senior Software Engineer - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



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


Re: [Dev] [Orbit] Please review the PR for Spark 1.4.0 upgrade

2015-07-02 Thread Niranjan Karunanandham
Hi Niranda,

I have merged the PR.

Regards,
Nira

On Thu, Jul 2, 2015 at 2:01 PM, Niranda Perera  wrote:

> Hi Niranjan,
>
> I just made the changes. could you please review?
>
> On Thu, Jul 2, 2015 at 1:51 PM, Niranjan Karunanandham 
> wrote:
>
>> Hi Niranda,
>>
>> As per the offline discussion we had with KasunG, please change the
>> export package version to the project's (pom) version.
>>
>> Regards,
>> Nira
>>
>> On Wed, Jul 1, 2015 at 8:39 PM, Niranda Perera  wrote:
>>
>>> the link in the above mail has to change to [1].
>>>
>>> sorry about the inconvenience.
>>>
>>> rgds
>>>
>>> [1] https://github.com/wso2/orbit/pull/105
>>>
>>> On Wed, Jul 1, 2015 at 8:34 PM, Niranda Perera  wrote:
>>>
 Hi Sameera,

 Could you please review this PR [1] for Spark 1.4.0.

 this upgrades spark-core and spark-sql from 1.3.0 to 1.4.0. this
 upgrade is done, because 1.4.0 has some important bug fixes related to
 spark clustering and we need to include these in the DAS (BAM) 3.0.0 beta

 it also adds paranamer/2.6.wso2v1 which is a runtime dependency

 cheers

 [1] https://github.com/wso2/orbit/pull/83

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 
 https://pythagoreanscript.wordpress.com/

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



-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WARN after moving to org.wso2.carbon.dashboards.shindig.feature-1.0.0

2015-07-02 Thread Prasad Tissera
[2015-07-02 13:48:46,404]  WARN {net.sf.ehcache.pool.sizeof.SizeOf} -  The
configured limit of 1,000 object references was reached while attempting to
calculate the size of the object graph. This can be avoided by adding stop
points with @IgnoreSizeOf annotations. Since the CacheManger or Cache
 elements maxDepthExceededBehavior is set to "abort", the
sizing operation has stopped and the reported cache size is not accurate.
If performance degradation is NOT an issue at the configured limit, raise
the limit value using the CacheManager or Cache  elements
maxDepth attribute. For more information, see the Ehcache configuration
documentation.

On Thu, Jul 2, 2015 at 2:11 PM, Prasad Tissera  wrote:

> Getting following warining multiple times when accessing dashboard after
> moving to org.wso2.carbon.dashboards.shindig.feature-1.0.0
>
> --
> Prasad Tissera
> Software Engineer.
> Mobile : +94777223444
>



-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WARN after moving to org.wso2.carbon.dashboards.shindig.feature-1.0.0

2015-07-02 Thread Prasad Tissera
Getting following warining multiple times when accessing dashboard after
moving to org.wso2.carbon.dashboards.shindig.feature-1.0.0

-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Please review the PR for Spark 1.4.0 upgrade

2015-07-02 Thread Niranda Perera
Hi Niranjan,

I just made the changes. could you please review?

On Thu, Jul 2, 2015 at 1:51 PM, Niranjan Karunanandham 
wrote:

> Hi Niranda,
>
> As per the offline discussion we had with KasunG, please change the export
> package version to the project's (pom) version.
>
> Regards,
> Nira
>
> On Wed, Jul 1, 2015 at 8:39 PM, Niranda Perera  wrote:
>
>> the link in the above mail has to change to [1].
>>
>> sorry about the inconvenience.
>>
>> rgds
>>
>> [1] https://github.com/wso2/orbit/pull/105
>>
>> On Wed, Jul 1, 2015 at 8:34 PM, Niranda Perera  wrote:
>>
>>> Hi Sameera,
>>>
>>> Could you please review this PR [1] for Spark 1.4.0.
>>>
>>> this upgrades spark-core and spark-sql from 1.3.0 to 1.4.0. this upgrade
>>> is done, because 1.4.0 has some important bug fixes related to spark
>>> clustering and we need to include these in the DAS (BAM) 3.0.0 beta
>>>
>>> it also adds paranamer/2.6.wso2v1 which is a runtime dependency
>>>
>>> cheers
>>>
>>> [1] https://github.com/wso2/orbit/pull/83
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



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


Re: [Dev] [Orbit] Please review the PR for Spark 1.4.0 upgrade

2015-07-02 Thread Niranjan Karunanandham
Hi Niranda,

As per the offline discussion we had with KasunG, please change the export
package version to the project's (pom) version.

Regards,
Nira

On Wed, Jul 1, 2015 at 8:39 PM, Niranda Perera  wrote:

> the link in the above mail has to change to [1].
>
> sorry about the inconvenience.
>
> rgds
>
> [1] https://github.com/wso2/orbit/pull/105
>
> On Wed, Jul 1, 2015 at 8:34 PM, Niranda Perera  wrote:
>
>> Hi Sameera,
>>
>> Could you please review this PR [1] for Spark 1.4.0.
>>
>> this upgrades spark-core and spark-sql from 1.3.0 to 1.4.0. this upgrade
>> is done, because 1.4.0 has some important bug fixes related to spark
>> clustering and we need to include these in the DAS (BAM) 3.0.0 beta
>>
>> it also adds paranamer/2.6.wso2v1 which is a runtime dependency
>>
>> cheers
>>
>> [1] https://github.com/wso2/orbit/pull/83
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] maven offline repository for WSO2 BPS AXIS2

2015-07-02 Thread Akila Nimantha [IT/EKO/LOITS]
Hi All,

I am working on wso2 bps engine and created some process. Now we want to create 
java clients from these processes. So I use your product's WSDL2Java engine to 
create those.
It successfully create the pom file when use online repositories.
But due to some regulations in my company environment, firewall is not allowing 
to download directly from outside repositories. :(

Do you have any offline repositories for maven for AXIS2 that can be download 
and use offline ??


Best Regards,

Akila Rathnayake
Software Engineer


This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this message
immediately if this is an electronic communication.

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


Re: [Dev] [HACKATHON][DAS] Working with the Analytics Dashboard

2015-07-02 Thread Dunith Dhanushka
Hi Maheshakya,

What's the version of DAS you are testing?

Analytics Dashboard had undergone some UX changes after the alpha release
and those changes are being documented at the moment. I assume your
requirement is to create a gadget from an eventstream or a table stored in
the DAL layer and add it to a dashboard (Correct me of I'm wrong). So in
that case, you can use the gadget generation wizard for that.

After UX changes, Gadget gen wizard link has been relocated to user's
welcome page which can be accessed using URL [1]. There you'll see a link
named "CREATE GADGET" to start the wizard.


[1] https://:9443/portal/

Regards,
Dunith



On Thu, Jul 2, 2015 at 12:26 PM, Maheshakya Wijewardena  wrote:

> Hi DAS team,
>
> The current documentation of analytics dashboard[1] seems
> obsolete(describes an older dashboard).
>
> I'm trying to create a dash board for an event stream stored in a record
> store. With the current dash board setting, it's not possible to provide
> event stream info or any other table info in the record stores. How do I
> create a dashboard for such scenario?
>
> [1] https://docs.wso2.com/display/DAS300/Adding+a+Dashboard
>
> Best regards.
> --
> Pruthuvi Maheshakya Wijewardena
> Software Engineer
> WSO2 Lanka (Pvt) Ltd
> Email: mahesha...@wso2.com
> Mobile: +94711228855
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,

Dunith Dhanushka,
Senior Software Engineer - BAM,
WSO2 Inc,

Mobile - +94 71 8615744
Blog - dunithd.wordpress.com 
Twitter - @dunithd 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [HACKATHON][DAS] Working with the Analytics Dashboard

2015-07-02 Thread Vinod Kavinda
Hi,
Have you persisted the stream data? I also had the same problem resolved
after talking to DAS team. Attached doc[1] that I created for a BPS
scenario would help.

[1] -
https://docs.google.com/a/wso2.com/document/d/10iU7bCedn8OW-CgJnNWWwMuLWcd7afhF83Z7bWWK6lY/edit?usp=sharing

Regards,
Vinod

On Thu, Jul 2, 2015 at 12:26 PM, Maheshakya Wijewardena  wrote:

> Hi DAS team,
>
> The current documentation of analytics dashboard[1] seems
> obsolete(describes an older dashboard).
>
> I'm trying to create a dash board for an event stream stored in a record
> store. With the current dash board setting, it's not possible to provide
> event stream info or any other table info in the record stores. How do I
> create a dashboard for such scenario?
>
> [1] https://docs.wso2.com/display/DAS300/Adding+a+Dashboard
>
> Best regards.
> --
> Pruthuvi Maheshakya Wijewardena
> Software Engineer
> WSO2 Lanka (Pvt) Ltd
> Email: mahesha...@wso2.com
> Mobile: +94711228855
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Issue with Hazelcast node shutdown not being detected until 6-8 minutes in CEP HA mode

2015-07-02 Thread Ramindu De Silva
Hi all,

I have 2 CEP nodes deployed remotely and enabled with HA configurations.
And when the active cep goes down, the passive CEP gets active only after
6-8 minutes.

But when i do the same scenario locally, the passive CEP gets active
instantly.

Any suggestions to overcome this issue will be greatly appreciated.

Best Regards,

-- 
*Ramindu De Silva*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com 
mob: +94 772339350
mob: +94 782731766
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please Review and Merge

2015-07-02 Thread Nuwan Dias
Hi Chamalee,

I guess we need to return a 404 if the requested API doesn't exist or if
its state is invalid.

Thanks,
NuwanD.

On Tue, Jun 30, 2015 at 11:48 AM, Chamalee De Silva 
wrote:

> Hi,
>
> Please $Subject the PR [1] as the Fix for the Public JIRA [2].
>
> [1] https://github.com/wso2/carbon-apimgt/pull/798
>
> [2] https://wso2.org/jira/browse/APIMANAGER-3934
>
> --
> Thanks & Regards,
>
> *Chamalee De Silva*
> Software Engineer
> *WS**O2* Inc. .:http://wso2.com
> lean *.* enterprise *.* middleware
>
> Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
> mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
>



-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] how to set up WSO2 APP manager for this special case?

2015-07-02 Thread Rushmin Fernando
Hi Bill,

App Manager is a product which helps to govern applications. So you can't
'deploy' apps in App Manager. In order to deploy apps you can use WSO2
Application Server [1].

Once you have a set of deployed applications across the organization (can
be in different application servers) you can use App Manager to publish
those apps and allow users to subscribe.

The end users are not aware of the actual application urls, rather they
will be using the app through the gateway in App Manager.

(By adopting this gateway approach App Manager can have governance when the
end users use the app)

Having set that background,

You can have different developers to deploy their apps to WSO2 Application
Server and create the relevant proxy apps in WSO2 App Manager. And they can
then submit the this proxy app for review and the a user who has publishing
permission can approve and publish it.

Hope this answers your question :-)


Thanks
Rushmin

[1] - http://wso2.com/products/application-server/



On Thu, Jul 2, 2015 at 7:45 AM, Bill Liu  wrote:

>  Thank you Sam and all!
>
> Here I have new question on this. I have the similar scenario, but it’s
>  for WSO2 APP Manager. Here we try to deploy web applications like war
> files instead of API’s. I currently download the binary version 1.0.0 of
> WSO2 App Manager from http://wso2.com/products/app-manager
>
>
>
> The case is like this:
>
> 1.   I have a lot of developers. Each developer develops his/her own
> web applications. And each developer publishes only his own applications,
> not other developers’ applications.
>
> 2.   We want to share those applications in a common place to an
> external store such that all subscribers can subscribe to them.
>
>
>
> How can I do it?
>
> Thanks in advance!
>
> Bill
>
>
>
> *From:* Sam Sivayogam [mailto:s...@wso2.com]
> *Sent:* Wednesday, May 27, 2015 11:36 PM
> *To:* Bill Liu
> *Cc:* WSO2 Developers' List
> *Subject:* Re: [Dev] how to set up WSO2 API manager for this special case?
>
>
>
> Hi Bill,
>
>
>
> You can use tenants[1] to achieve your use-case. What you can do is, add
> two tenants (refer [2]  ) for developer1 and developer2. When you are
> adding a tenant you will add an admin user for that tenant so using that
> developer1 and developer2 can login to their tenants. When users are adding
> APIs In Tenant mode the API's will remain in their own tenants and will not
> be visible to others. If you want to share the apis developed by developer1
> and developer2 in a common place you need to publish the API's to an
> external store. In your case you can set super tenant (which will be added
> by default) as the external store and you can publish the APIs to super
> tenant's store. refer [3] to setup an external store
>
>
>
> [1]. https://docs.wso2.com/display/AM180/Multi+Tenant+Architecture
>
> [2]. https://docs.wso2.com/display/AM180/Managing+Tenants
>
> [3].
> https://docs.wso2.com/display/AM180/Publish+to+multiple+external+API+stores
>
>
>
> Thanks,
>
> Sam
>
>
>
> On Thu, May 28, 2015 at 3:25 AM, Bill Liu  wrote:
>
> Greetings all:
>
>
>
> I am learning WSO2 API manager. I downloaded the binary version 1.8.0 from
> URL, http://wso2.com/api-management/try-it/.  I try to set up the WSO2
> API manager to achieve my goal  like this:
>
> Here I have a group of developers, like developer1, developer2 and etc.
> Each developer develops mutiple api's. For example, developer1 develops two
> api's like api1_1, api1_2. And developer2 develops three api's like api2_1,
> api2_2, api2_3. Here each developer are allowed to publish ONLY his/her own
> api's to API store; in other words each developer is NOT allowed to publish
> any other developer's api's to API store. For example, developer1 is
> allowed to publish api1_1 and api1_2, but is not allowed to publish api2_1,
> api2_2, api2_3. And developer2 is allowed to publish api2_1, api2_2 and
> api2_3, but is not allowed to publish api1_1 and api1_2.
>
> The catch here is that the current implementation of WSO2 API manager
> allows each developer to publish other developer's api, which is not my
> goal.
>
>
>
> Please advice how to configure WSO2 API manager to achieve my goal. Or
> it's impossible?
>
> Any suggestion will be highly appreciated.
>
>
>
> Thanks in advance,
>
> Bill
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
>
> --
>
> *Sam Sivayogam*
>
>
>
> Software Engineer
>
> Mobile  : +94 772 906 439
> Office   : +94 112 145 345
>
> *WSO2, Inc. :* wso2.com
>
> lean.enterprise.middleware.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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