Re: [Dev] [App Factory] API to get the name of the user

2015-09-02 Thread Mahesh Chinthaka
Hi Kavith,

No, AF dont have a jaggery API to get the user.

Hope this is for logged in user. Cant you get the logged in user from your
side with out calling AF.

On Wed, Sep 2, 2015 at 12:11 PM, Kavith Lokuhewage  wrote:

>
> Hi,
>
> We need to get the name of the user in order to use it as the author name
> for commits (This is achieve [1])
>
> Is there a jaggery API available for this? Or should we use use an admin
> service?
>
> Thanks,
>
> [1] https://wso2.org/jira/browse/TOOLS-2728
> --
> *Kavith Lokuhewage*
> Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +9477-9-145-123 | +9471-455-6-401
> Linkedin 
> Twitter 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GREG] Error when adding JaCoco code coverage to test automation

2015-09-02 Thread Nuwan Wimalasekara
Hi Rajith,

I could generate coverage for the test module tests-resources successfully
in GReg 5.0.0-SNAPSHOT. I updated the test framework version to 4.4.2 and
change the pom configuration as the document. Then it generated the
coverage without any issue.

Which framework version have you used and which test module gives the above
error?

Thanks,
Nuwanw

On Wed, Sep 2, 2015 at 11:02 AM, Rajith Roshan  wrote:

> Hi all,
>
> Please find the correct doc link in [1] which, I referred when updating
> the test automation
>
> [1] -
> https://docs.google.com/document/d/1pMJGdRH4Kmc4J3rYzgnpGlR5AnSeoC4QL9gMX9tUhYs/edit#heading=h.yemie7ivahbz
> 
>
> Thanks!
> Rajith
>
> On Wed, Sep 2, 2015 at 10:57 AM, Rajith Roshan  wrote:
>
>> Hi Devs,
>>
>> I refer the doc [1] for updating Jacoco code coverage tool for
>> integration tests in product G-Reg. It builds successfully when code
>> coverage is set to false in automation.xml as follows.
>>
>> false
>>
>> Please do find automation.xml, pom.xml and automationlog files for the
>> respective test module in [2]
>>
>> [1] -
>> https://drive.google.com/a/wso2.com/folderview?id=0B8xmd1n2DieYfjk2X0Fnb20yMUF0TnI1X1NIek5zTXFtUmhhU0wxRXFTQ1lCQ19qSlN5RmM=sharing
>>
>> [2] -
>> https://drive.google.com/a/wso2.com/folderview?id=0B8xmd1n2DieYfjk2X0Fnb20yMUF0TnI1X1NIek5zTXFtUmhhU0wxRXFTQ1lCQ19qSlN5RmM=sharing
>>
>> But it gives the following error when code coverage is enabled. Further I
>> excluded "asm" from the jacoco dependency. But it gives the same error.
>> Any help will be appreciated.
>>
>>
>> ERROR
>> [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] -
>> Execution error occurred in TestExecutionListener:-
>> java.lang.reflect.InvocationTargetException
>> 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.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)
>> at
>> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionFinish(TestExecutionListener.java:62)
>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1033)
>> at org.testng.TestNG.run(TestNG.java:1013)
>> at
>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
>> at
>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
>> at
>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>> Caused by: java.lang.IncompatibleClassChangeError: class
>> org.jacoco.core.internal.flow.ClassProbesVisitor has interface
>> org.objectweb.asm.ClassVisitor as super class
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
>> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
>> at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>> at
>> org.wso2.carbon.automation.engine.frameworkutils.ReportGenerator.analyzeStructure(ReportGenerator.java:144)
>> at
>> org.wso2.carbon.automation.engine.frameworkutils.ReportGenerator.create(ReportGenerator.java:77)
>> at
>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.generateCoverageReport(CarbonServerManager.java:333)
>> at
>> 

Re: [Dev] [App Factory] API to get the name of the user

2015-09-02 Thread Kavith Lokuhewage
Hi Mahesh,

I am not clear what you meant by "without calling AF". We only take
username and password from users. Then we invoke this api -
"/appmgt/site/blocks/user/login/ajax/login.jag" -  with username and
password to get the authenticated cookie. This API only returns true or
false to indicate login status. We store the cookie returned form it and
use it for other API calls during the session. Other-than that, we don't
have any details about the logged in user.

However, seems there is an alternative. "getUsersOfApplication" returns all
the users of a particular app along with their usernames + First Names and
Last names. Since we already have the username of logged in user, we can
iterate through the users returned by above API to get the First Name and
Last Name of current user.


Thanks,

On Wed, Sep 2, 2015 at 12:40 PM, Mahesh Chinthaka  wrote:

> Hi Kavith,
>
> No, AF dont have a jaggery API to get the user.
>
> Hope this is for logged in user. Cant you get the logged in user from your
> side with out calling AF.
>
> On Wed, Sep 2, 2015 at 12:11 PM, Kavith Lokuhewage 
> wrote:
>
>>
>> Hi,
>>
>> We need to get the name of the user in order to use it as the author name
>> for commits (This is achieve [1])
>>
>> Is there a jaggery API available for this? Or should we use use an admin
>> service?
>>
>> Thanks,
>>
>> [1] https://wso2.org/jira/browse/TOOLS-2728
>> --
>> *Kavith Lokuhewage*
>> Software Engineer
>> WSO2 Inc. - http://wso2.com
>> lean . enterprise . middleware
>> Mobile - +9477-9-145-123 | +9471-455-6-401
>> Linkedin 
>> Twitter 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>



-- 
*Kavith Lokuhewage*
Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +9477-9-145-123 | +9471-455-6-401
Linkedin   Twitter

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


Re: [Dev] [GREG] Error when adding JaCoco code coverage to test automation

2015-09-02 Thread Nuwan Wimalasekara
Hi Rajith,

I could reproduce the same error in test module cmis-tck. I will have a
look on this issue.

Thanks,
Nuwanw

On Wed, Sep 2, 2015 at 12:46 PM, Nuwan Wimalasekara  wrote:

> Hi Rajith,
>
> I could generate coverage for the test module tests-resources successfully
> in GReg 5.0.0-SNAPSHOT. I updated the test framework version to 4.4.2 and
> change the pom configuration as the document. Then it generated the
> coverage without any issue.
>
> Which framework version have you used and which test module gives the
> above error?
>
> Thanks,
> Nuwanw
>
> On Wed, Sep 2, 2015 at 11:02 AM, Rajith Roshan  wrote:
>
>> Hi all,
>>
>> Please find the correct doc link in [1] which, I referred when updating
>> the test automation
>>
>> [1] -
>> https://docs.google.com/document/d/1pMJGdRH4Kmc4J3rYzgnpGlR5AnSeoC4QL9gMX9tUhYs/edit#heading=h.yemie7ivahbz
>> 
>>
>> Thanks!
>> Rajith
>>
>> On Wed, Sep 2, 2015 at 10:57 AM, Rajith Roshan  wrote:
>>
>>> Hi Devs,
>>>
>>> I refer the doc [1] for updating Jacoco code coverage tool for
>>> integration tests in product G-Reg. It builds successfully when code
>>> coverage is set to false in automation.xml as follows.
>>>
>>> false
>>>
>>> Please do find automation.xml, pom.xml and automationlog files for the
>>> respective test module in [2]
>>>
>>> [1] -
>>> https://drive.google.com/a/wso2.com/folderview?id=0B8xmd1n2DieYfjk2X0Fnb20yMUF0TnI1X1NIek5zTXFtUmhhU0wxRXFTQ1lCQ19qSlN5RmM=sharing
>>>
>>> [2] -
>>> https://drive.google.com/a/wso2.com/folderview?id=0B8xmd1n2DieYfjk2X0Fnb20yMUF0TnI1X1NIek5zTXFtUmhhU0wxRXFTQ1lCQ19qSlN5RmM=sharing
>>>
>>> But it gives the following error when code coverage is enabled. Further
>>> I excluded "asm" from the jacoco dependency. But it gives the same error.
>>> Any help will be appreciated.
>>>
>>>
>>> ERROR
>>> [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] -
>>> Execution error occurred in TestExecutionListener:-
>>> java.lang.reflect.InvocationTargetException
>>> 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.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)
>>> at
>>> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionFinish(TestExecutionListener.java:62)
>>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1033)
>>> at org.testng.TestNG.run(TestNG.java:1013)
>>> at
>>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
>>> at
>>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
>>> at
>>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> at
>>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>>> at
>>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>> at
>>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>>> Caused by: java.lang.IncompatibleClassChangeError: class
>>> org.jacoco.core.internal.flow.ClassProbesVisitor has interface
>>> org.objectweb.asm.ClassVisitor as super class
>>> at java.lang.ClassLoader.defineClass1(Native Method)
>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
>>> at
>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
>>> at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>> at
>>> org.wso2.carbon.automation.engine.frameworkutils.ReportGenerator.analyzeStructure(ReportGenerator.java:144)
>>> at
>>> 

Re: [Dev] [BPS][IS] Admin console stuck with bpel/human task deployment

2015-09-02 Thread Waruna De Silva
Hi Nandika,

Do you have any update on this as this seems a blocker for the IS 5.1.0
release? Appreciate if you can provide an ETA for a workaround or the
permanent fix.

Regards!
Waruna

On Tue, Sep 1, 2015 at 11:48 AM, Harsha Thirimanna  wrote:

> Hi Nandika,
>
> Since IS(with BPEL/HT features) server stuck for more than 15min if we
> deploy only two bpel and we can experience that in BPS as well. We are bit
> stuck with this for this release as well. Are there any way to avoid this
> until we get proper solution ? Please advice us.
>
> thanks
>
>
>
> *Harsha Thirimanna*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Wed, Aug 26, 2015 at 5:57 PM, Harsha Thirimanna 
> wrote:
>
>> Hi Nandika,
>>
>> As We discussed, I have created a Jira [1] for this. It is better if we
>> can get fix for this before our release on next month  :).
>>
>> And thanks for your help to solve other issues and everything are working
>> fine now except the  above issue.
>>
>> [1] https://wso2.org/jira/browse/BPS-818
>>
>>
>> *Harsha Thirimanna*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Mon, Aug 24, 2015 at 2:44 PM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Vinod,
>>>
>>> Thanks for the detail and Is this the solution for this slowness ? And
>>> what could be the root cause that hold the admin ui when we deploy this ?
>>>
>>>
>>> *Harsha Thirimanna*
>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Mon, Aug 24, 2015 at 2:41 PM, Vinod Kavinda  wrote:
>>>
 Hi,
 Yes right now the deploy.xml file refers the epr file to locate the
 endpoint. But we can refer the endpoint from the wsdl also.

 Regards,
 Vinod.

 On Mon, Aug 24, 2015 at 2:35 PM, Harsha Thirimanna 
 wrote:

> ​Don't we need to include this epr file ? Because we have given
> correct endpoint in this epr file.​
>
>
> *Harsha Thirimanna*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Mon, Aug 24, 2015 at 9:57 AM, Vinod Kavinda  wrote:
>
>> Hi Harsha,
>> Yes, we also have experienced the same problem when the artefact
>> contains endpoint references(epr). Artefacts without epr does not cause
>> this problem.
>>
>> Regards,
>> Vinod.
>>
>> On Sun, Aug 23, 2015 at 9:07 PM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi BPS team,
>>>
>>> We have integrated bpel and human task features to the IS. With this
>>> new workflow to the user operation, we deploy bpel and human task for 
>>> each
>>> workflow profile that is defined by user. When we deploy one bpel and 
>>> human
>>> task for each workflow definition, it takes more than 15 
>>> seconds(average)
>>> to deploy those artifacts.Worst case is, just after we deploy this with
>>> embed bps features in IS, all the admin console blocks until it finish 
>>> this
>>> deployment job. Is this know issue or are there any things to avoid 
>>> this ?
>>>
>>> thanks
>>>
>>> *Harsha Thirimanna*
>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* 

Re: [Dev] [App Factory] API to get the name of the user

2015-09-02 Thread Kavith Lokuhewage
Hi Mahesh,

Yes that is true. I might have not expressed my requirement clearly. The
thing is, we need both username and the *name of the user *for the author
tag in a commit. It's the latter that we do not have with us.

Thanks,


On Wed, Sep 2, 2015 at 2:30 PM, Mahesh Chinthaka  wrote:

> Hi Kavith,
> What I meant was after user provide username and password, if login is
> successfull ; you can keep username somewhere in your side.
> Then whenever you need username, you can get it from there. No need to
> invoke a AF api.
>
> Thanks
>
> On Wed, Sep 2, 2015 at 2:14 PM, Kavith Lokuhewage  wrote:
>
>> Hi Mahesh,
>>
>> I am not clear what you meant by "without calling AF". We only take
>> username and password from users. Then we invoke this api -
>> "/appmgt/site/blocks/user/login/ajax/login.jag" -  with username and
>> password to get the authenticated cookie. This API only returns true or
>> false to indicate login status. We store the cookie returned form it and
>> use it for other API calls during the session. Other-than that, we don't
>> have any details about the logged in user.
>>
>> However, seems there is an alternative. "getUsersOfApplication" returns
>> all the users of a particular app along with their usernames + First Names
>> and Last names. Since we already have the username of logged in user, we
>> can iterate through the users returned by above API to get the First Name
>> and Last Name of current user.
>>
>>
>> Thanks,
>>
>> On Wed, Sep 2, 2015 at 12:40 PM, Mahesh Chinthaka 
>> wrote:
>>
>>> Hi Kavith,
>>>
>>> No, AF dont have a jaggery API to get the user.
>>>
>>> Hope this is for logged in user. Cant you get the logged in user from
>>> your side with out calling AF.
>>>
>>> On Wed, Sep 2, 2015 at 12:11 PM, Kavith Lokuhewage 
>>> wrote:
>>>

 Hi,

 We need to get the name of the user in order to use it as the author
 name for commits (This is achieve [1])

 Is there a jaggery API available for this? Or should we use use an
 admin service?

 Thanks,

 [1] https://wso2.org/jira/browse/TOOLS-2728
 --
 *Kavith Lokuhewage*
 Software Engineer
 WSO2 Inc. - http://wso2.com
 lean . enterprise . middleware
 Mobile - +9477-9-145-123 | +9471-455-6-401
 Linkedin 
 Twitter 

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


>>>
>>>
>>> --
>>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>>> Email: mahe...@wso2.com | Web: www.wso2.com
>>>
>>
>>
>>
>> --
>> *Kavith Lokuhewage*
>> Software Engineer
>> WSO2 Inc. - http://wso2.com
>> lean . enterprise . middleware
>> Mobile - +9477-9-145-123 | +9471-455-6-401
>> Linkedin 
>> Twitter 
>>
>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>



-- 
*Kavith Lokuhewage*
Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +9477-9-145-123 | +9471-455-6-401
Linkedin   Twitter

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


Re: [Dev] [GREG] Error when adding JaCoco code coverage to test automation

2015-09-02 Thread Nuwan Wimalasekara
Hi Rajith,

The issue is with the asm dependency. asm dependency should be removed from
all dependencies. Please exclude the asm dependency
from org.wso2.carbon.registry.activities as well. This will solve above
issue.


org.wso2.carbon.registry
org.wso2.carbon.registry.activities


asm
asm




Thanks,
Nuwanw

On Wed, Sep 2, 2015 at 1:02 PM, Nuwan Wimalasekara  wrote:

> Hi Rajith,
>
> I could reproduce the same error in test module cmis-tck. I will have a
> look on this issue.
>
> Thanks,
> Nuwanw
>
> On Wed, Sep 2, 2015 at 12:46 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Rajith,
>>
>> I could generate coverage for the test module tests-resources
>> successfully in GReg 5.0.0-SNAPSHOT. I updated the test framework version
>> to 4.4.2 and change the pom configuration as the document. Then it
>> generated the coverage without any issue.
>>
>> Which framework version have you used and which test module gives the
>> above error?
>>
>> Thanks,
>> Nuwanw
>>
>> On Wed, Sep 2, 2015 at 11:02 AM, Rajith Roshan  wrote:
>>
>>> Hi all,
>>>
>>> Please find the correct doc link in [1] which, I referred when updating
>>> the test automation
>>>
>>> [1] -
>>> https://docs.google.com/document/d/1pMJGdRH4Kmc4J3rYzgnpGlR5AnSeoC4QL9gMX9tUhYs/edit#heading=h.yemie7ivahbz
>>> 
>>>
>>> Thanks!
>>> Rajith
>>>
>>> On Wed, Sep 2, 2015 at 10:57 AM, Rajith Roshan  wrote:
>>>
 Hi Devs,

 I refer the doc [1] for updating Jacoco code coverage tool for
 integration tests in product G-Reg. It builds successfully when code
 coverage is set to false in automation.xml as follows.

 false

 Please do find automation.xml, pom.xml and automationlog files for the
 respective test module in [2]

 [1] -
 https://drive.google.com/a/wso2.com/folderview?id=0B8xmd1n2DieYfjk2X0Fnb20yMUF0TnI1X1NIek5zTXFtUmhhU0wxRXFTQ1lCQ19qSlN5RmM=sharing

 [2] -
 https://drive.google.com/a/wso2.com/folderview?id=0B8xmd1n2DieYfjk2X0Fnb20yMUF0TnI1X1NIek5zTXFtUmhhU0wxRXFTQ1lCQ19qSlN5RmM=sharing

 But it gives the following error when code coverage is enabled. Further
 I excluded "asm" from the jacoco dependency. But it gives the same error.
 Any help will be appreciated.


 ERROR
 [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] -
 Execution error occurred in TestExecutionListener:-
 java.lang.reflect.InvocationTargetException
 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.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)
 at
 org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionFinish(TestExecutionListener.java:62)
 at org.testng.TestNG.runExecutionListeners(TestNG.java:1033)
 at org.testng.TestNG.run(TestNG.java:1013)
 at
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
 at
 org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
 at
 org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
 at
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
 at
 org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
 at
 org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
 at
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
 Caused by: java.lang.IncompatibleClassChangeError: class
 org.jacoco.core.internal.flow.ClassProbesVisitor has interface
 org.objectweb.asm.ClassVisitor as super class
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
 at 

Re: [Dev] [App Factory] API to get the name of the user

2015-09-02 Thread Mahesh Chinthaka
Hi Kavith,
What I meant was after user provide username and password, if login is
successfull ; you can keep username somewhere in your side.
Then whenever you need username, you can get it from there. No need to
invoke a AF api.

Thanks

On Wed, Sep 2, 2015 at 2:14 PM, Kavith Lokuhewage  wrote:

> Hi Mahesh,
>
> I am not clear what you meant by "without calling AF". We only take
> username and password from users. Then we invoke this api -
> "/appmgt/site/blocks/user/login/ajax/login.jag" -  with username and
> password to get the authenticated cookie. This API only returns true or
> false to indicate login status. We store the cookie returned form it and
> use it for other API calls during the session. Other-than that, we don't
> have any details about the logged in user.
>
> However, seems there is an alternative. "getUsersOfApplication" returns
> all the users of a particular app along with their usernames + First Names
> and Last names. Since we already have the username of logged in user, we
> can iterate through the users returned by above API to get the First Name
> and Last Name of current user.
>
>
> Thanks,
>
> On Wed, Sep 2, 2015 at 12:40 PM, Mahesh Chinthaka 
> wrote:
>
>> Hi Kavith,
>>
>> No, AF dont have a jaggery API to get the user.
>>
>> Hope this is for logged in user. Cant you get the logged in user from
>> your side with out calling AF.
>>
>> On Wed, Sep 2, 2015 at 12:11 PM, Kavith Lokuhewage 
>> wrote:
>>
>>>
>>> Hi,
>>>
>>> We need to get the name of the user in order to use it as the author
>>> name for commits (This is achieve [1])
>>>
>>> Is there a jaggery API available for this? Or should we use use an admin
>>> service?
>>>
>>> Thanks,
>>>
>>> [1] https://wso2.org/jira/browse/TOOLS-2728
>>> --
>>> *Kavith Lokuhewage*
>>> Software Engineer
>>> WSO2 Inc. - http://wso2.com
>>> lean . enterprise . middleware
>>> Mobile - +9477-9-145-123 | +9471-455-6-401
>>> Linkedin 
>>> Twitter 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>
>
>
> --
> *Kavith Lokuhewage*
> Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +9477-9-145-123 | +9471-455-6-401
> Linkedin 
> Twitter 
>



-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release G-Reg 5.0.0 RC 2

2015-09-02 Thread Chandana Napagoda
Hi Pubudu,

Since we have already released RC2 pack and component repos, we can not
update above pages now. We will update context specific pages for coming up
5.0.1 release. Meantime, you can refer wiki based documentation available
here [1].

[1].
https://docs.wso2.com/display/Governance500/WSO2+Governance+Registry+Documentation

Regards,
Chandana

On Wed, Sep 2, 2015 at 10:49 AM, Pubudu Priyashan  wrote:

> Hi Chandana,
>
> Since the Help page, context specific pages are out-dated we need to
> update those to reflect most recent information. Can you please address
> this issue as required? Please find the relevant ticket below. Thanks.
>
> https://wso2.org/jira/browse/REGISTRY-2910
>
> Cheers,
>
> Pubudu D.P
> Senior Software Engineer - QA Team | WSO2 inc.
> Mobile : +94775464547
>
> On Wed, Sep 2, 2015 at 10:41 AM, Nirdesha Munasinghe 
> wrote:
>
>> The context sensitive help links are in the product UIs. AFAIK, these
>> links are component-based rather than product based? Please correct me if I
>> am wrong.
>>
>> If they are component-based, we cannot link to the wiki of a specific
>> product from there as many other products might also be using the same
>> component.
>>
>> Maybe we should simply disable these help links until we find a better
>> way to maintain them.
>>
>> Thanks,
>> -Nirdesha
>>
>> On Wed, Sep 2, 2015 at 10:30 AM, Pubudu Priyashan 
>> wrote:
>>
>>> Hi Nirdesha,
>>>
>>> Can we please point the current context sensitive help pages to relevant
>>> product documentation of GReg 5.0.0 release?
>>>
>>> Cheers,
>>>
>>> Pubudu D.P
>>> Senior Software Engineer - QA Team | WSO2 inc.
>>> Mobile : +94775464547
>>>
>>> On Wed, Sep 2, 2015 at 9:42 AM, Ajith Vitharana  wrote:
>>>


 On Wed, Sep 2, 2015 at 12:08 AM, Evanthika Amarasiri <
 evanth...@wso2.com> wrote:

> Ack!
>
> @Chalitha/Thaya/Pubudu. Please note.
>

 And all the context sensitive help pages  are outdated .

 -Ajith


>
> Regards,
> Evanthika Amarasiri
> Senior Technical Lead  - Quality Assurance
> Mobile: +94773125935
> Blog: evanthika.blogspot.com
>
> wso2.com lean.enterprise.middleware
>
> On Wed, Sep 2, 2015 at 9:32 AM, Ajith Vitharana 
> wrote:
>
>> Hi All
>>
>> This is non a bug but please fix the about page if possible because
>> this is a major release. (find the attached image)
>>
>> -Ajith
>>
>>
>>
>>
>>
>> On Tue, Sep 1, 2015 at 11:05 PM, Prasanna Dangalla > > wrote:
>>
>>> Hi All,
>>>
>>> *This is the RC 2 release candidate of G-Reg 5.0.0 *
>>>
>>> This release fixes the following issues:
>>>
>>> https://wso2.org/jira/browse/REGISTRY-2895?filter=12384
>>> https://wso2.org/jira/browse/REGISTRY-2908
>>>
>>> Please download, test and vote. Please refer the release
>>> verification guide for detailed information on verifying this release.
>>>
>>> *Source & binary distribution files:*
>>>
>>>
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2greg-026/org/wso2/greg/wso2greg/5.0.0/
>>>
>>> *Maven staging repo:*
>>>
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2greg-026/
>>>
>>> *The tag to be voted upon:*
>>>
>>> https://github.com/wso2/product-greg/tree/v5.0.0-rc2
>>>
>>>
>>>
>>> [*+*] Stable - go ahead and release
>>>
>>> [*-*]  Broken - do not release (explain why)
>>>
>>> Thanks and Regards
>>> G-Reg team
>>>
>>> Prasanna Dangalla
>>> Software Engineer, WSO2, Inc.; http://wso2.com/
>>> lean.enterprise.middleware
>>>
>>> cell: +94 718 11 27 51
>>> twitter: @prasa77
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Ajith Vitharana.
>>
>> WSO2 Inc. - http://wso2.com
>> Email  : aji...@wso2.com
>> Blog: http://vitharana.org
>> Mobile : +1-812-360-5335
>>
>>
>


 --
 Ajith Vitharana.

 WSO2 Inc. - http://wso2.com
 Email  : aji...@wso2.com
 Blog: http://vitharana.org
 Mobile : +1-812-360-5335


>>>
>>
>>
>> --
>>
>> Thanks,
>>
>> Nirdesha Munasinghe,
>> WSO2 Inc.
>> Web:http://wso2.com
>>
>> Mobile: +94 776321920
>>
>
>


-- 
*Chandana Napagoda*
Senior Software Engineer
WSO2 Inc. - http://wso2.org

*Email  :  chand...@wso2.com **Mobile : +94718169299*

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


[Dev] How to specify custom HTTP Endpoint in Services Endpoints UI

2015-09-02 Thread Madhawa Gunasekara
Hi All,

I have a requirement to show a custom http/hhtps endpoint in service
endpoint list in DSS UI, Is there any way to add custom endpoint in the ui
?

 "service_info.jsp" file makes the service information page. The endpoints
were taken from the AxisService.getEPR() method. but how can I add "
http://10.100.7.54:9763/odataservices/testjira/c1/

endpoint to axisService, AFAIU I can't use setEPRS() to axisServices.

Any help on this matter is highly appreciated.
Thanks,
Madhawa

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

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


Re: [Dev] [Carbon] [Kernel] Membership Scheme Extension Support for Carbon 4.2.0

2015-09-02 Thread Kishanthan Thangarajah
Hi Imesh,

Do we still need the new MebershipScheme annotation? IIRC, we could remove
that with the usage of osgi service properties.

On Thu, Aug 20, 2015 at 10:02 AM, Imesh Gunaratne  wrote:

> Hi Kishanthan,
>
> I have now sent two pull requests for Carbon 4.4.x and 4.5 branches:
>
> https://github.com/wso2/carbon4-kernel/pull/391
> https://github.com/wso2/carbon4-kernel/pull/355
>
> Appreciate if you can review and merge.
>
> Thanks
>
> On Fri, Aug 14, 2015 at 10:30 AM, Imesh Gunaratne  wrote:
>
>> Thanks Kishanthan! Appreciate it!
>> I will send a pull request for the 4.4.x git branch and update the
>> current pull request on master branch.
>>
>> Thanks
>>
>> On Fri, Aug 14, 2015 at 10:20 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Applied the fix to patch0012 with r213437. You have to send the same fix
>>> to kernel 4.4.x git branch and the proper fix to master.
>>>
>>> On Thu, Aug 13, 2015 at 5:25 PM, Imesh Gunaratne  wrote:
>>>
 Hi Kishanthan,

 I have now updated it and re-attached the diff to the JIRA issue.
 Please review.

 Thanks

 On Thu, Aug 13, 2015 at 3:18 PM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> So can we just change this to Class.forName ?
>
> On Thu, Aug 13, 2015 at 1:26 PM, Imesh Gunaratne 
> wrote:
>
>> On Thu, Aug 13, 2015 at 11:57 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Hi Imesh,
>>>
>>> Any specific reason for loading classes
>>> using bundleContext.getClass().forName(className) approach?
>>>
>>
>> No there is no specific reason for this.
>>
>> On Thu, Aug 13, 2015 at 11:57 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Hi Imesh,
>>>
>>> Any specific reason for loading classes
>>> using bundleContext.getClass().forName(className) approach?
>>>
>>
>>> On Wed, Aug 12, 2015 at 5:31 PM, Imesh Gunaratne 
>>> wrote:
>>>
 Hi Devs,

 Currently in Carbon 4.2.0 we do not have $subject. This is needed
 for Private PaaS for automating cluster discovery for WSO2 products 
 when
 running on a cloud environment.

 According to an offline discussion had with the Carbon team I have
 now implemented this and provided a diff here [1]. Appreciate if this 
 can
 be merged to Kernel patch0012.

 [1] https://wso2.org/jira/browse/CARBON-15340

 Thanks

 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Associate Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635
>>> Blog - *http://kishanthan.wordpress.com
>>> *
>>> Twitter - *http://twitter.com/kishanthan
>>> *
>>>
>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com
> *
> Twitter - *http://twitter.com/kishanthan
> *
>



 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Associate Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635
>>> Blog - *http://kishanthan.wordpress.com
>>> *
>>> Twitter - *http://twitter.com/kishanthan
>>> *
>>>
>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, 

Re: [Dev] [AS] [Session Replication] Using Hazelcast Session Replication

2015-09-02 Thread Aruna Karunarathna
On Tue, Sep 1, 2015 at 12:34 PM, Samiyuru Senarathne 
wrote:

> Hi,
>
> I am in the process of implementing session replication for the WSO2
> Application Server. For that, Hazelcast session replication [1] is
> suggested. I would like to know your ideas regarding this.
>

AFAIR there is some work done for the $subject, It's better if you can go
through them first.

[1]. [Architecture] [Progress] HTTP Session Persistence for WSO2
Application Server


> [1] -
> https://hazelcast.com/use-cases/web-session-clustering/generic-web-session-replication/
>
> Thanks,
>
> --
> Samiyuru Senarathne
> *Software Engineer*
> Mobile : +94 (0) 71 134 6087
> samiyuru@wso2.comto have a chat regarding a fast track project :)to have a
> chat regarding a fast track project :)to have a chat regarding a fast track
> project :) 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

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


[Dev] [App Factory] API to get the name of the user

2015-09-02 Thread Kavith Lokuhewage
Hi,

We need to get the name of the user in order to use it as the author name
for commits (This is achieve [1])

Is there a jaggery API available for this? Or should we use use an admin
service?

Thanks,

[1] https://wso2.org/jira/browse/TOOLS-2728
-- 
*Kavith Lokuhewage*
Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +9477-9-145-123 | +9471-455-6-401
Linkedin   Twitter

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


Re: [Dev] [VOTE] Release WSO2 ESB 4.9.0 RC2

2015-09-02 Thread Ravindra Ranwala
Hi All,

Please find the correct link to the issues fixed for this release.

https://wso2.org/jira/secure/ReleaseNote.jspa?projectId=10023=11540

Thanks & Regards,

On Wed, Sep 2, 2015 at 10:32 PM, Ravindra Ranwala  wrote:

> Hi Devs,
>
> WSO2 ESB 4.9.0 RC2 Release Vote
>
> This release fixes the following issues:
> https://wso2.org/jira/secure/ReleaseNote.jspa?projectId=10023=11540
> 
>
> Please download ESB 4.9.0 RC2 and test the functionality and vote. Vote
> will be open for 72 hours or as needed.
>
> *Source & binary distribution files:*
>
> 
> http://maven.wso2.org/nexus/content/repositories/orgwso2esb-029/org/wso2/esb/wso2esb/4.9.0-RC2/
>
> *Maven staging repository:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2esb-029/
> 
>
> *The tag to be voted upon :*
> https://github.com/wso2/product-esb/tree/esb-parent-4.9.0-RC2
> 
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
>
> Thanks and Regards,
> ~ WSO2 ESB Team ~
>
>
> --
> Ravindra Ranwala
> Software Engineer
> WSO2, Inc: http://wso2.com
> 
> Mobile: +94714198770
>
>


-- 
Ravindra Ranwala
Software Engineer
WSO2, Inc: http://wso2.com

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


[Dev] [VOTE] Release WSO2 ESB 4.9.0 RC2

2015-09-02 Thread Ravindra Ranwala
Hi Devs,

WSO2 ESB 4.9.0 RC2 Release Vote

This release fixes the following issues:
https://wso2.org/jira/secure/ReleaseNote.jspa?projectId=10023=11540


Please download ESB 4.9.0 RC2 and test the functionality and vote. Vote
will be open for 72 hours or as needed.

*Source & binary distribution files:*

http://maven.wso2.org/nexus/content/repositories/orgwso2esb-029/org/wso2/esb/wso2esb/4.9.0-RC2/

*Maven staging repository:*
http://maven.wso2.org/nexus/content/repositories/orgwso2esb-029/


*The tag to be voted upon :*
https://github.com/wso2/product-esb/tree/esb-parent-4.9.0-RC2



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


Thanks and Regards,
~ WSO2 ESB Team ~


-- 
Ravindra Ranwala
Software Engineer
WSO2, Inc: http://wso2.com

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


Re: [Dev] [VOTE] Release WSO2 ESB 4.9.0 RC2

2015-09-02 Thread Ravindra Ranwala
Hi All,

Please find the correct filter for the issues fixed for this release.

https://wso2.org/jira/browse/ESBJAVA-4138?filter=12385


Also the correct staging repo can be found here.

http://maven.wso2.org/nexus/content/repositories/orgwso2esb-029/


Thanks & Regards,

On Wed, Sep 2, 2015 at 10:38 PM, Ravindra Ranwala  wrote:

> Hi All,
>
> Please find the correct link to the issues fixed for this release.
>
> https://wso2.org/jira/secure/ReleaseNote.jspa?projectId=10023=11540
>
> Thanks & Regards,
>
> On Wed, Sep 2, 2015 at 10:32 PM, Ravindra Ranwala 
> wrote:
>
>> Hi Devs,
>>
>> WSO2 ESB 4.9.0 RC2 Release Vote
>>
>> This release fixes the following issues:
>>
>> https://wso2.org/jira/secure/ReleaseNote.jspa?projectId=10023=11540
>> 
>>
>> Please download ESB 4.9.0 RC2 and test the functionality and vote. Vote
>> will be open for 72 hours or as needed.
>>
>> *Source & binary distribution files:*
>>
>> 
>> http://maven.wso2.org/nexus/content/repositories/orgwso2esb-029/org/wso2/esb/wso2esb/4.9.0-RC2/
>>
>> *Maven staging repository:*
>> http://maven.wso2.org/nexus/content/repositories/orgwso2esb-029/
>> 
>>
>> *The tag to be voted upon :*
>> https://github.com/wso2/product-esb/tree/esb-parent-4.9.0-RC2
>> 
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>>
>> Thanks and Regards,
>> ~ WSO2 ESB Team ~
>>
>>
>> --
>> Ravindra Ranwala
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>> 
>> Mobile: +94714198770
>>
>>
>
>
> --
> Ravindra Ranwala
> Software Engineer
> WSO2, Inc: http://wso2.com
> 
> Mobile: +94714198770
>
>


-- 
Ravindra Ranwala
Software Engineer
WSO2, Inc: http://wso2.com

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


Re: [Dev] How to call "IdentityApplicationManagementService" admin service as a tenant user

2015-09-02 Thread Sanjeewa Malalgoda
If you are trying to implement tenant SP creation for App manager then we
can easily do it using mutual SSL with tenant user name.
We have implemented something similar and we can share code with you soon.

Thanks,
sanjeewa.

On Thu, Sep 3, 2015 at 12:13 AM, Lakshani Gamage  wrote:

> Hi all,
>
> I want to call "*IdentityApplicationManagementService*" admin service as
> a tenant user.
>
> I gave super tenant credentials to that stub and called  "
> *createApplication*" method by changing tenant flow. But still the SP is
> created in ST space.
>
> If you have any idea, how to call this Service as a tenant user, Please
> share it.
>
> Thanks,
> Lakshani
>
>
>
> --
> Lakshani Gamage
>
> *Software Engineer*
> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*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


Re: [Dev] How to call "IdentityApplicationManagementService" admin service as a tenant user

2015-09-02 Thread Rushmin Fernando
Shouldn't we fix the relevant admin service to accept the tenant Id as a
better solution ?

On Thu, Sep 3, 2015 at 12:40 AM, Lakshani Gamage  wrote:

> Hi Sanjeewa,
>
> Yes. I'm trying to implement tenant SP creation for App manager. Thanks
> for the quick response.
>
> Regards,
> Lakshani.
>
> On Thu, Sep 3, 2015 at 12:20 AM, Sanjeewa Malalgoda 
> wrote:
>
>> If you are trying to implement tenant SP creation for App manager then we
>> can easily do it using mutual SSL with tenant user name.
>> We have implemented something similar and we can share code with you soon.
>>
>> Thanks,
>> sanjeewa.
>>
>> On Thu, Sep 3, 2015 at 12:13 AM, Lakshani Gamage 
>> wrote:
>>
>>> Hi all,
>>>
>>> I want to call "*IdentityApplicationManagementService*" admin service
>>> as a tenant user.
>>>
>>> I gave super tenant credentials to that stub and called  "
>>> *createApplication*" method by changing tenant flow. But still the SP
>>> is created in ST space.
>>>
>>> If you have any idea, how to call this Service as a tenant user, Please
>>> share it.
>>>
>>> Thanks,
>>> Lakshani
>>>
>>>
>>>
>>> --
>>> Lakshani Gamage
>>>
>>> *Software Engineer*
>>> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Sanjeewa Malalgoda*
>> WSO2 Inc.
>> Mobile : +94713068779
>>
>> blog
>> :http://sanjeewamalalgoda.blogspot.com/
>> 
>>
>>
>>
>
>
> --
> Lakshani Gamage
>
> *Software Engineer*
> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>
> ___
> 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-bin/mailman/listinfo/dev


Re: [Dev] Export Package version of org.wso2.carbon.base

2015-09-02 Thread Kishanthan Thangarajah
This version has been continued due to historical reasons since no major
API changes has been introduced. Changing this would break some other
imports.

On Mon, Aug 24, 2015 at 10:13 AM, Maduranga Siriwardena 
wrote:

> Hi,
>
> Is there any particular reason why the package org.wso2.carbon.base is
> exported explicitly with version 1.0.0 in carbon4-kernel in [1]? I noticed
> the same with org.wso2.carbon.user.api in [2] also.
>
> [1]
> https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.base/pom.xml#L48
> [2]
> https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.user.api/pom.xml#L51
>
> Thank you,
> Maduranga.
> --
> Maduranga Siriwardena
> Software Engineer
> WSO2 Inc.
>
> email: madura...@wso2.com
> mobile: +94718990591
>



-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to specify custom HTTP Endpoint in Services Endpoints UI

2015-09-02 Thread Madhawa Gunasekara
In DSS, We have added a feature to expose datasources as OData services.
therefore, We have implemented a different endpoint for OData, but OData is
also a kind of dataservice.
that's why we need to show that odata endpoint in dataservices endpoints.

Thanks,
Madhawa

On Thu, Sep 3, 2015 at 10:50 AM, Kishanthan Thangarajah  wrote:

> Why do want to show a different endpoint here? Whats the use-case?
>
> On Wed, Sep 2, 2015 at 7:48 PM, Madhawa Gunasekara 
> wrote:
>
>> Hi All,
>>
>> Please find the created improvement jira issue [1].
>>
>> [1] https://wso2.org/jira/browse/CARBON-15398
>>
>> Thanks,
>> Madhawa
>>
>> On Wed, Sep 2, 2015 at 12:35 PM, Madhawa Gunasekara 
>> wrote:
>>
>>> Hi All,
>>>
>>> I have a requirement to show a custom http/hhtps endpoint in service
>>> endpoint list in DSS UI, Is there any way to add custom endpoint in the ui
>>> ?
>>>
>>>  "service_info.jsp" file makes the service information page. The
>>> endpoints were taken from the AxisService.getEPR() method. but how can I
>>> add "http://10.100.7.54:9763/odataservices/testjira/c1/
>>> 
>>> endpoint to axisService, AFAIU I can't use setEPRS() to axisServices.
>>>
>>> Any help on this matter is highly appreciated.
>>> Thanks,
>>> Madhawa
>>>
>>> *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
>>> *
>>>
>>
>>
>>
>> --
>> *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
>> *
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



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

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


Re: [Dev] [GREG] Error when adding JaCoco code coverage to test automation

2015-09-02 Thread Krishantha Samaraweera
Fix for this issue is already specified there in the doc [1]
under Troubleshooting section.

Thanks,
Krishantha.

[1]
https://docs.google.com/a/wso2.com/document/d/1pMJGdRH4Kmc4J3rYzgnpGlR5AnSeoC4QL9gMX9tUhYs/edit?usp=sharing

On Wed, Sep 2, 2015 at 10:57 AM, Rajith Roshan  wrote:

> Hi Devs,
>
> I refer the doc [1] for updating Jacoco code coverage tool for integration
> tests in product G-Reg. It builds successfully when code coverage is set to
> false in automation.xml as follows.
>
> false
>
> Please do find automation.xml, pom.xml and automationlog files for the
> respective test module in [2]
>
> [1] -
> https://drive.google.com/a/wso2.com/folderview?id=0B8xmd1n2DieYfjk2X0Fnb20yMUF0TnI1X1NIek5zTXFtUmhhU0wxRXFTQ1lCQ19qSlN5RmM=sharing
>
> [2] -
> https://drive.google.com/a/wso2.com/folderview?id=0B8xmd1n2DieYfjk2X0Fnb20yMUF0TnI1X1NIek5zTXFtUmhhU0wxRXFTQ1lCQ19qSlN5RmM=sharing
>
> But it gives the following error when code coverage is enabled. Further I
> excluded "asm" from the jacoco dependency. But it gives the same error.
> Any help will be appreciated.
>
>
> ERROR
> [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] -
> Execution error occurred in TestExecutionListener:-
> java.lang.reflect.InvocationTargetException
> 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.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)
> at
> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionFinish(TestExecutionListener.java:62)
> at org.testng.TestNG.runExecutionListeners(TestNG.java:1033)
> at org.testng.TestNG.run(TestNG.java:1013)
> at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
> at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> Caused by: java.lang.IncompatibleClassChangeError: class
> org.jacoco.core.internal.flow.ClassProbesVisitor has interface
> org.objectweb.asm.ClassVisitor as super class
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> at
> org.wso2.carbon.automation.engine.frameworkutils.ReportGenerator.analyzeStructure(ReportGenerator.java:144)
> at
> org.wso2.carbon.automation.engine.frameworkutils.ReportGenerator.create(ReportGenerator.java:77)
> at
> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.generateCoverageReport(CarbonServerManager.java:333)
> at
> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.serverShutdown(CarbonServerManager.java:309)
> at
> org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.stopServer(TestServerManager.java:132)
> at
> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.onExecutionFinish(CarbonServerExtension.java:61)
> ... 20 more
> org.apache.maven.surefire.util.SurefireReflectionException:
> java.lang.reflect.InvocationTargetException; nested exception is
> java.lang.reflect.InvocationTargetException: null
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> 

Re: [Dev] OAuth Flow - Persisting configuration parameters in WSO2 ESB Registry and reading/writing their values using Synapse

2015-09-02 Thread Asitha Nanayakkara
Hi Palamayuran,

You can either write a class mediator[1] to do this or use the script
mediator[2],

Java code for saving and retrieving a String to/from registry is as follows

Writing to registry

String resourcePath = "conf/wsdl/myWSDL";
> mc.getConfiguration().getRegistry().newResource(resourcePath, false);
> mc.getConfiguration().getRegistry().updateResource(resourcePath,
> mc.getProperty("MyProperty").toString().getBytes());


Reading from registry

Object resourceObj = mc.getConfiguration().getRegistry().getResource(new
> Entry(resourcePath), new Properties());
> if(resourceObj != null) {
> mc.setProperty("MyProperty", ((OMTextImpl) resourceObj).getText());
> }


You can use something similar to following in Script mediator

 importPackage(Packages.org.apache.synapse.config);
> mc.getConfiguration().getRegistry().newResource("conf/wsdl/myWSDL
> ",false);
> mc.getConfiguration().getRegistry().updateResource("conf/wsdl/myWSDL
> ", mc.getProperty("MyProperty").toString());
> ]]>


As far as I know writing to registry using the property mediators registry
scope is supported from ESB 4.9.0.

Hope this serves your purpose.

[1] https://docs.wso2.com/display/ESB481/Class+Mediator
[2] https://docs.wso2.com/display/ESB481/Script+Mediator

Regards,
Asitha

On Wed, Sep 2, 2015 at 9:37 PM, Palamayuran 
wrote:

> *Hi Guys,*
>
> I'm trying to develop a component that implements OAuth flow to supplement
> connectors that use the OAuth 2.0 for authentication.
>
> In order to accomplish the task I have a requirement where I have to
> persist
> certain API specific values (access token, refresh token etc) in the WSO2
> ESB registry so that any subsequent calls can access them. Also when any of
> them expires/changes they have to be updated appropriately using synapse
> code.
>
> Can someone please point out to me how to persist parameters (key/value
> pairs) onto the WSO2 registry using synapse mediators to achieve the above.
>
> *Thanks in Advance,*
> Palamayuran
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/OAuth-Flow-Persisting-configuration-parameters-in-WSO2-ESB-Registry-and-reading-writing-their-valuese-tp124630.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
*Asitha Nanayakkara*
Software Engineer
WSO2, Inc. http://wso2.com/
Mob: + 94 77 85 30 682
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to specify custom HTTP Endpoint in Services Endpoints UI

2015-09-02 Thread Kishanthan Thangarajah
Why do want to show a different endpoint here? Whats the use-case?

On Wed, Sep 2, 2015 at 7:48 PM, Madhawa Gunasekara 
wrote:

> Hi All,
>
> Please find the created improvement jira issue [1].
>
> [1] https://wso2.org/jira/browse/CARBON-15398
>
> Thanks,
> Madhawa
>
> On Wed, Sep 2, 2015 at 12:35 PM, Madhawa Gunasekara 
> wrote:
>
>> Hi All,
>>
>> I have a requirement to show a custom http/hhtps endpoint in service
>> endpoint list in DSS UI, Is there any way to add custom endpoint in the ui
>> ?
>>
>>  "service_info.jsp" file makes the service information page. The
>> endpoints were taken from the AxisService.getEPR() method. but how can I
>> add "http://10.100.7.54:9763/odataservices/testjira/c1/
>> 
>> endpoint to axisService, AFAIU I can't use setEPRS() to axisServices.
>>
>> Any help on this matter is highly appreciated.
>> Thanks,
>> Madhawa
>>
>> *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
>> *
>>
>
>
>
> --
> *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
> *
>



-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to call "IdentityApplicationManagementService" admin service as a tenant user

2015-09-02 Thread Lakshani Gamage
Hi all,

I want to call "*IdentityApplicationManagementService*" admin service as a
tenant user.

I gave super tenant credentials to that stub and called  "
*createApplication*" method by changing tenant flow. But still the SP is
created in ST space.

If you have any idea, how to call this Service as a tenant user, Please
share it.

Thanks,
Lakshani



-- 
Lakshani Gamage

*Software Engineer*
Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to call "IdentityApplicationManagementService" admin service as a tenant user

2015-09-02 Thread Lakshani Gamage
Hi Sanjeewa,

Yes. I'm trying to implement tenant SP creation for App manager. Thanks for
the quick response.

Regards,
Lakshani.

On Thu, Sep 3, 2015 at 12:20 AM, Sanjeewa Malalgoda 
wrote:

> If you are trying to implement tenant SP creation for App manager then we
> can easily do it using mutual SSL with tenant user name.
> We have implemented something similar and we can share code with you soon.
>
> Thanks,
> sanjeewa.
>
> On Thu, Sep 3, 2015 at 12:13 AM, Lakshani Gamage 
> wrote:
>
>> Hi all,
>>
>> I want to call "*IdentityApplicationManagementService*" admin service as
>> a tenant user.
>>
>> I gave super tenant credentials to that stub and called  "
>> *createApplication*" method by changing tenant flow. But still the SP is
>> created in ST space.
>>
>> If you have any idea, how to call this Service as a tenant user, Please
>> share it.
>>
>> Thanks,
>> Lakshani
>>
>>
>>
>> --
>> Lakshani Gamage
>>
>> *Software Engineer*
>> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
> blog
> :http://sanjeewamalalgoda.blogspot.com/
> 
>
>
>


-- 
Lakshani Gamage

*Software Engineer*
Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] unsubscripe

2015-09-02 Thread zana ilhan

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


Re: [Dev] [ES] Can't publish in Enterprise store

2015-09-02 Thread Mariangela Hills
Thanks, Kathees and Manuranga!

Regards,
Mariangela


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

On Wed, Sep 2, 2015 at 4:11 PM, Manuranga Perera  wrote:

> Hi Mariangela,
> this fix is for ES 1.2. this issue is already addressed in 2.0.0.
>
> On Wed, Sep 2, 2015 at 3:59 PM, Kathees Rajendram 
> wrote:
>
>> HI Mariangela,
>>
>> I increased the count and paginationLimit values in
>> WSO2ES_HOME/repository/deployment/server/jaggeryapps/publisher/extensions/assets/default/pages/list.jag.
>>
>>
>> var DEFAULT_PAGIN = {
>> 'start': 0,
>> 'count': 1000,
>> 'sortOrder': 'DESC',
>> 'sortBy': 'overview_createdtime',
>> 'paginationLimit':1000
>> };
>>
>> Thanks,
>> Kathees
>>
>> On Wed, Sep 2, 2015 at 3:49 PM, Mariangela Hills 
>> wrote:
>>
>>> Hi Kathees,
>>>
>>> Can you please let me know the exact changes that you made in the list.jag
>>> file, so that I can document this in the ES wiki docs.
>>>
>>> Regards,
>>> Mariangela
>>>
>>>
>>> *Mariangela Hills*
>>> Senior Technical Writer - WSO2, Inc. http://wso2.com
>>> Committer and PMC member - Apache Stratos
>>> email:mariang...@wso2.com | mobile: +94 773 500185
>>>
>>> On Wed, Sep 2, 2015 at 10:25 AM, Malaka Silva  wrote:
>>>
 Good Job Kathees. :)

 This became complete blocker for the store release and thx for fixing
 it quickly.

 On Wed, Sep 2, 2015 at 10:19 AM, Kathees Rajendram 
 wrote:

> Hi Manuranga/Sameera,
>
> I  have fixed the issue by changing the value in the following jaggery
> file.
>
> WSO2ES_HOME/repository/deployment/server/jaggeryapps/publisher/extensions/assets/default/pages/list.jag
>
> Thanks,
> Kathees
>
> On Wed, Sep 2, 2015 at 8:05 AM, Sameera Medagammaddegedara <
> samee...@wso2.com> wrote:
>
>> EDIT: My apologies, I did not notice that you were talking about the
>> Publisher application.
>>
>> On Tue, Sep 1, 2015 at 10:21 PM, Sameera Medagammaddegedara <
>> samee...@wso2.com> wrote:
>>
>>> Hi Kathees,
>>>
>>> If I remember correctly the above code snippet is not invoked from
>>> the Store application.The AssetManager is not utilized in the Store
>>> application of the ES pack that  you are using.
>>>
>>> Thank You,
>>> Sameera
>>>
>>> On Fri, Aug 28, 2015 at 1:02 AM, Kathees Rajendram >> > wrote:
>>>
 Hi Manuranga,

 The count and paginationLimit values are 1000 but 100 asserts only
 are listed. I tried to increase the number. The changes are not picked 
 up.

 ../modules/rxt/scripts/asset/asset.js

 function AssetManager(registry, type, rxtManager, renderer) {
 this.registry = registry;
 this.rxtManager = rxtManager;
 this.rxtTemplate = rxtManager.getRxtDefinition(type);
 this.type = type;
 this.r = renderer;
 this.am = null;
 this.defaultPaging = {
 'start': 0,
 'count': 1000,
 'sortOrder': 'desc',
 'sortBy': 'overview_createdtime',
 'paginationLimit': 1000
 };
 }


 Thanks,
 Kathees

 On Thu, Aug 27, 2015 at 10:21 PM, Manuranga Perera 
 wrote:

> number 100 is hard-coded in modules dir please grep and fix. can
> you meet me tomorrow?
>
> On Thu, Aug 27, 2015 at 6:40 PM, Kathees Rajendram <
> kath...@wso2.com> wrote:
>
>> Adding Manuranga,
>>
>> On Thu, Aug 27, 2015 at 6:23 PM, Kathees Rajendram <
>> kath...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> In ESB connector store, we are unable to publish the new
>>> connectors. The ESB connector store publisher is restricted to view 
>>> only
>>> 100 connectors. We are having more than 100 connectors to add to 
>>> the store.
>>> Can you suggest how to increase the limit in the 
>>> wso2es-1.2.0-SNAPSHOT?
>>>
>>> Thanks,
>>> Kathees
>>> --
>>> Kathees
>>> Software Engineer,
>>> email: kath...@wso2.com
>>> mobile: +94772596173
>>>
>>
>>
>>
>> --
>> Kathees
>> Software Engineer,
>> email: kath...@wso2.com
>> mobile: +94772596173
>>
>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>


Re: [Dev] [BPS][IS] Admin console stuck with bpel/human task deployment

2015-09-02 Thread Waruna De Silva
Thanks Nandika for the update. Hope this will get sorted before the beta
dates.

Regards!
Waruna

On Wed, Sep 2, 2015 at 4:45 PM, Nandika Jayawardana 
wrote:

> Hi Waruna,
>
> We are checking this issue. It is strange that UI get blocked as
> deployment happens independent of ui threads .
>
> Regards
> Nandika
>
> On Wed, Sep 2, 2015 at 1:59 PM, Waruna De Silva  wrote:
>
>> Hi Nandika,
>>
>> Do you have any update on this as this seems a blocker for the IS 5.1.0
>> release? Appreciate if you can provide an ETA for a workaround or the
>> permanent fix.
>>
>> Regards!
>> Waruna
>>
>> On Tue, Sep 1, 2015 at 11:48 AM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Nandika,
>>>
>>> Since IS(with BPEL/HT features) server stuck for more than 15min if we
>>> deploy only two bpel and we can experience that in BPS as well. We are bit
>>> stuck with this for this release as well. Are there any way to avoid this
>>> until we get proper solution ? Please advice us.
>>>
>>> thanks
>>>
>>>
>>>
>>> *Harsha Thirimanna*
>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Wed, Aug 26, 2015 at 5:57 PM, Harsha Thirimanna 
>>> wrote:
>>>
 Hi Nandika,

 As We discussed, I have created a Jira [1] for this. It is better if we
 can get fix for this before our release on next month  :).

 And thanks for your help to solve other issues and everything are
 working fine now except the  above issue.

 [1] https://wso2.org/jira/browse/BPS-818


 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * *
 *email: **hars...@wso2.com* * cell: +94 71 5186770 *
 *twitter: **http://twitter.com/ *
 *harshathirimannlinked-in: **http:
 **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 *

 *Lean . Enterprise . Middleware*


 On Mon, Aug 24, 2015 at 2:44 PM, Harsha Thirimanna 
 wrote:

> Hi Vinod,
>
> Thanks for the detail and Is this the solution for this slowness ? And
> what could be the root cause that hold the admin ui when we deploy this ?
>
>
> *Harsha Thirimanna*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Mon, Aug 24, 2015 at 2:41 PM, Vinod Kavinda  wrote:
>
>> Hi,
>> Yes right now the deploy.xml file refers the epr file to locate the
>> endpoint. But we can refer the endpoint from the wsdl also.
>>
>> Regards,
>> Vinod.
>>
>> On Mon, Aug 24, 2015 at 2:35 PM, Harsha Thirimanna 
>> wrote:
>>
>>> ​Don't we need to include this epr file ? Because we have given
>>> correct endpoint in this epr file.​
>>>
>>>
>>> *Harsha Thirimanna*
>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Mon, Aug 24, 2015 at 9:57 AM, Vinod Kavinda 
>>> wrote:
>>>
 Hi Harsha,
 Yes, we also have experienced the same problem when the artefact
 contains endpoint references(epr). Artefacts without epr does not cause
 this problem.

 Regards,
 Vinod.

 On Sun, Aug 23, 2015 at 9:07 PM, Harsha Thirimanna <
 hars...@wso2.com> wrote:

> Hi BPS team,
>
> We have integrated bpel and human task features to the IS. With
> this new workflow to the user operation, we deploy 

Re: [Dev] SelfSignUpUtil class is not executing when we enabled workflow with BPS + API manager 1.9.0

2015-09-02 Thread Nuwan Dias
Latest user.core from kernel 4.2.0 AFAIK.

Thanks,
NuwanD.

On Wed, Sep 2, 2015 at 5:29 PM, Roshan Wijesena  wrote:

> Hi Nuwan,
>
> I have not applied any patches to BPS. what are  patches that I need to
> apply ?
>
> -Roshan.
> On Sep 2, 2015 3:59 PM, "Nuwan Dias"  wrote:
>
>> Have you applied the latest kernel patches to BPS?
>>
>> On Wed, Sep 2, 2015 at 3:51 PM, Roshan Wijesena  wrote:
>>
>>> Hi Amila,
>>>
>>> In BPS node I am getting this error,
>>>
>>> [2015-09-02 13:58:10,526] ERROR
>>> {org.wso2.carbon.bpel.core.ode.integration.PartnerService} -  Error sending
>>> message to Axis2 for ODE mex {PartnerRoleMex#hqejbhcnphrakj0fe4uvbs [PID {
>>> http://workflow.registeruser.apimgt.carbon.wso2.org}UserSignupProcess-4]
>>> calling org.apache.ode.bpel.epr.WSAEndpoint@4c44e355.resumeEvent(...)
>>> Status REQUEST}
>>> org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
>>> at
>>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
>>> at
>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
>>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>>> at
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
>>> at
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>> at
>>> org.wso2.carbon.core.multitenancy.transports.TenantTransportSender.invoke(TenantTransportSender.java:198)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>> at
>>> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)
>>> at
>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>> at
>>> org.wso2.carbon.bpel.core.ode.integration.utils.AxisServiceUtils.invokeService(AxisServiceUtils.java:305)
>>> at
>>> org.wso2.carbon.bpel.core.ode.integration.PartnerService.invoke(PartnerService.java:324)
>>> at
>>> org.wso2.carbon.bpel.core.ode.integration.BPELMessageExchangeContextImpl.invokePartner(BPELMessageExchangeContextImpl.java:43)
>>> at
>>> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:793)
>>> at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:130)
>>> at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> at
>>> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
>>> at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>>> at
>>> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:898)
>>> at
>>> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeInstance(PartnerLinkMyRoleImpl.java:250)
>>> at org.apache.ode.bpel.engine.BpelProcess$1.invoke(BpelProcess.java:288)
>>> at
>>> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:224)
>>> at
>>> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:279)
>>> at
>>> org.apache.ode.bpel.engine.BpelProcess.handleJobDetails(BpelProcess.java:434)
>>> at
>>> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:558)
>>> at
>>> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:467)
>>> at
>>> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:536)
>>> at
>>> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:530)
>>> at
>>> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:280)
>>> at
>>> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:235)
>>> at
>>> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:530)
>>> at
>>> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:514)
>>> 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)
>>>
>>>
>>>
>>> On Wed, Sep 2, 2015 at 3:42 PM, Amila De Silva  wrote:
>>>
 Hi Roshan,

 Do you get any exceptions when signing up?

 On Wed, Sep 2, 2015 at 2:51 PM, Roshan Wijesena 
 wrote:

> Hi Guys,
>
> I have enabled user sign up work flow for tenant as explained here[1],
> However, When an user signed up I could not see the default
> internal/subscriber role assigned to that user properly. I tried to debug
> but SelfSignUpUtil class  does not get hit by debug.
>
> any reason for this?

Re: [Dev] [BPS][IS] Admin console stuck with bpel/human task deployment

2015-09-02 Thread Nandika Jayawardana
Hi Waruna,

We are checking this issue. It is strange that UI get blocked as deployment
happens independent of ui threads .

Regards
Nandika

On Wed, Sep 2, 2015 at 1:59 PM, Waruna De Silva  wrote:

> Hi Nandika,
>
> Do you have any update on this as this seems a blocker for the IS 5.1.0
> release? Appreciate if you can provide an ETA for a workaround or the
> permanent fix.
>
> Regards!
> Waruna
>
> On Tue, Sep 1, 2015 at 11:48 AM, Harsha Thirimanna 
> wrote:
>
>> Hi Nandika,
>>
>> Since IS(with BPEL/HT features) server stuck for more than 15min if we
>> deploy only two bpel and we can experience that in BPS as well. We are bit
>> stuck with this for this release as well. Are there any way to avoid this
>> until we get proper solution ? Please advice us.
>>
>> thanks
>>
>>
>>
>> *Harsha Thirimanna*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Wed, Aug 26, 2015 at 5:57 PM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Nandika,
>>>
>>> As We discussed, I have created a Jira [1] for this. It is better if we
>>> can get fix for this before our release on next month  :).
>>>
>>> And thanks for your help to solve other issues and everything are
>>> working fine now except the  above issue.
>>>
>>> [1] https://wso2.org/jira/browse/BPS-818
>>>
>>>
>>> *Harsha Thirimanna*
>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Mon, Aug 24, 2015 at 2:44 PM, Harsha Thirimanna 
>>> wrote:
>>>
 Hi Vinod,

 Thanks for the detail and Is this the solution for this slowness ? And
 what could be the root cause that hold the admin ui when we deploy this ?


 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * *
 *email: **hars...@wso2.com* * cell: +94 71 5186770 *
 *twitter: **http://twitter.com/ *
 *harshathirimannlinked-in: **http:
 **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 *

 *Lean . Enterprise . Middleware*


 On Mon, Aug 24, 2015 at 2:41 PM, Vinod Kavinda  wrote:

> Hi,
> Yes right now the deploy.xml file refers the epr file to locate the
> endpoint. But we can refer the endpoint from the wsdl also.
>
> Regards,
> Vinod.
>
> On Mon, Aug 24, 2015 at 2:35 PM, Harsha Thirimanna 
> wrote:
>
>> ​Don't we need to include this epr file ? Because we have given
>> correct endpoint in this epr file.​
>>
>>
>> *Harsha Thirimanna*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Mon, Aug 24, 2015 at 9:57 AM, Vinod Kavinda 
>> wrote:
>>
>>> Hi Harsha,
>>> Yes, we also have experienced the same problem when the artefact
>>> contains endpoint references(epr). Artefacts without epr does not cause
>>> this problem.
>>>
>>> Regards,
>>> Vinod.
>>>
>>> On Sun, Aug 23, 2015 at 9:07 PM, Harsha Thirimanna >> > wrote:
>>>
 Hi BPS team,

 We have integrated bpel and human task features to the IS. With
 this new workflow to the user operation, we deploy bpel and human task 
 for
 each workflow profile that is defined by user. When we deploy one bpel 
 and
 human task for each workflow definition, it takes more than 15
 seconds(average) to deploy those artifacts.Worst case is, just after we
 deploy this with embed bps 

Re: [Dev] SelfSignUpUtil class is not executing when we enabled workflow with BPS + API manager 1.9.0

2015-09-02 Thread Roshan Wijesena
Hi Nuwan,

I have not applied any patches to BPS. what are  patches that I need to
apply ?

-Roshan.
On Sep 2, 2015 3:59 PM, "Nuwan Dias"  wrote:

> Have you applied the latest kernel patches to BPS?
>
> On Wed, Sep 2, 2015 at 3:51 PM, Roshan Wijesena  wrote:
>
>> Hi Amila,
>>
>> In BPS node I am getting this error,
>>
>> [2015-09-02 13:58:10,526] ERROR
>> {org.wso2.carbon.bpel.core.ode.integration.PartnerService} -  Error sending
>> message to Axis2 for ODE mex {PartnerRoleMex#hqejbhcnphrakj0fe4uvbs [PID {
>> http://workflow.registeruser.apimgt.carbon.wso2.org}UserSignupProcess-4]
>> calling org.apache.ode.bpel.epr.WSAEndpoint@4c44e355.resumeEvent(...)
>> Status REQUEST}
>> org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
>> at
>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
>> at
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at
>> org.wso2.carbon.core.multitenancy.transports.TenantTransportSender.invoke(TenantTransportSender.java:198)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at
>> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)
>> at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>> at
>> org.wso2.carbon.bpel.core.ode.integration.utils.AxisServiceUtils.invokeService(AxisServiceUtils.java:305)
>> at
>> org.wso2.carbon.bpel.core.ode.integration.PartnerService.invoke(PartnerService.java:324)
>> at
>> org.wso2.carbon.bpel.core.ode.integration.BPELMessageExchangeContextImpl.invokePartner(BPELMessageExchangeContextImpl.java:43)
>> at
>> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:793)
>> at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:130)
>> at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
>> at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>> at
>> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:898)
>> at
>> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeInstance(PartnerLinkMyRoleImpl.java:250)
>> at org.apache.ode.bpel.engine.BpelProcess$1.invoke(BpelProcess.java:288)
>> at
>> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:224)
>> at
>> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:279)
>> at
>> org.apache.ode.bpel.engine.BpelProcess.handleJobDetails(BpelProcess.java:434)
>> at
>> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:558)
>> at
>> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:467)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:536)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:530)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:280)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:235)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:530)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:514)
>> 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)
>>
>>
>>
>> On Wed, Sep 2, 2015 at 3:42 PM, Amila De Silva  wrote:
>>
>>> Hi Roshan,
>>>
>>> Do you get any exceptions when signing up?
>>>
>>> On Wed, Sep 2, 2015 at 2:51 PM, Roshan Wijesena  wrote:
>>>
 Hi Guys,

 I have enabled user sign up work flow for tenant as explained here[1],
 However, When an user signed up I could not see the default
 internal/subscriber role assigned to that user properly. I tried to debug
 but SelfSignUpUtil class  does not get hit by debug.

 any reason for this?

 [1]
 https://docs.wso2.com/display/AM190/Configuring+Workflows+for+Tenants

 Regards
 Roshan

 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94719154640 <%2B94719154640>*
 Email: 

Re: [Dev] SelfSignUpUtil class is not executing when we enabled workflow with BPS + API manager 1.9.0

2015-09-02 Thread Nuwan Dias
Have you applied the latest kernel patches to BPS?

On Wed, Sep 2, 2015 at 3:51 PM, Roshan Wijesena  wrote:

> Hi Amila,
>
> In BPS node I am getting this error,
>
> [2015-09-02 13:58:10,526] ERROR
> {org.wso2.carbon.bpel.core.ode.integration.PartnerService} -  Error sending
> message to Axis2 for ODE mex {PartnerRoleMex#hqejbhcnphrakj0fe4uvbs [PID {
> http://workflow.registeruser.apimgt.carbon.wso2.org}UserSignupProcess-4]
> calling org.apache.ode.bpel.epr.WSAEndpoint@4c44e355.resumeEvent(...)
> Status REQUEST}
> org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
> at
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
> at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.wso2.carbon.core.multitenancy.transports.TenantTransportSender.invoke(TenantTransportSender.java:198)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
> at
> org.wso2.carbon.bpel.core.ode.integration.utils.AxisServiceUtils.invokeService(AxisServiceUtils.java:305)
> at
> org.wso2.carbon.bpel.core.ode.integration.PartnerService.invoke(PartnerService.java:324)
> at
> org.wso2.carbon.bpel.core.ode.integration.BPELMessageExchangeContextImpl.invokePartner(BPELMessageExchangeContextImpl.java:43)
> at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:793)
> at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:130)
> at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
> at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:898)
> at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeInstance(PartnerLinkMyRoleImpl.java:250)
> at org.apache.ode.bpel.engine.BpelProcess$1.invoke(BpelProcess.java:288)
> at
> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:224)
> at
> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:279)
> at
> org.apache.ode.bpel.engine.BpelProcess.handleJobDetails(BpelProcess.java:434)
> at
> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:558)
> at
> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:467)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:536)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:530)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:280)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:235)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:530)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:514)
> 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)
>
>
>
> On Wed, Sep 2, 2015 at 3:42 PM, Amila De Silva  wrote:
>
>> Hi Roshan,
>>
>> Do you get any exceptions when signing up?
>>
>> On Wed, Sep 2, 2015 at 2:51 PM, Roshan Wijesena  wrote:
>>
>>> Hi Guys,
>>>
>>> I have enabled user sign up work flow for tenant as explained here[1],
>>> However, When an user signed up I could not see the default
>>> internal/subscriber role assigned to that user properly. I tried to debug
>>> but SelfSignUpUtil class  does not get hit by debug.
>>>
>>> any reason for this?
>>>
>>> [1]
>>> https://docs.wso2.com/display/AM190/Configuring+Workflows+for+Tenants
>>>
>>> Regards
>>> Roshan
>>>
>>> --
>>> Roshan Wijesena.
>>> Senior Software Engineer-WSO2 Inc.
>>> Mobile: *+94719154640 <%2B94719154640>*
>>> Email: ros...@wso2.com
>>> *WSO2, Inc. :** wso2.com *
>>> lean.enterprise.middleware.
>>>
>>
>>
>>
>> --
>> *Amila De Silva*
>>
>> WSO2 Inc.
>> mobile :(+94) 775119302
>>
>>
>
>
> --
> Roshan Wijesena.
> Senior Software Engineer-WSO2 Inc.
> Mobile: *+94719154640 

Re: [Dev] [ES] Can't publish in Enterprise store

2015-09-02 Thread Kathees Rajendram
HI Mariangela,

I increased the count and paginationLimit values in
WSO2ES_HOME/repository/deployment/server/jaggeryapps/publisher/extensions/assets/default/pages/list.jag.


var DEFAULT_PAGIN = {
'start': 0,
'count': 1000,
'sortOrder': 'DESC',
'sortBy': 'overview_createdtime',
'paginationLimit':1000
};

Thanks,
Kathees

On Wed, Sep 2, 2015 at 3:49 PM, Mariangela Hills 
wrote:

> Hi Kathees,
>
> Can you please let me know the exact changes that you made in the list.jag
> file, so that I can document this in the ES wiki docs.
>
> Regards,
> Mariangela
>
>
> *Mariangela Hills*
> Senior Technical Writer - WSO2, Inc. http://wso2.com
> Committer and PMC member - Apache Stratos
> email:mariang...@wso2.com | mobile: +94 773 500185
>
> On Wed, Sep 2, 2015 at 10:25 AM, Malaka Silva  wrote:
>
>> Good Job Kathees. :)
>>
>> This became complete blocker for the store release and thx for fixing it
>> quickly.
>>
>> On Wed, Sep 2, 2015 at 10:19 AM, Kathees Rajendram 
>> wrote:
>>
>>> Hi Manuranga/Sameera,
>>>
>>> I  have fixed the issue by changing the value in the following jaggery
>>> file.
>>>
>>> WSO2ES_HOME/repository/deployment/server/jaggeryapps/publisher/extensions/assets/default/pages/list.jag
>>>
>>> Thanks,
>>> Kathees
>>>
>>> On Wed, Sep 2, 2015 at 8:05 AM, Sameera Medagammaddegedara <
>>> samee...@wso2.com> wrote:
>>>
 EDIT: My apologies, I did not notice that you were talking about the
 Publisher application.

 On Tue, Sep 1, 2015 at 10:21 PM, Sameera Medagammaddegedara <
 samee...@wso2.com> wrote:

> Hi Kathees,
>
> If I remember correctly the above code snippet is not invoked from the
> Store application.The AssetManager is not utilized in the Store 
> application
> of the ES pack that  you are using.
>
> Thank You,
> Sameera
>
> On Fri, Aug 28, 2015 at 1:02 AM, Kathees Rajendram 
> wrote:
>
>> Hi Manuranga,
>>
>> The count and paginationLimit values are 1000 but 100 asserts only
>> are listed. I tried to increase the number. The changes are not picked 
>> up.
>>
>> ../modules/rxt/scripts/asset/asset.js
>>
>> function AssetManager(registry, type, rxtManager, renderer) {
>> this.registry = registry;
>> this.rxtManager = rxtManager;
>> this.rxtTemplate = rxtManager.getRxtDefinition(type);
>> this.type = type;
>> this.r = renderer;
>> this.am = null;
>> this.defaultPaging = {
>> 'start': 0,
>> 'count': 1000,
>> 'sortOrder': 'desc',
>> 'sortBy': 'overview_createdtime',
>> 'paginationLimit': 1000
>> };
>> }
>>
>>
>> Thanks,
>> Kathees
>>
>> On Thu, Aug 27, 2015 at 10:21 PM, Manuranga Perera 
>> wrote:
>>
>>> number 100 is hard-coded in modules dir please grep and fix. can you
>>> meet me tomorrow?
>>>
>>> On Thu, Aug 27, 2015 at 6:40 PM, Kathees Rajendram >> > wrote:
>>>
 Adding Manuranga,

 On Thu, Aug 27, 2015 at 6:23 PM, Kathees Rajendram <
 kath...@wso2.com> wrote:

> Hi,
>
> In ESB connector store, we are unable to publish the new
> connectors. The ESB connector store publisher is restricted to view 
> only
> 100 connectors. We are having more than 100 connectors to add to the 
> store.
> Can you suggest how to increase the limit in the 
> wso2es-1.2.0-SNAPSHOT?
>
> Thanks,
> Kathees
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>



 --
 Kathees
 Software Engineer,
 email: kath...@wso2.com
 mobile: +94772596173

>>>
>>>
>>>
>>> --
>>> With regards,
>>> *Manu*ranga Perera.
>>>
>>> phone : 071 7 70 20 50
>>> mail : m...@wso2.com
>>>
>>
>>
>>
>> --
>> Kathees
>> Software Engineer,
>> email: kath...@wso2.com
>> mobile: +94772596173
>>
>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
>



 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005

>>>
>>>
>>>
>>> --
>>> Kathees
>>> Software Engineer,
>>> email: kath...@wso2.com
>>> mobile: +94772596173
>>>
>>
>>
>>
>> --
>>
>> 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 : 

[Dev] OAuth Flow - Persisting configuration parameters in WSO2 ESB Registry and reading/writing their values using Synapse

2015-09-02 Thread Palamayuran
*Hi Guys,*

I'm trying to develop a component that implements OAuth flow to supplement
connectors that use the OAuth 2.0 for authentication. 

In order to accomplish the task I have a requirement where I have to persist
certain API specific values (access token, refresh token etc) in the WSO2
ESB registry so that any subsequent calls can access them. Also when any of
them expires/changes they have to be updated appropriately using synapse
code. 

Can someone please point out to me how to persist parameters (key/value
pairs) onto the WSO2 registry using synapse mediators to achieve the above. 

*Thanks in Advance,*
Palamayuran



--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/OAuth-Flow-Persisting-configuration-parameters-in-WSO2-ESB-Registry-and-reading-writing-their-valuese-tp124630.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] API to get the name of the user

2015-09-02 Thread Kavith Lokuhewage
Hi,

Please find the jira below.
https://wso2.org/jira/browse/APPFAC-3329

Thanks,

On Wed, Sep 2, 2015 at 3:38 PM, Kavith Lokuhewage  wrote:

> Hi Dhanushka,
>
> Yes, I also think that would be the clean way to do it. It's better we
> prevent  implementing any logic related to it on dev studio side.  I will
> create a jira and update the thread.
>
> Thanks,
>
> On Wed, Sep 2, 2015 at 3:08 PM, Danushka Fernando 
> wrote:
>
>> If its needed I guess we can create a rest api for dev studio use case to
>> get user details when username is given. I think its better way rather than
>> providing hacks. If so please create a jira. WDYT?
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Wed, Sep 2, 2015 at 2:34 PM, Kavith Lokuhewage 
>> wrote:
>>
>>> Hi Mahesh,
>>>
>>> Yes that is true. I might have not expressed my requirement clearly. The
>>> thing is, we need both username and the *name of the user *for the
>>> author tag in a commit. It's the latter that we do not have with us.
>>>
>>> Thanks,
>>>
>>>
>>> On Wed, Sep 2, 2015 at 2:30 PM, Mahesh Chinthaka 
>>> wrote:
>>>
 Hi Kavith,
 What I meant was after user provide username and password, if login is
 successfull ; you can keep username somewhere in your side.
 Then whenever you need username, you can get it from there. No need to
 invoke a AF api.

 Thanks

 On Wed, Sep 2, 2015 at 2:14 PM, Kavith Lokuhewage 
 wrote:

> Hi Mahesh,
>
> I am not clear what you meant by "without calling AF". We only take
> username and password from users. Then we invoke this api -
> "/appmgt/site/blocks/user/login/ajax/login.jag" -  with username and
> password to get the authenticated cookie. This API only returns true or
> false to indicate login status. We store the cookie returned form it and
> use it for other API calls during the session. Other-than that, we don't
> have any details about the logged in user.
>
> However, seems there is an alternative. "getUsersOfApplication"
> returns all the users of a particular app along with their usernames +
> First Names and Last names. Since we already have the username of logged 
> in
> user, we can iterate through the users returned by above API to get the
> First Name and Last Name of current user.
>
>
> Thanks,
>
> On Wed, Sep 2, 2015 at 12:40 PM, Mahesh Chinthaka 
> wrote:
>
>> Hi Kavith,
>>
>> No, AF dont have a jaggery API to get the user.
>>
>> Hope this is for logged in user. Cant you get the logged in user from
>> your side with out calling AF.
>>
>> On Wed, Sep 2, 2015 at 12:11 PM, Kavith Lokuhewage 
>> wrote:
>>
>>>
>>> Hi,
>>>
>>> We need to get the name of the user in order to use it as the author
>>> name for commits (This is achieve [1])
>>>
>>> Is there a jaggery API available for this? Or should we use use an
>>> admin service?
>>>
>>> Thanks,
>>>
>>> [1] https://wso2.org/jira/browse/TOOLS-2728
>>> --
>>> *Kavith Lokuhewage*
>>> Software Engineer
>>> WSO2 Inc. - http://wso2.com
>>> lean . enterprise . middleware
>>> Mobile - +9477-9-145-123 | +9471-455-6-401
>>> Linkedin 
>>> Twitter 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>
>
>
> --
> *Kavith Lokuhewage*
> Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +9477-9-145-123 | +9471-455-6-401
> Linkedin 
> Twitter 
>



 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

>>>
>>>
>>>
>>> --
>>> *Kavith Lokuhewage*
>>> Software Engineer
>>> WSO2 Inc. - http://wso2.com
>>> lean . enterprise . middleware
>>> Mobile - +9477-9-145-123 | +9471-455-6-401
>>> Linkedin 
>>> Twitter 
>>>
>>> 

Re: [Dev] [ES] Can't publish in Enterprise store

2015-09-02 Thread Manuranga Perera
Hi Mariangela,
this fix is for ES 1.2. this issue is already addressed in 2.0.0.

On Wed, Sep 2, 2015 at 3:59 PM, Kathees Rajendram  wrote:

> HI Mariangela,
>
> I increased the count and paginationLimit values in
> WSO2ES_HOME/repository/deployment/server/jaggeryapps/publisher/extensions/assets/default/pages/list.jag.
>
>
> var DEFAULT_PAGIN = {
> 'start': 0,
> 'count': 1000,
> 'sortOrder': 'DESC',
> 'sortBy': 'overview_createdtime',
> 'paginationLimit':1000
> };
>
> Thanks,
> Kathees
>
> On Wed, Sep 2, 2015 at 3:49 PM, Mariangela Hills 
> wrote:
>
>> Hi Kathees,
>>
>> Can you please let me know the exact changes that you made in the list.jag
>> file, so that I can document this in the ES wiki docs.
>>
>> Regards,
>> Mariangela
>>
>>
>> *Mariangela Hills*
>> Senior Technical Writer - WSO2, Inc. http://wso2.com
>> Committer and PMC member - Apache Stratos
>> email:mariang...@wso2.com | mobile: +94 773 500185
>>
>> On Wed, Sep 2, 2015 at 10:25 AM, Malaka Silva  wrote:
>>
>>> Good Job Kathees. :)
>>>
>>> This became complete blocker for the store release and thx for fixing it
>>> quickly.
>>>
>>> On Wed, Sep 2, 2015 at 10:19 AM, Kathees Rajendram 
>>> wrote:
>>>
 Hi Manuranga/Sameera,

 I  have fixed the issue by changing the value in the following jaggery
 file.

 WSO2ES_HOME/repository/deployment/server/jaggeryapps/publisher/extensions/assets/default/pages/list.jag

 Thanks,
 Kathees

 On Wed, Sep 2, 2015 at 8:05 AM, Sameera Medagammaddegedara <
 samee...@wso2.com> wrote:

> EDIT: My apologies, I did not notice that you were talking about the
> Publisher application.
>
> On Tue, Sep 1, 2015 at 10:21 PM, Sameera Medagammaddegedara <
> samee...@wso2.com> wrote:
>
>> Hi Kathees,
>>
>> If I remember correctly the above code snippet is not invoked from
>> the Store application.The AssetManager is not utilized in the Store
>> application of the ES pack that  you are using.
>>
>> Thank You,
>> Sameera
>>
>> On Fri, Aug 28, 2015 at 1:02 AM, Kathees Rajendram 
>> wrote:
>>
>>> Hi Manuranga,
>>>
>>> The count and paginationLimit values are 1000 but 100 asserts only
>>> are listed. I tried to increase the number. The changes are not picked 
>>> up.
>>>
>>> ../modules/rxt/scripts/asset/asset.js
>>>
>>> function AssetManager(registry, type, rxtManager, renderer) {
>>> this.registry = registry;
>>> this.rxtManager = rxtManager;
>>> this.rxtTemplate = rxtManager.getRxtDefinition(type);
>>> this.type = type;
>>> this.r = renderer;
>>> this.am = null;
>>> this.defaultPaging = {
>>> 'start': 0,
>>> 'count': 1000,
>>> 'sortOrder': 'desc',
>>> 'sortBy': 'overview_createdtime',
>>> 'paginationLimit': 1000
>>> };
>>> }
>>>
>>>
>>> Thanks,
>>> Kathees
>>>
>>> On Thu, Aug 27, 2015 at 10:21 PM, Manuranga Perera 
>>> wrote:
>>>
 number 100 is hard-coded in modules dir please grep and fix. can
 you meet me tomorrow?

 On Thu, Aug 27, 2015 at 6:40 PM, Kathees Rajendram <
 kath...@wso2.com> wrote:

> Adding Manuranga,
>
> On Thu, Aug 27, 2015 at 6:23 PM, Kathees Rajendram <
> kath...@wso2.com> wrote:
>
>> Hi,
>>
>> In ESB connector store, we are unable to publish the new
>> connectors. The ESB connector store publisher is restricted to view 
>> only
>> 100 connectors. We are having more than 100 connectors to add to the 
>> store.
>> Can you suggest how to increase the limit in the 
>> wso2es-1.2.0-SNAPSHOT?
>>
>> Thanks,
>> Kathees
>> --
>> Kathees
>> Software Engineer,
>> email: kath...@wso2.com
>> mobile: +94772596173
>>
>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>



 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com

>>>
>>>
>>>
>>> --
>>> Kathees
>>> Software Engineer,
>>> email: kath...@wso2.com
>>> mobile: +94772596173
>>>
>>
>>
>>
>> --
>> Sameera Medagammaddegedara
>> Software Engineer
>>
>> Contact:
>> Email: samee...@wso2.com
>> Mobile: + 94 077 255 3005
>>
>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com

Re: [Dev] [App Factory] API to get the name of the user

2015-09-02 Thread Danushka Fernando
If its needed I guess we can create a rest api for dev studio use case to
get user details when username is given. I think its better way rather than
providing hacks. If so please create a jira. WDYT?

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Wed, Sep 2, 2015 at 2:34 PM, Kavith Lokuhewage  wrote:

> Hi Mahesh,
>
> Yes that is true. I might have not expressed my requirement clearly. The
> thing is, we need both username and the *name of the user *for the author
> tag in a commit. It's the latter that we do not have with us.
>
> Thanks,
>
>
> On Wed, Sep 2, 2015 at 2:30 PM, Mahesh Chinthaka  wrote:
>
>> Hi Kavith,
>> What I meant was after user provide username and password, if login is
>> successfull ; you can keep username somewhere in your side.
>> Then whenever you need username, you can get it from there. No need to
>> invoke a AF api.
>>
>> Thanks
>>
>> On Wed, Sep 2, 2015 at 2:14 PM, Kavith Lokuhewage 
>> wrote:
>>
>>> Hi Mahesh,
>>>
>>> I am not clear what you meant by "without calling AF". We only take
>>> username and password from users. Then we invoke this api -
>>> "/appmgt/site/blocks/user/login/ajax/login.jag" -  with username and
>>> password to get the authenticated cookie. This API only returns true or
>>> false to indicate login status. We store the cookie returned form it and
>>> use it for other API calls during the session. Other-than that, we don't
>>> have any details about the logged in user.
>>>
>>> However, seems there is an alternative. "getUsersOfApplication" returns
>>> all the users of a particular app along with their usernames + First Names
>>> and Last names. Since we already have the username of logged in user, we
>>> can iterate through the users returned by above API to get the First Name
>>> and Last Name of current user.
>>>
>>>
>>> Thanks,
>>>
>>> On Wed, Sep 2, 2015 at 12:40 PM, Mahesh Chinthaka 
>>> wrote:
>>>
 Hi Kavith,

 No, AF dont have a jaggery API to get the user.

 Hope this is for logged in user. Cant you get the logged in user from
 your side with out calling AF.

 On Wed, Sep 2, 2015 at 12:11 PM, Kavith Lokuhewage 
 wrote:

>
> Hi,
>
> We need to get the name of the user in order to use it as the author
> name for commits (This is achieve [1])
>
> Is there a jaggery API available for this? Or should we use use an
> admin service?
>
> Thanks,
>
> [1] https://wso2.org/jira/browse/TOOLS-2728
> --
> *Kavith Lokuhewage*
> Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +9477-9-145-123 | +9471-455-6-401
> Linkedin 
> Twitter 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

>>>
>>>
>>>
>>> --
>>> *Kavith Lokuhewage*
>>> Software Engineer
>>> WSO2 Inc. - http://wso2.com
>>> lean . enterprise . middleware
>>> Mobile - +9477-9-145-123 | +9471-455-6-401
>>> Linkedin 
>>> Twitter 
>>>
>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>
>
>
> --
> *Kavith Lokuhewage*
> Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +9477-9-145-123 | +9471-455-6-401
> Linkedin 
> Twitter 
>
> ___
> 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] SelfSignUpUtil class is not executing when we enabled workflow with BPS + API manager 1.9.0

2015-09-02 Thread Roshan Wijesena
Hi Amila,

In BPS node I am getting this error,

[2015-09-02 13:58:10,526] ERROR
{org.wso2.carbon.bpel.core.ode.integration.PartnerService} -  Error sending
message to Axis2 for ODE mex {PartnerRoleMex#hqejbhcnphrakj0fe4uvbs [PID {
http://workflow.registeruser.apimgt.carbon.wso2.org}UserSignupProcess-4]
calling org.apache.ode.bpel.epr.WSAEndpoint@4c44e355.resumeEvent(...)
Status REQUEST}
org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.wso2.carbon.core.multitenancy.transports.TenantTransportSender.invoke(TenantTransportSender.java:198)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at
org.wso2.carbon.bpel.core.ode.integration.utils.AxisServiceUtils.invokeService(AxisServiceUtils.java:305)
at
org.wso2.carbon.bpel.core.ode.integration.PartnerService.invoke(PartnerService.java:324)
at
org.wso2.carbon.bpel.core.ode.integration.BPELMessageExchangeContextImpl.invokePartner(BPELMessageExchangeContextImpl.java:43)
at
org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:793)
at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:130)
at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
at
org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:898)
at
org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeInstance(PartnerLinkMyRoleImpl.java:250)
at org.apache.ode.bpel.engine.BpelProcess$1.invoke(BpelProcess.java:288)
at
org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:224)
at
org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:279)
at
org.apache.ode.bpel.engine.BpelProcess.handleJobDetails(BpelProcess.java:434)
at
org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:558)
at
org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:467)
at
org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:536)
at
org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:530)
at
org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:280)
at
org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:235)
at
org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:530)
at
org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:514)
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)



On Wed, Sep 2, 2015 at 3:42 PM, Amila De Silva  wrote:

> Hi Roshan,
>
> Do you get any exceptions when signing up?
>
> On Wed, Sep 2, 2015 at 2:51 PM, Roshan Wijesena  wrote:
>
>> Hi Guys,
>>
>> I have enabled user sign up work flow for tenant as explained here[1],
>> However, When an user signed up I could not see the default
>> internal/subscriber role assigned to that user properly. I tried to debug
>> but SelfSignUpUtil class  does not get hit by debug.
>>
>> any reason for this?
>>
>> [1] https://docs.wso2.com/display/AM190/Configuring+Workflows+for+Tenants
>>
>> Regards
>> Roshan
>>
>> --
>> Roshan Wijesena.
>> Senior Software Engineer-WSO2 Inc.
>> Mobile: *+94719154640 <%2B94719154640>*
>> Email: ros...@wso2.com
>> *WSO2, Inc. :** wso2.com *
>> lean.enterprise.middleware.
>>
>
>
>
> --
> *Amila De Silva*
>
> WSO2 Inc.
> mobile :(+94) 775119302
>
>


-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94719154640*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Scheduling Spark Script in CApp using Spark Script Configuration File

2015-09-02 Thread Thanuja Uruththirakodeeswaran
Hi Sinthuja,

I tested now and I can see the data in dashboard. I think data was not
published yesterday even though I tried the step 6 to publish data. Also I
didn't get any exceptions but I don't know why data was not received.
Sorry for the noise.

Thanks.

On Tue, Sep 1, 2015 at 6:51 PM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:

> Hi Sinthuja,
>
> I built master branch after analytics-common version upgrade and now I can
> see the dashboard and gadgets. I followed the README file [1]. Even though
> scripts are executed every minute, I couldn't see any data in dashboard. I
> published data using step 6 in README. I checked the tables/data-sources
> related with the gadgets in data explorer and spark console. There is no
> data in the table. Am I missing anything?
>
> [1]
> https://github.com/wso2/product-bam/tree/master/modules/samples/publishers/httpd-logs
>
> Thanks.
>
> On Sun, Aug 30, 2015 at 11:52 PM, Sinthuja Ragendran 
> wrote:
>
>> Hi Thanuja,
>>
>> I verified the sample today with my local build which was build today
>> with latest code. And I can see the dashboards, and gadgets without any
>> issue. I hope you have followed the steps mentioned in the README.txt of
>> httpd-logs-sample directory. Please check with the latest pack.
>>
>> Thanks,
>> Sinthuja.
>>
>> On Fri, Aug 28, 2015 at 9:15 AM, Sinthuja Ragendran 
>> wrote:
>>
>>> Hi Thanuja,
>>>
>>> Yes, the entire sample was working before. Let me check with latest pack
>>> and see whether there are issues.
>>>
>>> Thanks,
>>> Sinthuja
>>>
>>>
>>> On Friday, August 28, 2015, Thanuja Uruththirakodeeswaran <
>>> thanu...@wso2.com> wrote:
>>>
 Hi Sinthuja,

 Is the *Httpd_Log_Analytics* sample ready now? I've added the sample
 car file to DAS, but I couldn't see its dashboard or gadgets in DAS
 analytics dashboard portal.

 Thanks.

 On Mon, Aug 17, 2015 at 5:47 PM, Sinthuja Ragendran 
 wrote:

> Hi Thanuja,
>
>
> On Mon, Aug 17, 2015 at 5:38 PM, Thanuja Uruththirakodeeswaran <
> thanu...@wso2.com> wrote:
>
>> Hi Sinthuja,
>>
>> Thanks. It's working. I deployed the Httpd_Log_Analytics" sample
>> after uncomment the line in its artifacts.xml [1] file. It gives 
>> following
>> message in server console. What's the reason for this?
>>
>> [2015-08-17 17:20:35,193]  INFO
>> {org.wso2.carbon.application.deployer.internal.ApplicationManager} -
>>  Deploying Carbon Application : Httpd_Log_Analytics.car...
>> [2015-08-17 17:20:35,215] ERROR
>> {org.wso2.carbon.application.deployer.internal.ApplicationManager} -  
>> Some
>> dependencies in cApp : Httpd_Log_Analytics_1.0.0 were not satisfied. 
>> Check
>> whether all dependent artifacts are included in cApp file :
>> /home/thanujau/Documents/Project/wso2das-3.0.0-SNAPSHOT/repository/deployment/server/carbonapps/Httpd_Log_Analytics.car
>>
>>
> This sample yet to be completed with dashboard files, and there are
> some issues in gadget files, hence you are experiencing the exception.
>
>
>> And if we create a dashboard in DAS, where can we find dashboard json
>> file?
>>
>
>  It's in the registry /_system/config/ues/dashboards/ location.
>
> Thanks,
> Sinthuja
>
>>
>> [1].
>> https://github.com/wso2/product-bam/blob/master/modules/samples/capps/Httpd_Log_Analytics/artifacts.xml
>>
>> Thanks.
>>
>> On Mon, Aug 17, 2015 at 4:21 PM, Sinthuja Ragendran <
>> sinth...@wso2.com> wrote:
>>
>>> Hi Thanuja,
>>>
>>> You can set the cron expression with CronExpression element in the
>>> spark script artifact xml as shown below.
>>>
>>> 
>>> 
>>> AddNewScriptTestWithouTask
>>> define table TEST_CAPP (server_name string, ip STRING,
>>> tenant INTEGER, sequence LONG, summary STRING);SELECT ip FROM
>>> TEST_CAPP;SELECT server_name, count(*) FROM TEST_CAPP GROUP BY
>>> server_name;
>>> 0 * * * * ?
>>> 
>>>
>>> Thanks,
>>> Sinthuja.
>>>
>>> On Mon, Aug 17, 2015 at 4:15 PM, Thanuja Uruththirakodeeswaran <
>>> thanu...@wso2.com> wrote:
>>>
 Hi,

 I've followed the link [1] and referred sample
 "Httpd_Log_Analytics" [2] for creating a car file and deploy that in 
 DAS.
 Here if we want to use the spark script, we can use a file as in [3].

 But if the spark script need to be executed for every minute, how
 we can add the Cron expression in the script configuration xml?

 [1].
 https://docs.wso2.com/display/DAS300/Carbon+Application+Deployment+for+DAS
 [2].
 https://github.com/wso2/product-bam/tree/master/modules/samples/capps/Httpd_Log_Analytics
 [3].
 

[Dev] SelfSignUpUtil class is not executing when we enabled workflow with BPS + API manager 1.9.0

2015-09-02 Thread Roshan Wijesena
Hi Guys,

I have enabled user sign up work flow for tenant as explained here[1],
However, When an user signed up I could not see the default
internal/subscriber role assigned to that user properly. I tried to debug
but SelfSignUpUtil class  does not get hit by debug.

any reason for this?

[1] https://docs.wso2.com/display/AM190/Configuring+Workflows+for+Tenants

Regards
Roshan

-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94719154640*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] API to get the name of the user

2015-09-02 Thread Kavith Lokuhewage
Hi Dhanushka,

Yes, I also think that would be the clean way to do it. It's better we
prevent  implementing any logic related to it on dev studio side.  I will
create a jira and update the thread.

Thanks,

On Wed, Sep 2, 2015 at 3:08 PM, Danushka Fernando 
wrote:

> If its needed I guess we can create a rest api for dev studio use case to
> get user details when username is given. I think its better way rather than
> providing hacks. If so please create a jira. WDYT?
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Wed, Sep 2, 2015 at 2:34 PM, Kavith Lokuhewage  wrote:
>
>> Hi Mahesh,
>>
>> Yes that is true. I might have not expressed my requirement clearly. The
>> thing is, we need both username and the *name of the user *for the
>> author tag in a commit. It's the latter that we do not have with us.
>>
>> Thanks,
>>
>>
>> On Wed, Sep 2, 2015 at 2:30 PM, Mahesh Chinthaka 
>> wrote:
>>
>>> Hi Kavith,
>>> What I meant was after user provide username and password, if login is
>>> successfull ; you can keep username somewhere in your side.
>>> Then whenever you need username, you can get it from there. No need to
>>> invoke a AF api.
>>>
>>> Thanks
>>>
>>> On Wed, Sep 2, 2015 at 2:14 PM, Kavith Lokuhewage 
>>> wrote:
>>>
 Hi Mahesh,

 I am not clear what you meant by "without calling AF". We only take
 username and password from users. Then we invoke this api -
 "/appmgt/site/blocks/user/login/ajax/login.jag" -  with username and
 password to get the authenticated cookie. This API only returns true or
 false to indicate login status. We store the cookie returned form it and
 use it for other API calls during the session. Other-than that, we don't
 have any details about the logged in user.

 However, seems there is an alternative. "getUsersOfApplication" returns
 all the users of a particular app along with their usernames + First Names
 and Last names. Since we already have the username of logged in user, we
 can iterate through the users returned by above API to get the First Name
 and Last Name of current user.


 Thanks,

 On Wed, Sep 2, 2015 at 12:40 PM, Mahesh Chinthaka 
 wrote:

> Hi Kavith,
>
> No, AF dont have a jaggery API to get the user.
>
> Hope this is for logged in user. Cant you get the logged in user from
> your side with out calling AF.
>
> On Wed, Sep 2, 2015 at 12:11 PM, Kavith Lokuhewage 
> wrote:
>
>>
>> Hi,
>>
>> We need to get the name of the user in order to use it as the author
>> name for commits (This is achieve [1])
>>
>> Is there a jaggery API available for this? Or should we use use an
>> admin service?
>>
>> Thanks,
>>
>> [1] https://wso2.org/jira/browse/TOOLS-2728
>> --
>> *Kavith Lokuhewage*
>> Software Engineer
>> WSO2 Inc. - http://wso2.com
>> lean . enterprise . middleware
>> Mobile - +9477-9-145-123 | +9471-455-6-401
>> Linkedin 
>> Twitter 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>



 --
 *Kavith Lokuhewage*
 Software Engineer
 WSO2 Inc. - http://wso2.com
 lean . enterprise . middleware
 Mobile - +9477-9-145-123 | +9471-455-6-401
 Linkedin 
 Twitter 

>>>
>>>
>>>
>>> --
>>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>>> Email: mahe...@wso2.com | Web: www.wso2.com
>>>
>>
>>
>>
>> --
>> *Kavith Lokuhewage*
>> Software Engineer
>> WSO2 Inc. - http://wso2.com
>> lean . enterprise . middleware
>> Mobile - +9477-9-145-123 | +9471-455-6-401
>> Linkedin 
>> Twitter 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
*Kavith Lokuhewage*
Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +9477-9-145-123 | +9471-455-6-401
Linkedin 

Re: [Dev] SelfSignUpUtil class is not executing when we enabled workflow with BPS + API manager 1.9.0

2015-09-02 Thread Amila De Silva
Hi Roshan,

Do you get any exceptions when signing up?

On Wed, Sep 2, 2015 at 2:51 PM, Roshan Wijesena  wrote:

> Hi Guys,
>
> I have enabled user sign up work flow for tenant as explained here[1],
> However, When an user signed up I could not see the default
> internal/subscriber role assigned to that user properly. I tried to debug
> but SelfSignUpUtil class  does not get hit by debug.
>
> any reason for this?
>
> [1] https://docs.wso2.com/display/AM190/Configuring+Workflows+for+Tenants
>
> Regards
> Roshan
>
> --
> Roshan Wijesena.
> Senior Software Engineer-WSO2 Inc.
> Mobile: *+94719154640 <%2B94719154640>*
> Email: ros...@wso2.com
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>



-- 
*Amila De Silva*

WSO2 Inc.
mobile :(+94) 775119302
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Can't publish in Enterprise store

2015-09-02 Thread Mariangela Hills
Hi Kathees,

Can you please let me know the exact changes that you made in the list.jag
file, so that I can document this in the ES wiki docs.

Regards,
Mariangela


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

On Wed, Sep 2, 2015 at 10:25 AM, Malaka Silva  wrote:

> Good Job Kathees. :)
>
> This became complete blocker for the store release and thx for fixing it
> quickly.
>
> On Wed, Sep 2, 2015 at 10:19 AM, Kathees Rajendram 
> wrote:
>
>> Hi Manuranga/Sameera,
>>
>> I  have fixed the issue by changing the value in the following jaggery
>> file.
>>
>> WSO2ES_HOME/repository/deployment/server/jaggeryapps/publisher/extensions/assets/default/pages/list.jag
>>
>> Thanks,
>> Kathees
>>
>> On Wed, Sep 2, 2015 at 8:05 AM, Sameera Medagammaddegedara <
>> samee...@wso2.com> wrote:
>>
>>> EDIT: My apologies, I did not notice that you were talking about the
>>> Publisher application.
>>>
>>> On Tue, Sep 1, 2015 at 10:21 PM, Sameera Medagammaddegedara <
>>> samee...@wso2.com> wrote:
>>>
 Hi Kathees,

 If I remember correctly the above code snippet is not invoked from the
 Store application.The AssetManager is not utilized in the Store application
 of the ES pack that  you are using.

 Thank You,
 Sameera

 On Fri, Aug 28, 2015 at 1:02 AM, Kathees Rajendram 
 wrote:

> Hi Manuranga,
>
> The count and paginationLimit values are 1000 but 100 asserts only are
> listed. I tried to increase the number. The changes are not picked up.
>
> ../modules/rxt/scripts/asset/asset.js
>
> function AssetManager(registry, type, rxtManager, renderer) {
> this.registry = registry;
> this.rxtManager = rxtManager;
> this.rxtTemplate = rxtManager.getRxtDefinition(type);
> this.type = type;
> this.r = renderer;
> this.am = null;
> this.defaultPaging = {
> 'start': 0,
> 'count': 1000,
> 'sortOrder': 'desc',
> 'sortBy': 'overview_createdtime',
> 'paginationLimit': 1000
> };
> }
>
>
> Thanks,
> Kathees
>
> On Thu, Aug 27, 2015 at 10:21 PM, Manuranga Perera 
> wrote:
>
>> number 100 is hard-coded in modules dir please grep and fix. can you
>> meet me tomorrow?
>>
>> On Thu, Aug 27, 2015 at 6:40 PM, Kathees Rajendram 
>> wrote:
>>
>>> Adding Manuranga,
>>>
>>> On Thu, Aug 27, 2015 at 6:23 PM, Kathees Rajendram >> > wrote:
>>>
 Hi,

 In ESB connector store, we are unable to publish the new
 connectors. The ESB connector store publisher is restricted to view 
 only
 100 connectors. We are having more than 100 connectors to add to the 
 store.
 Can you suggest how to increase the limit in the wso2es-1.2.0-SNAPSHOT?

 Thanks,
 Kathees
 --
 Kathees
 Software Engineer,
 email: kath...@wso2.com
 mobile: +94772596173

>>>
>>>
>>>
>>> --
>>> Kathees
>>> Software Engineer,
>>> email: kath...@wso2.com
>>> mobile: +94772596173
>>>
>>
>>
>>
>> --
>> With regards,
>> *Manu*ranga Perera.
>>
>> phone : 071 7 70 20 50
>> mail : m...@wso2.com
>>
>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>



 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005

>>>
>>>
>>>
>>> --
>>> Sameera Medagammaddegedara
>>> Software Engineer
>>>
>>> Contact:
>>> Email: samee...@wso2.com
>>> Mobile: + 94 077 255 3005
>>>
>>
>>
>>
>> --
>> Kathees
>> Software Engineer,
>> email: kath...@wso2.com
>> mobile: +94772596173
>>
>
>
>
> --
>
> 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
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Migration scripts for ESB481 to ESB490

2015-09-02 Thread Shavantha Weerasinghe
Hi All

The scripts currently available at [1] as mentioned on [2]  cannot be used
for testing the migration from ESB48x to 490. Are the scripts already
available, since GA is supposed to be released on 7th September.

[1]
https://svn.wso2.org/repos/wso2/scratch/carbon/migration-scripts/4.0.0-4.2.0/mysql/

[2] https://docs.wso2.com/display/ESB490/Upgrading+from+the+Previous+Release

Regards,
Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM][DAS]Error in Installing DAS Feature

2015-09-02 Thread Gokul Balakrishnan
Hi Sachith,

You do not need to build carbon-analytics locally, since Jenkins artefact
builds are cached on Nexus. In any case, your second entry appears correct,
however the issue seems to be a mismatch in Carbon versions. Can you please
check EMM's Carbon version? Since DAS features are on 4.4.1, Carbon 4.4.1
or greater is required.

Thanks,

On 2 September 2015 at 18:40, Sachith Punchihewa  wrote:

> Hi DAS Team,
>
> I tried installing *WSO2 Carbon - Analytics Lite Feature* to EMM using
> the following entries in P2 Profile Gen Pom.
>
>> 
>> org.wso2.carbon.analytics:analytics-lite-feature:1.0.3-SNAPSHOT
>> 
>
> and
>
> 
>> analytics-lite-feature.group
>> 1.0.3-SNAPSHOT
>> 
>
>
> When i use above entries  it gives the following error.
>
> [INFO] --- carbon-p2-plugin:1.5.4:p2-repo-gen (2-p2-repo-generation) @
>> wso2mdm-profile-gen ---
>> [ERROR] Error occured when processing the Feature Artifact:
>> org.wso2.carbon.analytics:analytics-lite-feature:1.0.3-SNAPSHOT
>> org.apache.maven.plugin.MojoExecutionException: Error occured when
>> processing the Feature Artifact:
>> org.wso2.carbon.analytics:analytics-lite-feature:1.0.3-SNAPSHOT
>> at
>> org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:322)
>> at
>> org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197)
>> at org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191)
>> at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>> 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: ERROR
>> at
>> org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:60)
>> at
>> org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:319)
>> ... 23 more
>> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
>> Failure to find
>> org.wso2.carbon.analytics:analytics-lite-feature:zip:1.0.3-SNAPSHOT in
>> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
>> the local repository, resolution will not be reattempted until the update
>> interval of wso2-nexus has elapsed or updates are forced
>> Try downloading the file manually from the project website.
>> Then, install it using the command:
>> mvn install:install-file -DgroupId=org.wso2.carbon.analytics
>> -DartifactId=analytics-lite-feature -Dversion=1.0.3-SNAPSHOT
>> -Dpackaging=zip -Dfile=/path/to/file
>> Alternatively, if you host your own repository you can deploy the file
>> there:
>> mvn deploy:deploy-file -DgroupId=org.wso2.carbon.analytics
>> -DartifactId=analytics-lite-feature -Dversion=1.0.3-SNAPSHOT
>> -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>
>>   org.wso2.carbon.analytics:analytics-lite-feature:zip:1.0.3-SNAPSHOT
>> from the specified remote repositories:
>>   wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
>> releases=true, snapshots=true),
>>   wso2.releases (
>> http://maven.wso2.org/nexus/content/repositories/releases/,
>> releases=true, snapshots=true),
>>   wso2.snapshots (
>> http://maven.wso2.org/nexus/content/repositories/snapshots/,
>> releases=false, snapshots=true),
>>   central (http://repo.maven.apache.org/maven2, releases=true,
>> 

Re: [Dev] [BPS][IS] Admin console stuck with bpel/human task deployment

2015-09-02 Thread Vinod Kavinda
Hi Harsha,
Why are you deploying two bpel packages. Our purpose of using a generalized
bpel process is to reuse it right? So why can't you use several instances
of the same process?

Please explain.

Regards,
Vinod

On Wed, Sep 2, 2015 at 4:58 PM, Waruna De Silva  wrote:

> Thanks Nandika for the update. Hope this will get sorted before the beta
> dates.
>
> Regards!
> Waruna
>
> On Wed, Sep 2, 2015 at 4:45 PM, Nandika Jayawardana 
> wrote:
>
>> Hi Waruna,
>>
>> We are checking this issue. It is strange that UI get blocked as
>> deployment happens independent of ui threads .
>>
>> Regards
>> Nandika
>>
>> On Wed, Sep 2, 2015 at 1:59 PM, Waruna De Silva  wrote:
>>
>>> Hi Nandika,
>>>
>>> Do you have any update on this as this seems a blocker for the IS 5.1.0
>>> release? Appreciate if you can provide an ETA for a workaround or the
>>> permanent fix.
>>>
>>> Regards!
>>> Waruna
>>>
>>> On Tue, Sep 1, 2015 at 11:48 AM, Harsha Thirimanna 
>>> wrote:
>>>
 Hi Nandika,

 Since IS(with BPEL/HT features) server stuck for more than 15min if we
 deploy only two bpel and we can experience that in BPS as well. We are bit
 stuck with this for this release as well. Are there any way to avoid this
 until we get proper solution ? Please advice us.

 thanks



 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * *
 *email: **hars...@wso2.com* * cell: +94 71 5186770 *
 *twitter: **http://twitter.com/ *
 *harshathirimannlinked-in: **http:
 **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 *

 *Lean . Enterprise . Middleware*


 On Wed, Aug 26, 2015 at 5:57 PM, Harsha Thirimanna 
 wrote:

> Hi Nandika,
>
> As We discussed, I have created a Jira [1] for this. It is better if
> we can get fix for this before our release on next month  :).
>
> And thanks for your help to solve other issues and everything are
> working fine now except the  above issue.
>
> [1] https://wso2.org/jira/browse/BPS-818
>
>
> *Harsha Thirimanna*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Mon, Aug 24, 2015 at 2:44 PM, Harsha Thirimanna 
> wrote:
>
>> Hi Vinod,
>>
>> Thanks for the detail and Is this the solution for this slowness ?
>> And what could be the root cause that hold the admin ui when we deploy 
>> this
>> ?
>>
>>
>> *Harsha Thirimanna*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Mon, Aug 24, 2015 at 2:41 PM, Vinod Kavinda 
>> wrote:
>>
>>> Hi,
>>> Yes right now the deploy.xml file refers the epr file to locate the
>>> endpoint. But we can refer the endpoint from the wsdl also.
>>>
>>> Regards,
>>> Vinod.
>>>
>>> On Mon, Aug 24, 2015 at 2:35 PM, Harsha Thirimanna >> > wrote:
>>>
 ​Don't we need to include this epr file ? Because we have given
 correct endpoint in this epr file.​


 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * *
 *email: **hars...@wso2.com* * cell: +94 71
 5186770 *
 *twitter: **http://twitter.com/ *
 *harshathirimannlinked-in: **http:
 **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 *

 *Lean . Enterprise . Middleware*


 On Mon, Aug 24, 2015 at 9:57 AM, Vinod Kavinda 
 wrote:

> Hi Harsha,
> Yes, we also have experienced 

Re: [Dev] [BPS][IS] Admin console stuck with bpel/human task deployment

2015-09-02 Thread Harsha Thirimanna
Hi Nandika,

Thanks for this quick solution and I will check this and reply.

thanks



*Harsha Thirimanna*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
* *
*email: **hars...@wso2.com* * cell: +94 71 5186770 *
*twitter: **http://twitter.com/ *
*harshathirimannlinked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

*Lean . Enterprise . Middleware*


On Wed, Sep 2, 2015 at 6:07 PM, Nandika Jayawardana 
wrote:

> Hi Harsha,
>
> Can you try with the attached bpel. There was an unwanted namespace in the
> xsd and removing it reduced the deployment time from 77 seconds to 1 second
> in bps.
>
> Regards
> Nandika
>
> On Wed, Sep 2, 2015 at 5:47 PM, Vinod Kavinda  wrote:
>
>> Hi Harsha,
>> Why are you deploying two bpel packages. Our purpose of using a
>> generalized bpel process is to reuse it right? So why can't you use several
>> instances of the same process?
>>
>> Please explain.
>>
>> Regards,
>> Vinod
>>
>> On Wed, Sep 2, 2015 at 4:58 PM, Waruna De Silva  wrote:
>>
>>> Thanks Nandika for the update. Hope this will get sorted before the beta
>>> dates.
>>>
>>> Regards!
>>> Waruna
>>>
>>> On Wed, Sep 2, 2015 at 4:45 PM, Nandika Jayawardana 
>>> wrote:
>>>
 Hi Waruna,

 We are checking this issue. It is strange that UI get blocked as
 deployment happens independent of ui threads .

 Regards
 Nandika

 On Wed, Sep 2, 2015 at 1:59 PM, Waruna De Silva 
 wrote:

> Hi Nandika,
>
> Do you have any update on this as this seems a blocker for the IS
> 5.1.0 release? Appreciate if you can provide an ETA for a workaround or 
> the
> permanent fix.
>
> Regards!
> Waruna
>
> On Tue, Sep 1, 2015 at 11:48 AM, Harsha Thirimanna 
> wrote:
>
>> Hi Nandika,
>>
>> Since IS(with BPEL/HT features) server stuck for more than 15min if
>> we deploy only two bpel and we can experience that in BPS as well. We are
>> bit stuck with this for this release as well. Are there any way to avoid
>> this until we get proper solution ? Please advice us.
>>
>> thanks
>>
>>
>>
>> *Harsha Thirimanna*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Wed, Aug 26, 2015 at 5:57 PM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Nandika,
>>>
>>> As We discussed, I have created a Jira [1] for this. It is better if
>>> we can get fix for this before our release on next month  :).
>>>
>>> And thanks for your help to solve other issues and everything are
>>> working fine now except the  above issue.
>>>
>>> [1] https://wso2.org/jira/browse/BPS-818
>>>
>>>
>>> *Harsha Thirimanna*
>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Mon, Aug 24, 2015 at 2:44 PM, Harsha Thirimanna >> > wrote:
>>>
 Hi Vinod,

 Thanks for the detail and Is this the solution for this slowness ?
 And what could be the root cause that hold the admin ui when we deploy 
 this
 ?


 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * *
 *email: **hars...@wso2.com* * cell: +94 71
 5186770 *
 *twitter: **http://twitter.com/ *
 *harshathirimannlinked-in: **http:
 **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 *

 *Lean . Enterprise . Middleware*


 On Mon, Aug 24, 2015 at 2:41 PM, Vinod Kavinda 
 wrote:


Re: [Dev] [GREG] Error when adding JaCoco code coverage to test automation

2015-09-02 Thread Rajith Roshan
Hi Nuwan,

It worked after excluding the dependency from registry.activities as well.
Thanks a lot for the help.

Thanks!
Rajith

On Wed, Sep 2, 2015 at 2:47 PM, Nuwan Wimalasekara  wrote:

> Hi Rajith,
>
> The issue is with the asm dependency. asm dependency should be removed
> from all dependencies. Please exclude the asm dependency
> from org.wso2.carbon.registry.activities as well. This will solve above
> issue.
>
> 
> org.wso2.carbon.registry
> org.wso2.carbon.registry.activities
> 
> 
> asm
> asm
> 
> 
> 
>
> Thanks,
> Nuwanw
>
> On Wed, Sep 2, 2015 at 1:02 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Rajith,
>>
>> I could reproduce the same error in test module cmis-tck. I will have a
>> look on this issue.
>>
>> Thanks,
>> Nuwanw
>>
>> On Wed, Sep 2, 2015 at 12:46 PM, Nuwan Wimalasekara 
>> wrote:
>>
>>> Hi Rajith,
>>>
>>> I could generate coverage for the test module tests-resources
>>> successfully in GReg 5.0.0-SNAPSHOT. I updated the test framework version
>>> to 4.4.2 and change the pom configuration as the document. Then it
>>> generated the coverage without any issue.
>>>
>>> Which framework version have you used and which test module gives the
>>> above error?
>>>
>>> Thanks,
>>> Nuwanw
>>>
>>> On Wed, Sep 2, 2015 at 11:02 AM, Rajith Roshan  wrote:
>>>
 Hi all,

 Please find the correct doc link in [1] which, I referred when updating
 the test automation

 [1] -
 https://docs.google.com/document/d/1pMJGdRH4Kmc4J3rYzgnpGlR5AnSeoC4QL9gMX9tUhYs/edit#heading=h.yemie7ivahbz
 

 Thanks!
 Rajith

 On Wed, Sep 2, 2015 at 10:57 AM, Rajith Roshan 
 wrote:

> Hi Devs,
>
> I refer the doc [1] for updating Jacoco code coverage tool for
> integration tests in product G-Reg. It builds successfully when code
> coverage is set to false in automation.xml as follows.
>
> false
>
> Please do find automation.xml, pom.xml and automationlog files for the
> respective test module in [2]
>
> [1] -
> https://drive.google.com/a/wso2.com/folderview?id=0B8xmd1n2DieYfjk2X0Fnb20yMUF0TnI1X1NIek5zTXFtUmhhU0wxRXFTQ1lCQ19qSlN5RmM=sharing
>
> [2] -
> https://drive.google.com/a/wso2.com/folderview?id=0B8xmd1n2DieYfjk2X0Fnb20yMUF0TnI1X1NIek5zTXFtUmhhU0wxRXFTQ1lCQ19qSlN5RmM=sharing
>
> But it gives the following error when code coverage is enabled.
> Further I excluded "asm" from the jacoco dependency. But it gives the same
> error.
> Any help will be appreciated.
>
>
> ERROR
> [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] -
> Execution error occurred in TestExecutionListener:-
> java.lang.reflect.InvocationTargetException
> 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.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)
> at
> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionFinish(TestExecutionListener.java:62)
> at org.testng.TestNG.runExecutionListeners(TestNG.java:1033)
> at org.testng.TestNG.run(TestNG.java:1013)
> at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
> at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> Caused by: java.lang.IncompatibleClassChangeError: class
> 

Re: [Dev] Discussion about DAS Analytics Dashboard

2015-09-02 Thread Dunith Dhanushka
Hi Thanuja,

I'm working on adding the Lucene based filtering facility to gadget
generation wizard [1]. That will provide you a way of specifying a Lucene
query during gadget generation so that you can filter out your input data
table. I'm hoping to finish it within this week.

But you might need to get help from UES team (if they are not busy with a
release) for the gadget maximizing feature.

[1] https://wso2.org/jira/browse/DAS-28

Regards,
Dunith



On Tue, Sep 1, 2015 at 10:05 PM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:

> Hi Dunith,
>
> Yes, I need filtering facility when generating a gadget to filter out the
> records and I'm wondering where can I add queries for filtering and how can
> I invoke the filtering logic from dashboard. I'll have a offline discussion
> with Maninda, since as you said he is the one currently responsible for
> dashboard side and let you know.
>
> Thanks.
>
> On Wed, Sep 2, 2015 at 12:12 AM, Dunith Dhanushka  wrote:
>
>> Hi Thanuja,
>>
>> Can you explain the requirement for filtering a little bit further? What
>> I understood is you need a filtering facility when generating a gadget  to
>> filter out  the records for the visualization. (like having a where clause)
>>
>> Regards,
>> Dunith
>>
>> On Tue, Sep 1, 2015 at 8:04 AM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com> wrote:
>>
>>> Hi Dunith,
>>>
>>> I'm implementing Metering dashboard for Stratos using DAS. You can find
>>> more details and dashboard UI design in the dev thread[1]. Currently I'm
>>> trying to create a line chart and table gadgets in dashboard and I need to
>>> do some filtering in dashboard. I tried with DAS samples and they don't
>>> have the filtering part. So I need to discuss and clarify about it. Also
>>> I've discussed about Table Gadget column order problem in thread [2] and
>>> need to clarify about that one also.
>>>
>>> [1]. [Dev] [PPaaS] Integrating DAS with Stratos for Metering Service
>>> and Monitoring Health Statistics
>>> [2]. [Dev] [DAS] DAS dashboard table-gadget column order
>>>
>>> Thanks.
>>>
>>> --
>>> Thanuja Uruththirakodeeswaran
>>> Software Engineer
>>> WSO2 Inc.;http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 774363167
>>>
>>
>>
>>
>> --
>> Regards,
>>
>> Dunith Dhanushka,
>> Senior Software Engineer
>> WSO2 Inc,
>>
>> Mobile - +94 71 8615744
>> Blog - dunithd.wordpress.com 
>> Twitter - @dunithd 
>>
>
>
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>



-- 
Regards,

Dunith Dhanushka,
Senior Software Engineer
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] [VOTE] Release G-Reg 5.0.0 RC 2

2015-09-02 Thread Chandana Napagoda
-1,

We found an issue with solr related logging configuration and this issue is
reproducible in G-Reg, ESB and AS packs based on carbon 4.4.1.

Step to reproduce this issue:

Go to Main --> Registry search and search by any value.
Then navigate to Configure --> Logging section.
Exceptions are logged in console and "Global Log4J Configuration" and
"Configure Log4J Appenders" views are not loading due to the above issue.

Created a JIRA[1] to track above issue and will release release G-Reg 5.0.0
RC3 pack ASAP.

[1]. https://wso2.org/jira/browse/WSAS-2120

Regards,
Chandana


On Wed, Sep 2, 2015 at 11:47 AM, Chandana Napagoda 
wrote:

> Hi Pubudu,
>
> Since we have already released RC2 pack and component repos, we can not
> update above pages now. We will update context specific pages for coming up
> 5.0.1 release. Meantime, you can refer wiki based documentation available
> here [1].
>
> [1].
> https://docs.wso2.com/display/Governance500/WSO2+Governance+Registry+Documentation
>
> Regards,
> Chandana
>
> On Wed, Sep 2, 2015 at 10:49 AM, Pubudu Priyashan 
> wrote:
>
>> Hi Chandana,
>>
>> Since the Help page, context specific pages are out-dated we need to
>> update those to reflect most recent information. Can you please address
>> this issue as required? Please find the relevant ticket below. Thanks.
>>
>> https://wso2.org/jira/browse/REGISTRY-2910
>>
>> Cheers,
>>
>> Pubudu D.P
>> Senior Software Engineer - QA Team | WSO2 inc.
>> Mobile : +94775464547
>>
>> On Wed, Sep 2, 2015 at 10:41 AM, Nirdesha Munasinghe 
>> wrote:
>>
>>> The context sensitive help links are in the product UIs. AFAIK, these
>>> links are component-based rather than product based? Please correct me if I
>>> am wrong.
>>>
>>> If they are component-based, we cannot link to the wiki of a specific
>>> product from there as many other products might also be using the same
>>> component.
>>>
>>> Maybe we should simply disable these help links until we find a better
>>> way to maintain them.
>>>
>>> Thanks,
>>> -Nirdesha
>>>
>>> On Wed, Sep 2, 2015 at 10:30 AM, Pubudu Priyashan 
>>> wrote:
>>>
 Hi Nirdesha,

 Can we please point the current context sensitive help pages to
 relevant product documentation of GReg 5.0.0 release?

 Cheers,

 Pubudu D.P
 Senior Software Engineer - QA Team | WSO2 inc.
 Mobile : +94775464547

 On Wed, Sep 2, 2015 at 9:42 AM, Ajith Vitharana 
 wrote:

>
>
> On Wed, Sep 2, 2015 at 12:08 AM, Evanthika Amarasiri <
> evanth...@wso2.com> wrote:
>
>> Ack!
>>
>> @Chalitha/Thaya/Pubudu. Please note.
>>
>
> And all the context sensitive help pages  are outdated .
>
> -Ajith
>
>
>>
>> Regards,
>> Evanthika Amarasiri
>> Senior Technical Lead  - Quality Assurance
>> Mobile: +94773125935
>> Blog: evanthika.blogspot.com
>>
>> wso2.com lean.enterprise.middleware
>>
>> On Wed, Sep 2, 2015 at 9:32 AM, Ajith Vitharana 
>> wrote:
>>
>>> Hi All
>>>
>>> This is non a bug but please fix the about page if possible because
>>> this is a major release. (find the attached image)
>>>
>>> -Ajith
>>>
>>>
>>>
>>>
>>>
>>> On Tue, Sep 1, 2015 at 11:05 PM, Prasanna Dangalla <
>>> prasa...@wso2.com> wrote:
>>>
 Hi All,

 *This is the RC 2 release candidate of G-Reg 5.0.0 *

 This release fixes the following issues:

 https://wso2.org/jira/browse/REGISTRY-2895?filter=12384
 https://wso2.org/jira/browse/REGISTRY-2908

 Please download, test and vote. Please refer the release
 verification guide for detailed information on verifying this release.

 *Source & binary distribution files:*


 http://maven.wso2.org/nexus/content/repositories/orgwso2greg-026/org/wso2/greg/wso2greg/5.0.0/

 *Maven staging repo:*

 http://maven.wso2.org/nexus/content/repositories/orgwso2greg-026/

 *The tag to be voted upon:*

 https://github.com/wso2/product-greg/tree/v5.0.0-rc2



 [*+*] Stable - go ahead and release

 [*-*]  Broken - do not release (explain why)

 Thanks and Regards
 G-Reg team

 Prasanna Dangalla
 Software Engineer, WSO2, Inc.; http://wso2.com/
 lean.enterprise.middleware

 cell: +94 718 11 27 51
 twitter: @prasa77

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


>>>
>>>
>>> --
>>> Ajith Vitharana.
>>>
>>> WSO2 Inc. - http://wso2.com
>>> Email  : 

[Dev] [EMM][DAS]Error in Installing DAS Feature

2015-09-02 Thread Sachith Punchihewa
Hi DAS Team,

I tried installing *WSO2 Carbon - Analytics Lite Feature* to EMM using the
following entries in P2 Profile Gen Pom.

> 
> org.wso2.carbon.analytics:analytics-lite-feature:1.0.3-SNAPSHOT
> 

and


> analytics-lite-feature.group
> 1.0.3-SNAPSHOT
> 


When i use above entries  it gives the following error.

[INFO] --- carbon-p2-plugin:1.5.4:p2-repo-gen (2-p2-repo-generation) @
> wso2mdm-profile-gen ---
> [ERROR] Error occured when processing the Feature Artifact:
> org.wso2.carbon.analytics:analytics-lite-feature:1.0.3-SNAPSHOT
> org.apache.maven.plugin.MojoExecutionException: Error occured when
> processing the Feature Artifact:
> org.wso2.carbon.analytics:analytics-lite-feature:1.0.3-SNAPSHOT
> at
> org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:322)
> at
> org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197)
> at org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.MojoExecutionException: ERROR
> at
> org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:60)
> at
> org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:319)
> ... 23 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> Failure to find
> org.wso2.carbon.analytics:analytics-lite-feature:zip:1.0.3-SNAPSHOT in
> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
> local repository, resolution will not be reattempted until the update
> interval of wso2-nexus has elapsed or updates are forced
> Try downloading the file manually from the project website.
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.wso2.carbon.analytics
> -DartifactId=analytics-lite-feature -Dversion=1.0.3-SNAPSHOT
> -Dpackaging=zip -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=org.wso2.carbon.analytics
> -DartifactId=analytics-lite-feature -Dversion=1.0.3-SNAPSHOT
> -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
>   org.wso2.carbon.analytics:analytics-lite-feature:zip:1.0.3-SNAPSHOT
> from the specified remote repositories:
>   wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
> releases=true, snapshots=true),
>   wso2.releases (
> http://maven.wso2.org/nexus/content/repositories/releases/,
> releases=true, snapshots=true),
>   wso2.snapshots (
> http://maven.wso2.org/nexus/content/repositories/snapshots/,
> releases=false, snapshots=true),
>   central (http://repo.maven.apache.org/maven2, releases=true,
> snapshots=false)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525)
> at
> org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:56)
> ... 24 more
> Caused by: org.sonatype.aether.resolution.ArtifactResolutionException:
> Failure to find
> 

Re: [Dev] [Private PaaS] API-M VM/Docker Cartridge

2015-09-02 Thread Pubudu Gunatilaka
Hi Imesh,

Will update API-Manager to 1.9.1 for the Private-Paas 4.1.0-GA. Now the
API-Manager 1.9.0 docker image is available in docker hub[1].

[1] - https://hub.docker.com/r/wso2/am/

Thank you!

On Mon, Aug 31, 2015 at 1:06 PM, Imesh Gunaratne  wrote:

> Hi Devs,
>
> API-M has released 1.9.1 [1]. We might need to use this for Private PaaS
> 4.1.0-GA
> [1] http://wso2.com/api-management/try-it/
>
> Thanks
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 

*Pubudu Gunatilaka*
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 77 4078049
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to specify custom HTTP Endpoint in Services Endpoints UI

2015-09-02 Thread Madhawa Gunasekara
Hi All,

Please find the created improvement jira issue [1].

[1] https://wso2.org/jira/browse/CARBON-15398

Thanks,
Madhawa

On Wed, Sep 2, 2015 at 12:35 PM, Madhawa Gunasekara 
wrote:

> Hi All,
>
> I have a requirement to show a custom http/hhtps endpoint in service
> endpoint list in DSS UI, Is there any way to add custom endpoint in the ui
> ?
>
>  "service_info.jsp" file makes the service information page. The endpoints
> were taken from the AxisService.getEPR() method. but how can I add "
> http://10.100.7.54:9763/odataservices/testjira/c1/
> 
> endpoint to axisService, AFAIU I can't use setEPRS() to axisServices.
>
> Any help on this matter is highly appreciated.
> Thanks,
> Madhawa
>
> *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
> *
>



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