Re: [Dev] [Carbon-jira] [jira] (APPFAC-3085) Reduce dev setup GitBlit version to 1.3

2015-04-23 Thread Manisha Gayathri
Hi Pirin,

As per the offline discussion we had, if we downgrade the gitblit version
to 1.3, fork repos will not work.
That is because, the RPC call to create a fork repo is available only after
gitblit 1.4.0

If downgrading to gitblit 1.3, then you may have to check
 - if forking functionality is available in that version
 - for sure, NO RPC call is available to fork, hence you will have to back
port the fix I have given to gitblit 1.4.0 to enable RPC calls for forking.

Thanks
Manisha

On Wed, Apr 22, 2015 at 4:29 AM, Dimuthu Leelarathne (JIRA) 
wrote:

>Dimuthu Leelarathne
> 
> created [image: Bug] APPFAC-3085
> 
>  *Reduce dev setup GitBlit version to 1.3*
> 
>*Issue Type:*  [image: Bug] Bug   *Assignee:*  Pirinthapan
> Mahendran
> 
> *Created:*  22/Apr/15 4:28 AM   *Project:*  WSO2 App Factory
>    *Priority:*  [image: Highest]
> Highest   *Reporter:*  Dimuthu Leelarathne
>   
>  This
> message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
> ___
> Carbon-jira mailing list
> carbon-j...@wso2.org
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-jira
>
>


-- 
~Regards
*Manisha Eleperuma*
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware

*blog:  http://manisha-eleperuma.blogspot.com/
*
*mobile:  +94 71 8279777*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon 4.4.0 is not starting on my computer

2015-04-23 Thread Thilini Cooray
Hi,

It seems to be an issue with the starting of Tomcat 7 server in carbon 4.4.0
Several places such as [1] also have the same error in different scenarios.
They have mentioned that reason can be an issue with Tomcat 7.

[1]
http://stackoverflow.com/questions/28102134/a-child-container-failed-during-start-java-util-concurrent-executionexception

Thank you.


On Thu, Apr 23, 2015 at 11:26 AM, Madhuranga Bandara 
wrote:

> Hi Tharik,
>
> my JAVA_HOME is set to jdk 1.7.
>
> Macbook-Pro:~ madhuranga$ java -version
> java version "1.7.0_71"
> Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
> Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
>
> *Madhuranga Sampath Bandara*
> Software Engineer
>
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
> Mobile: +94722241065
>
> On Thu, Apr 23, 2015 at 10:58 AM, Tharik Kanaka  wrote:
>
>> Hi Madhuranga.
>>
>> Is your JAVA_HOME set to jdk 1.7?
>> Since you could run carbon 4.2.0 it seems like JAVA_HOME is set to jdk
>> 1.6 and carbon 4.4.0 supports jdk 1.7 onwards.
>>
>> Regards,
>>
>> On Thu, Apr 23, 2015 at 10:43 AM, Madhuranga Bandara > > wrote:
>>
>>> Hi Lasitha,
>>>
>>> JAVA HOME is correct.
>>> I can run carbon 4.2.0. But the issue is with 4.4.0.
>>>
>>> *Madhuranga Sampath Bandara*
>>> Software Engineer
>>>
>>> WSO2, Inc.;http://wso2.com/
>>> 
>>> lean.enterprise.middleware
>>> Mobile: +94722241065
>>>
>>> On Thu, Apr 23, 2015 at 10:24 AM, Lasitha Wattaladeniya <
>>> lasit...@wso2.com> wrote:
>>>
 Hi Maduranga,

 Is your JAVA_HOME variable value is correct ?

 On Thu, Apr 23, 2015 at 10:22 AM, Madhuranga Bandara <
 madhura...@wso2.com> wrote:

> Hi all,
>
> When i try to start the carbon it gives me an exception and the
> product it not starting.
> I'm using the binary file.
> Given below is the cmd output.
>
> JAVA_HOME environment variable is set to
> /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
> CARBON_HOME environment variable is set to
> /Users/madhuranga/Applications/wso2carbon-4.4.0
> [2015-04-23 09:51:30,672]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
> Carbon...
> [2015-04-23 09:51:30,673]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
> Mac OS X 10.9.3, x86_64
> [2015-04-23 09:51:30,673]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home:
> /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
> [2015-04-23 09:51:30,673]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version :
> 1.7.0_71
> [2015-04-23 09:51:30,674]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM  :
> Java HotSpot(TM) 64-Bit Server VM 24.71-b01,Oracle Corporation
> [2015-04-23 09:51:30,674]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home  :
> /Users/madhuranga/Applications/wso2carbon-4.4.0
> [2015-04-23 09:51:30,674]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir:
> /Users/madhuranga/Applications/wso2carbon-4.4.0/tmp
> [2015-04-23 09:51:30,674]  INFO
> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  User :
> madhuranga, en-US, Asia/Colombo
> [2015-04-23 09:51:30,795]  WARN
> {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
>  Carbon is configured to use the default keystore (wso2carbon.jks). To
> maximize security when deploying to a production environment, configure a
> new keystore with a unique password in the production server profile.
> [2015-04-23 09:51:30,795]  WARN
> {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
>  Swap Memory size (MB): 1024 of the system is below the recommended 
> minimum
> size :2047
> [2015-04-23 09:51:33,856]  INFO
> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Configured
> Registry in 51ms
> [2015-04-23 09:51:33,943]  INFO
> {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
>  Registry Mode: READ-WRITE
> [2015-04-23 09:51:33,980]  INFO
> {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} -  Carbon
> UserStoreMgtDSComponent activated successfully.
> [2015-04-23 09:51:34,754] ERROR
> {org.apache.catalina.core.ContainerBase} -  A child container failed 
> during
> start
> java.util.concurrent.ExecutionException:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]
> at java.util.concurrent.FutureTas

Re: [Dev] APIM ui integration tests

2015-04-23 Thread Irham Iqbal
Hi Dinesh,

I am getting the following exception in
APIMANAGER3363StoreAPIConsoleWithReverseProxy TestCase and  i have attached
the full log file. It seems like bug in  addAPI method. In the test it has
used for add APIs.

org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.wso2.carbon.registry.core.secure.AuthorizationFailedException: User
wso2.anonymous.user is not authorized to read the resource
/_system/governance/apimgt/applicationdata/api-docs/
APIMANAGER3363-1.0.0-admin-AT-apimanager3363.com/1.2/api-doc.
(/store/site/blocks/api-doc/ajax/get.jag#101)

Thanks,

Iqbal



On Thu, Apr 23, 2015 at 12:18 PM, Dinesh J Weerakkody 
wrote:

> Hi Irham,
> Regarding APIMANAGER3363StoreAPIConsoleWithReverseProxy TestCase,
>
> This test should be run with load balancer enabled environment and it is
> mentioned in class level comments. Anyway, Can you please share the full
> error log so we can find the root cause.
>
> Thanks
>
> *Dinesh J. Weerakkody*
> Software Engineer
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>
> On Wed, Apr 22, 2015 at 12:39 PM, Irham Iqbal  wrote:
>
>>
>> Hi,
>>
>> Currently I am fixing the following APIM UI integration tests failures.
>>
>> Results :
>>
>> Tests run: 26, Failures: 9, Errors: 0, Skipped: 1
>>
>> When i go through the code i found the following lines which may causing
>> the test failures.
>>
>> APIMANAGER3272ExternalLogoutPageTestCase
>>
>>
>>- Getting an 404 when try to access
>>https://localhost:9443/store/site/pages/login.jag.
>>- In the code variable externalLogoutPage has assigned "custom logout
>>page url".
>>
>>
>> APIMANAGER3344ScopeSpecificTokenTestCase
>>
>>
>>- Searching Select Scopes link inside My Subscriptions page in the
>>store but i don't see any select scope link in that page.
>>
>>
>> APIMANAGER3363StoreAPIConsoleWithReverseProxy
>>
>>
>>- When click on API Console tag getting an exception in log and also
>>bellowing exception under that tag - 500 : undefined
>>
>> https://localhost:9443/store/api-docs/admin%40apimanager3363.com/APIMANAGER3363/1.0.0
>>.
>>
>>
>> APIMANAGER3366MultipleGatewayPublishTestCase
>>
>>- In the publisher when adding the API in the manage state it's
>>expecting input.env css selector  but it's not in that page.
>>
>>
>> APIMANAGER3371BusinessInformationClearedWhenAPISavedButton
>>
>>- In the publisher when adding the API in the manage state it's try
>>to click on xpath //form[@id='manage_form']/fieldset[3]/legend  but
>>it's not in that page.
>>
>>
>> APIMANAGER3412DifferentRegistryContextPath
>>
>>
>>- In the publisher when adding the API in the design state it's try
>>to find a element by id jsonform-0-elt-production_endpoints but it's
>>not in that page.
>>
>>
>> APIVersoinStatTestCase
>>
>>
>>- In the publisher in the all API page when it's empty it's trying to
>>find versionTxt by id but it's not in that page.
>>
>>
>> TestNameLengthTestCase
>>
>>
>>- When running this test alone it's working. Some other test/tests
>>might be the reason of failure of this test case.
>>
>>
>> YouTubeUIPagesTestCase
>>
>>- testAPIPage.getTestResponseBody() gives http://wso2.org/apimanager/security";>900902Missing
>>CredentialsRequired OAuth credentials not
>>provided. Make sure your API invocation call has a header: "Authorization:
>>Bearer ACCESS_TOKEN"
>>
>> Thanks,
>> Iqbal
>> --
>> Irham Iqbal
>> Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>> phone: +94 777888452
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Irham Iqbal
Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
phone: +94 777888452


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


Re: [Dev] APIM ui integration tests

2015-04-23 Thread Dinesh J Weerakkody
Thanks Irham,
I'll update the thread once we find the issue.

Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com

On Thu, Apr 23, 2015 at 1:07 PM, Irham Iqbal  wrote:

> Hi Dinesh,
>
> I am getting the following exception in
> APIMANAGER3363StoreAPIConsoleWithReverseProxy TestCase and  i have
> attached the full log file. It seems like bug in  addAPI method. In the
> test it has used for add APIs.
>
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.WrappedException: Wrapped
> org.wso2.carbon.registry.core.secure.AuthorizationFailedException: User
> wso2.anonymous.user is not authorized to read the resource
> /_system/governance/apimgt/applicationdata/api-docs/
> APIMANAGER3363-1.0.0-admin-AT-apimanager3363.com/1.2/api-doc.
> (/store/site/blocks/api-doc/ajax/get.jag#101)
>
> Thanks,
>
> Iqbal
>
>
>
> On Thu, Apr 23, 2015 at 12:18 PM, Dinesh J Weerakkody 
> wrote:
>
>> Hi Irham,
>> Regarding APIMANAGER3363StoreAPIConsoleWithReverseProxy TestCase,
>>
>> This test should be run with load balancer enabled environment and it is
>> mentioned in class level comments. Anyway, Can you please share the full
>> error log so we can find the root cause.
>>
>> Thanks
>>
>> *Dinesh J. Weerakkody*
>> Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>>
>> On Wed, Apr 22, 2015 at 12:39 PM, Irham Iqbal  wrote:
>>
>>>
>>> Hi,
>>>
>>> Currently I am fixing the following APIM UI integration tests failures.
>>>
>>> Results :
>>>
>>> Tests run: 26, Failures: 9, Errors: 0, Skipped: 1
>>>
>>> When i go through the code i found the following lines which may causing
>>> the test failures.
>>>
>>> APIMANAGER3272ExternalLogoutPageTestCase
>>>
>>>
>>>- Getting an 404 when try to access
>>>https://localhost:9443/store/site/pages/login.jag.
>>>- In the code variable externalLogoutPage has assigned "custom
>>>logout page url".
>>>
>>>
>>> APIMANAGER3344ScopeSpecificTokenTestCase
>>>
>>>
>>>- Searching Select Scopes link inside My Subscriptions page in the
>>>store but i don't see any select scope link in that page.
>>>
>>>
>>> APIMANAGER3363StoreAPIConsoleWithReverseProxy
>>>
>>>
>>>- When click on API Console tag getting an exception in log and also
>>>bellowing exception under that tag - 500 : undefined
>>>
>>> https://localhost:9443/store/api-docs/admin%40apimanager3363.com/APIMANAGER3363/1.0.0
>>>.
>>>
>>>
>>> APIMANAGER3366MultipleGatewayPublishTestCase
>>>
>>>- In the publisher when adding the API in the manage state it's
>>>expecting input.env css selector  but it's not in that page.
>>>
>>>
>>> APIMANAGER3371BusinessInformationClearedWhenAPISavedButton
>>>
>>>- In the publisher when adding the API in the manage state it's try
>>>to click on xpath //form[@id='manage_form']/fieldset[3]/legend  but
>>>it's not in that page.
>>>
>>>
>>> APIMANAGER3412DifferentRegistryContextPath
>>>
>>>
>>>- In the publisher when adding the API in the design state it's try
>>>to find a element by id jsonform-0-elt-production_endpoints but it's
>>>not in that page.
>>>
>>>
>>> APIVersoinStatTestCase
>>>
>>>
>>>- In the publisher in the all API page when it's empty it's trying
>>>to find versionTxt by id but it's not in that page.
>>>
>>>
>>> TestNameLengthTestCase
>>>
>>>
>>>- When running this test alone it's working. Some other test/tests
>>>might be the reason of failure of this test case.
>>>
>>>
>>> YouTubeUIPagesTestCase
>>>
>>>- testAPIPage.getTestResponseBody() gives http://wso2.org/apimanager/security";>900902Missing
>>>CredentialsRequired OAuth credentials not
>>>provided. Make sure your API invocation call has a header: 
>>> "Authorization:
>>>Bearer ACCESS_TOKEN"
>>>
>>> Thanks,
>>> Iqbal
>>> --
>>> Irham Iqbal
>>> Software Engineer - Test Automation
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>> phone: +94 777888452
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon 4.4.0 is not starting on my computer

2015-04-23 Thread Thusitha Thilina Dayaratne
Hi Madhuranga,

This link might help you.
http://stackoverflow.com/questions/17584495/unable-to-complete-the-scan-for-annotations-for-web-application-app-due-to-a

Best Regards

On Thu, Apr 23, 2015 at 12:40 PM, Thilini Cooray  wrote:

> Hi,
>
> It seems to be an issue with the starting of Tomcat 7 server in carbon
> 4.4.0
> Several places such as [1] also have the same error in different
> scenarios. They have mentioned that reason can be an issue with Tomcat 7.
>
> [1]
> http://stackoverflow.com/questions/28102134/a-child-container-failed-during-start-java-util-concurrent-executionexception
>
> Thank you.
>
>
> On Thu, Apr 23, 2015 at 11:26 AM, Madhuranga Bandara 
> wrote:
>
>> Hi Tharik,
>>
>> my JAVA_HOME is set to jdk 1.7.
>>
>> Macbook-Pro:~ madhuranga$ java -version
>> java version "1.7.0_71"
>> Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
>> Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
>>
>> *Madhuranga Sampath Bandara*
>> Software Engineer
>>
>> WSO2, Inc.;http://wso2.com/
>> 
>> lean.enterprise.middleware
>> Mobile: +94722241065
>>
>> On Thu, Apr 23, 2015 at 10:58 AM, Tharik Kanaka  wrote:
>>
>>> Hi Madhuranga.
>>>
>>> Is your JAVA_HOME set to jdk 1.7?
>>> Since you could run carbon 4.2.0 it seems like JAVA_HOME is set to jdk
>>> 1.6 and carbon 4.4.0 supports jdk 1.7 onwards.
>>>
>>> Regards,
>>>
>>> On Thu, Apr 23, 2015 at 10:43 AM, Madhuranga Bandara <
>>> madhura...@wso2.com> wrote:
>>>
 Hi Lasitha,

 JAVA HOME is correct.
 I can run carbon 4.2.0. But the issue is with 4.4.0.

 *Madhuranga Sampath Bandara*
 Software Engineer

 WSO2, Inc.;http://wso2.com/
 
 lean.enterprise.middleware
 Mobile: +94722241065

 On Thu, Apr 23, 2015 at 10:24 AM, Lasitha Wattaladeniya <
 lasit...@wso2.com> wrote:

> Hi Maduranga,
>
> Is your JAVA_HOME variable value is correct ?
>
> On Thu, Apr 23, 2015 at 10:22 AM, Madhuranga Bandara <
> madhura...@wso2.com> wrote:
>
>> Hi all,
>>
>> When i try to start the carbon it gives me an exception and the
>> product it not starting.
>> I'm using the binary file.
>> Given below is the cmd output.
>>
>> JAVA_HOME environment variable is set to
>> /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
>> CARBON_HOME environment variable is set to
>> /Users/madhuranga/Applications/wso2carbon-4.4.0
>> [2015-04-23 09:51:30,672]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
>> Carbon...
>> [2015-04-23 09:51:30,673]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
>> Mac OS X 10.9.3, x86_64
>> [2015-04-23 09:51:30,673]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home:
>> /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
>> [2015-04-23 09:51:30,673]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version :
>> 1.7.0_71
>> [2015-04-23 09:51:30,674]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM  :
>> Java HotSpot(TM) 64-Bit Server VM 24.71-b01,Oracle Corporation
>> [2015-04-23 09:51:30,674]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home  :
>> /Users/madhuranga/Applications/wso2carbon-4.4.0
>> [2015-04-23 09:51:30,674]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir:
>> /Users/madhuranga/Applications/wso2carbon-4.4.0/tmp
>> [2015-04-23 09:51:30,674]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  User :
>> madhuranga, en-US, Asia/Colombo
>> [2015-04-23 09:51:30,795]  WARN
>> {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
>>  Carbon is configured to use the default keystore (wso2carbon.jks). To
>> maximize security when deploying to a production environment, configure a
>> new keystore with a unique password in the production server profile.
>> [2015-04-23 09:51:30,795]  WARN
>> {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
>>  Swap Memory size (MB): 1024 of the system is below the recommended 
>> minimum
>> size :2047
>> [2015-04-23 09:51:33,856]  INFO
>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  
>> Configured
>> Registry in 51ms
>> [2015-04-23 09:51:33,943]  INFO
>> {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
>>  Registry Mode: READ-WRITE
>> [2015-04-23 09:51:33,980]  INFO
>> {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} -  Carbon
>> UserStoreMgtDSComponen

Re: [Dev] How to change configuration file and run the integration tests?

2015-04-23 Thread Sinthuja Ragendran
Hi krishantha/saneth,

Thanks a lot for your advice! I'll try out your suggestions.

Thanks,
Sinthuja.

On Thu, Apr 23, 2015 at 11:41 AM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Oder of method execution as follows.
> Running TestSuite
> BeforeMethod G1
> test1()
> test2()
> AfterMethod G1
>
> BeforeMethod G2
> test1()
> test2()
> BeforeMethod G2
>
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.593 sec
>
> On Thu, Apr 23, 2015 at 11:38 AM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Hi Sinthuja,
>>
>> As mentioned by Saneth you can use ServerConfigurationManager class to
>> configure server.
>>
>> To execute same set of tests with different configuration you can use
>> TestNG groups. Please see the example code below. You need to define two
>> test blocks in testng.xml and execute each group separately.
>>
>>
>> public class MainGroupClass {
>>
>> @BeforeTest(groups = {"g1"}, alwaysRun = false)
>> public void setUpG1() {
>> //configuration goes here
>> sleep();
>> System.out.println("BeforeMethod G1");
>> }
>>
>> @AfterTest(groups = {"g1"}, alwaysRun = false)
>> public void tearDownG1() {
>> //revert configuration
>> sleep();
>> System.out.println("AfterMethod G1");
>> }
>>
>> @BeforeTest(groups = {"g2"}, alwaysRun = false)
>> public void setUpG2() {
>> //configuration goes here
>> sleep();
>> System.out.println("BeforeMethod G2");
>> }
>>
>> @AfterTest(groups = {"g2"}, alwaysRun = false)
>> public void tearDownG2() {
>> //revert Configuration
>> sleep();
>> System.out.println("BeforeMethod G2");
>> }
>>
>> private void sleep() {
>> try {
>> Thread.sleep(500);
>> } catch (InterruptedException e) {
>> e.printStackTrace();
>> }
>> }
>>
>> }
>>
>>
>> 
>>
>> public class BeforeTestGroups {
>>
>> @Test(groups = {"g1", "g2"})
>> public void test1(){
>> sleep();
>> System.out.println("test1()");
>> }
>>
>> @Test(groups = {"g1", "g2"})
>> public void test2(){
>> sleep();
>> System.out.println("test2()");
>> }
>>
>> private void sleep(){
>> try {
>> Thread.sleep(500);
>> } catch (InterruptedException ignored) {
>>
>> }
>> }
>> }
>>
>>
>> ===
>>
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>>
>> 
>>
>> ===
>>
>>
>> Thanks,
>> Krishantha.
>>
>>
>> On Thu, Apr 23, 2015 at 8:03 AM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> Hi Sinthuja,
>>>
>>> a)You can change the configuration by using
>>> applyConfigurationWithoutRestart()  methods in
>>> org.wso2.carbon.integration.common.utils.mgt.ServerConfigurationManager.java.
>>> For sample usage of ServerConfigurationManager [1] . You have to
>>> restart the server  like in the sample [1] to get the configaration to
>>> apply.
>>>
>>> b) I am not clear about your 2nd requirement, Do you want to run the
>>> same test case with 2 different configarations?
>>>
>>> [1]
>>> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APIManagerConfigurationChangeTest.java
>>>
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile: +94772325511
>>>
>>> On Wed, Apr 22, 2015 at 7:32 PM, Sinthuja Ragendran 
>>> wrote:
>>>
 Hi QAA team,

 I have a requirement in DAS integration test to change a configuration
 file and run the whole integration tests again.

 Basically in DAS we have a core API which can run in LOCAL mode by
 using osgi services, and REMOTE mode by connecting to a remote services in
 a distributed setup. By default this configuration is LOCAL, and hence it
 just uses the osgi services. But I need to tests the REMOTE functionality
 as well by changing the configuration to REMOTE and point to localhost. And
 currently the file is loaded only in the server start up, therefore
 configuration fi. And I would prefer all the tests to be executed in both
 modes to make sure functionality.

 How can I achieve my requirement? Please advice.

 Thanks,
 Sinthuja.

 --
 *Sinthuja Rajendran*
 Senior Software Engineer 
 WSO2, Inc.:http://wso2.com

 Blog: http://sinthu-rajan.blogspot.com/
 Mobile: +94774273955



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


>>>

Re: [Dev] Unable to start axis2 server in wso2esb-4.9.0-M7-SNAPSHOT

2015-04-23 Thread Shakila Sivagnanarajah
Thank you Malaka,

With the pack that you gave me, I have started axis2 server successfully.

Thank you

On Thu, Apr 23, 2015 at 11:41 AM, Malaka Silva  wrote:

> Hi Shakila,
>
> Seems like you are using an invalid pack. Please use [1]
>
> [1]
> https://svn.wso2.org/repos/wso2/people/ishan/dist/esb/4.9.0/wso2esb-4.9.0-M7.zip
>
> On Thu, Apr 23, 2015 at 10:32 AM, Shakila Sivagnanarajah  > wrote:
>
>> Hi all,
>>
>> I am getting error while starting up the axis2 server in
>> /samples/axis2Server. Can anyone guide me
>> to fix this?
>>
>> It says unable to determine dialect of StAX implementation at
>> axiom_1.2.11.wso2v5.jar! file. There is an exclamation '!' mark after the
>> extension. Is it the problem? Because axiom_1.2.11.wso2v5.jar is available
>> at /repository/components/plugins.
>>
>> Please find the error log [1].
>>
>> [1]
>> [2015-04-23 10:05:03,436]  WARN
>> {org.apache.axiom.util.stax.dialect.StAXDialectDetector} -  Unable to
>> determine dialect of the StAX implementation at
>> jar:file:/Users/Shaki/Desktop/VFS/wso2esb-4.9.0-M7-SNAPSHOT/repository/components/plugins/axiom_1.2.11.wso2v5.jar!/
>> [2015-04-23 10:05:03,539] FATAL {samples.util.SampleAxis2ServerManager}
>> -  [SimpleAxisServer] Shutting down. Error starting SimpleAxisServer
>> org.apache.axis2.deployment.DeploymentException:
>> org.apache.axis2.transport.jms.JMSSender
>> at
>> org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:712)
>> at
>> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:124)
>> at
>> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:887)
>> at
>> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
>> at
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
>> at
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
>> at
>> samples.util.SampleAxis2ServerManager.start(SampleAxis2ServerManager.java:93)
>> at
>> samples.util.SampleAxis2Server.startServer(SampleAxis2Server.java:61)
>> at samples.util.SampleAxis2Server.main(SampleAxis2Server.java:40)
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.axis2.transport.jms.JMSSender
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>> 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:423)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:186)
>> at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
>> at
>> org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:686)
>> ... 8 more
>>
>> Thanks
>> --
>> Shakila Sivagnanarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 770 760240
>> shak...@wso2.com
>>
>
>
>
> --
>
> 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.
>



-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 770 760240
shak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to find deprecated features of a WSO2 product

2015-04-23 Thread Kalpa Welivitigoda
Hi,

$subject, is there a doc that we maintain?

-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-04-23 Thread Sandamal Weerasinghe
Hi KasunG,

Please review and merge.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Mon, Apr 20, 2015 at 7:48 AM, Prabath Ariyarathna 
wrote:

> Hi Sandamal.
>
> It's working with the RM connector without any issue.
>
>
> Thanks.
>
> On Sun, Apr 19, 2015 at 12:11 AM, Sandamal Weerasinghe 
> wrote:
>
>> Hi KasunG,
>>
>> I updated the pull requests according to your instructions, please have a
>> look.
>>
>> PrabathA : Can you please check if the RM connector works with the new
>> Bundles
>>
>> Thanks.
>>
>> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>>
>> Mobile - +94-77-144-9640
>>
>> On Thu, Apr 16, 2015 at 6:01 PM, Sandamal Weerasinghe 
>> wrote:
>>
>>> Hi KasunG,
>>>
>>> I split the cxf bundle in to 2 bundles (cxf and jetty) and now I get the
>>> following error when starting up the ESB
>>>
>>> [2015-04-16 17:55:18,448]  INFO - ServerImpl Setting the server's
>>> publish address to be http://localhost:8081
>>> [2015-04-16 17:55:18,454] FATAL - ServiceBusInitializer Failed to
>>> initialize ESB due to a fatal error
>>> java.lang.LinkageError: loader constraint violation: loader (instance of
>>> org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
>>> initiated loading for a different type with name
>>> "javax/servlet/http/HttpServletResponse"
>>> at
>>> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:327)
>>> at
>>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:179)
>>> at
>>> org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:49)
>>> at
>>> org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
>>> at
>>> org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:895)
>>> at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
>>> at
>>> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:215)
>>> at
>>> org.wso2.carbon.inbound.endpoint.protocol.cxf.wsrm.InboundRMHttpListener.init(InboundRMHttpListener.java:106)
>>> at
>>> org.apache.synapse.inbound.InboundEndpoint.init(InboundEndpoint.java:58)
>>>
>>> The javax.servlet package is exported by Tomcat. Any ideas on how to
>>> resolve this?
>>>
>>> osgi> b 530
>>> tomcat-servlet-api_7.0.52.wso2v1 [530]
>>>   Id=530, Status=ACTIVE  Data
>>> Root=/home/sandamal/Programs/RM/wso2esb-4.9.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/530/data
>>>   "No registered services."
>>>   No services in use.
>>>   Exported packages
>>> javax.servlet; version="2.6.0"[exported]
>>> javax.servlet.annotation; version="2.6.0"[exported]
>>> javax.servlet.descriptor; version="2.6.0"[exported]
>>> javax.servlet.http; version="2.6.0"[exported]
>>> javax.servlet.resources; version="2.6.0"[exported]
>>> *; version="0.0.0"
>>>   No fragment bundles
>>>   Named class space
>>> tomcat-servlet-api; bundle-version="7.0.52.wso2v1"[provided]
>>>   No required bundles
>>>
>>> Thanks.
>>>
>>>
>>>
>>> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>>>
>>> Mobile - +94-77-144-9640
>>>
>>> On Thu, Apr 9, 2015 at 10:56 AM, Kasun Gajasinghe 
>>> wrote:
>>>
 Hi Kasun,

 We'll review this and apply. There are some changes required.

 On Apr 9, 2015, at 10:29 AM, Kasun Indrasiri  wrote:

 Can we please add this. We are blocked on this for adding RM-Inbound
 endpoint to ESB M8 release

 On Tue, Apr 7, 2015 at 11:21 AM, Sandamal Weerasinghe <
 sanda...@wso2.com> wrote:

> Hi all,
>
> Please find the pull request for the orbit bundle required for the
> above feature. In the orbit bundle I embedded the dependencies because 
> many
> of them don't have osgi bundles and this would ensure that the RM
> Inboundfeature would have all the dependencies it would need.
>
> https://github.com/wso2/orbit/pull/71
>
> Thanks.
>
> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>
> Mobile - +94-77-144-9640
>



 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/


>>>
>>
>
>
> --
>
> *Prabath Ariyarathna*
>
> *Associate Technical Lead*
>
> *WSO2, Inc. *
>
> *lean . enterprise . middleware *
>
>
> *Email: prabat...@wso2.com *
>
> *Blog: http://prabu-lk.blogspot.com *
>
> *Flicker : https://www.flickr.com/photos/47759189@N08
> *
>
> *Mobile: +94 77 699 4730 *
>
>
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Some configuration menu options are missing in tenant mode

2015-04-23 Thread Malaka Silva
Hi Carbon Team,

With latest carbon release BAM Server Profile link is missing in tenant
mode.

Following is the configuration given with BAM UI Component. Do we need to
do any additional this to make it visible to tenant admin?

Related jira [1]

http://products.wso2.org/carbon";>



bam_mediation_data_agent
config.menu.text

org.wso2.carbon.mediator.bam.config.ui.i18n.Resources
configure_menu
../bam-mediator-config/bam_server_profiles.jsp
region1
35
manage

../bam-mediator-config/images/activity_monitor_icon.png
false

/permissions/admin/manage




[1] https://wso2.org/jira/browse/ESBJAVA-3536

Best Regards,

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

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


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


Re: [Dev] Help with BPEL Xpath

2015-04-23 Thread Srinath Perera
Thanks Amal!! it works now.

I think problem was that outer element e.g. ns:PatientsIDs is not needed.

--Srinath

On Thu, Apr 23, 2015 at 2:50 PM, Amal Gunatilake  wrote:

> Hi Srinath,
>
> Please find the updated BPEL package attached herewith.
> Here when copying an array to another element I have used the Ode xpath
> extensions (insert-as-last-into).
>
> Please find more information under following location.
> http://ode.apache.org/extensions/xpath-extensions.html
>
> Thank you,
> Amal
>
> On Thu, Apr 23, 2015 at 10:03 AM, Srinath Perera  wrote:
>
>> I have  assign that looks like following
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> $patientDataInput.part
>>
>> 
>>
>> 
>>
>> $patientListOutput.part/ns:PatientsIDs/ns:id
>>
>> $patientDataInput.part/ns:PatientDataRequest/ns:id> to>
>>
>> 
>>
>> 
>>
>> When I run it, it give the error
>>
>> Fault Explanation
>> 
>>
>> Fault Name{
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailureFault
>> Message
>>
>> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure: 
>> R-Value expression "{OXPath10Expression 
>> $patientListOutput.part/ns:PatientsIDs/ns:id}" did not select any nodes.
>>
>> Fault Data
>>
>> No data available.
>>
>> Error Line80
>>
>> while
>>
>> patientListOutput values ( take from BPS concole) looks like following.
>>
>>
>> Value of patientListOutput 
>> 
>>
>> 
>>
>>   http://wso2.org/bps/samples/PatientData/schema"; 
>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"; 
>> xmlns:m="http://wso2.org/bps/samples/PatientData/schema";>
>>  0
>>  1
>>  2
>>   
>>
>>
>>   http://www.w3.org/2005/08/addressing"; 
>> xmlns:wsa="http://www.w3.org/2005/08/addressing"; 
>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>urn:uuid:9cf3bd7c-fbf4-48d9-bb51-804b0bff5a57
>>
>>
>>   http://www.w3.org/2005/08/addressing"; 
>> xmlns:wsa="http://www.w3.org/2005/08/addressing"; 
>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>urn:mediate
>>
>> 
>>
>> From above, it should match. I am not sure what is wrong.
>>
>> I have attached the BPEL and WSDL below.
>>
>>
>> --Srinath
>>
>>
>> p.s. if you want to run this, put proxy services in .xml file to ESB with 
>> offset 1.
>>
>> --
>> 
>> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
>> Site: http://people.apache.org/~hemapani/
>> Photos: http://www.flickr.com/photos/hemapani/
>> Phone: 0772360902
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Kind regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>



-- 

Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
Site: http://people.apache.org/~hemapani/
Photos: http://www.flickr.com/photos/hemapani/
Phone: 0772360902
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Query on the logic used to display statistics relevant to a given time range functionality.

2015-04-23 Thread Sewmini Jayaweera
Hi,

I'm working on test cases related to API manager runtime statistics. Since
I'm using a new set up I do not have data to observe how API manager
display statistics relevant to a specified time duration.

Can someone please tell me how the calculation is implemented?

Say there are two published APIs (API1 and API2) created by creator1.
 - In day one Subscriber1 got subscribed to both APIs
 - In day two  Subscriber2 got subscribed to API2

*1.* When creator1 select only day one as the duration,

*1.1* What should be observation when user goes to APIs > All statistics >
API subscriptions page?
Is it implemented like (Number of subscriptions of a particular API during
the day) / (Total number of subscriptions took place during the day) ?

*1.2. *What should be observation when user goes to My APIs > statistics >
API subscriptions page?

2. When creator1 set duration selecting both day one and two.

*2.1.* What should be observation when user goes to APIs > All statistics >
API subscriptions page?

*2.2.* What should be observation when user goes to My APIs > statistics >
API subscriptions page?

Thanks & Regards,
Sewmini

Sewmini Jayaweera
*Software Engineer - QA Team*
Mobile: +94 (0) 773 381 250
sewm...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Urgent] Source location of identity Oauth 4.3.3 components

2015-04-23 Thread Prabath Abeysekera
Johann,

We've been stuck for weeks because of the issue reported in Harshan's
previous reply. As it appears, we wouldn't be able to make MDM components
use the latest released version of carbon-identity as the other components
that the product depends on won't likely be released at least by the end of
next week. So a patch is urgently needed upon the 4.3.3 components to
continue on the MDM development tasks. Please be kind enough to provide on
by tomorrow, 24th April.

Cheers,
Prabath


On Mon, Apr 6, 2015 at 11:51 PM, Harshan Liyanage  wrote:

> Hi Nuwandi, Johann,
>
> Thanks for the support.
>
> Best Regards,
>
> Lakshitha Harshan
> Software Engineer
> Mobile: *+94724423048*
> Email: hars...@wso2.com
> Blog : http://harshanliyanage.blogspot.com/
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
> On Tue, Apr 7, 2015 at 9:15 AM, Johann Nallathamby 
> wrote:
>
>> OAuth 4.3.3 in git is found in [1]. But this is not a proper released
>> version. When I say proper release it was not tested and all. It was
>> released in order to get the git build working. If you are going to release
>> an alpha or beta, you've got to depend on a version thats going to be
>> really released for use for products. carbon-identity 4.3.4 will be the
>> proper release to depend on. But it might take couple of weeks for us to
>> release it completely.
>>
>>
>> [1]
>> https://github.com/wso2/carbon-identity/tree/release-4.3.3/components/identity/org.wso2.carbon.identity.oauth
>>
>> On Tue, Apr 7, 2015 at 7:59 AM, Harshan Liyanage 
>> wrote:
>>
>>> Hi,
>>>
>>> I have checked for the source of org.wso2.carbon.identity.oauth v 4.3.3
>>> in [1] & [2]. But I could not find those components in either Git repo or
>>> in SVN repo. But version 4.3.4 of these components are available in git
>>> release 4.3.4 branch.
>>>
>>> We have a blocker here for CDM release due to non-availability of
>>> OAuth2Service osgi service in org.wso2.carbon.identity.oauth v
>>> 4.3.3 component.
>>>
>>> Could you please provide me the source repository link?
>>>
>>> [1].
>>> https://github.com/wso2/carbon-identity/tree/release-4.3.3/components
>>> [2].
>>> https://svn.wso2.com/wso2/custom/projects/projects/carbon/turing/platform/trunk/components/identity/org.wso2.carbon.identity.oauth/
>>> [3].
>>> https://github.com/wso2/carbon-identity/tree/release-4.3.4/components/oauth
>>>
>>> Thanks,
>>>
>>> Lakshitha Harshan
>>> Software Engineer
>>> Mobile: *+94724423048*
>>> Email: hars...@wso2.com
>>> Blog : http://harshanliyanage.blogspot.com/
>>> *WSO2, Inc. :** wso2.com *
>>> lean.enterprise.middleware.
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Associate Technical Lead & Product Lead of WSO2 Identity Server
>> Integration Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com *
>>
>
>


-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Code Review Feedbacks - Fwd: Updated Invitation: RDBMS Event Table Code Review / Discussion @ Thu Apr 23, 2015 2pm - 3pm (tha...@wso2.com)

2015-04-23 Thread Tharik Kanaka
Adding Dev group


Hi All,

Following are the code review feedbacks for  RDBMS Event Table.

   - Use Execution creation exception when adding event table which is a
   runtime exception


   - Use bloom filter enabled instead to making value true


   - Load configurations in a static block instead of loading inside the
   init method


   - When there are aliases for streams, there will be a high priority for
   aliases than the name of the stream (specially when joining 2 streams


   - Remove cloning event when deletion of bloom filter (It is expensive
   and it is done in cache)


   - Partial updates (On specified properties) should be able to done
   instead of updating all the properties


   - No need to synchronise methods (In bloom filter) since Siddhi is not
   concurrently accessed.

Regards,

On Thu, Apr 23, 2015 at 10:27 AM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> This event has been changed.
> more details »
> 
> RDBMS Event Table Code Review / Discussion
> *When*
> *Changed: *Thu Apr 23, 2015 2pm – 3pm Colombo
> *Where*
> LK Trace Mezzanine Floor Board Room - Mordor Ext:1036211 (map
> 
> )
> *Video call*
> https://plus.google.com/hangouts/_/wso2.com/mohan
> 
> *Calendar*
> tha...@wso2.com
> *Who*
> •
> Mohanadarshan Vivekanandalingam - organizer
> •
> Dilini Muthumala
> •
> Sachini Jayasekara
> •
> Tharik Kanaka
> •
> Rajeev Sampath
> •
> Damith Wickramasinghe
> •
> Sriskandarajah Suhothayan
> •
> Thilini Anoratna
> •
> Ramindu De Silva
> •
> Lasantha Fernando
>
> Going?   *Yes
> 
> - Maybe
> 
> - No
> *
> more options »
> 
>
> Invitation from Google Calendar 
>
> You are receiving this email at the account tha...@wso2.com because you
> are subscribed for updated invitations on calendar tha...@wso2.com.
>
> To stop receiving these emails, please log in to
> https://www.google.com/calendar/ and change your notification settings
> for this calendar.
>







-- 

*Tharik Kanaka* | Associate Software Engineer

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

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and Merge PR

2015-04-23 Thread Jagath Sisirakumara Ariyarathne
Hi,

Please review and merge the PR [1] for Jira issue [2].

[1] - https://github.com/wso2/wso2-synapse/pull/154
[2] - https://wso2.org/jira/browse/ESBJAVA-3647

Thanks.
-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-04-23 Thread Supun Sethunga
Hi,

Requirement was to let a user upload a data file from a UI (html/jaggery),
and the backend which handles file uploading is exposed as a REST service.
Backend service method I wrote looks as follows:

@POST
> @Produces(MediaType.APPLICATION_JSON)
> @Consumes(MediaType.MULTIPART_FORM_DATA)
> public Response uploadDataset(@Multipart("datasetName") String
> datasetName,
>   @Multipart("version") String version,
>   @Multipart("description") String
> description,
>   @Multipart("sourceType") String
> sourceType,
>   @Multipart("destination") String
> destination,
>   @Multipart("sourcePath") String
> sourcePath,
>   @Multipart("dataFormat") String
> dataFormat,
>   @Multipart("file") InputStream
> inputStream) {
> . . .
> . . .
> }


The InputStream is then written to a file at the server side. This method
works fine when I call this with CURL using:

*curl -X POST -b cookies  http://localhost:9763/api/datasets
>  -H "Authorization: Basic
> YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
> datasetName=TestDataset --form version=1.0.0 --form
> description=TestDescription --form sourceType=file --form destination=file
> --form dataFormat=CSV --form
> file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form
> sourcePath=/temp*


Also works fine when I used Chrome's REST client.

However,  when I call the same service, using AJAX, the file is written
with empty content. Follow is the sample snippet.


> *var formData = new FormData();*
> *  formData.append("file", fileInput[0]['files'][0],
> 'IndiansDiabetes.csv');*
> * formData.append("datasetName", name);*
> * formData.append("version", version);*
> * formData.append("description", comments);*
> * formData.append("sourceType", dataSourceType);*
> * formData.append("sourcePath", null);*
> * formData.append("destination", dataTargetType);**
> formData.append("dataFormat", dataType);*




> *   var baseUrl = getBaseUrl(window.location.href);*
> *   $.ajax({*
> *   type: 'POST',*
> *   url: baseUrl + '/api/datasets', *
> *   contentType: "multipart/form-data",*
> *processData: false,*
> *   data: formData,**   beforeSend : function(xhr) {*
>
> *xhr.setRequestHeader("Authorization", "Basic " +
> "YWRtaW46YWRtaW4=");*
> *},*
> *success : function(res){*
> *   console.log('success');*
> *},*
> *error :  function(res){*
> *   console.log('failed');*
> *}   *
> *});** })*


One thing I noticed was, When calling the service using CURL and
REST-Client, the *@Multipart("file") InputStream inputStream* binds to
a "LoadingByteArrayOutputStream", but when calling from AJAX (or even with
a java client) it binds to a
"org.apache.cxf.attachment.DelegatingInputStream", and hence writing an
empty content to the server.

Any idea on how to overcome this?

Thanks,
Supun

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


[Dev] App Manager latest build pack - 23-04-2015

2015-04-23 Thread Dinusha Senanayaka
Hi,

Please find $subject in [1].

[1] http://builder1.us1.wso2.org/~appm/23-04-2015/

Regards,
Dinusha.

-- 
Dinusha Dilrukshi
Senior Software Engineer
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM ui integration tests

2015-04-23 Thread Kasun Gunasekara
Hi Irham,

Regarding APIMANAGER3344ScopeSpecificTokenTestCase. Select Scopes button
only shows up when an API is published with one or more scopes defined and
applied to some resources + the current application is subscribed to it.

Thank you.


Kasun Gunasekara
Software Engineering Intern - WSO2
Mobile : +94 77 6986482
Twitter  | Google+
 | LinkedIn


On Wed, Apr 22, 2015 at 12:39 PM, Irham Iqbal  wrote:

>
> Hi,
>
> Currently I am fixing the following APIM UI integration tests failures.
>
> Results :
>
> Tests run: 26, Failures: 9, Errors: 0, Skipped: 1
>
> When i go through the code i found the following lines which may causing
> the test failures.
>
> APIMANAGER3272ExternalLogoutPageTestCase
>
>
>- Getting an 404 when try to access
>https://localhost:9443/store/site/pages/login.jag.
>- In the code variable externalLogoutPage has assigned "custom logout
>page url".
>
>
> APIMANAGER3344ScopeSpecificTokenTestCase
>
>
>- Searching Select Scopes link inside My Subscriptions page in the
>store but i don't see any select scope link in that page.
>
>
> APIMANAGER3363StoreAPIConsoleWithReverseProxy
>
>
>- When click on API Console tag getting an exception in log and also
>bellowing exception under that tag - 500 : undefined
>
> https://localhost:9443/store/api-docs/admin%40apimanager3363.com/APIMANAGER3363/1.0.0
>.
>
>
> APIMANAGER3366MultipleGatewayPublishTestCase
>
>- In the publisher when adding the API in the manage state it's
>expecting input.env css selector  but it's not in that page.
>
>
> APIMANAGER3371BusinessInformationClearedWhenAPISavedButton
>
>- In the publisher when adding the API in the manage state it's try to
>click on xpath //form[@id='manage_form']/fieldset[3]/legend  but it's
>not in that page.
>
>
> APIMANAGER3412DifferentRegistryContextPath
>
>
>- In the publisher when adding the API in the design state it's try to
>find a element by id jsonform-0-elt-production_endpoints but it's not
>in that page.
>
>
> APIVersoinStatTestCase
>
>
>- In the publisher in the all API page when it's empty it's trying to
>find versionTxt by id but it's not in that page.
>
>
> TestNameLengthTestCase
>
>
>- When running this test alone it's working. Some other test/tests
>might be the reason of failure of this test case.
>
>
> YouTubeUIPagesTestCase
>
>- testAPIPage.getTestResponseBody() gives http://wso2.org/apimanager/security";>900902Missing
>CredentialsRequired OAuth credentials not
>provided. Make sure your API invocation call has a header: "Authorization:
>Bearer ACCESS_TOKEN"
>
> Thanks,
> Iqbal
> --
> Irham Iqbal
> Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>
> ___
> 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] Please review and merge PR

2015-04-23 Thread Kasun Gunasekara
Hi,

I've fixed APIMANAGER-3462 [1] and done some improvements to the scope
specific access token generation feature in API Store. Changes are
described more in PR description. Please review and merge the PR [2].

[1] https://wso2.org/jira/browse/APIMANAGER-3462
[2] https://github.com/wso2/carbon-apimgt/pull/215

Thank you.

Kasun Gunasekara
Software Engineering Intern - WSO2
Mobile : +94 77 6986482
Twitter  | Google+
 | LinkedIn

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


Re: [Dev] Admin Service in WSO2 AS for Web app deployment

2015-04-23 Thread Awanthika Senarath
ping!

On Wed, Apr 8, 2015 at 11:31 PM, Awanthika Senarath 
wrote:

> Hi KasunG,
>
> Is it possible to get $subject done? since this is a requirement for
> enabling exploded web app deployment in AS from dev stduio.
>
> thanks and regards
> Awanthika
>
> On Mon, Apr 6, 2015 at 6:58 PM, KasunG Gajasinghe  wrote:
>
>> Hi Awanthika,
>>
>> I don't think the admin service supports it. We will have to improve it
>> depending on this requirement.
>>
>> On Mon, Apr 6, 2015 at 6:33 PM, Awanthika Senarath 
>> wrote:
>>
>>> Hi,
>>>
>>> Could you please verify whether the exploded web app deployment is
>>> possible via the said admin service?
>>>
>>> regards
>>> Awanthika
>>>
>>> On Mon, Apr 6, 2015 at 11:36 AM, Awanthika Senarath 
>>> wrote:
>>>
 Thanks KasunG,

 If the admin service supports war deployment in exploded format, it
 should be possible for us to directly call the admin service via Dev Studio
 and handle this, isn't it?

 I will have to study the admin service and see how it supports this.

 regards
 Awanthika

 On Mon, Apr 6, 2015 at 11:27 AM, Kasun Gajasinghe 
 wrote:

> It should be WebappAdmin.
>
> AS supports deploying exploded webapps. But the UI doesn't have the
> capability to upload webapps in exploded format since it's a folder
> structure. How do you propose to do it?
>
> On Apr 6, 2015, at 10:57 AM, Awanthika Senarath 
> wrote:
>
> Hi all,
>
> I need to find $subject to develop the war-deploy facility in WSO2
> developer studio.
>
> I could observe that for the car-deployment we are using the Admin
> Service "CarbonAppUploader".
>
> By listing all the Admin services available in WSO2 AS I got the list
> at [1], Can someone point out to me the Admin Service used for war file
> deployment in AS?
>
> Further is it possible to do exploded web app Deployment in AS? by
> admin console uploading I observed that we are deploying the compressed 
> war
> file. The ultimate goal of Developer Studio is to enable web app 
> deployment
> in Carbon server in exploded format. Hence if such a service is not
> available ATM, how should we proceed with this? IMO to enable this we have
> two options.
>
> [1] implement this completely on Dev Studio - as a file transfer
>
> [2] get back-end support from Carbon and facilitate this via dev
> studio using an admin service
>
>
> ** Exploded war deployment : deployment of the war file in extracted
> format. Without deploying the .war file this copies the  folder
> directly into the webapps folder in the server.
>
>
> Appreciate your input
>
>
> [1]
> Admin services deployed on this server:
> 1. ProvisioningAdminService, ProvisioningAdminService,
> https://10.100.5.110:9443/services/ProvisioningAdminService/
> 2. CarbonAppUploader, CarbonAppUploader,
> https://10.100.5.110:9443/services/CarbonAppUploader/
> 3. OperationAdmin, OperationAdmin,
> https://10.100.5.110:9443/services/OperationAdmin/
> 4. JaggeryAppAdmin, JaggeryAppAdmin,
> https://10.100.5.110:9443/services/JaggeryAppAdmin/
> 5. JaxwsWebappAdmin, JaxwsWebappAdmin,
> https://10.100.5.110:9443/services/JaxwsWebappAdmin/
> 6. StatisticsAdmin, StatisticsAdmin,
> https://10.100.5.110:9443/services/StatisticsAdmin/
> 7. LoggedUserInfoAdmin, LoggedUserInfoAdmin,
> https://10.100.5.110:9443/services/LoggedUserInfoAdmin/
> 8. WebappAdmin, WebappAdmin,
> https://10.100.5.110:9443/services/WebappAdmin/
> 9. TopicManagerAdminService, TopicManagerAdminService,
> https://10.100.5.110:9443/services/TopicManagerAdminService/
> 10. ApplicationAdmin, ApplicationAdmin,
> https://10.100.5.110:9443/services/ApplicationAdmin/
> 11. NDataSourceAdmin, NDataSourceAdmin,
> https://10.100.5.110:9443/services/NDataSourceAdmin/
> 12. ServiceGroupAdmin, ServiceGroupAdmin,
> https://10.100.5.110:9443/services/ServiceGroupAdmin/
> 13. DataServiceFileUploader, DataServiceFileUploader,
> https://10.100.5.110:9443/services/DataServiceFileUploader/
> 14. CustomMeteringService, CustomMeteringService,
> https://10.100.5.110:9443/services/CustomMeteringService/
> 15. STSAdminService, STSAdminService,
> https://10.100.5.110:9443/services/STSAdminService/
> 16. RegistryAdminService, RegistryAdminService,
> https://10.100.5.110:9443/services/RegistryAdminService/
> 17. JavaScriptStubGeneratorService, JavaScriptStubGeneratorService,
> https://10.100.5.110:9443/services/JavaScriptStubGeneratorService/
> http://10.100.5.110:9763/services/JavaScriptStubGeneratorService/
> local:///services/JavaScriptStubGeneratorService/
> 18. JSServiceUploader, JSServiceUploader,
> https://10.100.5.110:9443/services/JSServiceUploader/
> 19. FileDownloadService, FileDownload

[Dev] Please merge the PR with improved logging for singed jwt authenticator

2015-04-23 Thread Danushka Fernando
Hi
Please $subject for [1]. I improved some logs to include the user name and
tenant domain to make it easier to do investigations.

[1] https://github.com/wso2/carbon-identity/pull/216

Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Create a repository target for carbon-analytics-commons

2015-04-23 Thread Sriskandarajah Suhothayan
$Subject please, to release carbon-analytics-commons

Regards
Suho

-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
 *WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] App Manager 1.0 - release test status update

2015-04-23 Thread Asanthi Kulasinghe
*Update for today*

*Covered areas : *
1. Enterprise Subscription
2. Statistics publishing and verification of  related reported and fixed
issues (In progress)
3. Nuwan is working on the long running tests


*Reported Issues:*

https://wso2.org/jira/browse/APPM-813
https://wso2.org/jira/browse/APPM-812
https://wso2.org/jira/browse/APPM-811
https://wso2.org/jira/browse/APPM-810
https://wso2.org/jira/browse/APPM-809
https://wso2.org/jira/browse/APPM-808
https://wso2.org/jira/browse/APPM-807
https://wso2.org/jira/browse/APPM-806
https://wso2.org/jira/browse/APPM-804
https://wso2.org/jira/browse/APPM-803
https://wso2.org/jira/browse/APPM-802
https://wso2.org/jira/browse/DOCUMENTATION-1654
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Code Review Feedbacks - Fwd: Updated Invitation: RDBMS Event Table Code Review / Discussion @ Thu Apr 23, 2015 2pm - 3pm (tha...@wso2.com)

2015-04-23 Thread Mohanadarshan Vivekanandalingam
On Thu, Apr 23, 2015 at 3:43 PM, Tharik Kanaka  wrote:

> Adding Dev group
>
>
> Hi All,
>
> Following are the code review feedbacks for  RDBMS Event Table.
>
>- Use Execution creation exception when adding event table which is a
>runtime exception
>
>
>- Use bloom filter enabled instead to making value true
>
>
>- Load configurations in a static block instead of loading inside the
>init method
>
>
>- When there are aliases for streams, there will be a high priority
>for aliases than the name of the stream (specially when joining 2 streams
>
>
>- Remove cloning event when deletion of bloom filter (It is expensive
>and it is done in cache)
>
>
>- Partial updates (On specified properties) should be able to done
>instead of updating all the properties
>
>
>- No need to synchronise methods (In bloom filter) since Siddhi is not
>concurrently accessed.
>
> Above fixes and suggestions are incorporated..

Thanks,
Mohan



> Regards,
>
> On Thu, Apr 23, 2015 at 10:27 AM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>> This event has been changed.
>> more details »
>> 
>> RDBMS Event Table Code Review / Discussion
>> *When*
>> *Changed: *Thu Apr 23, 2015 2pm – 3pm Colombo
>> *Where*
>> LK Trace Mezzanine Floor Board Room - Mordor Ext:1036211 (map
>> 
>> )
>> *Video call*
>> https://plus.google.com/hangouts/_/wso2.com/mohan
>> 
>> *Calendar*
>> tha...@wso2.com
>> *Who*
>> •
>> Mohanadarshan Vivekanandalingam - organizer
>> •
>> Dilini Muthumala
>> •
>> Sachini Jayasekara
>> •
>> Tharik Kanaka
>> •
>> Rajeev Sampath
>> •
>> Damith Wickramasinghe
>> •
>> Sriskandarajah Suhothayan
>> •
>> Thilini Anoratna
>> •
>> Ramindu De Silva
>> •
>> Lasantha Fernando
>>
>> Going?   *Yes
>> 
>> - Maybe
>> 
>> - No
>> *
>> more options »
>> 
>>
>> Invitation from Google Calendar 
>>
>> You are receiving this email at the account tha...@wso2.com because you
>> are subscribed for updated invitations on calendar tha...@wso2.com.
>>
>> To stop receiving these emails, please log in to
>> https://www.google.com/calendar/ and change your notification settings
>> for this calendar.
>>
>
>
>
>
>
>
>
> --
>
> *Tharik Kanaka* | Associate Software Engineer
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Email: tha...@wso2.com | Web: www.wso2.com
>



-- 
*V. Mohanadarshan*
*Software Engineer,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

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


[Dev] Please review and merge PR for APPM-791

2015-04-23 Thread Sajith Abeywardhana
Hi,

Please review and merge PR[1], PR[2] for APPM-791[3]

[1]. https://github.com/wso2/carbon-appmgt/pull/36
[2]. https://github.com/wso2/product-app-manager/pull/204
[3]. https://wso2.org/jira/browse/APPM-791


*Sajith Abeywardhana* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka.
Mobile: +94772260485
Email: saji...@wso2.com  | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-04-23 Thread Malith Munasinghe
Hi Supun!

Try Making contentType: false,

Regards,
Malith.

On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga  wrote:

> Hi,
>
> Requirement was to let a user upload a data file from a UI (html/jaggery),
> and the backend which handles file uploading is exposed as a REST service.
> Backend service method I wrote looks as follows:
>
> @POST
>> @Produces(MediaType.APPLICATION_JSON)
>> @Consumes(MediaType.MULTIPART_FORM_DATA)
>> public Response uploadDataset(@Multipart("datasetName") String
>> datasetName,
>>   @Multipart("version") String version,
>>   @Multipart("description") String
>> description,
>>   @Multipart("sourceType") String
>> sourceType,
>>   @Multipart("destination") String
>> destination,
>>   @Multipart("sourcePath") String
>> sourcePath,
>>   @Multipart("dataFormat") String
>> dataFormat,
>>   @Multipart("file") InputStream
>> inputStream) {
>> . . .
>> . . .
>> }
>
>
> The InputStream is then written to a file at the server side. This method
> works fine when I call this with CURL using:
>
> *curl -X POST -b cookies  http://localhost:9763/api/datasets
>>  -H "Authorization: Basic
>> YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
>> datasetName=TestDataset --form version=1.0.0 --form
>> description=TestDescription --form sourceType=file --form destination=file
>> --form dataFormat=CSV --form
>> file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form
>> sourcePath=/temp*
>
>
> Also works fine when I used Chrome's REST client.
>
> However,  when I call the same service, using AJAX, the file is written
> with empty content. Follow is the sample snippet.
>
>
>> *var formData = new FormData();*
>> *  formData.append("file", fileInput[0]['files'][0],
>> 'IndiansDiabetes.csv');*
>> * formData.append("datasetName", name);*
>> * formData.append("version", version);*
>> * formData.append("description", comments);*
>> * formData.append("sourceType", dataSourceType);*
>> * formData.append("sourcePath", null);*
>> * formData.append("destination", dataTargetType);**
>> formData.append("dataFormat", dataType);*
>
>
>
>
>> *   var baseUrl = getBaseUrl(window.location.href);*
>> *   $.ajax({*
>> *   type: 'POST',*
>> *   url: baseUrl + '/api/datasets', *
>> *   contentType: "multipart/form-data",*
>> *processData: false,*
>> *   data: formData,**   beforeSend : function(xhr) {*
>>
>> *xhr.setRequestHeader("Authorization", "Basic " +
>> "YWRtaW46YWRtaW4=");*
>> *},*
>> *success : function(res){*
>> *   console.log('success');*
>> *},*
>> *error :  function(res){*
>> *   console.log('failed');*
>> *}   *
>> *});** })*
>
>
> One thing I noticed was, When calling the service using CURL and
> REST-Client, the *@Multipart("file") InputStream inputStream* binds to
> a "LoadingByteArrayOutputStream", but when calling from AJAX (or even with
> a java client) it binds to a
> "org.apache.cxf.attachment.DelegatingInputStream", and hence writing an
> empty content to the server.
>
> Any idea on how to overcome this?
>
> Thanks,
> Supun
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-04-23 Thread Thilini Cooray
Hi Supun,

[1] also suggests to make contentType false.

[1]
http://stackoverflow.com/questions/12831680/jquery-ajax-multipart-form-data-not-sending-data

Thanks.

On Fri, Apr 24, 2015 at 8:44 AM, Malith Munasinghe  wrote:

> Hi Supun!
>
> Try Making contentType: false,
>
> Regards,
> Malith.
>
> On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga  wrote:
>
>> Hi,
>>
>> Requirement was to let a user upload a data file from a UI
>> (html/jaggery), and the backend which handles file uploading is exposed as
>> a REST service. Backend service method I wrote looks as follows:
>>
>> @POST
>>> @Produces(MediaType.APPLICATION_JSON)
>>> @Consumes(MediaType.MULTIPART_FORM_DATA)
>>> public Response uploadDataset(@Multipart("datasetName") String
>>> datasetName,
>>>   @Multipart("version") String version,
>>>   @Multipart("description") String
>>> description,
>>>   @Multipart("sourceType") String
>>> sourceType,
>>>   @Multipart("destination") String
>>> destination,
>>>   @Multipart("sourcePath") String
>>> sourcePath,
>>>   @Multipart("dataFormat") String
>>> dataFormat,
>>>   @Multipart("file") InputStream
>>> inputStream) {
>>> . . .
>>> . . .
>>> }
>>
>>
>> The InputStream is then written to a file at the server side. This method
>> works fine when I call this with CURL using:
>>
>> *curl -X POST -b cookies  http://localhost:9763/api/datasets
>>>  -H "Authorization: Basic
>>> YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
>>> datasetName=TestDataset --form version=1.0.0 --form
>>> description=TestDescription --form sourceType=file --form destination=file
>>> --form dataFormat=CSV --form
>>> file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form
>>> sourcePath=/temp*
>>
>>
>> Also works fine when I used Chrome's REST client.
>>
>> However,  when I call the same service, using AJAX, the file is written
>> with empty content. Follow is the sample snippet.
>>
>>
>>> *var formData = new FormData();*
>>> *  formData.append("file", fileInput[0]['files'][0],
>>> 'IndiansDiabetes.csv');*
>>> * formData.append("datasetName", name);*
>>> * formData.append("version", version);*
>>> * formData.append("description", comments);*
>>> * formData.append("sourceType", dataSourceType);*
>>> * formData.append("sourcePath", null);*
>>> * formData.append("destination", dataTargetType);**
>>> formData.append("dataFormat", dataType);*
>>
>>
>>
>>
>>> *   var baseUrl = getBaseUrl(window.location.href);*
>>> *   $.ajax({*
>>> *   type: 'POST',*
>>> *   url: baseUrl + '/api/datasets', *
>>> *   contentType: "multipart/form-data",*
>>> *processData: false,*
>>> *   data: formData,**   beforeSend : function(xhr) {*
>>>
>>> *xhr.setRequestHeader("Authorization", "Basic " +
>>> "YWRtaW46YWRtaW4=");*
>>> *},*
>>> *success : function(res){*
>>> *   console.log('success');*
>>> *},*
>>> *error :  function(res){*
>>> *   console.log('failed');*
>>> *}   *
>>> *});** })*
>>
>>
>> One thing I noticed was, When calling the service using CURL and
>> REST-Client, the *@Multipart("file") InputStream inputStream* binds to
>> a "LoadingByteArrayOutputStream", but when calling from AJAX (or even with
>> a java client) it binds to a
>> "org.apache.cxf.attachment.DelegatingInputStream", and hence writing an
>> empty content to the server.
>>
>> Any idea on how to overcome this?
>>
>> Thanks,
>> Supun
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> http://wso2.com/
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Malith Munasinghe | Software Engineer
> M: +94 (071) 9401122
> E: mali...@wso2.com
> W: http://wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : thili...@wso2.com

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


Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-04-23 Thread Supun Sethunga
Hi Malith/Thilini,

Thanks for the suggestion. I had tried that. Didn't work :/

Regards,
Supun

On Fri, Apr 24, 2015 at 8:45 AM, Thilini Cooray  wrote:

> Hi Supun,
>
> [1] also suggests to make contentType false.
>
> [1]
> http://stackoverflow.com/questions/12831680/jquery-ajax-multipart-form-data-not-sending-data
>
> Thanks.
>
> On Fri, Apr 24, 2015 at 8:44 AM, Malith Munasinghe 
> wrote:
>
>> Hi Supun!
>>
>> Try Making contentType: false,
>>
>> Regards,
>> Malith.
>>
>> On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga  wrote:
>>
>>> Hi,
>>>
>>> Requirement was to let a user upload a data file from a UI
>>> (html/jaggery), and the backend which handles file uploading is exposed as
>>> a REST service. Backend service method I wrote looks as follows:
>>>
>>> @POST
 @Produces(MediaType.APPLICATION_JSON)
 @Consumes(MediaType.MULTIPART_FORM_DATA)
 public Response uploadDataset(@Multipart("datasetName") String
 datasetName,
   @Multipart("version") String version,
   @Multipart("description") String
 description,
   @Multipart("sourceType") String
 sourceType,
   @Multipart("destination") String
 destination,
   @Multipart("sourcePath") String
 sourcePath,
   @Multipart("dataFormat") String
 dataFormat,
   @Multipart("file") InputStream
 inputStream) {
 . . .
 . . .
 }
>>>
>>>
>>> The InputStream is then written to a file at the server side. This
>>> method works fine when I call this with CURL using:
>>>
>>> *curl -X POST -b cookies  http://localhost:9763/api/datasets
  -H "Authorization: Basic
 YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
 datasetName=TestDataset --form version=1.0.0 --form
 description=TestDescription --form sourceType=file --form destination=file
 --form dataFormat=CSV --form
 file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form
 sourcePath=/temp*
>>>
>>>
>>> Also works fine when I used Chrome's REST client.
>>>
>>> However,  when I call the same service, using AJAX, the file is written
>>> with empty content. Follow is the sample snippet.
>>>
>>>
 *var formData = new FormData();*
 *  formData.append("file", fileInput[0]['files'][0],
 'IndiansDiabetes.csv');*
 * formData.append("datasetName", name);*
 * formData.append("version", version);*
 * formData.append("description", comments);*
 * formData.append("sourceType", dataSourceType);*
 * formData.append("sourcePath", null);*
 * formData.append("destination", dataTargetType);**
 formData.append("dataFormat", dataType);*
>>>
>>>
>>>
>>>
 *   var baseUrl = getBaseUrl(window.location.href);*
 *   $.ajax({*
 *   type: 'POST',*
 *   url: baseUrl + '/api/datasets', *
 *   contentType: "multipart/form-data",*
 *processData: false,*
 *   data: formData,**   beforeSend : function(xhr) {*

 *xhr.setRequestHeader("Authorization", "Basic " +
 "YWRtaW46YWRtaW4=");*
 *},*
 *success : function(res){*
 *   console.log('success');*
 *},*
 *error :  function(res){*
 *   console.log('failed');*
 *}   *
 *});** })*
>>>
>>>
>>> One thing I noticed was, When calling the service using CURL and
>>> REST-Client, the *@Multipart("file") InputStream inputStream* binds to
>>> a "LoadingByteArrayOutputStream", but when calling from AJAX (or even with
>>> a java client) it binds to a
>>> "org.apache.cxf.attachment.DelegatingInputStream", and hence writing an
>>> empty content to the server.
>>>
>>> Any idea on how to overcome this?
>>>
>>> Thanks,
>>> Supun
>>>
>>> --
>>> *Supun Sethunga*
>>> Software Engineer
>>> WSO2, Inc.
>>> http://wso2.com/
>>> lean | enterprise | middleware
>>> Mobile : +94 716546324
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Malith Munasinghe | Software Engineer
>> M: +94 (071) 9401122
>> E: mali...@wso2.com
>> W: http://wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
> E-mail : thili...@wso2.com
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>



-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___

[Dev] Carbon-mediation MQTT inbound

2015-04-23 Thread Elilmatha Sivanesan
Hi,

I'm working on MQTT Inbound on PR
https://github.com/wso2-dev/carbon-mediation/pull/105 after merging this
code manually with the carbon-mediation code base now I get error like this.

[ERROR] Failed to execute goal on project org.wso2.carbon.inbound.endpoint:
Could not resolve dependencies for project
org.wso2.carbon.mediation:org.wso2.carbon.inbound.endpoint:bundle:4.3.3-SNAPSHOT:
Failure to find
org.eclipse.paho:org.eclipse.paho.client.mqttv3:jar:0.4.0.wso2v1 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 ->


org.eclipse.paho
org.eclipse.paho.client.mqttv3
0.4.0.wso2v1


Can any one suggest me with correct version to use

Thank you.
-- 
*S.Elilmatha*
Associate  Software Engineer,

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-04-23 Thread Malith Munasinghe
Hi Supun,

Can you check the browser version of yours ? As of [1] FormData emulation
for older browser (Below Safari 5 / Firefox 4) you might have to change it
to the way mentioned in top Ranked answer.

[1]
http://stackoverflow.com/questions/5392344/sending-multipart-formdata-with-jquery-ajax

On Fri, Apr 24, 2015 at 9:02 AM, Supun Sethunga  wrote:

> Hi Malith/Thilini,
>
> Thanks for the suggestion. I had tried that. Didn't work :/
>
> Regards,
> Supun
>
> On Fri, Apr 24, 2015 at 8:45 AM, Thilini Cooray  wrote:
>
>> Hi Supun,
>>
>> [1] also suggests to make contentType false.
>>
>> [1]
>> http://stackoverflow.com/questions/12831680/jquery-ajax-multipart-form-data-not-sending-data
>>
>> Thanks.
>>
>> On Fri, Apr 24, 2015 at 8:44 AM, Malith Munasinghe 
>> wrote:
>>
>>> Hi Supun!
>>>
>>> Try Making contentType: false,
>>>
>>> Regards,
>>> Malith.
>>>
>>> On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga  wrote:
>>>
 Hi,

 Requirement was to let a user upload a data file from a UI
 (html/jaggery), and the backend which handles file uploading is exposed as
 a REST service. Backend service method I wrote looks as follows:

 @POST
> @Produces(MediaType.APPLICATION_JSON)
> @Consumes(MediaType.MULTIPART_FORM_DATA)
> public Response uploadDataset(@Multipart("datasetName") String
> datasetName,
>   @Multipart("version") String version,
>   @Multipart("description") String
> description,
>   @Multipart("sourceType") String
> sourceType,
>   @Multipart("destination") String
> destination,
>   @Multipart("sourcePath") String
> sourcePath,
>   @Multipart("dataFormat") String
> dataFormat,
>   @Multipart("file") InputStream
> inputStream) {
> . . .
> . . .
> }


 The InputStream is then written to a file at the server side. This
 method works fine when I call this with CURL using:

 *curl -X POST -b cookies  http://localhost:9763/api/datasets
>  -H "Authorization: Basic
> YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
> datasetName=TestDataset --form version=1.0.0 --form
> description=TestDescription --form sourceType=file --form destination=file
> --form dataFormat=CSV --form
> file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form
> sourcePath=/temp*


 Also works fine when I used Chrome's REST client.

 However,  when I call the same service, using AJAX, the file is written
 with empty content. Follow is the sample snippet.


> *var formData = new FormData();*
> *  formData.append("file", fileInput[0]['files'][0],
> 'IndiansDiabetes.csv');*
> * formData.append("datasetName", name);*
> * formData.append("version", version);*
> * formData.append("description", comments);*
> * formData.append("sourceType", dataSourceType);*
> * formData.append("sourcePath", null);*
> * formData.append("destination", dataTargetType);**
> formData.append("dataFormat", dataType);*




> *   var baseUrl = getBaseUrl(window.location.href);*
> *   $.ajax({*
> *   type: 'POST',*
> *   url: baseUrl + '/api/datasets', *
> *   contentType: "multipart/form-data",*
> *processData: false,*
> *   data: formData,**   beforeSend : function(xhr) {*
>
> *xhr.setRequestHeader("Authorization", "Basic " +
> "YWRtaW46YWRtaW4=");*
> *},*
> *success : function(res){*
> *   console.log('success');*
> *},*
> *error :  function(res){*
> *   console.log('failed');*
> *}   *
> *});** })*


 One thing I noticed was, When calling the service using CURL and
 REST-Client, the *@Multipart("file") InputStream inputStream* binds to
 a "LoadingByteArrayOutputStream", but when calling from AJAX (or even with
 a java client) it binds to a
 "org.apache.cxf.attachment.DelegatingInputStream", and hence writing an
 empty content to the server.

 Any idea on how to overcome this?

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 http://wso2.com/
 lean | enterprise | middleware
 Mobile : +94 716546324

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


>>>
>>>
>>> --
>>> Malith Munasinghe | Software Engineer
>>> M: +94 (071) 9401122
>>> E: mali...@wso2.com
>>> W: http://wso2.com
>>>
>>> _

Re: [Dev] Carbon-mediation MQTT inbound

2015-04-23 Thread Tharik Kanaka
Hi Elilmatha,

Did you try by changing version to 0.4.0 and building it? because in nexus
directory there is mqtt client 4.0.0 [1]

[1]
http://maven.wso2.org/nexus/content/groups/wso2-public/org/eclipse/paho/mqtt-client/

Regards,

On Fri, Apr 24, 2015 at 9:14 AM, Elilmatha Sivanesan 
wrote:

> Hi,
>
> I'm working on MQTT Inbound on PR
> https://github.com/wso2-dev/carbon-mediation/pull/105 after merging this
> code manually with the carbon-mediation code base now I get error like this.
>
> [ERROR] Failed to execute goal on project
> org.wso2.carbon.inbound.endpoint: Could not resolve dependencies for
> project
> org.wso2.carbon.mediation:org.wso2.carbon.inbound.endpoint:bundle:4.3.3-SNAPSHOT:
> Failure to find
> org.eclipse.paho:org.eclipse.paho.client.mqttv3:jar:0.4.0.wso2v1 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 ->
>
> 
> org.eclipse.paho
> org.eclipse.paho.client.mqttv3
> 0.4.0.wso2v1
> 
>
> Can any one suggest me with correct version to use
>
> Thank you.
> --
> *S.Elilmatha*
> Associate  Software Engineer,
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile 0779842221.
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Tharik Kanaka* | Associate Software Engineer

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

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-04-23 Thread Supun Sethunga
Hi Malith,

Using the latest Chrome/Firefox versions. This isn't working when called
from a java-client either.

Catch here is, rest of the form data get submitted correctly. AFAIU problem
is in the way the file is streamed to the server (the way it gets attached
to the request).

Thanks,
Supun

On Fri, Apr 24, 2015 at 9:14 AM, Malith Munasinghe  wrote:

> Hi Supun,
>
> Can you check the browser version of yours ? As of [1] FormData emulation
> for older browser (Below Safari 5 / Firefox 4) you might have to change it
> to the way mentioned in top Ranked answer.
>
> [1]
> http://stackoverflow.com/questions/5392344/sending-multipart-formdata-with-jquery-ajax
>
> On Fri, Apr 24, 2015 at 9:02 AM, Supun Sethunga  wrote:
>
>> Hi Malith/Thilini,
>>
>> Thanks for the suggestion. I had tried that. Didn't work :/
>>
>> Regards,
>> Supun
>>
>> On Fri, Apr 24, 2015 at 8:45 AM, Thilini Cooray 
>> wrote:
>>
>>> Hi Supun,
>>>
>>> [1] also suggests to make contentType false.
>>>
>>> [1]
>>> http://stackoverflow.com/questions/12831680/jquery-ajax-multipart-form-data-not-sending-data
>>>
>>> Thanks.
>>>
>>> On Fri, Apr 24, 2015 at 8:44 AM, Malith Munasinghe 
>>> wrote:
>>>
 Hi Supun!

 Try Making contentType: false,

 Regards,
 Malith.

 On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga 
 wrote:

> Hi,
>
> Requirement was to let a user upload a data file from a UI
> (html/jaggery), and the backend which handles file uploading is exposed as
> a REST service. Backend service method I wrote looks as follows:
>
> @POST
>> @Produces(MediaType.APPLICATION_JSON)
>> @Consumes(MediaType.MULTIPART_FORM_DATA)
>> public Response uploadDataset(@Multipart("datasetName") String
>> datasetName,
>>   @Multipart("version") String
>> version,
>>   @Multipart("description") String
>> description,
>>   @Multipart("sourceType") String
>> sourceType,
>>   @Multipart("destination") String
>> destination,
>>   @Multipart("sourcePath") String
>> sourcePath,
>>   @Multipart("dataFormat") String
>> dataFormat,
>>   @Multipart("file") InputStream
>> inputStream) {
>> . . .
>> . . .
>> }
>
>
> The InputStream is then written to a file at the server side. This
> method works fine when I call this with CURL using:
>
> *curl -X POST -b cookies  http://localhost:9763/api/datasets
>>  -H "Authorization: Basic
>> YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
>> datasetName=TestDataset --form version=1.0.0 --form
>> description=TestDescription --form sourceType=file --form 
>> destination=file
>> --form dataFormat=CSV --form
>> file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form
>> sourcePath=/temp*
>
>
> Also works fine when I used Chrome's REST client.
>
> However,  when I call the same service, using AJAX, the file is
> written with empty content. Follow is the sample snippet.
>
>
>> *var formData = new FormData();*
>> *  formData.append("file", fileInput[0]['files'][0],
>> 'IndiansDiabetes.csv');*
>> * formData.append("datasetName", name);*
>> * formData.append("version", version);*
>> * formData.append("description", comments);*
>> * formData.append("sourceType", dataSourceType);*
>> * formData.append("sourcePath", null);*
>> * formData.append("destination", dataTargetType);**
>> formData.append("dataFormat", dataType);*
>
>
>
>
>> *   var baseUrl = getBaseUrl(window.location.href);*
>> *   $.ajax({*
>> *   type: 'POST',*
>> *   url: baseUrl + '/api/datasets', *
>> *   contentType: "multipart/form-data",*
>> *processData: false,*
>> *   data: formData,**   beforeSend : function(xhr) {*
>>
>> *xhr.setRequestHeader("Authorization", "Basic " +
>> "YWRtaW46YWRtaW4=");*
>> *},*
>> *success : function(res){*
>> *   console.log('success');*
>> *},*
>> *error :  function(res){*
>> *   console.log('failed');*
>> *}   *
>> *});** })*
>
>
> One thing I noticed was, When calling the service using CURL and
> REST-Client, the *@Multipart("file") InputStream inputStream* binds
> to a "LoadingByteArrayOutputStream", but when calling from AJAX (or even
> with a java client) it binds to a
> "org.apache.cxf.attachment.DelegatingInputStream", and hence writing an
> empty content to the server.
>
> A

Re: [Dev] [DEV] ESB Elements are removed from Proxy Services UI

2015-04-23 Thread Malaka Silva
Hi Carbon Team,

Any update?

On Wed, Apr 22, 2015 at 9:58 PM, Malaka Silva  wrote:

> Jira added
>
> https://wso2.org/jira/browse/CARBON-15233
>
> On Wed, Apr 22, 2015 at 2:25 PM, Malaka Silva  wrote:
>
>> Hi Carbon Team,
>>
>> Some elements are missing in proxy details view.
>>
>> I guess this was result when removing QOS from service_info.jsp page.
>>
>> Options like active/inactive, edit etc are missing in the new layout.
>>
>> Can you please check and the required options?
>>
>> Reported with ESB Jira in [1]. Related code base [2]
>>
>>
>>
>> 4.8.1 -> [image: Inline image 1] 4.9.0 ->   [image: Inline image
>> 2]
>>
>>
>>
>> [1] https://wso2.org/jira/browse/ESBJAVA-3538
>> [2]
>> https://github.com/wso2/carbon-deployment/tree/master/components/service-mgt/axis2-service-mgt
>>
>> 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.
>>
>
>
>
> --
>
> 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.
>



-- 

Best Regards,

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

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


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


Re: [Dev] [Urgent] Source location of identity Oauth 4.3.3 components

2015-04-23 Thread Johann Nallathamby
Hi Prabath,

Did you test 4.3.4 ? AFAIK it should work in this version.

Thanks.

On Thu, Apr 23, 2015 at 3:40 PM, Prabath Abeysekera 
wrote:

> Johann,
>
> We've been stuck for weeks because of the issue reported in Harshan's
> previous reply. As it appears, we wouldn't be able to make MDM components
> use the latest released version of carbon-identity as the other components
> that the product depends on won't likely be released at least by the end of
> next week. So a patch is urgently needed upon the 4.3.3 components to
> continue on the MDM development tasks. Please be kind enough to provide on
> by tomorrow, 24th April.
>
> Cheers,
> Prabath
>
>
> On Mon, Apr 6, 2015 at 11:51 PM, Harshan Liyanage 
> wrote:
>
>> Hi Nuwandi, Johann,
>>
>> Thanks for the support.
>>
>> Best Regards,
>>
>> Lakshitha Harshan
>> Software Engineer
>> Mobile: *+94724423048*
>> Email: hars...@wso2.com
>> Blog : http://harshanliyanage.blogspot.com/
>> *WSO2, Inc. :** wso2.com *
>> lean.enterprise.middleware.
>>
>> On Tue, Apr 7, 2015 at 9:15 AM, Johann Nallathamby 
>> wrote:
>>
>>> OAuth 4.3.3 in git is found in [1]. But this is not a proper released
>>> version. When I say proper release it was not tested and all. It was
>>> released in order to get the git build working. If you are going to release
>>> an alpha or beta, you've got to depend on a version thats going to be
>>> really released for use for products. carbon-identity 4.3.4 will be the
>>> proper release to depend on. But it might take couple of weeks for us to
>>> release it completely.
>>>
>>>
>>> [1]
>>> https://github.com/wso2/carbon-identity/tree/release-4.3.3/components/identity/org.wso2.carbon.identity.oauth
>>>
>>> On Tue, Apr 7, 2015 at 7:59 AM, Harshan Liyanage 
>>> wrote:
>>>
 Hi,

 I have checked for the source of org.wso2.carbon.identity.oauth v 4.3.3
 in [1] & [2]. But I could not find those components in either Git repo or
 in SVN repo. But version 4.3.4 of these components are available in git
 release 4.3.4 branch.

 We have a blocker here for CDM release due to non-availability of
 OAuth2Service osgi service in org.wso2.carbon.identity.oauth v
 4.3.3 component.

 Could you please provide me the source repository link?

 [1].
 https://github.com/wso2/carbon-identity/tree/release-4.3.3/components
 [2].
 https://svn.wso2.com/wso2/custom/projects/projects/carbon/turing/platform/trunk/components/identity/org.wso2.carbon.identity.oauth/
 [3].
 https://github.com/wso2/carbon-identity/tree/release-4.3.4/components/oauth

 Thanks,

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

>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> *Johann Dilantha Nallathamby*
>>> Associate Technical Lead & Product Lead of WSO2 Identity Server
>>> Integration Technologies Team
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - *+9476950*
>>> Blog - *http://nallaa.wordpress.com *
>>>
>>
>>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



-- 
Thanks & Regards,

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

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


Re: [Dev] [DEV] ESB Elements are removed from Proxy Services UI

2015-04-23 Thread Supun Malinga
Hi Malaka,

Can you check if QoS features are added correctly ?.
https://github.com/wso2/carbon-qos

thanks,

On Fri, Apr 24, 2015 at 9:35 AM, Malaka Silva  wrote:

> Hi Carbon Team,
>
> Any update?
>
> On Wed, Apr 22, 2015 at 9:58 PM, Malaka Silva  wrote:
>
>> Jira added
>>
>> https://wso2.org/jira/browse/CARBON-15233
>>
>> On Wed, Apr 22, 2015 at 2:25 PM, Malaka Silva  wrote:
>>
>>> Hi Carbon Team,
>>>
>>> Some elements are missing in proxy details view.
>>>
>>> I guess this was result when removing QOS from service_info.jsp page.
>>>
>>> Options like active/inactive, edit etc are missing in the new layout.
>>>
>>> Can you please check and the required options?
>>>
>>> Reported with ESB Jira in [1]. Related code base [2]
>>>
>>>
>>>
>>> 4.8.1 -> [image: Inline image 1] 4.9.0 ->   [image: Inline
>>> image 2]
>>>
>>>
>>>
>>> [1] https://wso2.org/jira/browse/ESBJAVA-3538
>>> [2]
>>> https://github.com/wso2/carbon-deployment/tree/master/components/service-mgt/axis2-service-mgt
>>>
>>> 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.
>>>
>>
>>
>>
>> --
>>
>> 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.
>>
>
>
>
> --
>
> 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
>
>


-- 
Supun Malinga,

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


Re: [Dev] Carbon-mediation MQTT inbound

2015-04-23 Thread Elilmatha Sivanesan
Hi Tharik,

org.eclipse.paho
mqtt-client
0.4.0

Solved now.

Thank you.

On Fri, Apr 24, 2015 at 9:25 AM, Tharik Kanaka  wrote:

> Hi Elilmatha,
>
> Did you try by changing version to 0.4.0 and building it? because in nexus
> directory there is mqtt client 4.0.0 [1]
>
> [1]
> http://maven.wso2.org/nexus/content/groups/wso2-public/org/eclipse/paho/mqtt-client/
>
> Regards,
>
> On Fri, Apr 24, 2015 at 9:14 AM, Elilmatha Sivanesan 
> wrote:
>
>> Hi,
>>
>> I'm working on MQTT Inbound on PR
>> https://github.com/wso2-dev/carbon-mediation/pull/105 after merging this
>> code manually with the carbon-mediation code base now I get error like this.
>>
>> [ERROR] Failed to execute goal on project
>> org.wso2.carbon.inbound.endpoint: Could not resolve dependencies for
>> project
>> org.wso2.carbon.mediation:org.wso2.carbon.inbound.endpoint:bundle:4.3.3-SNAPSHOT:
>> Failure to find
>> org.eclipse.paho:org.eclipse.paho.client.mqttv3:jar:0.4.0.wso2v1 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 ->
>>
>> 
>> org.eclipse.paho
>> org.eclipse.paho.client.mqttv3
>> 0.4.0.wso2v1
>> 
>>
>> Can any one suggest me with correct version to use
>>
>> Thank you.
>> --
>> *S.Elilmatha*
>> Associate  Software Engineer,
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> Mobile 0779842221.
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Tharik Kanaka* | Associate Software Engineer
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Email: tha...@wso2.com | Web: www.wso2.com
>



-- 
*S.Elilmatha*
Associate  Software Engineer,

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] [DEV] ESB Elements are removed from Proxy Services UI

2015-04-23 Thread Isuru Udana
Hi Supun,

carbon-qos is a abandoned repo. We are no longer using it.
What we are saying is while removing qos related options from service
management ui, other important ui options has been removed.

Thanks.

On Fri, Apr 24, 2015 at 9:50 AM, Supun Malinga  wrote:

> Hi Malaka,
>
> Can you check if QoS features are added correctly ?.
> https://github.com/wso2/carbon-qos
>
> thanks,
>
> On Fri, Apr 24, 2015 at 9:35 AM, Malaka Silva  wrote:
>
>> Hi Carbon Team,
>>
>> Any update?
>>
>> On Wed, Apr 22, 2015 at 9:58 PM, Malaka Silva  wrote:
>>
>>> Jira added
>>>
>>> https://wso2.org/jira/browse/CARBON-15233
>>>
>>> On Wed, Apr 22, 2015 at 2:25 PM, Malaka Silva  wrote:
>>>
 Hi Carbon Team,

 Some elements are missing in proxy details view.

 I guess this was result when removing QOS from service_info.jsp page.

 Options like active/inactive, edit etc are missing in the new layout.

 Can you please check and the required options?

 Reported with ESB Jira in [1]. Related code base [2]



 4.8.1 -> [image: Inline image 1] 4.9.0 ->   [image: Inline
 image 2]



 [1] https://wso2.org/jira/browse/ESBJAVA-3538
 [2]
 https://github.com/wso2/carbon-deployment/tree/master/components/service-mgt/axis2-service-mgt

 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.

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


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


Re: [Dev] Admin Service in WSO2 AS for Web app deployment

2015-04-23 Thread Kasun Gajasinghe
Hi Awanthika,

As per the offline chat we had awhile back, we have decided to go ahead with 
basic file copy to upload the webapps IIRC. There is no need to change the 
admin services to cater for this requirement. 

> On Apr 23, 2015, at 6:22 PM, Awanthika Senarath  wrote:
> 
> ping!
> 
>> On Wed, Apr 8, 2015 at 11:31 PM, Awanthika Senarath  
>> wrote:
>> Hi KasunG,
>> 
>> Is it possible to get $subject done? since this is a requirement for 
>> enabling exploded web app deployment in AS from dev stduio.
>> 
>> thanks and regards
>> Awanthika
>> 
>>> On Mon, Apr 6, 2015 at 6:58 PM, KasunG Gajasinghe  wrote:
>>> Hi Awanthika,
>>> 
>>> I don't think the admin service supports it. We will have to improve it 
>>> depending on this requirement.
>>> 
 On Mon, Apr 6, 2015 at 6:33 PM, Awanthika Senarath  
 wrote:
 Hi,
 
 Could you please verify whether the exploded web app deployment is 
 possible via the said admin service?
 
 regards
 Awanthika
 
> On Mon, Apr 6, 2015 at 11:36 AM, Awanthika Senarath  
> wrote:
> Thanks KasunG,
> 
> If the admin service supports war deployment in exploded format, it 
> should be possible for us to directly call the admin service via Dev 
> Studio and handle this, isn't it?
> 
> I will have to study the admin service and see how it supports this.
> 
> regards
> Awanthika
> 
>> On Mon, Apr 6, 2015 at 11:27 AM, Kasun Gajasinghe  
>> wrote:
>> It should be WebappAdmin. 
>> 
>> AS supports deploying exploded webapps. But the UI doesn't have the 
>> capability to upload webapps in exploded format since it's a folder 
>> structure. How do you propose to do it?
>> 
>>> On Apr 6, 2015, at 10:57 AM, Awanthika Senarath  
>>> wrote:
>>> 
>>> Hi all,
>>> 
>>> I need to find $subject to develop the war-deploy facility in WSO2 
>>> developer studio.
>>> 
>>> I could observe that for the car-deployment we are using the Admin 
>>> Service "CarbonAppUploader".
>>> 
>>> By listing all the Admin services available in WSO2 AS I got the list 
>>> at [1], Can someone point out to me the Admin Service used for war file 
>>> deployment in AS?
>>> 
>>> Further is it possible to do exploded web app Deployment in AS? by 
>>> admin console uploading I observed that we are deploying the compressed 
>>> war file. The ultimate goal of Developer Studio is to enable web app 
>>> deployment in Carbon server in exploded format. Hence if such a service 
>>> is not available ATM, how should we proceed with this? IMO to enable 
>>> this we have two options.
>>> 
>>> [1] implement this completely on Dev Studio - as a file transfer
>>> 
>>> [2] get back-end support from Carbon and facilitate this via dev studio 
>>> using an admin service
>>> 
>>> 
>>> ** Exploded war deployment : deployment of the war file in extracted 
>>> format. Without deploying the .war file this copies the  folder 
>>> directly into the webapps folder in the server.
>>> 
>>> 
>>> Appreciate your input
>>> 
>>> 
>>> [1] 
>>> Admin services deployed on this server:
>>> 1. ProvisioningAdminService, ProvisioningAdminService, 
>>> https://10.100.5.110:9443/services/ProvisioningAdminService/ 
>>> 2. CarbonAppUploader, CarbonAppUploader, 
>>> https://10.100.5.110:9443/services/CarbonAppUploader/ 
>>> 3. OperationAdmin, OperationAdmin, 
>>> https://10.100.5.110:9443/services/OperationAdmin/ 
>>> 4. JaggeryAppAdmin, JaggeryAppAdmin, 
>>> https://10.100.5.110:9443/services/JaggeryAppAdmin/ 
>>> 5. JaxwsWebappAdmin, JaxwsWebappAdmin, 
>>> https://10.100.5.110:9443/services/JaxwsWebappAdmin/ 
>>> 6. StatisticsAdmin, StatisticsAdmin, 
>>> https://10.100.5.110:9443/services/StatisticsAdmin/ 
>>> 7. LoggedUserInfoAdmin, LoggedUserInfoAdmin, 
>>> https://10.100.5.110:9443/services/LoggedUserInfoAdmin/ 
>>> 8. WebappAdmin, WebappAdmin, 
>>> https://10.100.5.110:9443/services/WebappAdmin/ 
>>> 9. TopicManagerAdminService, TopicManagerAdminService, 
>>> https://10.100.5.110:9443/services/TopicManagerAdminService/ 
>>> 10. ApplicationAdmin, ApplicationAdmin, 
>>> https://10.100.5.110:9443/services/ApplicationAdmin/ 
>>> 11. NDataSourceAdmin, NDataSourceAdmin, 
>>> https://10.100.5.110:9443/services/NDataSourceAdmin/ 
>>> 12. ServiceGroupAdmin, ServiceGroupAdmin, 
>>> https://10.100.5.110:9443/services/ServiceGroupAdmin/ 
>>> 13. DataServiceFileUploader, DataServiceFileUploader, 
>>> https://10.100.5.110:9443/services/DataServiceFileUploader/ 
>>> 14. CustomMeteringService, CustomMeteringService, 
>>> https://10.100.5.110:9443/services/CustomMeteringService/ 
>>> 15. STSAdminService, STSAdminService, 
>>> https://10.100.5.110:9443/services/STSAdminService/ 
>>> 16. R

Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-04-23 Thread Malith Munasinghe
Hi Supun,

As discussed in [1] for CXF 2.6.x api file uploading using multipart
content type can be done using Attachement Argument type instead of
InputStream. Can you try using

@Multipart(value = "file") @NotNull Attachment attachment
Then use

InputStream inputStream = attcehment.getObject(InputStream.class);

to get the InputStream.

Thank you,
Regards


On Fri, Apr 24, 2015 at 9:26 AM, Supun Sethunga  wrote:

> Hi Malith,
>
> Using the latest Chrome/Firefox versions. This isn't working when called
> from a java-client either.
>
> Catch here is, rest of the form data get submitted correctly. AFAIU
> problem is in the way the file is streamed to the server (the way it gets
> attached to the request).
>
> Thanks,
> Supun
>
> On Fri, Apr 24, 2015 at 9:14 AM, Malith Munasinghe 
> wrote:
>
>> Hi Supun,
>>
>> Can you check the browser version of yours ? As of [1] FormData emulation
>> for older browser (Below Safari 5 / Firefox 4) you might have to change it
>> to the way mentioned in top Ranked answer.
>>
>> [1]
>> http://stackoverflow.com/questions/5392344/sending-multipart-formdata-with-jquery-ajax
>>
>> On Fri, Apr 24, 2015 at 9:02 AM, Supun Sethunga  wrote:
>>
>>> Hi Malith/Thilini,
>>>
>>> Thanks for the suggestion. I had tried that. Didn't work :/
>>>
>>> Regards,
>>> Supun
>>>
>>> On Fri, Apr 24, 2015 at 8:45 AM, Thilini Cooray 
>>> wrote:
>>>
 Hi Supun,

 [1] also suggests to make contentType false.

 [1]
 http://stackoverflow.com/questions/12831680/jquery-ajax-multipart-form-data-not-sending-data

 Thanks.

 On Fri, Apr 24, 2015 at 8:44 AM, Malith Munasinghe 
 wrote:

> Hi Supun!
>
> Try Making contentType: false,
>
> Regards,
> Malith.
>
> On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga 
> wrote:
>
>> Hi,
>>
>> Requirement was to let a user upload a data file from a UI
>> (html/jaggery), and the backend which handles file uploading is exposed 
>> as
>> a REST service. Backend service method I wrote looks as follows:
>>
>> @POST
>>> @Produces(MediaType.APPLICATION_JSON)
>>> @Consumes(MediaType.MULTIPART_FORM_DATA)
>>> public Response uploadDataset(@Multipart("datasetName") String
>>> datasetName,
>>>   @Multipart("version") String
>>> version,
>>>   @Multipart("description") String
>>> description,
>>>   @Multipart("sourceType") String
>>> sourceType,
>>>   @Multipart("destination") String
>>> destination,
>>>   @Multipart("sourcePath") String
>>> sourcePath,
>>>   @Multipart("dataFormat") String
>>> dataFormat,
>>>   @Multipart("file") InputStream
>>> inputStream) {
>>> . . .
>>> . . .
>>> }
>>
>>
>> The InputStream is then written to a file at the server side. This
>> method works fine when I call this with CURL using:
>>
>> *curl -X POST -b cookies  http://localhost:9763/api/datasets
>>>  -H "Authorization: Basic
>>> YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
>>> datasetName=TestDataset --form version=1.0.0 --form
>>> description=TestDescription --form sourceType=file --form 
>>> destination=file
>>> --form dataFormat=CSV --form
>>> file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form
>>> sourcePath=/temp*
>>
>>
>> Also works fine when I used Chrome's REST client.
>>
>> However,  when I call the same service, using AJAX, the file is
>> written with empty content. Follow is the sample snippet.
>>
>>
>>> *var formData = new FormData();*
>>> *  formData.append("file", fileInput[0]['files'][0],
>>> 'IndiansDiabetes.csv');*
>>> * formData.append("datasetName", name);*
>>> * formData.append("version", version);*
>>> * formData.append("description", comments);*
>>> * formData.append("sourceType", dataSourceType);*
>>> * formData.append("sourcePath", null);*
>>> * formData.append("destination", dataTargetType);**
>>> formData.append("dataFormat", dataType);*
>>
>>
>>
>>
>>> *   var baseUrl = getBaseUrl(window.location.href);*
>>> *   $.ajax({*
>>> *   type: 'POST',*
>>> *   url: baseUrl + '/api/datasets', *
>>> *   contentType: "multipart/form-data",*
>>> *processData: false,*
>>> *   data: formData,**   beforeSend : function(xhr)
>>> {*
>>>
>>> *xhr.setRequestHeader("Authorization", "Basic " +
>>> "YWRtaW46YWRtaW4=");*
>>> *},*
>>> *success : function(res){*
>>> *   console.log

Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-04-23 Thread Malith Munasinghe
Links for the above

[1]
http://stackoverflow.com/questions/10801122/handling-multipart-attachments-in-cxf-apis


On Fri, Apr 24, 2015 at 10:40 AM, Malith Munasinghe 
wrote:

> Hi Supun,
>
> As discussed in [1] for CXF 2.6.x api file uploading using multipart
> content type can be done using Attachement Argument type instead of
> InputStream. Can you try using
>
> @Multipart(value = "file") @NotNull Attachment attachment
> Then use
>
> InputStream inputStream = attcehment.getObject(InputStream.class);
>
> to get the InputStream.
>
> Thank you,
> Regards
>
>
> On Fri, Apr 24, 2015 at 9:26 AM, Supun Sethunga  wrote:
>
>> Hi Malith,
>>
>> Using the latest Chrome/Firefox versions. This isn't working when called
>> from a java-client either.
>>
>> Catch here is, rest of the form data get submitted correctly. AFAIU
>> problem is in the way the file is streamed to the server (the way it gets
>> attached to the request).
>>
>> Thanks,
>> Supun
>>
>> On Fri, Apr 24, 2015 at 9:14 AM, Malith Munasinghe 
>> wrote:
>>
>>> Hi Supun,
>>>
>>> Can you check the browser version of yours ? As of [1] FormData
>>> emulation for older browser (Below Safari 5 / Firefox 4) you might have to
>>> change it to the way mentioned in top Ranked answer.
>>>
>>> [1]
>>> http://stackoverflow.com/questions/5392344/sending-multipart-formdata-with-jquery-ajax
>>>
>>> On Fri, Apr 24, 2015 at 9:02 AM, Supun Sethunga  wrote:
>>>
 Hi Malith/Thilini,

 Thanks for the suggestion. I had tried that. Didn't work :/

 Regards,
 Supun

 On Fri, Apr 24, 2015 at 8:45 AM, Thilini Cooray 
 wrote:

> Hi Supun,
>
> [1] also suggests to make contentType false.
>
> [1]
> http://stackoverflow.com/questions/12831680/jquery-ajax-multipart-form-data-not-sending-data
>
> Thanks.
>
> On Fri, Apr 24, 2015 at 8:44 AM, Malith Munasinghe 
> wrote:
>
>> Hi Supun!
>>
>> Try Making contentType: false,
>>
>> Regards,
>> Malith.
>>
>> On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga 
>> wrote:
>>
>>> Hi,
>>>
>>> Requirement was to let a user upload a data file from a UI
>>> (html/jaggery), and the backend which handles file uploading is exposed 
>>> as
>>> a REST service. Backend service method I wrote looks as follows:
>>>
>>> @POST
 @Produces(MediaType.APPLICATION_JSON)
 @Consumes(MediaType.MULTIPART_FORM_DATA)
 public Response uploadDataset(@Multipart("datasetName") String
 datasetName,
   @Multipart("version") String
 version,
   @Multipart("description") String
 description,
   @Multipart("sourceType") String
 sourceType,
   @Multipart("destination") String
 destination,
   @Multipart("sourcePath") String
 sourcePath,
   @Multipart("dataFormat") String
 dataFormat,
   @Multipart("file") InputStream
 inputStream) {
 . . .
 . . .
 }
>>>
>>>
>>> The InputStream is then written to a file at the server side. This
>>> method works fine when I call this with CURL using:
>>>
>>> *curl -X POST -b cookies  http://localhost:9763/api/datasets
  -H "Authorization: Basic
 YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
 datasetName=TestDataset --form version=1.0.0 --form
 description=TestDescription --form sourceType=file --form 
 destination=file
 --form dataFormat=CSV --form
 file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form
 sourcePath=/temp*
>>>
>>>
>>> Also works fine when I used Chrome's REST client.
>>>
>>> However,  when I call the same service, using AJAX, the file is
>>> written with empty content. Follow is the sample snippet.
>>>
>>>
 *var formData = new FormData();*
 *  formData.append("file", fileInput[0]['files'][0],
 'IndiansDiabetes.csv');*
 * formData.append("datasetName", name);*
 * formData.append("version", version);*
 * formData.append("description", comments);*
 * formData.append("sourceType", dataSourceType);*
 * formData.append("sourcePath", null);*
 * formData.append("destination", dataTargetType);**
 formData.append("dataFormat", dataType);*
>>>
>>>
>>>
>>>
 *   var baseUrl = getBaseUrl(window.location.href);*
 *   $.ajax({*
 *   type: 'POST',*
 *   url: baseUrl + '/api/datasets', *
 *   contentType: "multipart/form-data",*
>>

Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-04-23 Thread Supun Sethunga
Hi Malith,

It gives the same result.

Thanks,
Supun

On Fri, Apr 24, 2015 at 10:41 AM, Malith Munasinghe 
wrote:

> Links for the above
>
> [1]
> http://stackoverflow.com/questions/10801122/handling-multipart-attachments-in-cxf-apis
>
>
> On Fri, Apr 24, 2015 at 10:40 AM, Malith Munasinghe 
> wrote:
>
>> Hi Supun,
>>
>> As discussed in [1] for CXF 2.6.x api file uploading using multipart
>> content type can be done using Attachement Argument type instead of
>> InputStream. Can you try using
>>
>> @Multipart(value = "file") @NotNull Attachment attachment
>> Then use
>>
>> InputStream inputStream = attcehment.getObject(InputStream.class);
>>
>> to get the InputStream.
>>
>> Thank you,
>> Regards
>>
>>
>> On Fri, Apr 24, 2015 at 9:26 AM, Supun Sethunga  wrote:
>>
>>> Hi Malith,
>>>
>>> Using the latest Chrome/Firefox versions. This isn't working when called
>>> from a java-client either.
>>>
>>> Catch here is, rest of the form data get submitted correctly. AFAIU
>>> problem is in the way the file is streamed to the server (the way it gets
>>> attached to the request).
>>>
>>> Thanks,
>>> Supun
>>>
>>> On Fri, Apr 24, 2015 at 9:14 AM, Malith Munasinghe 
>>> wrote:
>>>
 Hi Supun,

 Can you check the browser version of yours ? As of [1] FormData
 emulation for older browser (Below Safari 5 / Firefox 4) you might have to
 change it to the way mentioned in top Ranked answer.

 [1]
 http://stackoverflow.com/questions/5392344/sending-multipart-formdata-with-jquery-ajax

 On Fri, Apr 24, 2015 at 9:02 AM, Supun Sethunga 
 wrote:

> Hi Malith/Thilini,
>
> Thanks for the suggestion. I had tried that. Didn't work :/
>
> Regards,
> Supun
>
> On Fri, Apr 24, 2015 at 8:45 AM, Thilini Cooray 
> wrote:
>
>> Hi Supun,
>>
>> [1] also suggests to make contentType false.
>>
>> [1]
>> http://stackoverflow.com/questions/12831680/jquery-ajax-multipart-form-data-not-sending-data
>>
>> Thanks.
>>
>> On Fri, Apr 24, 2015 at 8:44 AM, Malith Munasinghe 
>> wrote:
>>
>>> Hi Supun!
>>>
>>> Try Making contentType: false,
>>>
>>> Regards,
>>> Malith.
>>>
>>> On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga 
>>> wrote:
>>>
 Hi,

 Requirement was to let a user upload a data file from a UI
 (html/jaggery), and the backend which handles file uploading is 
 exposed as
 a REST service. Backend service method I wrote looks as follows:

 @POST
> @Produces(MediaType.APPLICATION_JSON)
> @Consumes(MediaType.MULTIPART_FORM_DATA)
> public Response uploadDataset(@Multipart("datasetName") String
> datasetName,
>   @Multipart("version") String
> version,
>   @Multipart("description") String
> description,
>   @Multipart("sourceType") String
> sourceType,
>   @Multipart("destination") String
> destination,
>   @Multipart("sourcePath") String
> sourcePath,
>   @Multipart("dataFormat") String
> dataFormat,
>   @Multipart("file") InputStream
> inputStream) {
> . . .
> . . .
> }


 The InputStream is then written to a file at the server side. This
 method works fine when I call this with CURL using:

 *curl -X POST -b cookies  http://localhost:9763/api/datasets
>  -H "Authorization: Basic
> YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
> datasetName=TestDataset --form version=1.0.0 --form
> description=TestDescription --form sourceType=file --form 
> destination=file
> --form dataFormat=CSV --form
> file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv 
> --form
> sourcePath=/temp*


 Also works fine when I used Chrome's REST client.

 However,  when I call the same service, using AJAX, the file is
 written with empty content. Follow is the sample snippet.


> *var formData = new FormData();*
> *  formData.append("file", fileInput[0]['files'][0],
> 'IndiansDiabetes.csv');*
> * formData.append("datasetName", name);*
> * formData.append("version", version);*
> * formData.append("description", comments);*
> * formData.append("sourceType", dataSourceType);*
> * formData.append("sourcePath", null);*
> * formData.append("destination", dataTargetType);**
> formData.append("dataFormat", dataT

[Dev] VFS Inbound Testing Scenario

2015-04-23 Thread Shakila Sivagnanarajah
Hi all,

I am doing the ESB task to test the VFS Inbound.
I went through some portion of Carbon-Mediation code related to VFS and
tested VFS file transfer functionality with Smooks mediator (Synapse Sample
654) so far.

>From this testing, I got an idea of Smooks mediator and practically tested
one of the use cases of VFS inbound.

I have set up ESB worker/manager cluster without ELB. For this I referred
document [1] and used Ngnix Load Balancer. And I used the ESB pack got from
[2].

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

[2]
https://svn.wso2.org/repos/wso2/people/ishan/dist/esb/4.9.0/wso2esb-4.9.0-M7.zip

*Issues:*

   - When I start Worker 1, I am getting the exception *Can't find a svn
   action for svn output line : Updating 'repository/deployment/server'*
   see in log [3].

[3]

[2015-04-24 10:15:56,155]  INFO - MemberUtils Added member: Host:
mgt.esb.wso2.com, Remote Host:null, Port: 4100, HTTP:-1, HTTPS:-1, Domain:
null, Sub-domain:null, Active:true
[2015-04-24 10:16:04,676]  INFO - HazelcastClusteringAgent Hazelcast
initialized in 8519ms
[2015-04-24 10:16:04,696]  INFO - MemberUtils Added member:
Host:10.100.5.171, Remote Host:null, Port: 4100, HTTP:8281, HTTPS:8244,
Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
[2015-04-24 10:16:04,696]  INFO - HazelcastClusteringAgent Local member:
[d795d8a2-f6da-491a-ad5f-fe2cfa82f950] - Host:10.100.5.171, Remote
Host:null, Port: 4200, HTTP:8282, HTTPS:8245, Domain: wso2.esb.domain,
Sub-domain:null, Active:true
[2015-04-24 10:16:04,704]  INFO - MemberUtils Added member:
Host:10.100.5.171, Remote Host:null, Port: 4200, HTTP:8282, HTTPS:8245,
Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
[2015-04-24 10:16:04,960]  INFO - HazelcastClusteringAgent Cluster
initialization completed
[2015-04-24 10:16:04,968]  INFO - NioSelectorPool Using a shared selector
for servlet write/read
[2015-04-24 10:16:05,400]  INFO - NioSelectorPool Using a shared selector
for servlet write/read
[2015-04-24 10:16:05,470]  INFO - TaskServiceImpl Task service starting in
CLUSTERED mode...
[2015-04-24 10:16:05,510]  INFO - NTaskTaskManager Initialized task
manager. Tenant [-1234]
[2015-04-24 10:16:05,511]  INFO - ClusterGroupCommunicator Waiting for 2
[ESB_TASK] task executor nodes...
[2015-04-24 10:16:08,023]  WARN - SvnOutputParser Can't find a svn action
for svn output line : Updating 'repository/deployment/server':


   - When I shout down Worker 1, It says "Error in waiting for task
   [ESB_TASK] executor nodes: Hazelcast instance is not active!". See the  log
   in [4].

[4]

[2015-04-24 10:26:54,215] ERROR - TasksDSComponent Error in intializing
Tasks component: Error in waiting for task [ESB_TASK] executor nodes:
Hazelcast instance is not active!
org.wso2.carbon.ntask.common.TaskException: Error in waiting for task
[ESB_TASK] executor nodes: Hazelcast instance is not active!
at
org.wso2.carbon.ntask.core.impl.clustered.ClusterGroupCommunicator.checkServers(ClusterGroupCommunicator.java:159)
at
org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.runAfterRegistrationActions(TaskServiceImpl.java:324)
at
org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:109)
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:601)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at
org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(Servi

[Dev] Running changed code on Identity Server.

2015-04-23 Thread Damith Senanayake
Hi,

I have made some changes to the code in org.wso2.carbon.user.mgt.ui
(specifically the bulk-import.jsp file in the web resources) and when I
added the changed and compiled code to the IS 5.1.0_SNAPSHOT server, the
package gets installed, and doesn't get activated. When ran an OSGI
Diagnosis, it shows that some of the packages imported are missing. The
steps and the output is as below.


   1. change the version tag in the pom.xml in org.wso2.carbon.user.mgt.ui
   to 4.3.6.SNAPSHOT
   2. Create new patch folder in the instance of the IS
   ($carbonHome/repository/components/patches/patch)
   3. copy the new "org.wso2.carbon.user.mgt.ui_4.3.6.SNAPSHOT.jar" to the
   said patch folder.
   4. start the server
   5. check the active components to find that
   "org.wso2.carbon.user.mgt.ui" is 'INSTALLED" but not "ACTIVE"
   6. run diagnosis on module to find the following output. :
   1. reference:file:../plugins/org.wso2.carbon.user.mgt.ui_4.3.6.SNAPSHOT.jar
  [363]
Direct constraints which are unresolved:
  Missing imported package
  org.wso2.carbon.user.mgt.stub_[4.4.0,4.5.0).
  Missing imported package
  org.wso2.carbon.user.mgt.stub.types.axis2_[4.4.0,4.5.0).
  Missing imported package
  org.wso2.carbon.user.mgt.stub.types.carbon_[4.4.0,4.5.0).
  Missing optionally imported package
  javax.activation_[1.1.0,2.0.0).

  7. Now, I changed the part in the pom.xml containing the dependencies
   to not include the ";version=" section. However, the same results is
   shown.

On a high level, due to this malfunction, the "users and roles" section of
the management console is not shown. and manual navigating by typing the
URL still shows null content.


Any help and input regarding this will be highly appreciated. Thanks.


-- 
*-Damith Senanayake-*
+94712205272
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] VFS Inbound Testing Scenario

2015-04-23 Thread Malaka Silva
Hi Shakila,

Is seems like a warning given by dep-sync. However do you get the artifacts
gets deployed to worker nodes?

How many worker nodes did you configure?

On Fri, Apr 24, 2015 at 11:13 AM, Shakila Sivagnanarajah 
wrote:

> Hi all,
>
> I am doing the ESB task to test the VFS Inbound.
> I went through some portion of Carbon-Mediation code related to VFS and
> tested VFS file transfer functionality with Smooks mediator (Synapse Sample
> 654) so far.
>
> From this testing, I got an idea of Smooks mediator and practically tested
> one of the use cases of VFS inbound.
>
> I have set up ESB worker/manager cluster without ELB. For this I referred
> document [1] and used Ngnix Load Balancer. And I used the ESB pack got from
> [2].
>
> [1]
> https://docs.google.com/a/wso2.com/document/d/1x80QfnBW09keGVYOi3MLruckXbIVp45vOj9deyF0l5I/edit?usp=sharing
>
> [2]
> https://svn.wso2.org/repos/wso2/people/ishan/dist/esb/4.9.0/wso2esb-4.9.0-M7.zip
>
> *Issues:*
>
>- When I start Worker 1, I am getting the exception *Can't find a svn
>action for svn output line : Updating 'repository/deployment/server'*
>see in log [3].
>
> [3]
>
> [2015-04-24 10:15:56,155]  INFO - MemberUtils Added member: Host:
> mgt.esb.wso2.com, Remote Host:null, Port: 4100, HTTP:-1, HTTPS:-1,
> Domain: null, Sub-domain:null, Active:true
> [2015-04-24 10:16:04,676]  INFO - HazelcastClusteringAgent Hazelcast
> initialized in 8519ms
> [2015-04-24 10:16:04,696]  INFO - MemberUtils Added member:
> Host:10.100.5.171, Remote Host:null, Port: 4100, HTTP:8281, HTTPS:8244,
> Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
> [2015-04-24 10:16:04,696]  INFO - HazelcastClusteringAgent Local member:
> [d795d8a2-f6da-491a-ad5f-fe2cfa82f950] - Host:10.100.5.171, Remote
> Host:null, Port: 4200, HTTP:8282, HTTPS:8245, Domain: wso2.esb.domain,
> Sub-domain:null, Active:true
> [2015-04-24 10:16:04,704]  INFO - MemberUtils Added member:
> Host:10.100.5.171, Remote Host:null, Port: 4200, HTTP:8282, HTTPS:8245,
> Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
> [2015-04-24 10:16:04,960]  INFO - HazelcastClusteringAgent Cluster
> initialization completed
> [2015-04-24 10:16:04,968]  INFO - NioSelectorPool Using a shared selector
> for servlet write/read
> [2015-04-24 10:16:05,400]  INFO - NioSelectorPool Using a shared selector
> for servlet write/read
> [2015-04-24 10:16:05,470]  INFO - TaskServiceImpl Task service starting in
> CLUSTERED mode...
> [2015-04-24 10:16:05,510]  INFO - NTaskTaskManager Initialized task
> manager. Tenant [-1234]
> [2015-04-24 10:16:05,511]  INFO - ClusterGroupCommunicator Waiting for 2
> [ESB_TASK] task executor nodes...
> [2015-04-24 10:16:08,023]  WARN - SvnOutputParser Can't find a svn action
> for svn output line : Updating 'repository/deployment/server':
>
>
>- When I shout down Worker 1, It says "Error in waiting for task
>[ESB_TASK] executor nodes: Hazelcast instance is not active!". See the  log
>in [4].
>
> [4]
>
> [2015-04-24 10:26:54,215] ERROR - TasksDSComponent Error in intializing
> Tasks component: Error in waiting for task [ESB_TASK] executor nodes:
> Hazelcast instance is not active!
> org.wso2.carbon.ntask.common.TaskException: Error in waiting for task
> [ESB_TASK] executor nodes: Hazelcast instance is not active!
> at
> org.wso2.carbon.ntask.core.impl.clustered.ClusterGroupCommunicator.checkServers(ClusterGroupCommunicator.java:159)
> at
> org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.runAfterRegistrationActions(TaskServiceImpl.java:324)
> at
> org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:109)
> 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:601)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> 

Re: [Dev] Running changed code on Identity Server.

2015-04-23 Thread Tharik Kanaka
Hi damith,

I believe org.wso2.carbon.user.mgt.ui belongs to carbon-commons is updated
version 4.4.0 and carbon-identity has to be updated to use version 4.4.0.
The jar your dealing version 4.3.6, if you doing changes on a fork of
carbon-commons if you updated by pulling latest chages versions should be
resolved. Could you try by changing 4.3.6 versions to version 4.4.0?

Regards,

On Fri, Apr 24, 2015 at 11:20 AM, Damith Senanayake 
wrote:

> Hi,
>
> I have made some changes to the code in org.wso2.carbon.user.mgt.ui
> (specifically the bulk-import.jsp file in the web resources) and when I
> added the changed and compiled code to the IS 5.1.0_SNAPSHOT server, the
> package gets installed, and doesn't get activated. When ran an OSGI
> Diagnosis, it shows that some of the packages imported are missing. The
> steps and the output is as below.
>
>
>1. change the version tag in the pom.xml in
>org.wso2.carbon.user.mgt.ui to 4.3.6.SNAPSHOT
>2. Create new patch folder in the instance of the IS
>($carbonHome/repository/components/patches/patch)
>3. copy the new "org.wso2.carbon.user.mgt.ui_4.3.6.SNAPSHOT.jar" to
>the said patch folder.
>4. start the server
>5. check the active components to find that
>"org.wso2.carbon.user.mgt.ui" is 'INSTALLED" but not "ACTIVE"
>6. run diagnosis on module to find the following output. :
>1. reference:file:../plugins/org.wso2.carbon.user.mgt.ui_4.3.6.SNAPSHOT.jar
>   [363]
> Direct constraints which are unresolved:
>   Missing imported package
>   org.wso2.carbon.user.mgt.stub_[4.4.0,4.5.0).
>   Missing imported package
>   org.wso2.carbon.user.mgt.stub.types.axis2_[4.4.0,4.5.0).
>   Missing imported package
>   org.wso2.carbon.user.mgt.stub.types.carbon_[4.4.0,4.5.0).
>   Missing optionally imported package
>   javax.activation_[1.1.0,2.0.0).
>
>   7. Now, I changed the part in the pom.xml containing the
>dependencies to not include the ";version=" section. However, the same
>results is shown.
>
> On a high level, due to this malfunction, the "users and roles" section of
> the management console is not shown. and manual navigating by typing the
> URL still shows null content.
>
>
> Any help and input regarding this will be highly appreciated. Thanks.
>
>
> --
> *-Damith Senanayake-*
> +94712205272
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Tharik Kanaka* | Associate Software Engineer

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

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: MOTT Transport Implementation

2015-04-23 Thread Sriashalya Srivathsan
Looping to Dev

-- Forwarded message --
From: Chanaka Fernando 
Date: Fri, Apr 24, 2015 at 10:50 AM
Subject: Re: MOTT Transport Implementation
To: Sriashalya Srivathsan 


yeah you can


On Fri, Apr 24, 2015 at 10:50 AM, Sriashalya Srivathsan 
wrote:

> Can we use any ESB version(4.8.1)
>
> On Fri, Apr 24, 2015 at 10:41 AM, Chanaka Fernando 
> wrote:
>
>> What is the issue you are facing? According to the results section, you
>> could see logs in StockQuoteService side mentioning that message has been
>> processed.
>>
>> On Fri, Apr 24, 2015 at 10:15 AM, Sriashalya Srivathsan > > wrote:
>>
>>> Hi Chanaka,
>>> I went through the 2nd Documentation. (
>>> https://docs.google.com/a/wso2.com/document/d/1G2sf8g27w8kFmfXVC6F7Kf7LTtZUdCcLRN5UnwdfIxQ/edit
>>> )
>>> I've started 4 instances, done all the configurations in ESB, added the
>>> proxy and sequences and finally I've got the UI also. But I'm struggling to
>>> understand how to get the final result. Do we have any other links related
>>> with ESB.
>>>
>>>
>>> Thanks,
>>> Rgds,
>>>
>>> On Wed, Apr 22, 2015 at 5:16 PM, Chanaka Fernando 
>>> wrote:
>>>
 The command may be different for the version you are using. That is
 fine. If the server is up and running, all good.

 On Wed, Apr 22, 2015 at 4:22 PM, Sriashalya Srivathsan <
 asha...@wso2.com> wrote:

> netstat -an|grep 1883
>
> tcp6   0  0  *.1883 *.*
> LISTEN
>
> tcp4   0  0  *.1883 *.*
> LISTEN
>
> for the request "*mosquitto -p 1883 -v"*  ,getting the response "*bash:
> mosquitto: command not found*",
>
> but it is running for "*mosquitto_sub -h 127.0.0.1 -t topic"*
>
> On Wed, Apr 22, 2015 at 3:28 PM, Chanaka Fernando 
> wrote:
>
>> Hi Sriashalya,
>>
>> You need to have mosquitto broker installed in your machine to run
>> the above command. Are you getting any error when you are executing the
>> above command? You can check whether the port 1883 is up and running by
>> using netstat command.
>>
>> Thanks,
>> Chanaka
>>
>> On Wed, Apr 22, 2015 at 10:29 AM, Sriashalya Srivathsan <
>> asha...@wso2.com> wrote:
>>
>>> Hi Chanaka,
>>> I've gone through your documentation. I have some issues to be
>>> solved.
>>> I followed the documentation (
>>> http://www.xappsoftware.com/wordpress/2014/10/30/install-mosquitto-on-mac-os-x/)
>>> and I've done with that. I can have two instances and I can send the
>>> message from one to other. It seems MQTT Broker was installed properly. 
>>> But
>>> I couldn't run the command
>>>
>>> mosquitto -p 1883 -v (
>>> https://docs.google.com/a/wso2.com/document/d/15F0FCJLTfTcjpflYjJE__lyRQ7SYrY28nz8Zd8-2AHc/edit
>>> ).
>>>
>>>
>>> Do you have any suggestion regarding this?
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> S.Sriashalya,
>>> Associate Software Engineer,
>>> WSO2.
>>>
>>
>>
>>
>> --
>> --
>> Chanaka Fernando
>> Technical Lead
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 773337238
>> Blog : http://soatutorials.blogspot.com
>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>> Twitter:https://twitter.com/chanakaudaya
>> Wordpress:http://chanakaudaya.wordpress.com
>>
>>
>>
>>
>
>
> --
> S.Sriashalya,
> Associate Software Engineer,
> WSO2.
>



 --
 --
 Chanaka Fernando
 Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya
 Wordpress:http://chanakaudaya.wordpress.com




>>>
>>>
>>> --
>>> S.Sriashalya,
>>> Associate Software Engineer,
>>> WSO2.
>>>
>>
>>
>>
>> --
>> --
>> Chanaka Fernando
>> Technical Lead
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 773337238
>> Blog : http://soatutorials.blogspot.com
>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>> Twitter:https://twitter.com/chanakaudaya
>> Wordpress:http://chanakaudaya.wordpress.com
>>
>>
>>
>>
>
>
> --
> S.Sriashalya,
> Associate Software Engineer,
> WSO2.
>



-- 
--
Chanaka Fernando
Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com






-- 
S.Sriashalya,
Associate Software Engineer,
WSO2.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] API resource mis-match handler

2015-04-23 Thread Akila Ravihansa Perera
Hi,

I'm trying to configure the _resource_mismatch_handler_ in ESB. I noticed
that it gets triggered only when there is a mis-match for a resource in an
already existing API context. It doesn't get triggered if a request is sent
for a non-existing API context.

Is this the expected behavior? Is there any way to configure the mis-match
handler for a non-existing API context?

Thanks.

-- 
Akila Ravihansa Perera
Software Engineer, WSO2

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


Re: [Dev] [ESB] API resource mis-match handler

2015-04-23 Thread Isuru Udana
Hi Akila,

On Fri, Apr 24, 2015 at 11:55 AM, Akila Ravihansa Perera  wrote:

> Hi,
>
> I'm trying to configure the _resource_mismatch_handler_ in ESB. I noticed
> that it gets triggered only when there is a mis-match for a resource in an
> already existing API context. It doesn't get triggered if a request is sent
> for a non-existing API context.
>
> Is this the expected behavior?
>
Yes. Synapse identify the api using the api context (not from API name). So
if the context is not matched, then it means there is no api to handle that
request and it is getting dispatched to the main sequence.

> Is there any way to configure the mis-match handler for a non-existing API
> context?
>
No. From the name itself gives the idea of this sequence is for mismatching
resources.
However you many configure the main sequence logic to handle these type of
requests.

>
> Thanks.
>
> --
> Akila Ravihansa Perera
> Software Engineer, WSO2
>
> Blog: http://ravihansa3000.blogspot.com
>



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


Re: [Dev] VFS Inbound Testing Scenario

2015-04-23 Thread Malaka Silva
Hi Shakira,

Further Check [1]

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

On Fri, Apr 24, 2015 at 11:44 AM, Malaka Silva  wrote:

> Hi Shakila,
>
> Is seems like a warning given by dep-sync. However do you get the
> artifacts gets deployed to worker nodes?
>
> How many worker nodes did you configure?
>
> On Fri, Apr 24, 2015 at 11:13 AM, Shakila Sivagnanarajah  > wrote:
>
>> Hi all,
>>
>> I am doing the ESB task to test the VFS Inbound.
>> I went through some portion of Carbon-Mediation code related to VFS and
>> tested VFS file transfer functionality with Smooks mediator (Synapse Sample
>> 654) so far.
>>
>> From this testing, I got an idea of Smooks mediator and practically
>> tested one of the use cases of VFS inbound.
>>
>> I have set up ESB worker/manager cluster without ELB. For this I referred
>> document [1] and used Ngnix Load Balancer. And I used the ESB pack got from
>> [2].
>>
>> [1]
>> https://docs.google.com/a/wso2.com/document/d/1x80QfnBW09keGVYOi3MLruckXbIVp45vOj9deyF0l5I/edit?usp=sharing
>>
>> [2]
>> https://svn.wso2.org/repos/wso2/people/ishan/dist/esb/4.9.0/wso2esb-4.9.0-M7.zip
>>
>> *Issues:*
>>
>>- When I start Worker 1, I am getting the exception *Can't find a svn
>>action for svn output line : Updating 'repository/deployment/server'*
>>see in log [3].
>>
>> [3]
>>
>> [2015-04-24 10:15:56,155]  INFO - MemberUtils Added member: Host:
>> mgt.esb.wso2.com, Remote Host:null, Port: 4100, HTTP:-1, HTTPS:-1,
>> Domain: null, Sub-domain:null, Active:true
>> [2015-04-24 10:16:04,676]  INFO - HazelcastClusteringAgent Hazelcast
>> initialized in 8519ms
>> [2015-04-24 10:16:04,696]  INFO - MemberUtils Added member:
>> Host:10.100.5.171, Remote Host:null, Port: 4100, HTTP:8281, HTTPS:8244,
>> Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
>> [2015-04-24 10:16:04,696]  INFO - HazelcastClusteringAgent Local member:
>> [d795d8a2-f6da-491a-ad5f-fe2cfa82f950] - Host:10.100.5.171, Remote
>> Host:null, Port: 4200, HTTP:8282, HTTPS:8245, Domain: wso2.esb.domain,
>> Sub-domain:null, Active:true
>> [2015-04-24 10:16:04,704]  INFO - MemberUtils Added member:
>> Host:10.100.5.171, Remote Host:null, Port: 4200, HTTP:8282, HTTPS:8245,
>> Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
>> [2015-04-24 10:16:04,960]  INFO - HazelcastClusteringAgent Cluster
>> initialization completed
>> [2015-04-24 10:16:04,968]  INFO - NioSelectorPool Using a shared selector
>> for servlet write/read
>> [2015-04-24 10:16:05,400]  INFO - NioSelectorPool Using a shared selector
>> for servlet write/read
>> [2015-04-24 10:16:05,470]  INFO - TaskServiceImpl Task service starting
>> in CLUSTERED mode...
>> [2015-04-24 10:16:05,510]  INFO - NTaskTaskManager Initialized task
>> manager. Tenant [-1234]
>> [2015-04-24 10:16:05,511]  INFO - ClusterGroupCommunicator Waiting for 2
>> [ESB_TASK] task executor nodes...
>> [2015-04-24 10:16:08,023]  WARN - SvnOutputParser Can't find a svn action
>> for svn output line : Updating 'repository/deployment/server':
>>
>>
>>- When I shout down Worker 1, It says "Error in waiting for task
>>[ESB_TASK] executor nodes: Hazelcast instance is not active!". See the  
>> log
>>in [4].
>>
>> [4]
>>
>> [2015-04-24 10:26:54,215] ERROR - TasksDSComponent Error in intializing
>> Tasks component: Error in waiting for task [ESB_TASK] executor nodes:
>> Hazelcast instance is not active!
>> org.wso2.carbon.ntask.common.TaskException: Error in waiting for task
>> [ESB_TASK] executor nodes: Hazelcast instance is not active!
>> at
>> org.wso2.carbon.ntask.core.impl.clustered.ClusterGroupCommunicator.checkServers(ClusterGroupCommunicator.java:159)
>> at
>> org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.runAfterRegistrationActions(TaskServiceImpl.java:324)
>> at
>> org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:109)
>> 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:601)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(F

[Dev] Updated Invitation: Code Review - Siddhi RegEx Function Extension @ Fri Apr 24, 2015 2pm - 3pm (ramin...@wso2.com)

2015-04-23 Thread ramin...@wso2.com
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20150424T083000Z
DTEND:20150424T093000Z
DTSTAMP:20150424T065035Z
ORGANIZER;CN=Ramindu De Silva:mailto:ramin...@wso2.com
UID:0kljo42sdqccvq9lk9gkkms...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Ramindu De Silva;X-NUM-GUESTS=0:mailto:ramin...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sriskandarajah Suhothayan;X-NUM-GUESTS=0:mailto:s...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TR
 UE;CN="LK Trace Mezzanine Floor Meeting Room - Gondor Ext:1036212";X-NUM-GU
 ESTS=0:mailto:wso2.com_2d323839383039343...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Tharik Kanaka;X-NUM-GUESTS=0:mailto:tha...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Lasantha Fernando;X-NUM-GUESTS=0:mailto:lasan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Thilini Anoratna;X-NUM-GUESTS=0:mailto:thili...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sachini Jayasekara;X-NUM-GUESTS=0:mailto:sachi...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Mohanadarshan Vivekanandalingam;X-NUM-GUESTS=0;X-RESPONSE-COMMENT="
 Sorry\, I am on study leave..":mailto:mo...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Damith Wickramasinghe;X-NUM-GUESTS=0:mailto:dami...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dilini Muthumala;X-NUM-GUESTS=0:mailto:dil...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rajeev Sampath;X-NUM-GUESTS=0:mailto:raje...@wso2.com
CREATED:20150421T084010Z
DESCRIPTION:View your event at https://www.google.com/calendar/event?action
 =VIEW&eid=MGtsam80MnNkcWNjdnE5bGs5Z2trbXNvdTQgZGV2QHdzbzIub3Jn&tok=MTcjcmFt
 aW5kdXNAd3NvMi5jb21hZTlmNmQ2OTg3YWE4NTlhNjVhMzU2NDczYWIxNjg4ZDFlNTU0YjM3&ct
 z=Asia/Colombo&hl=en.
LAST-MODIFIED:20150424T065035Z
LOCATION:LK Trace Mezzanine Floor Meeting Room - Gondor Ext:1036212
SEQUENCE:1
STATUS:CONFIRMED
SUMMARY:Code Review - Siddhi RegEx Function Extension
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] VFS Inbound Testing Scenario

2015-04-23 Thread Shakila Sivagnanarajah
Hi Malaka,

I configured 2 worker nodes. And I set one worker as the known worker for
the manager. The artifacts mentioned in [1] were created at the given SVN
location.
[1]

   - axis2modules/
   

   - axis2services/
   

   - synapse-configs/
   

   - webapps/
   

Thank you.

On Fri, Apr 24, 2015 at 12:13 PM, Malaka Silva  wrote:

> Hi Shakira,
>
> Further Check [1]
>
> [1] https://wso2.org/jira/browse/BPS-346
>
> On Fri, Apr 24, 2015 at 11:44 AM, Malaka Silva  wrote:
>
>> Hi Shakila,
>>
>> Is seems like a warning given by dep-sync. However do you get the
>> artifacts gets deployed to worker nodes?
>>
>> How many worker nodes did you configure?
>>
>> On Fri, Apr 24, 2015 at 11:13 AM, Shakila Sivagnanarajah <
>> shak...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I am doing the ESB task to test the VFS Inbound.
>>> I went through some portion of Carbon-Mediation code related to VFS and
>>> tested VFS file transfer functionality with Smooks mediator (Synapse Sample
>>> 654) so far.
>>>
>>> From this testing, I got an idea of Smooks mediator and practically
>>> tested one of the use cases of VFS inbound.
>>>
>>> I have set up ESB worker/manager cluster without ELB. For this I
>>> referred document [1] and used Ngnix Load Balancer. And I used the ESB pack
>>> got from [2].
>>>
>>> [1]
>>> https://docs.google.com/a/wso2.com/document/d/1x80QfnBW09keGVYOi3MLruckXbIVp45vOj9deyF0l5I/edit?usp=sharing
>>>
>>> [2]
>>> https://svn.wso2.org/repos/wso2/people/ishan/dist/esb/4.9.0/wso2esb-4.9.0-M7.zip
>>>
>>> *Issues:*
>>>
>>>- When I start Worker 1, I am getting the exception *Can't find a
>>>svn action for svn output line : Updating 'repository/deployment/server'*
>>>see in log [3].
>>>
>>> [3]
>>>
>>> [2015-04-24 10:15:56,155]  INFO - MemberUtils Added member: Host:
>>> mgt.esb.wso2.com, Remote Host:null, Port: 4100, HTTP:-1, HTTPS:-1,
>>> Domain: null, Sub-domain:null, Active:true
>>> [2015-04-24 10:16:04,676]  INFO - HazelcastClusteringAgent Hazelcast
>>> initialized in 8519ms
>>> [2015-04-24 10:16:04,696]  INFO - MemberUtils Added member:
>>> Host:10.100.5.171, Remote Host:null, Port: 4100, HTTP:8281, HTTPS:8244,
>>> Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
>>> [2015-04-24 10:16:04,696]  INFO - HazelcastClusteringAgent Local member:
>>> [d795d8a2-f6da-491a-ad5f-fe2cfa82f950] - Host:10.100.5.171, Remote
>>> Host:null, Port: 4200, HTTP:8282, HTTPS:8245, Domain: wso2.esb.domain,
>>> Sub-domain:null, Active:true
>>> [2015-04-24 10:16:04,704]  INFO - MemberUtils Added member:
>>> Host:10.100.5.171, Remote Host:null, Port: 4200, HTTP:8282, HTTPS:8245,
>>> Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
>>> [2015-04-24 10:16:04,960]  INFO - HazelcastClusteringAgent Cluster
>>> initialization completed
>>> [2015-04-24 10:16:04,968]  INFO - NioSelectorPool Using a shared
>>> selector for servlet write/read
>>> [2015-04-24 10:16:05,400]  INFO - NioSelectorPool Using a shared
>>> selector for servlet write/read
>>> [2015-04-24 10:16:05,470]  INFO - TaskServiceImpl Task service starting
>>> in CLUSTERED mode...
>>> [2015-04-24 10:16:05,510]  INFO - NTaskTaskManager Initialized task
>>> manager. Tenant [-1234]
>>> [2015-04-24 10:16:05,511]  INFO - ClusterGroupCommunicator Waiting for 2
>>> [ESB_TASK] task executor nodes...
>>> [2015-04-24 10:16:08,023]  WARN - SvnOutputParser Can't find a svn
>>> action for svn output line : Updating 'repository/deployment/server':
>>>
>>>
>>>- When I shout down Worker 1, It says "Error in waiting for task
>>>[ESB_TASK] executor nodes: Hazelcast instance is not active!". See the  
>>> log
>>>in [4].
>>>
>>> [4]
>>>
>>> [2015-04-24 10:26:54,215] ERROR - TasksDSComponent Error in intializing
>>> Tasks component: Error in waiting for task [ESB_TASK] executor nodes:
>>> Hazelcast instance is not active!
>>> org.wso2.carbon.ntask.common.TaskException: Error in waiting for task
>>> [ESB_TASK] executor nodes: Hazelcast instance is not active!
>>> at
>>> org.wso2.carbon.ntask.core.impl.clustered.ClusterGroupCommunicator.checkServers(ClusterGroupCommunicator.java:159)
>>> at
>>> org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.runAfterRegistrationActions(TaskServiceImpl.java:324)
>>> at
>>> org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:109)
>>> 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:601)
>>> at
>>