[Dev] Location of logout_action.jsp file of carbon management console

2015-05-12 Thread Tharik Kanaka
Hi All,

In carbon management console, the sign out hyper link is linked to
page /carbon/admin/logout_action.jsp and from there it will redirected
to /admin/login.jsp page. Inside logout_action.jsp the logging out user and
handling cookies and sessions will be done.

I need to take a look on that code to refer so i was searching the file in
carbon4-kernel ui (since login.jsp is there) [1] , but its not located
there. Does anyone knows the place where logout_action.jsp is located?

[1]
https://github.com/wso2/carbon4-kernel/tree/master/core/org.wso2.carbon.ui/src/main/resources/web/admin

Thanks,
-- 

*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] VFS/JMS Sender in tenant mode error

2015-05-12 Thread Malaka Silva
Hi Carbon Team,

Please merge [1].

Related Jiras [2] and [3]

[1] https://github.com/wso2/carbon4-kernel/pull/205
[2] https://wso2.org/jira/browse/CARBON-15245
[3] https://wso2.org/jira/browse/ESBJAVA-3683

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] TestNG exception when running integration testing for Product ESB ( test-other package ))

2015-05-12 Thread Saneth Dharmakeerthi
Hi Kevin,

Please share the full test case with us.

Thanks and Best Regards,

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

On Tue, May 12, 2015 at 12:24 PM, Kevin Ratnasekera  wrote:

> Hi all,
> org.testng.TestNGException:
> org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionFalseTestScenario()
> is depending on method public void
> org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionTrueTestScenario()
> throws java.lang.Exception, which is not annotated with @Test
>
> I am running integration tests on  java version 1.7. The failing test
> methods are depended on other methods. ( dependsOnMethods ) The classes
> which does not include depended test methods pass successfully.
> Regards
> Kevin
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] TestNG exception when running integration testing for Product ESB ( test-other package ))

2015-05-12 Thread Kevin Ratnasekera
Hi Saneth,
These are the two test case methods related to the exception,


@Test(groups = {"wso2.esb"}, description = "Tests with filter mediator
- JSON path Scenario - Filter condition true" , enabled=false)
public void testJSONFilterFromJSONPathConditionTrueTestScenario()
throws Exception {

String JSON_PAYLOAD = "{\"album\":\"Hello\",\"singer\":\"Peter\"}";

WebResource webResource = client
.resource(getProxyServiceURLHttp("JSONPathFilterWithJSONProxy"));

// sending post request
ClientResponse postResponse = webResource.type("application/json")
.post(ClientResponse.class, JSON_PAYLOAD);

assertEquals(postResponse.getType().toString(),
"application/json", "Content-Type Should be application/json");
assertEquals(postResponse.getStatus(), 201, "Response status
should be 201");

// Calling the GET request to verify Added album details
ClientResponse getResponse = webResource.type("application/json")
.get(ClientResponse.class);

assertNotNull(getResponse, "Received Null response for while
getting Music album details");
assertEquals(getResponse.getEntity(String.class), JSON_PAYLOAD,
"Response mismatch for HTTP Get call");
}


@Test(groups = {"wso2.esb"}, description = "Tests with filter mediator
- JSON path Scenario Filter condition False",
dependsOnMethods =
"testJSONFilterFromJSONPathConditionTrueTestScenario")
public void testJSONFilterFromJSONPathConditionFalseTestScenario()
throws Exception {

String JSON_PAYLOAD = "{\"album\":\"Moon\",\"singer\":\"Peter\"}";

WebResource webResource = client
.resource(getProxyServiceURLHttp("FilterWithJSONProxy"));

// sending post request
ClientResponse postResponse = webResource.type("application/json")
.post(ClientResponse.class, JSON_PAYLOAD);

assertEquals(postResponse.getStatus(), 202, "Response status
should be 202");
}

Thanks
Regards
Kevin

On Tue, May 12, 2015 at 1:43 PM, Saneth Dharmakeerthi 
wrote:

> Hi Kevin,
>
> Please share the full test case with us.
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Tue, May 12, 2015 at 12:24 PM, Kevin Ratnasekera 
> wrote:
>
>> Hi all,
>> org.testng.TestNGException:
>> org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionFalseTestScenario()
>> is depending on method public void
>> org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionTrueTestScenario()
>> throws java.lang.Exception, which is not annotated with @Test
>>
>> I am running integration tests on  java version 1.7. The failing test
>> methods are depended on other methods. ( dependsOnMethods ) The classes
>> which does not include depended test methods pass successfully.
>> Regards
>> Kevin
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] TestNG exception when running integration testing for Product ESB ( test-other package ))

2015-05-12 Thread Waruna Perera
Hi Kevin,

Are those only failing when run together or even as individual runs?



On Tue, May 12, 2015 at 1:48 PM, Kevin Ratnasekera  wrote:

> Hi Saneth,
> These are the two test case methods related to the exception,
>
>
> @Test(groups = {"wso2.esb"}, description = "Tests with filter mediator - JSON 
> path Scenario - Filter condition true" , enabled=false)
> public void testJSONFilterFromJSONPathConditionTrueTestScenario() throws 
> Exception {
>
> String JSON_PAYLOAD = "{\"album\":\"Hello\",\"singer\":\"Peter\"}";
>
> WebResource webResource = client
> .resource(getProxyServiceURLHttp("JSONPathFilterWithJSONProxy"));
>
> // sending post request
> ClientResponse postResponse = webResource.type("application/json")
> .post(ClientResponse.class, JSON_PAYLOAD);
>
> assertEquals(postResponse.getType().toString(), "application/json", 
> "Content-Type Should be application/json");
> assertEquals(postResponse.getStatus(), 201, "Response status should be 
> 201");
>
> // Calling the GET request to verify Added album details
> ClientResponse getResponse = webResource.type("application/json")
> .get(ClientResponse.class);
>
> assertNotNull(getResponse, "Received Null response for while getting 
> Music album details");
> assertEquals(getResponse.getEntity(String.class), JSON_PAYLOAD, "Response 
> mismatch for HTTP Get call");
> }
>
>
> @Test(groups = {"wso2.esb"}, description = "Tests with filter mediator - JSON 
> path Scenario Filter condition False",
> dependsOnMethods = 
> "testJSONFilterFromJSONPathConditionTrueTestScenario")
> public void testJSONFilterFromJSONPathConditionFalseTestScenario() throws 
> Exception {
>
> String JSON_PAYLOAD = "{\"album\":\"Moon\",\"singer\":\"Peter\"}";
>
> WebResource webResource = client
> .resource(getProxyServiceURLHttp("FilterWithJSONProxy"));
>
> // sending post request
> ClientResponse postResponse = webResource.type("application/json")
> .post(ClientResponse.class, JSON_PAYLOAD);
>
> assertEquals(postResponse.getStatus(), 202, "Response status should be 
> 202");
> }
>
> Thanks
> Regards
> Kevin
>
> On Tue, May 12, 2015 at 1:43 PM, Saneth Dharmakeerthi 
> wrote:
>
>> Hi Kevin,
>>
>> Please share the full test case with us.
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Tue, May 12, 2015 at 12:24 PM, Kevin Ratnasekera 
>> wrote:
>>
>>> Hi all,
>>> org.testng.TestNGException:
>>> org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionFalseTestScenario()
>>> is depending on method public void
>>> org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionTrueTestScenario()
>>> throws java.lang.Exception, which is not annotated with @Test
>>>
>>> I am running integration tests on  java version 1.7. The failing test
>>> methods are depended on other methods. ( dependsOnMethods ) The classes
>>> which does not include depended test methods pass successfully.
>>> Regards
>>> Kevin
>>>
>>>
>>> ___
>>> 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
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] VFS/JMS Sender in tenant mode error

2015-05-12 Thread Kasun Indrasiri
Hi Malaka,

Are we only adding them for JMS and VFS. How about other transports? Is it
possible to make this dynamic so that we don't have to hardcode the
transports?

On Tue, May 12, 2015 at 12:49 PM, Malaka Silva  wrote:

> Hi Carbon Team,
>
> Please merge [1].
>
> Related Jiras [2] and [3]
>
> [1] https://github.com/wso2/carbon4-kernel/pull/205
> [2] https://wso2.org/jira/browse/CARBON-15245
> [3] https://wso2.org/jira/browse/ESBJAVA-3683
>
> 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.
>



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

cell: +94 77 556 5206
Blog : http://kasunpanorama.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] TestNG exception when running integration testing for Product ESB ( test-other package ))

2015-05-12 Thread Isuru Ranawaka
Hi Kevin,

Please run those integration tests by enabling them.

On Tue, May 12, 2015 at 2:07 PM, Waruna Perera  wrote:

> Hi Kevin,
>
> Are those only failing when run together or even as individual runs?
>
>
>
> On Tue, May 12, 2015 at 1:48 PM, Kevin Ratnasekera  wrote:
>
>> Hi Saneth,
>> These are the two test case methods related to the exception,
>>
>>
>> @Test(groups = {"wso2.esb"}, description = "Tests with filter mediator - 
>> JSON path Scenario - Filter condition true" , enabled=false)
>> public void testJSONFilterFromJSONPathConditionTrueTestScenario() throws 
>> Exception {
>>
>> String JSON_PAYLOAD = "{\"album\":\"Hello\",\"singer\":\"Peter\"}";
>>
>> WebResource webResource = client
>> .resource(getProxyServiceURLHttp("JSONPathFilterWithJSONProxy"));
>>
>> // sending post request
>> ClientResponse postResponse = webResource.type("application/json")
>> .post(ClientResponse.class, JSON_PAYLOAD);
>>
>> assertEquals(postResponse.getType().toString(), "application/json", 
>> "Content-Type Should be application/json");
>> assertEquals(postResponse.getStatus(), 201, "Response status should be 
>> 201");
>>
>> // Calling the GET request to verify Added album details
>> ClientResponse getResponse = webResource.type("application/json")
>> .get(ClientResponse.class);
>>
>> assertNotNull(getResponse, "Received Null response for while getting 
>> Music album details");
>> assertEquals(getResponse.getEntity(String.class), JSON_PAYLOAD, 
>> "Response mismatch for HTTP Get call");
>> }
>>
>>
>> @Test(groups = {"wso2.esb"}, description = "Tests with filter mediator - 
>> JSON path Scenario Filter condition False",
>> dependsOnMethods = 
>> "testJSONFilterFromJSONPathConditionTrueTestScenario")
>> public void testJSONFilterFromJSONPathConditionFalseTestScenario() throws 
>> Exception {
>>
>> String JSON_PAYLOAD = "{\"album\":\"Moon\",\"singer\":\"Peter\"}";
>>
>> WebResource webResource = client
>> .resource(getProxyServiceURLHttp("FilterWithJSONProxy"));
>>
>> // sending post request
>> ClientResponse postResponse = webResource.type("application/json")
>> .post(ClientResponse.class, JSON_PAYLOAD);
>>
>> assertEquals(postResponse.getStatus(), 202, "Response status should be 
>> 202");
>> }
>>
>> Thanks
>> Regards
>> Kevin
>>
>> On Tue, May 12, 2015 at 1:43 PM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> Hi Kevin,
>>>
>>> Please share the full test case with us.
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile: +94772325511
>>>
>>> On Tue, May 12, 2015 at 12:24 PM, Kevin Ratnasekera 
>>> wrote:
>>>
 Hi all,
 org.testng.TestNGException:
 org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionFalseTestScenario()
 is depending on method public void
 org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionTrueTestScenario()
 throws java.lang.Exception, which is not annotated with @Test

 I am running integration tests on  java version 1.7. The failing test
 methods are depended on other methods. ( dependsOnMethods ) The classes
 which does not include depended test methods pass successfully.
 Regards
 Kevin


 ___
 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
>>
>>
>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards
Isuru Ranawaka
M: +94714629880
Blog : http://isurur.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] TestNG exception when running integration testing for Product ESB ( test-other package ))

2015-05-12 Thread Irham Iqbal
Hi Kevin,

Your test method
testJSONFilterFromJSONPathConditionFalseTestScenario() has
dependsOnMethods
= "testJSONFilterFromJSONPathConditionTrueTestScenario" that makes your
test method testJSONFilterFromJSONPathConditionFalseTestScenario() depends
on testJSONFilterFromJSONPathConditionTrueTestScenario() method. Since you
have enabled=false your first method it won't run. Your second test method
will only run after that. Because of that you're getting that exception.

Thanks,
Iqbal



On Tue, May 12, 2015 at 2:07 PM, Waruna Perera  wrote:

> Hi Kevin,
>
> Are those only failing when run together or even as individual runs?
>
>
>
> On Tue, May 12, 2015 at 1:48 PM, Kevin Ratnasekera  wrote:
>
>> Hi Saneth,
>> These are the two test case methods related to the exception,
>>
>>
>> @Test(groups = {"wso2.esb"}, description = "Tests with filter mediator - 
>> JSON path Scenario - Filter condition true" , enabled=false)
>> public void testJSONFilterFromJSONPathConditionTrueTestScenario() throws 
>> Exception {
>>
>> String JSON_PAYLOAD = "{\"album\":\"Hello\",\"singer\":\"Peter\"}";
>>
>> WebResource webResource = client
>> .resource(getProxyServiceURLHttp("JSONPathFilterWithJSONProxy"));
>>
>> // sending post request
>> ClientResponse postResponse = webResource.type("application/json")
>> .post(ClientResponse.class, JSON_PAYLOAD);
>>
>> assertEquals(postResponse.getType().toString(), "application/json", 
>> "Content-Type Should be application/json");
>> assertEquals(postResponse.getStatus(), 201, "Response status should be 
>> 201");
>>
>> // Calling the GET request to verify Added album details
>> ClientResponse getResponse = webResource.type("application/json")
>> .get(ClientResponse.class);
>>
>> assertNotNull(getResponse, "Received Null response for while getting 
>> Music album details");
>> assertEquals(getResponse.getEntity(String.class), JSON_PAYLOAD, 
>> "Response mismatch for HTTP Get call");
>> }
>>
>>
>> @Test(groups = {"wso2.esb"}, description = "Tests with filter mediator - 
>> JSON path Scenario Filter condition False",
>> dependsOnMethods = 
>> "testJSONFilterFromJSONPathConditionTrueTestScenario")
>> public void testJSONFilterFromJSONPathConditionFalseTestScenario() throws 
>> Exception {
>>
>> String JSON_PAYLOAD = "{\"album\":\"Moon\",\"singer\":\"Peter\"}";
>>
>> WebResource webResource = client
>> .resource(getProxyServiceURLHttp("FilterWithJSONProxy"));
>>
>> // sending post request
>> ClientResponse postResponse = webResource.type("application/json")
>> .post(ClientResponse.class, JSON_PAYLOAD);
>>
>> assertEquals(postResponse.getStatus(), 202, "Response status should be 
>> 202");
>> }
>>
>> Thanks
>> Regards
>> Kevin
>>
>> On Tue, May 12, 2015 at 1:43 PM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> Hi Kevin,
>>>
>>> Please share the full test case with us.
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile: +94772325511
>>>
>>> On Tue, May 12, 2015 at 12:24 PM, Kevin Ratnasekera 
>>> wrote:
>>>
 Hi all,
 org.testng.TestNGException:
 org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionFalseTestScenario()
 is depending on method public void
 org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionTrueTestScenario()
 throws java.lang.Exception, which is not annotated with @Test

 I am running integration tests on  java version 1.7. The failing test
 methods are depended on other methods. ( dependsOnMethods ) The classes
 which does not include depended test methods pass successfully.
 Regards
 Kevin


 ___
 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
>>
>>
>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
> ___
> 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] VFS/JMS Sender in tenant mode error

2015-05-12 Thread Malaka Silva
Hi Kasun,

Added rabbitmq as well. It's better if we can do this dynamically. Will
check on that.

Currently added vfs/jms and rabbitmq

On Tue, May 12, 2015 at 2:14 PM, Kasun Indrasiri  wrote:

> Hi Malaka,
>
> Are we only adding them for JMS and VFS. How about other transports? Is it
> possible to make this dynamic so that we don't have to hardcode the
> transports?
>
> On Tue, May 12, 2015 at 12:49 PM, Malaka Silva  wrote:
>
>> Hi Carbon Team,
>>
>> Please merge [1].
>>
>> Related Jiras [2] and [3]
>>
>> [1] https://github.com/wso2/carbon4-kernel/pull/205
>> [2] https://wso2.org/jira/browse/CARBON-15245
>> [3] https://wso2.org/jira/browse/ESBJAVA-3683
>>
>> 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.
>>
>
>
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.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.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Writing use cases and test cases for Kafka connector and inbound

2015-05-12 Thread Naasheer Ali
Hi All,

I'm trying to write some usecases and test cases for kafka connector and
inbound. Now I'm doing RnD work on kafka.

@kathees:
   can you send me the documentation of kafka connector and related links
of kafka.

Regards,
-- 

*Naasheer Ali* | Associate Software Engineer

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

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


[Dev] [MDM] NullPointerException in Android Application

2015-05-12 Thread Milan Perera
Hi,

I'm getting $subject whenever the device get restarted. Exception details
as follows:

java.lang.RuntimeException: Unable to start receiver
org.wso2.mdm.agent.services.DeviceStartupIntentReceiver:
java.lang.NullPointerException: Attempt to invoke virtual method
'java.lang.String java.lang.String.trim()' on a null object reference
at
android.app.ActivityThread.handleReceiver(ActivityThread.java:2586)
at
android.app.ActivityThread.access$1700(ActivityThread.java:144)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
 Caused by: java.lang.NullPointerException: Attempt to invoke virtual
method 'java.lang.String java.lang.String.trim()' on a null object reference
at
org.wso2.mdm.agent.services.DeviceStartupIntentReceiver.setRecurringAlarm(DeviceStartupIntentReceiver.java:61)
at
org.wso2.mdm.agent.services.DeviceStartupIntentReceiver.onReceive(DeviceStartupIntentReceiver.java:45)
at
android.app.ActivityThread.handleReceiver(ActivityThread.java:2579)
at
android.app.ActivityThread.access$1700(ActivityThread.java:144)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

​This is occurred when device invoke *setRecurringAlarm()* method in
*DeviceStartupIntentReceiver
*class at the start-up.​ The reason for getting this exception because it
tries to get the '*mode*' string from *SharedPreference* and trim it.
However the '*mode*' is not stored there.

Code Snippet
---

String mode = Preference.getString(context,
resources.getString(R.string.shared_pref_message_mode));

if (NOTIFIER_MODE.equals(mode.trim().toUpperCase(Locale.ENGLISH))) { ... }

​
According to what I have understood, it checks the *NOTIFICATION_MODE*
whether *LOCAL* or *GCM*.

So my questions are, *where should I set this 'mode' preference and how do
we decide whether it should be LOCAL or GCM?*
​

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

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


[Dev] Move files/folders in GIT ;preserving history

2015-05-12 Thread Nirmal Fernando
Hi,

If you need to move files/folders in a git repo preserving its history, use
the script at https://gist.github.com/emiller/6769886

-- 

Thanks & regards,
Nirmal

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


[Dev] New Icon required for WSO2 CEP Execution Manager feature

2015-05-12 Thread Tharik Kanaka
Hi Chanaka,

We have added a new feature for WSO2 CEP called Execution Manager. We need
a new icon for this menu item of manage console. Menu item is located at
the top of event processor as shown in following image. Since this is
related Execution Plans, existing Execution Plans icon can be used and
modified accordingly (Execution Plans icon .gif is attached along with this
mail).


[image: Inline image 4]


Regards,

-- 

*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] Location of logout_action.jsp file of carbon management console

2015-05-12 Thread Tharik Kanaka
Hi all,

I just found out that there is no physical page called logout_action.jsp in
carbon. If we access logout_action.jsp page it will do the action logout
and redirect to login page.

Regards,

On Tue, May 12, 2015 at 12:29 PM, Tharik Kanaka  wrote:

> Hi All,
>
> In carbon management console, the sign out hyper link is linked to
> page /carbon/admin/logout_action.jsp and from there it will redirected
> to /admin/login.jsp page. Inside logout_action.jsp the logging out user and
> handling cookies and sessions will be done.
>
> I need to take a look on that code to refer so i was searching the file in
> carbon4-kernel ui (since login.jsp is there) [1] , but its not located
> there. Does anyone knows the place where logout_action.jsp is located?
>
> [1]
> https://github.com/wso2/carbon4-kernel/tree/master/core/org.wso2.carbon.ui/src/main/resources/web/admin
>
> Thanks,
> --
>
> *Tharik Kanaka* | Associate Software Engineer
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Email: tha...@wso2.com | Web: www.wso2.com
>



-- 

*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] getUsername methods returns null in carbon context

2015-05-12 Thread Tharik Kanaka
Hi Thusitha,

Above thread is 2 years old and now we don't have getCurrentContext in
carbon context. Anyway as a work around i have retrieved username from
session attributes.

Regards,

On Tue, May 12, 2015 at 9:36 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Tharik,
>
> Refer to the following mail thread, "[Dev]
> PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername() returns
> 'null'"
> http://mail.wso2.org/mailarchive/dev/2013-January/014372.html
>
> Thanks
>
>
> On Tue, May 12, 2015 at 9:20 AM, Tharik Kanaka  wrote:
>
>> Hi All,
>>
>> I want to get logged in username and password inside one of my carbon
>> component written for WSO2 CEP product. I used following two methods to get
>> username from carbon context but both returned null. But getTenantId
>> returns -1234 for admin user with no issue. Is there alternative way to get
>> username?
>>
>> PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername()
>>
>> CarbonContext.getThreadLocalCarbonContext().getUsername()
>>
>> Thanks,
>> --
>>
>> *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
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>


-- 

*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] [MDM] NullPointerException in Android Application

2015-05-12 Thread Inosh Perera
Hi Milan,

According to EMM 1.1.0, When the device is successfully registered, with
the response, we sent a set of initial configurations. This configuration,
included things such as, whether the mode is LOCAL or GCM, if
LOCAL(polling) then the frequency to poll. In EMM 1.1.0, these were stored
in a config file and passed to the device. So in MDM we must pass this
value and store at some point, so that the device can choose how to
communicate with the server.

Regards,
Inosh

On Tue, May 12, 2015 at 2:52 PM, Milan Perera  wrote:

> Hi,
>
> I'm getting $subject whenever the device get restarted. Exception details
> as follows:
>
> java.lang.RuntimeException: Unable to start receiver
> org.wso2.mdm.agent.services.DeviceStartupIntentReceiver:
> java.lang.NullPointerException: Attempt to invoke virtual method
> 'java.lang.String java.lang.String.trim()' on a null object reference
> at
> android.app.ActivityThread.handleReceiver(ActivityThread.java:2586)
> at
> android.app.ActivityThread.access$1700(ActivityThread.java:144)
> at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
> at android.os.Handler.dispatchMessage(Handler.java:102)
> at android.os.Looper.loop(Looper.java:135)
> at android.app.ActivityThread.main(ActivityThread.java:5221)
> at java.lang.reflect.Method.invoke(Native Method)
> at java.lang.reflect.Method.invoke(Method.java:372)
> at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
>  Caused by: java.lang.NullPointerException: Attempt to invoke virtual
> method 'java.lang.String java.lang.String.trim()' on a null object reference
> at
> org.wso2.mdm.agent.services.DeviceStartupIntentReceiver.setRecurringAlarm(DeviceStartupIntentReceiver.java:61)
> at
> org.wso2.mdm.agent.services.DeviceStartupIntentReceiver.onReceive(DeviceStartupIntentReceiver.java:45)
> at
> android.app.ActivityThread.handleReceiver(ActivityThread.java:2579)
> at
> android.app.ActivityThread.access$1700(ActivityThread.java:144)
> at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
> at android.os.Handler.dispatchMessage(Handler.java:102)
> at android.os.Looper.loop(Looper.java:135)
> at android.app.ActivityThread.main(ActivityThread.java:5221)
> at java.lang.reflect.Method.invoke(Native Method)
> at java.lang.reflect.Method.invoke(Method.java:372)
> at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
>
> ​This is occurred when device invoke *setRecurringAlarm()* method in 
> *DeviceStartupIntentReceiver
> *class at the start-up.​ The reason for getting this exception because it
> tries to get the '*mode*' string from *SharedPreference* and trim it.
> However the '*mode*' is not stored there.
>
> Code Snippet
> ---
>
> String mode = Preference.getString(context, 
> resources.getString(R.string.shared_pref_message_mode));
>
> if (NOTIFIER_MODE.equals(mode.trim().toUpperCase(Locale.ENGLISH))) { ... }
>
> ​
> According to what I have understood, it checks the *NOTIFICATION_MODE*
> whether *LOCAL* or *GCM*.
>
> So my questions are, *where should I set this 'mode' preference and how
> do we decide whether it should be LOCAL or GCM?*
> ​
>
> --
> Milan Harindu Perera
> Software Engineer
> *WSO2, Inc*
> (+94) 77 309 7088
> lean . enterprise . middleware
> 
>



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


Re: [Dev] Fwd: MQTT Transport

2015-05-12 Thread Sriashalya Srivathsan
Hi Chanaka,
But I'm getting the following in my MB console


[2015-05-12 16:01:41,377]  INFO
{org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a message
of type PINGREQ

[2015-05-12 16:01:47,270]  INFO
{org.dna.mqtt.moquette.parser.netty.PublishDecoder} -  decode invoked with
buffer UnpooledUnsafeDirectByteBuf(ridx: 1, widx: 63, cap: 208)

[2015-05-12 16:01:47,271]  INFO
{org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a message
of type PUBLISH

[2015-05-12 16:01:47,271]  INFO
{org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging} -  onEvent
processing messaging event from input ringbuffer ProtocolEvent wrapping
PUBLISH

STORE >> message part id374739636907147264 offset 0

[2015-05-12 16:01:47,272]  INFO
{org.wso2.andes.messageStore.CassandraBasedMessageStoreImpl} -  Wrote
message 374739636907147264 to Global Queue TopicNodeQueue_0

REMOVE CONTENT>> id 374739636907147264

On Tue, May 12, 2015 at 3:41 PM, Sriashalya Srivathsan 
wrote:

> Hi Chanaka,
> I've opened the TCP monitor for the UI client. The noticed message has
> been attached below.Is the client sending the message properly?
>
>
> Thank you,
>
> On Wed, May 6, 2015 at 1:20 PM, Sriashalya Srivathsan 
> wrote:
>
>> HI Malaka,
>> I'll proceed with that.
>>
>> On Wed, May 6, 2015 at 1:11 PM, Malaka Silva  wrote:
>>
>>> Hi Sriashalya,
>>>
>>> As we discussed offline, we need to get the source code (I guess this is
>>> carbon 4.2.0) and start debugging the MQTTListener code.
>>>
>>> On Wed, Apr 29, 2015 at 10:16 PM, Sriashalya Srivathsan <
>>> asha...@wso2.com> wrote:
>>>
 Sajini you are correct. I'm using MB 3.0.0.
 Chanaka I've used log mediator, but I cannot see any thing in my ESB
 console.



 Thank you,

 On Wed, Apr 29, 2015 at 5:27 PM, Chanaka Fernando 
 wrote:

> Hi Sriashalya,
>
> You can use log mediator to view the message when it is passing
> through ESB.
>
> 
>
> Thanks,
> Chanaka
>
> On Wed, Apr 29, 2015 at 5:25 PM, Sajini De Silva 
> wrote:
>
>> Hi Sriashalya,
>>
>> What is the MB version you are using in this scenario? I see global
>> queues in the logs which is used in MB 2.2.0. MB 2.2.0 does not support
>> MQTT.
>>
>> Thank you,
>> Sajini
>>
>> Thank you,
>> Sajini
>>
>> On Wed, Apr 29, 2015 at 5:15 PM, Sriashalya Srivathsan <
>> asha...@wso2.com> wrote:
>>
>>> looping to Dev
>>>
>>> On Wed, Apr 29, 2015 at 5:13 PM, Sriashalya Srivathsan <
>>> asha...@wso2.com> wrote:
>>>
 Hi Chanaka,
 I've sent the message from client ,It is going to MB perfectly. But
 I couldn't get anything in the ESB console. It seems ESB don't receive 
 the
  message. How Can I proceed with this?
 Im sharing the MB console below.


 On Mon, Apr 27, 2015 at 12:33 PM, Sriashalya Srivathsan <
 asha...@wso2.com> wrote:

> Hi Chanaka,
> I've followed the following link (
> https://docs.google.com/a/wso2.com/document/d/1G2sf8g27w8kFmfXVC6F7Kf7LTtZUdCcLRN5UnwdfIxQ/edit
> ).
>
>-  axis2.xml is replaced.
>- proxy and sequence are added.
>- jars added to ESB.
>- MB, ESB and two instance of Stock quote services are opened.
>- UI based client started and message sent through that
>
> But I couldn't get anything in the ESB console. What am I missing
> over there?
>
> --
> S.Sriashalya,
> Associate Software Engineer,
> WSO2.
>



 --
 S.Sriashalya,
 Associate Software Engineer,
 WSO2 *Inc*.
 lean . enterprise . middleware

>>>
>>>
>>>
>>> --
>>> S.Sriashalya,
>>> Associate Software Engineer,
>>> WSO2 *Inc*.
>>> lean . enterprise . middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sajini De SIlva
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>> Email: saj...@wso2.com
>> Blog: http://sajinid.blogspot.com/
>> Git hub profile: https://github.com/sajinidesilva
>>
>> Phone: +94 712797729
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Senior 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:h

Re: [Dev] Fwd: MQTT Transport

2015-05-12 Thread Madhuranga Bandara
Hi Sriashalya,

Just a small comment. Wireshark is better and easier than TCP mon in
analysing the message content.
Try to use Wireshark when you need to analyse messages.
Madhuranga Sampath Bandara
Software Engineer

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


On Tue, May 12, 2015 at 4:06 PM, Sriashalya Srivathsan  wrote:
> Hi Chanaka,
> But I'm getting the following in my MB console
>
>
> [2015-05-12 16:01:41,377]  INFO
> {org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a message
> of type PINGREQ
>
> [2015-05-12 16:01:47,270]  INFO
> {org.dna.mqtt.moquette.parser.netty.PublishDecoder} -  decode invoked with
> buffer UnpooledUnsafeDirectByteBuf(ridx: 1, widx: 63, cap: 208)
>
> [2015-05-12 16:01:47,271]  INFO
> {org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a message
> of type PUBLISH
>
> [2015-05-12 16:01:47,271]  INFO
> {org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging} -  onEvent
> processing messaging event from input ringbuffer ProtocolEvent wrapping
> PUBLISH
>
> STORE >> message part id374739636907147264 offset 0
>
> [2015-05-12 16:01:47,272]  INFO
> {org.wso2.andes.messageStore.CassandraBasedMessageStoreImpl} -  Wrote
> message 374739636907147264 to Global Queue TopicNodeQueue_0
>
> REMOVE CONTENT>> id 374739636907147264
>
>
> On Tue, May 12, 2015 at 3:41 PM, Sriashalya Srivathsan 
> wrote:
>>
>> Hi Chanaka,
>> I've opened the TCP monitor for the UI client. The noticed message has
>> been attached below.Is the client sending the message properly?
>>
>>
>> Thank you,
>>
>> On Wed, May 6, 2015 at 1:20 PM, Sriashalya Srivathsan 
>> wrote:
>>>
>>> HI Malaka,
>>> I'll proceed with that.
>>>
>>> On Wed, May 6, 2015 at 1:11 PM, Malaka Silva  wrote:

 Hi Sriashalya,

 As we discussed offline, we need to get the source code (I guess this is
 carbon 4.2.0) and start debugging the MQTTListener code.

 On Wed, Apr 29, 2015 at 10:16 PM, Sriashalya Srivathsan
  wrote:
>
> Sajini you are correct. I'm using MB 3.0.0.
> Chanaka I've used log mediator, but I cannot see any thing in my ESB
> console.
>
>
>
> Thank you,
>
> On Wed, Apr 29, 2015 at 5:27 PM, Chanaka Fernando 
> wrote:
>>
>> Hi Sriashalya,
>>
>> You can use log mediator to view the message when it is passing
>> through ESB.
>>
>> 
>>
>> Thanks,
>> Chanaka
>>
>> On Wed, Apr 29, 2015 at 5:25 PM, Sajini De Silva 
>> wrote:
>>>
>>> Hi Sriashalya,
>>>
>>> What is the MB version you are using in this scenario? I see global
>>> queues in the logs which is used in MB 2.2.0. MB 2.2.0 does not support
>>> MQTT.
>>>
>>> Thank you,
>>> Sajini
>>>
>>> Thank you,
>>> Sajini
>>>
>>> On Wed, Apr 29, 2015 at 5:15 PM, Sriashalya Srivathsan
>>>  wrote:

 looping to Dev

 On Wed, Apr 29, 2015 at 5:13 PM, Sriashalya Srivathsan
  wrote:
>
> Hi Chanaka,
> I've sent the message from client ,It is going to MB perfectly. But
> I couldn't get anything in the ESB console. It seems ESB don't 
> receive the
> message. How Can I proceed with this?
> Im sharing the MB console below.
>
>
> On Mon, Apr 27, 2015 at 12:33 PM, Sriashalya Srivathsan
>  wrote:
>>
>> Hi Chanaka,
>> I've followed the following link
>> (https://docs.google.com/a/wso2.com/document/d/1G2sf8g27w8kFmfXVC6F7Kf7LTtZUdCcLRN5UnwdfIxQ/edit).
>>
>>  axis2.xml is replaced.
>> proxy and sequence are added.
>> jars added to ESB.
>> MB, ESB and two instance of Stock quote services are opened.
>> UI based client started and message sent through that
>>
>> But I couldn't get anything in the ESB console. What am I missing
>> over there?
>>
>> --
>> S.Sriashalya,
>> Associate Software Engineer,
>> WSO2.
>
>
>
>
> --
> S.Sriashalya,
> Associate Software Engineer,
> WSO2 Inc.
> lean . enterprise . middleware




 --
 S.Sriashalya,
 Associate Software Engineer,
 WSO2 Inc.
 lean . enterprise . middleware

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

>>>
>>>
>>>
>>> --
>>> Sajini De SIlva
>>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>> Email: saj...@wso2.com
>>> Blog: http://sajinid.blogspot.com/
>>> Git hub profile: https://github.com/sajinidesilva
>>>
>>> Phone: +94 712797729
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@

Re: [Dev] Fwd: MQTT Transport

2015-05-12 Thread Chanaka Fernando
[Adding Pamod]

@Pamod: Could you shed some light on this scenario. AFAIR, you have
implemented this use case with some custom changes to the mqtt transport.

On Tue, May 12, 2015 at 4:24 PM, Madhuranga Bandara 
wrote:

> Hi Sriashalya,
>
> Just a small comment. Wireshark is better and easier than TCP mon in
> analysing the message content.
> Try to use Wireshark when you need to analyse messages.
> Madhuranga Sampath Bandara
> Software Engineer
>
> WSO2, Inc.;http://wso2.com/
> lean.enterprise.middleware
> Mobile: +94722241065
>
>
> On Tue, May 12, 2015 at 4:06 PM, Sriashalya Srivathsan 
> wrote:
> > Hi Chanaka,
> > But I'm getting the following in my MB console
> >
> >
> > [2015-05-12 16:01:41,377]  INFO
> > {org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a
> message
> > of type PINGREQ
> >
> > [2015-05-12 16:01:47,270]  INFO
> > {org.dna.mqtt.moquette.parser.netty.PublishDecoder} -  decode invoked
> with
> > buffer UnpooledUnsafeDirectByteBuf(ridx: 1, widx: 63, cap: 208)
> >
> > [2015-05-12 16:01:47,271]  INFO
> > {org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a
> message
> > of type PUBLISH
> >
> > [2015-05-12 16:01:47,271]  INFO
> > {org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging} -  onEvent
> > processing messaging event from input ringbuffer ProtocolEvent wrapping
> > PUBLISH
> >
> > STORE >> message part id374739636907147264 offset 0
> >
> > [2015-05-12 16:01:47,272]  INFO
> > {org.wso2.andes.messageStore.CassandraBasedMessageStoreImpl} -  Wrote
> > message 374739636907147264 to Global Queue TopicNodeQueue_0
> >
> > REMOVE CONTENT>> id 374739636907147264
> >
> >
> > On Tue, May 12, 2015 at 3:41 PM, Sriashalya Srivathsan  >
> > wrote:
> >>
> >> Hi Chanaka,
> >> I've opened the TCP monitor for the UI client. The noticed message has
> >> been attached below.Is the client sending the message properly?
> >>
> >>
> >> Thank you,
> >>
> >> On Wed, May 6, 2015 at 1:20 PM, Sriashalya Srivathsan  >
> >> wrote:
> >>>
> >>> HI Malaka,
> >>> I'll proceed with that.
> >>>
> >>> On Wed, May 6, 2015 at 1:11 PM, Malaka Silva  wrote:
> 
>  Hi Sriashalya,
> 
>  As we discussed offline, we need to get the source code (I guess this
> is
>  carbon 4.2.0) and start debugging the MQTTListener code.
> 
>  On Wed, Apr 29, 2015 at 10:16 PM, Sriashalya Srivathsan
>   wrote:
> >
> > Sajini you are correct. I'm using MB 3.0.0.
> > Chanaka I've used log mediator, but I cannot see any thing in my ESB
> > console.
> >
> >
> >
> > Thank you,
> >
> > On Wed, Apr 29, 2015 at 5:27 PM, Chanaka Fernando  >
> > wrote:
> >>
> >> Hi Sriashalya,
> >>
> >> You can use log mediator to view the message when it is passing
> >> through ESB.
> >>
> >> 
> >>
> >> Thanks,
> >> Chanaka
> >>
> >> On Wed, Apr 29, 2015 at 5:25 PM, Sajini De Silva 
> >> wrote:
> >>>
> >>> Hi Sriashalya,
> >>>
> >>> What is the MB version you are using in this scenario? I see global
> >>> queues in the logs which is used in MB 2.2.0. MB 2.2.0 does not
> support
> >>> MQTT.
> >>>
> >>> Thank you,
> >>> Sajini
> >>>
> >>> Thank you,
> >>> Sajini
> >>>
> >>> On Wed, Apr 29, 2015 at 5:15 PM, Sriashalya Srivathsan
> >>>  wrote:
> 
>  looping to Dev
> 
>  On Wed, Apr 29, 2015 at 5:13 PM, Sriashalya Srivathsan
>   wrote:
> >
> > Hi Chanaka,
> > I've sent the message from client ,It is going to MB perfectly.
> But
> > I couldn't get anything in the ESB console. It seems ESB don't
> receive the
> > message. How Can I proceed with this?
> > Im sharing the MB console below.
> >
> >
> > On Mon, Apr 27, 2015 at 12:33 PM, Sriashalya Srivathsan
> >  wrote:
> >>
> >> Hi Chanaka,
> >> I've followed the following link
> >> (
> https://docs.google.com/a/wso2.com/document/d/1G2sf8g27w8kFmfXVC6F7Kf7LTtZUdCcLRN5UnwdfIxQ/edit
> ).
> >>
> >>  axis2.xml is replaced.
> >> proxy and sequence are added.
> >> jars added to ESB.
> >> MB, ESB and two instance of Stock quote services are opened.
> >> UI based client started and message sent through that
> >>
> >> But I couldn't get anything in the ESB console. What am I
> missing
> >> over there?
> >>
> >> --
> >> S.Sriashalya,
> >> Associate Software Engineer,
> >> WSO2.
> >
> >
> >
> >
> > --
> > S.Sriashalya,
> > Associate Software Engineer,
> > WSO2 Inc.
> > lean . enterprise . middleware
> 
> 
> 
> 
>  --
>  S.Sriashalya,
>  Associate Software Engineer,
>  WSO2 Inc.
>  lean . enterprise . middleware
> 
> 

Re: [Dev] [MDM] NullPointerException in Android Application

2015-05-12 Thread Niranjan Karunanandham
Hi Inosh,


> According to EMM 1.1.0, When the device is successfully registered, with
> the response, we sent a set of initial configurations. This configuration,
> included things such as, whether the mode is LOCAL or GCM, if
> LOCAL(polling) then the frequency to poll. In EMM 1.1.0, these were stored
> in a config file and passed to the device. So in MDM we must pass this
> value and store at some point, so that the device can choose how to
> communicate with the server.
>
In EMM 1.1.0, these configurations (Type of notification, i.e., Local or
GCM) used to be stored in the registry. The default value is stored in the
config file which is then copied to the registry (tenant space) when the
tenant admin logs in for the first time. Therefore this setting can be
changed per tenant. When the device registers to the system, these values
are sent which is persisted in the device. AFAIR the same issue mentioned
by Milan was there in the previous version wherein the Notification Type
gets cleared from the device when it is restarted and Kasun fix this
(Please correct me if am wrong). To add to this there was a limitation in
the previous version is that after a device is registered and if we change
the Notification Type in the server, it does not get reflected in the
device.

Regards,
Nira


On Tue, May 12, 2015 at 3:36 PM, Inosh Perera  wrote:

> Hi Milan,
>
> According to EMM 1.1.0, When the device is successfully registered, with
> the response, we sent a set of initial configurations. This configuration,
> included things such as, whether the mode is LOCAL or GCM, if
> LOCAL(polling) then the frequency to poll. In EMM 1.1.0, these were stored
> in a config file and passed to the device. So in MDM we must pass this
> value and store at some point, so that the device can choose how to
> communicate with the server.
>
> Regards,
> Inosh
>
> On Tue, May 12, 2015 at 2:52 PM, Milan Perera  wrote:
>
>> Hi,
>>
>> I'm getting $subject whenever the device get restarted. Exception details
>> as follows:
>>
>> java.lang.RuntimeException: Unable to start receiver
>> org.wso2.mdm.agent.services.DeviceStartupIntentReceiver:
>> java.lang.NullPointerException: Attempt to invoke virtual method
>> 'java.lang.String java.lang.String.trim()' on a null object reference
>> at
>> android.app.ActivityThread.handleReceiver(ActivityThread.java:2586)
>> at
>> android.app.ActivityThread.access$1700(ActivityThread.java:144)
>> at
>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
>> at android.os.Handler.dispatchMessage(Handler.java:102)
>> at android.os.Looper.loop(Looper.java:135)
>> at android.app.ActivityThread.main(ActivityThread.java:5221)
>> at java.lang.reflect.Method.invoke(Native Method)
>> at java.lang.reflect.Method.invoke(Method.java:372)
>> at
>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
>> at
>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
>>  Caused by: java.lang.NullPointerException: Attempt to invoke virtual
>> method 'java.lang.String java.lang.String.trim()' on a null object reference
>> at
>> org.wso2.mdm.agent.services.DeviceStartupIntentReceiver.setRecurringAlarm(DeviceStartupIntentReceiver.java:61)
>> at
>> org.wso2.mdm.agent.services.DeviceStartupIntentReceiver.onReceive(DeviceStartupIntentReceiver.java:45)
>> at
>> android.app.ActivityThread.handleReceiver(ActivityThread.java:2579)
>> at
>> android.app.ActivityThread.access$1700(ActivityThread.java:144)
>> at
>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
>> at android.os.Handler.dispatchMessage(Handler.java:102)
>> at android.os.Looper.loop(Looper.java:135)
>> at android.app.ActivityThread.main(ActivityThread.java:5221)
>> at java.lang.reflect.Method.invoke(Native Method)
>> at java.lang.reflect.Method.invoke(Method.java:372)
>> at
>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
>> at
>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
>>
>> ​This is occurred when device invoke *setRecurringAlarm()* method in 
>> *DeviceStartupIntentReceiver
>> *class at the start-up.​ The reason for getting this exception because
>> it tries to get the '*mode*' string from *SharedPreference* and trim it.
>> However the '*mode*' is not stored there.
>>
>> Code Snippet
>> ---
>>
>> String mode = Preference.getString(context, 
>> resources.getString(R.string.shared_pref_message_mode));
>>
>> if (NOTIFIER_MODE.equals(mode.trim().toUpperCase(Locale.ENGLISH))) { ... }
>>
>> ​
>> According to what I have understood, it checks the *NOTIFICATION_MODE*
>> whether *LOCAL* or *GCM*.
>>
>> So my questions are, *where should I set this 'mode' preference and how
>> do 

Re: [Dev] Fwd: MQTT Transport

2015-05-12 Thread Pamod Sylvester
Hi Sriashalya,

Could you try the use case with MB M7 pack [1] which is the latest.
You could download it from [2]

[1] WSO2 Message Broker 3.0.0 Milestone 7 Released !
[2] 
https://svn.wso2.org/repos/wso2/scratch/MB/3.0.0/M7/wso2mb-3.0.0-SNAPSHOT-m7.zip

Thanks,
Pamod

On Tue, May 12, 2015 at 4:29 PM, Chanaka Fernando  wrote:
> [Adding Pamod]
>
> @Pamod: Could you shed some light on this scenario. AFAIR, you have
> implemented this use case with some custom changes to the mqtt transport.
>
> On Tue, May 12, 2015 at 4:24 PM, Madhuranga Bandara 
> wrote:
>>
>> Hi Sriashalya,
>>
>> Just a small comment. Wireshark is better and easier than TCP mon in
>> analysing the message content.
>> Try to use Wireshark when you need to analyse messages.
>> Madhuranga Sampath Bandara
>> Software Engineer
>>
>> WSO2, Inc.;http://wso2.com/
>> lean.enterprise.middleware
>> Mobile: +94722241065
>>
>>
>> On Tue, May 12, 2015 at 4:06 PM, Sriashalya Srivathsan 
>> wrote:
>> > Hi Chanaka,
>> > But I'm getting the following in my MB console
>> >
>> >
>> > [2015-05-12 16:01:41,377]  INFO
>> > {org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a
>> > message
>> > of type PINGREQ
>> >
>> > [2015-05-12 16:01:47,270]  INFO
>> > {org.dna.mqtt.moquette.parser.netty.PublishDecoder} -  decode invoked
>> > with
>> > buffer UnpooledUnsafeDirectByteBuf(ridx: 1, widx: 63, cap: 208)
>> >
>> > [2015-05-12 16:01:47,271]  INFO
>> > {org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a
>> > message
>> > of type PUBLISH
>> >
>> > [2015-05-12 16:01:47,271]  INFO
>> > {org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging} -  onEvent
>> > processing messaging event from input ringbuffer ProtocolEvent wrapping
>> > PUBLISH
>> >
>> > STORE >> message part id374739636907147264 offset 0
>> >
>> > [2015-05-12 16:01:47,272]  INFO
>> > {org.wso2.andes.messageStore.CassandraBasedMessageStoreImpl} -  Wrote
>> > message 374739636907147264 to Global Queue TopicNodeQueue_0
>> >
>> > REMOVE CONTENT>> id 374739636907147264
>> >
>> >
>> > On Tue, May 12, 2015 at 3:41 PM, Sriashalya Srivathsan
>> > 
>> > wrote:
>> >>
>> >> Hi Chanaka,
>> >> I've opened the TCP monitor for the UI client. The noticed message has
>> >> been attached below.Is the client sending the message properly?
>> >>
>> >>
>> >> Thank you,
>> >>
>> >> On Wed, May 6, 2015 at 1:20 PM, Sriashalya Srivathsan
>> >> 
>> >> wrote:
>> >>>
>> >>> HI Malaka,
>> >>> I'll proceed with that.
>> >>>
>> >>> On Wed, May 6, 2015 at 1:11 PM, Malaka Silva  wrote:
>> 
>>  Hi Sriashalya,
>> 
>>  As we discussed offline, we need to get the source code (I guess this
>>  is
>>  carbon 4.2.0) and start debugging the MQTTListener code.
>> 
>>  On Wed, Apr 29, 2015 at 10:16 PM, Sriashalya Srivathsan
>>   wrote:
>> >
>> > Sajini you are correct. I'm using MB 3.0.0.
>> > Chanaka I've used log mediator, but I cannot see any thing in my ESB
>> > console.
>> >
>> >
>> >
>> > Thank you,
>> >
>> > On Wed, Apr 29, 2015 at 5:27 PM, Chanaka Fernando
>> > 
>> > wrote:
>> >>
>> >> Hi Sriashalya,
>> >>
>> >> You can use log mediator to view the message when it is passing
>> >> through ESB.
>> >>
>> >> 
>> >>
>> >> Thanks,
>> >> Chanaka
>> >>
>> >> On Wed, Apr 29, 2015 at 5:25 PM, Sajini De Silva 
>> >> wrote:
>> >>>
>> >>> Hi Sriashalya,
>> >>>
>> >>> What is the MB version you are using in this scenario? I see
>> >>> global
>> >>> queues in the logs which is used in MB 2.2.0. MB 2.2.0 does not
>> >>> support
>> >>> MQTT.
>> >>>
>> >>> Thank you,
>> >>> Sajini
>> >>>
>> >>> Thank you,
>> >>> Sajini
>> >>>
>> >>> On Wed, Apr 29, 2015 at 5:15 PM, Sriashalya Srivathsan
>> >>>  wrote:
>> 
>>  looping to Dev
>> 
>>  On Wed, Apr 29, 2015 at 5:13 PM, Sriashalya Srivathsan
>>   wrote:
>> >
>> > Hi Chanaka,
>> > I've sent the message from client ,It is going to MB perfectly.
>> > But
>> > I couldn't get anything in the ESB console. It seems ESB don't
>> > receive the
>> > message. How Can I proceed with this?
>> > Im sharing the MB console below.
>> >
>> >
>> > On Mon, Apr 27, 2015 at 12:33 PM, Sriashalya Srivathsan
>> >  wrote:
>> >>
>> >> Hi Chanaka,
>> >> I've followed the following link
>> >>
>> >> (https://docs.google.com/a/wso2.com/document/d/1G2sf8g27w8kFmfXVC6F7Kf7LTtZUdCcLRN5UnwdfIxQ/edit).
>> >>
>> >>  axis2.xml is replaced.
>> >> proxy and sequence are added.
>> >> jars added to ESB.
>> >> MB, ESB and two instance of Stock quote services are opened.
>> >> UI based client started and message sent through that
>> >>
>> >> But I couldn't get anything in the ESB console. Wh

Re: [Dev] TestNG exception when running integration testing for Product ESB ( test-other package ))

2015-05-12 Thread Kevin Ratnasekera
Thanks all, was able to successfully run the integrations tests with the
changes suggested.
Regards
Kevin

On Tue, May 12, 2015 at 2:17 PM, Irham Iqbal  wrote:

> Hi Kevin,
>
> Your test method testJSONFilterFromJSONPathConditionFalseTestScenario()
> has dependsOnMethods =
> "testJSONFilterFromJSONPathConditionTrueTestScenario" that makes your
> test method testJSONFilterFromJSONPathConditionFalseTestScenario() depends
> on testJSONFilterFromJSONPathConditionTrueTestScenario() method. Since
> you have enabled=false your first method it won't run. Your second test
> method will only run after that. Because of that you're getting that
> exception.
>
> Thanks,
> Iqbal
>
>
>
> On Tue, May 12, 2015 at 2:07 PM, Waruna Perera  wrote:
>
>> Hi Kevin,
>>
>> Are those only failing when run together or even as individual runs?
>>
>>
>>
>> On Tue, May 12, 2015 at 1:48 PM, Kevin Ratnasekera 
>> wrote:
>>
>>> Hi Saneth,
>>> These are the two test case methods related to the exception,
>>>
>>>
>>> @Test(groups = {"wso2.esb"}, description = "Tests with filter mediator - 
>>> JSON path Scenario - Filter condition true" , enabled=false)
>>> public void testJSONFilterFromJSONPathConditionTrueTestScenario() throws 
>>> Exception {
>>>
>>> String JSON_PAYLOAD = "{\"album\":\"Hello\",\"singer\":\"Peter\"}";
>>>
>>> WebResource webResource = client
>>> 
>>> .resource(getProxyServiceURLHttp("JSONPathFilterWithJSONProxy"));
>>>
>>> // sending post request
>>> ClientResponse postResponse = webResource.type("application/json")
>>> .post(ClientResponse.class, JSON_PAYLOAD);
>>>
>>> assertEquals(postResponse.getType().toString(), "application/json", 
>>> "Content-Type Should be application/json");
>>> assertEquals(postResponse.getStatus(), 201, "Response status should be 
>>> 201");
>>>
>>> // Calling the GET request to verify Added album details
>>> ClientResponse getResponse = webResource.type("application/json")
>>> .get(ClientResponse.class);
>>>
>>> assertNotNull(getResponse, "Received Null response for while getting 
>>> Music album details");
>>> assertEquals(getResponse.getEntity(String.class), JSON_PAYLOAD, 
>>> "Response mismatch for HTTP Get call");
>>> }
>>>
>>>
>>> @Test(groups = {"wso2.esb"}, description = "Tests with filter mediator - 
>>> JSON path Scenario Filter condition False",
>>> dependsOnMethods = 
>>> "testJSONFilterFromJSONPathConditionTrueTestScenario")
>>> public void testJSONFilterFromJSONPathConditionFalseTestScenario() throws 
>>> Exception {
>>>
>>> String JSON_PAYLOAD = "{\"album\":\"Moon\",\"singer\":\"Peter\"}";
>>>
>>> WebResource webResource = client
>>> .resource(getProxyServiceURLHttp("FilterWithJSONProxy"));
>>>
>>> // sending post request
>>> ClientResponse postResponse = webResource.type("application/json")
>>> .post(ClientResponse.class, JSON_PAYLOAD);
>>>
>>> assertEquals(postResponse.getStatus(), 202, "Response status should be 
>>> 202");
>>> }
>>>
>>> Thanks
>>> Regards
>>> Kevin
>>>
>>> On Tue, May 12, 2015 at 1:43 PM, Saneth Dharmakeerthi 
>>> wrote:
>>>
 Hi Kevin,

 Please share the full test case with us.

 Thanks and Best Regards,

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

 On Tue, May 12, 2015 at 12:24 PM, Kevin Ratnasekera 
 wrote:

> Hi all,
> org.testng.TestNGException:
> org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionFalseTestScenario()
> is depending on method public void
> org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionTrueTestScenario()
> throws java.lang.Exception, which is not annotated with @Test
>
> I am running integration tests on  java version 1.7. The failing test
> methods are depended on other methods. ( dependsOnMethods ) The classes
> which does not include depended test methods pass successfully.
> Regards
> Kevin
>
>
> ___
> 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
>>>
>>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>> ___
>> 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/l

Re: [Dev] [MDM] NullPointerException in Android Application

2015-05-12 Thread Inosh Perera
Hi Niranjan,

 Notification Type gets cleared from the device when it is restarted and
Kasun fix this (Please correct me if am wrong).
Since It is fixed, I think the issue here is we have not yet passed these
values from the server.

To add to this there was a limitation in the previous version is that after
a device is registered and if we change the Notification Type in the
server, it does not get reflected in the device.
Yes, We will have to address this issue, @Milan - We can make this a
profile operation. When the mode gets changed, all the android devices must
get a profile WDYT?

Regards,
Inosh




On Tue, May 12, 2015 at 4:32 PM, Niranjan Karunanandham 
wrote:

> Hi Inosh,
>
>
>> According to EMM 1.1.0, When the device is successfully registered, with
>> the response, we sent a set of initial configurations. This configuration,
>> included things such as, whether the mode is LOCAL or GCM, if
>> LOCAL(polling) then the frequency to poll. In EMM 1.1.0, these were stored
>> in a config file and passed to the device. So in MDM we must pass this
>> value and store at some point, so that the device can choose how to
>> communicate with the server.
>>
> In EMM 1.1.0, these configurations (Type of notification, i.e., Local or
> GCM) used to be stored in the registry. The default value is stored in the
> config file which is then copied to the registry (tenant space) when the
> tenant admin logs in for the first time. Therefore this setting can be
> changed per tenant. When the device registers to the system, these values
> are sent which is persisted in the device. AFAIR the same issue mentioned
> by Milan was there in the previous version wherein the Notification Type
> gets cleared from the device when it is restarted and Kasun fix this
> (Please correct me if am wrong). To add to this there was a limitation in
> the previous version is that after a device is registered and if we change
> the Notification Type in the server, it does not get reflected in the
> device.
>
> Regards,
> Nira
>
>
> On Tue, May 12, 2015 at 3:36 PM, Inosh Perera  wrote:
>
>> Hi Milan,
>>
>> According to EMM 1.1.0, When the device is successfully registered, with
>> the response, we sent a set of initial configurations. This configuration,
>> included things such as, whether the mode is LOCAL or GCM, if
>> LOCAL(polling) then the frequency to poll. In EMM 1.1.0, these were stored
>> in a config file and passed to the device. So in MDM we must pass this
>> value and store at some point, so that the device can choose how to
>> communicate with the server.
>>
>> Regards,
>> Inosh
>>
>> On Tue, May 12, 2015 at 2:52 PM, Milan Perera  wrote:
>>
>>> Hi,
>>>
>>> I'm getting $subject whenever the device get restarted. Exception
>>> details as follows:
>>>
>>> java.lang.RuntimeException: Unable to start receiver
>>> org.wso2.mdm.agent.services.DeviceStartupIntentReceiver:
>>> java.lang.NullPointerException: Attempt to invoke virtual method
>>> 'java.lang.String java.lang.String.trim()' on a null object reference
>>> at
>>> android.app.ActivityThread.handleReceiver(ActivityThread.java:2586)
>>> at
>>> android.app.ActivityThread.access$1700(ActivityThread.java:144)
>>> at
>>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
>>> at android.os.Handler.dispatchMessage(Handler.java:102)
>>> at android.os.Looper.loop(Looper.java:135)
>>> at android.app.ActivityThread.main(ActivityThread.java:5221)
>>> at java.lang.reflect.Method.invoke(Native Method)
>>> at java.lang.reflect.Method.invoke(Method.java:372)
>>> at
>>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
>>> at
>>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
>>>  Caused by: java.lang.NullPointerException: Attempt to invoke
>>> virtual method 'java.lang.String java.lang.String.trim()' on a null object
>>> reference
>>> at
>>> org.wso2.mdm.agent.services.DeviceStartupIntentReceiver.setRecurringAlarm(DeviceStartupIntentReceiver.java:61)
>>> at
>>> org.wso2.mdm.agent.services.DeviceStartupIntentReceiver.onReceive(DeviceStartupIntentReceiver.java:45)
>>> at
>>> android.app.ActivityThread.handleReceiver(ActivityThread.java:2579)
>>> at
>>> android.app.ActivityThread.access$1700(ActivityThread.java:144)
>>> at
>>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
>>> at android.os.Handler.dispatchMessage(Handler.java:102)
>>> at android.os.Looper.loop(Looper.java:135)
>>> at android.app.ActivityThread.main(ActivityThread.java:5221)
>>> at java.lang.reflect.Method.invoke(Native Method)
>>> at java.lang.reflect.Method.invoke(Method.java:372)
>>> at
>>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
>>> at
>>> com.a

Re: [Dev] [MDM] NullPointerException in Android Application

2015-05-12 Thread Prabath Abeysekera
On Tue, May 12, 2015 at 4:52 PM, Inosh Perera  wrote:

> Hi Niranjan,
>
>  Notification Type gets cleared from the device when it is restarted and
> Kasun fix this (Please correct me if am wrong).
> Since It is fixed, I think the issue here is we have not yet passed these
> values from the server.
>
> To add to this there was a limitation in the previous version is that
> after a device is registered and if we change the Notification Type in the
> server, it does not get reflected in the device.
> Yes, We will have to address this issue, @Milan - We can make this a
> profile operation. When the mode gets changed, all the android devices must
> get a profile WDYT?
>

Does it make sense to assume that options Local and GCM both would be used
by different devices at any given time?

Cheers,
Prabath


>
> Regards,
> Inosh
>
>
>
>
> On Tue, May 12, 2015 at 4:32 PM, Niranjan Karunanandham  > wrote:
>
>> Hi Inosh,
>>
>>
>>> According to EMM 1.1.0, When the device is successfully registered, with
>>> the response, we sent a set of initial configurations. This configuration,
>>> included things such as, whether the mode is LOCAL or GCM, if
>>> LOCAL(polling) then the frequency to poll. In EMM 1.1.0, these were stored
>>> in a config file and passed to the device. So in MDM we must pass this
>>> value and store at some point, so that the device can choose how to
>>> communicate with the server.
>>>
>> In EMM 1.1.0, these configurations (Type of notification, i.e., Local or
>> GCM) used to be stored in the registry. The default value is stored in the
>> config file which is then copied to the registry (tenant space) when the
>> tenant admin logs in for the first time. Therefore this setting can be
>> changed per tenant. When the device registers to the system, these values
>> are sent which is persisted in the device. AFAIR the same issue mentioned
>> by Milan was there in the previous version wherein the Notification Type
>> gets cleared from the device when it is restarted and Kasun fix this
>> (Please correct me if am wrong). To add to this there was a limitation in
>> the previous version is that after a device is registered and if we change
>> the Notification Type in the server, it does not get reflected in the
>> device.
>>
>> Regards,
>> Nira
>>
>>
>> On Tue, May 12, 2015 at 3:36 PM, Inosh Perera  wrote:
>>
>>> Hi Milan,
>>>
>>> According to EMM 1.1.0, When the device is successfully registered, with
>>> the response, we sent a set of initial configurations. This configuration,
>>> included things such as, whether the mode is LOCAL or GCM, if
>>> LOCAL(polling) then the frequency to poll. In EMM 1.1.0, these were stored
>>> in a config file and passed to the device. So in MDM we must pass this
>>> value and store at some point, so that the device can choose how to
>>> communicate with the server.
>>>
>>> Regards,
>>> Inosh
>>>
>>> On Tue, May 12, 2015 at 2:52 PM, Milan Perera  wrote:
>>>
 Hi,

 I'm getting $subject whenever the device get restarted. Exception
 details as follows:

 java.lang.RuntimeException: Unable to start receiver
 org.wso2.mdm.agent.services.DeviceStartupIntentReceiver:
 java.lang.NullPointerException: Attempt to invoke virtual method
 'java.lang.String java.lang.String.trim()' on a null object reference
 at
 android.app.ActivityThread.handleReceiver(ActivityThread.java:2586)
 at
 android.app.ActivityThread.access$1700(ActivityThread.java:144)
 at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
 at android.os.Handler.dispatchMessage(Handler.java:102)
 at android.os.Looper.loop(Looper.java:135)
 at android.app.ActivityThread.main(ActivityThread.java:5221)
 at java.lang.reflect.Method.invoke(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:372)
 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
 at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
  Caused by: java.lang.NullPointerException: Attempt to invoke
 virtual method 'java.lang.String java.lang.String.trim()' on a null object
 reference
 at
 org.wso2.mdm.agent.services.DeviceStartupIntentReceiver.setRecurringAlarm(DeviceStartupIntentReceiver.java:61)
 at
 org.wso2.mdm.agent.services.DeviceStartupIntentReceiver.onReceive(DeviceStartupIntentReceiver.java:45)
 at
 android.app.ActivityThread.handleReceiver(ActivityThread.java:2579)
 at
 android.app.ActivityThread.access$1700(ActivityThread.java:144)
 at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
 at android.os.Handler.dispatchMessage(Handler.java:102)
 at android.os.Looper.loop(Looper.java:135)
 at android.

Re: [Dev] [MDM] NullPointerException in Android Application

2015-05-12 Thread Niranjan Karunanandham
Hi Inosh

Notification Type gets cleared from the device when it is restarted and
> Kasun fix this (Please correct me if am wrong).
> Since It is fixed, I think the issue here is we have not yet passed these
> values from the server.
>
If so, then shouldn't this issue be there (after registering to the server)
even without restarting the device?

Regards,
Nira

On Tue, May 12, 2015 at 4:52 PM, Inosh Perera  wrote:

> Hi Niranjan,
>
>  Notification Type gets cleared from the device when it is restarted and
> Kasun fix this (Please correct me if am wrong).
> Since It is fixed, I think the issue here is we have not yet passed these
> values from the server.
>
> To add to this there was a limitation in the previous version is that
> after a device is registered and if we change the Notification Type in the
> server, it does not get reflected in the device.
> Yes, We will have to address this issue, @Milan - We can make this a
> profile operation. When the mode gets changed, all the android devices must
> get a profile WDYT?
>
> Regards,
> Inosh
>
>
>
>
> On Tue, May 12, 2015 at 4:32 PM, Niranjan Karunanandham  > wrote:
>
>> Hi Inosh,
>>
>>
>>> According to EMM 1.1.0, When the device is successfully registered, with
>>> the response, we sent a set of initial configurations. This configuration,
>>> included things such as, whether the mode is LOCAL or GCM, if
>>> LOCAL(polling) then the frequency to poll. In EMM 1.1.0, these were stored
>>> in a config file and passed to the device. So in MDM we must pass this
>>> value and store at some point, so that the device can choose how to
>>> communicate with the server.
>>>
>> In EMM 1.1.0, these configurations (Type of notification, i.e., Local or
>> GCM) used to be stored in the registry. The default value is stored in the
>> config file which is then copied to the registry (tenant space) when the
>> tenant admin logs in for the first time. Therefore this setting can be
>> changed per tenant. When the device registers to the system, these values
>> are sent which is persisted in the device. AFAIR the same issue mentioned
>> by Milan was there in the previous version wherein the Notification Type
>> gets cleared from the device when it is restarted and Kasun fix this
>> (Please correct me if am wrong). To add to this there was a limitation in
>> the previous version is that after a device is registered and if we change
>> the Notification Type in the server, it does not get reflected in the
>> device.
>>
>> Regards,
>> Nira
>>
>>
>> On Tue, May 12, 2015 at 3:36 PM, Inosh Perera  wrote:
>>
>>> Hi Milan,
>>>
>>> According to EMM 1.1.0, When the device is successfully registered, with
>>> the response, we sent a set of initial configurations. This configuration,
>>> included things such as, whether the mode is LOCAL or GCM, if
>>> LOCAL(polling) then the frequency to poll. In EMM 1.1.0, these were stored
>>> in a config file and passed to the device. So in MDM we must pass this
>>> value and store at some point, so that the device can choose how to
>>> communicate with the server.
>>>
>>> Regards,
>>> Inosh
>>>
>>> On Tue, May 12, 2015 at 2:52 PM, Milan Perera  wrote:
>>>
 Hi,

 I'm getting $subject whenever the device get restarted. Exception
 details as follows:

 java.lang.RuntimeException: Unable to start receiver
 org.wso2.mdm.agent.services.DeviceStartupIntentReceiver:
 java.lang.NullPointerException: Attempt to invoke virtual method
 'java.lang.String java.lang.String.trim()' on a null object reference
 at
 android.app.ActivityThread.handleReceiver(ActivityThread.java:2586)
 at
 android.app.ActivityThread.access$1700(ActivityThread.java:144)
 at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
 at android.os.Handler.dispatchMessage(Handler.java:102)
 at android.os.Looper.loop(Looper.java:135)
 at android.app.ActivityThread.main(ActivityThread.java:5221)
 at java.lang.reflect.Method.invoke(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:372)
 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
 at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
  Caused by: java.lang.NullPointerException: Attempt to invoke
 virtual method 'java.lang.String java.lang.String.trim()' on a null object
 reference
 at
 org.wso2.mdm.agent.services.DeviceStartupIntentReceiver.setRecurringAlarm(DeviceStartupIntentReceiver.java:61)
 at
 org.wso2.mdm.agent.services.DeviceStartupIntentReceiver.onReceive(DeviceStartupIntentReceiver.java:45)
 at
 android.app.ActivityThread.handleReceiver(ActivityThread.java:2579)
 at
 android.app.ActivityThread.access$1700(ActivityThread.java:144)
 at
 and

Re: [Dev] On-Hot encoding for ML input data

2015-05-12 Thread Nirmal Fernando
For me, option 1 sounds less error prone.

On Tue, May 12, 2015 at 10:20 AM, Supun Sethunga  wrote:

> Hi all,
>
> I was looking at how Spark treats categorical data, It seems spark expect
> the categorical features to be one-hot encoded, and uses the sparsity of
> the vector to identify whether it is a categorical feature or a continuous
> feature. (Decision Tree is an exception. There we have to explicitly define
> which features are categorical)
>
> Hence we needs to do $subject. Could think of Three possible options:
>
>1. Encode the features through a spark-transformation, when the data
>point are passed to train the model.
>   - *Limitation*: If we encode the data during training, we need to
>   store the encoded details, to be used when predicting. BUT, when we 
> pass a
>   data point to a spark-transformation, what it returns is the transformed
>   data points (to sent to the next filter/transformation). Hence we cannot
>   retrieve the encoded details, unless we store them in a third party
>   location during training.
>2. Provide a separate functionality for data encoding.
>   - Physically encode the data, then and there.
>   - OR, Ask user how to encode each categorical feature. But not
>   encoding at that point, rather use those information and encode like in
>   (1). So we can use the same information to encode during the prediction 
> as
>   well. (This way we don't have to iterate twice through the dataset 
> either)
>
> WDYT? (2.b sounds a good option for me) What other options do we have?
>
> Thanks,
> Supun
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>



-- 

Thanks & regards,
Nirmal

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


Re: [Dev] [MDM] NullPointerException in Android Application

2015-05-12 Thread Milan Perera
Hi Niranjan, Inosh,

Actually the problem is at both ends. There is no any method that has been
implemented to push these configurations (push method/ refresh time) from
server to application yet. On the other hand there is no any method which
has been implemented to persist these configurations in the device yet too.

Adding to both Inosh and Prabath ideas, I think this 'push method' should
be come with the device policies so that selected users will be able to use
GCM or LOCAL at given time. WDYT?

On Tue, May 12, 2015 at 4:57 PM, Niranjan Karunanandham 
wrote:

> Hi Inosh
>
> Notification Type gets cleared from the device when it is restarted and
>> Kasun fix this (Please correct me if am wrong).
>> Since It is fixed, I think the issue here is we have not yet passed these
>> values from the server.
>>
> If so, then shouldn't this issue be there (after registering to the
> server) even without restarting the device?
>
> Regards,
> Nira
>
> On Tue, May 12, 2015 at 4:52 PM, Inosh Perera  wrote:
>
>> Hi Niranjan,
>>
>>  Notification Type gets cleared from the device when it is restarted and
>> Kasun fix this (Please correct me if am wrong).
>> Since It is fixed, I think the issue here is we have not yet passed these
>> values from the server.
>>
>> To add to this there was a limitation in the previous version is that
>> after a device is registered and if we change the Notification Type in the
>> server, it does not get reflected in the device.
>> Yes, We will have to address this issue, @Milan - We can make this a
>> profile operation. When the mode gets changed, all the android devices must
>> get a profile WDYT?
>>
>> Regards,
>> Inosh
>>
>>
>>
>>
>> On Tue, May 12, 2015 at 4:32 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Inosh,
>>>
>>>
 According to EMM 1.1.0, When the device is successfully registered,
 with the response, we sent a set of initial configurations. This
 configuration, included things such as, whether the mode is LOCAL or GCM,
 if LOCAL(polling) then the frequency to poll. In EMM 1.1.0, these were
 stored in a config file and passed to the device. So in MDM we must pass
 this value and store at some point, so that the device can choose how to
 communicate with the server.

>>> In EMM 1.1.0, these configurations (Type of notification, i.e., Local or
>>> GCM) used to be stored in the registry. The default value is stored in the
>>> config file which is then copied to the registry (tenant space) when the
>>> tenant admin logs in for the first time. Therefore this setting can be
>>> changed per tenant. When the device registers to the system, these values
>>> are sent which is persisted in the device. AFAIR the same issue mentioned
>>> by Milan was there in the previous version wherein the Notification Type
>>> gets cleared from the device when it is restarted and Kasun fix this
>>> (Please correct me if am wrong). To add to this there was a limitation in
>>> the previous version is that after a device is registered and if we change
>>> the Notification Type in the server, it does not get reflected in the
>>> device.
>>>
>>> Regards,
>>> Nira
>>>
>>>
>>> On Tue, May 12, 2015 at 3:36 PM, Inosh Perera  wrote:
>>>
 Hi Milan,

 According to EMM 1.1.0, When the device is successfully registered,
 with the response, we sent a set of initial configurations. This
 configuration, included things such as, whether the mode is LOCAL or GCM,
 if LOCAL(polling) then the frequency to poll. In EMM 1.1.0, these were
 stored in a config file and passed to the device. So in MDM we must pass
 this value and store at some point, so that the device can choose how to
 communicate with the server.

 Regards,
 Inosh

 On Tue, May 12, 2015 at 2:52 PM, Milan Perera  wrote:

> Hi,
>
> I'm getting $subject whenever the device get restarted. Exception
> details as follows:
>
> java.lang.RuntimeException: Unable to start receiver
> org.wso2.mdm.agent.services.DeviceStartupIntentReceiver:
> java.lang.NullPointerException: Attempt to invoke virtual method
> 'java.lang.String java.lang.String.trim()' on a null object reference
> at
> android.app.ActivityThread.handleReceiver(ActivityThread.java:2586)
> at
> android.app.ActivityThread.access$1700(ActivityThread.java:144)
> at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1355)
> at android.os.Handler.dispatchMessage(Handler.java:102)
> at android.os.Looper.loop(Looper.java:135)
> at
> android.app.ActivityThread.main(ActivityThread.java:5221)
> at java.lang.reflect.Method.invoke(Native Method)
> at java.lang.reflect.Method.invoke(Method.java:372)
> at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
>

Re: [Dev] [MDM] NullPointerException in Android Application

2015-05-12 Thread Inosh Perera
Hi Prabath/Milan,

It is an improvement that we can do. But, it has some complications, users
are not allowed to choose the mode, it has to be set by the admin. In this
case how do we decide which user/device should use which mode. One option I
can think of is mode can be set per role by admin, since setting this per
user is not ideal. What you have mentioned, definitely has some good use
cases, for example a company may have a set of devices always connected to
power supply and some portable devices which are Android powered. In this
case, portable devices have a battery consumption concern which makes GCM
the ideal candidate, where the power connected devices can use polling.
Also, in a situation where the operation execution/device info retrieval
has to be done as quick as possible, polling is ideal(given that the
polling interval is reduced) in contrast to GCM where, the delivery of the
message may take time and unreliable.

On the other hand there is no any method which has been implemented to
persist these configurations in the device yet too.
This was there in the previous release, I will go though the code and get
back to you on this.

Regards,
inosh

On Tue, May 12, 2015 at 5:13 PM, Milan Perera  wrote:

> Hi Niranjan, Inosh,
>
> Actually the problem is at both ends. There is no any method that has been
> implemented to push these configurations (push method/ refresh time) from
> server to application yet. On the other hand there is no any method which
> has been implemented to persist these configurations in the device yet too.
>
> Adding to both Inosh and Prabath ideas, I think this 'push method' should
> be come with the device policies so that selected users will be able to use
> GCM or LOCAL at given time. WDYT?
>
> On Tue, May 12, 2015 at 4:57 PM, Niranjan Karunanandham  > wrote:
>
>> Hi Inosh
>>
>> Notification Type gets cleared from the device when it is restarted and
>>> Kasun fix this (Please correct me if am wrong).
>>> Since It is fixed, I think the issue here is we have not yet passed
>>> these values from the server.
>>>
>> If so, then shouldn't this issue be there (after registering to the
>> server) even without restarting the device?
>>
>> Regards,
>> Nira
>>
>> On Tue, May 12, 2015 at 4:52 PM, Inosh Perera  wrote:
>>
>>> Hi Niranjan,
>>>
>>>  Notification Type gets cleared from the device when it is restarted and
>>> Kasun fix this (Please correct me if am wrong).
>>> Since It is fixed, I think the issue here is we have not yet passed
>>> these values from the server.
>>>
>>> To add to this there was a limitation in the previous version is that
>>> after a device is registered and if we change the Notification Type in the
>>> server, it does not get reflected in the device.
>>> Yes, We will have to address this issue, @Milan - We can make this a
>>> profile operation. When the mode gets changed, all the android devices must
>>> get a profile WDYT?
>>>
>>> Regards,
>>> Inosh
>>>
>>>
>>>
>>>
>>> On Tue, May 12, 2015 at 4:32 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Inosh,


> According to EMM 1.1.0, When the device is successfully registered,
> with the response, we sent a set of initial configurations. This
> configuration, included things such as, whether the mode is LOCAL or GCM,
> if LOCAL(polling) then the frequency to poll. In EMM 1.1.0, these were
> stored in a config file and passed to the device. So in MDM we must pass
> this value and store at some point, so that the device can choose how to
> communicate with the server.
>
 In EMM 1.1.0, these configurations (Type of notification, i.e., Local
 or GCM) used to be stored in the registry. The default value is stored in
 the config file which is then copied to the registry (tenant space) when
 the tenant admin logs in for the first time. Therefore this setting can be
 changed per tenant. When the device registers to the system, these values
 are sent which is persisted in the device. AFAIR the same issue mentioned
 by Milan was there in the previous version wherein the Notification Type
 gets cleared from the device when it is restarted and Kasun fix this
 (Please correct me if am wrong). To add to this there was a limitation in
 the previous version is that after a device is registered and if we change
 the Notification Type in the server, it does not get reflected in the
 device.

 Regards,
 Nira


 On Tue, May 12, 2015 at 3:36 PM, Inosh Perera  wrote:

> Hi Milan,
>
> According to EMM 1.1.0, When the device is successfully registered,
> with the response, we sent a set of initial configurations. This
> configuration, included things such as, whether the mode is LOCAL or GCM,
> if LOCAL(polling) then the frequency to poll. In EMM 1.1.0, these were
> stored in a config file and passed to the device. So in MDM we must pass
> this value and store at so

Re: [Dev] Fwd: MQTT Transport

2015-05-12 Thread Sriashalya Srivathsan
Hi Pamod,
I tried with the MB M7 pack.I'm getting the following log in the console,
when I publish the message.

[2015-05-12 17:32:08,369]  INFO
{org.wso2.andes.kernel.distruptor.inbound.MessagePreProcessor} -  Message
routing key: stocks No routes in cluster. Ignoring Message id
36295443315163136



On Tue, May 12, 2015 at 4:36 PM, Pamod Sylvester  wrote:

> Hi Sriashalya,
>
> Could you try the use case with MB M7 pack [1] which is the latest.
> You could download it from [2]
>
> [1] WSO2 Message Broker 3.0.0 Milestone 7 Released !
> [2]
> https://svn.wso2.org/repos/wso2/scratch/MB/3.0.0/M7/wso2mb-3.0.0-SNAPSHOT-m7.zip
>
> Thanks,
> Pamod
>
> On Tue, May 12, 2015 at 4:29 PM, Chanaka Fernando 
> wrote:
> > [Adding Pamod]
> >
> > @Pamod: Could you shed some light on this scenario. AFAIR, you have
> > implemented this use case with some custom changes to the mqtt transport.
> >
> > On Tue, May 12, 2015 at 4:24 PM, Madhuranga Bandara  >
> > wrote:
> >>
> >> Hi Sriashalya,
> >>
> >> Just a small comment. Wireshark is better and easier than TCP mon in
> >> analysing the message content.
> >> Try to use Wireshark when you need to analyse messages.
> >> Madhuranga Sampath Bandara
> >> Software Engineer
> >>
> >> WSO2, Inc.;http://wso2.com/
> >> lean.enterprise.middleware
> >> Mobile: +94722241065
> >>
> >>
> >> On Tue, May 12, 2015 at 4:06 PM, Sriashalya Srivathsan <
> asha...@wso2.com>
> >> wrote:
> >> > Hi Chanaka,
> >> > But I'm getting the following in my MB console
> >> >
> >> >
> >> > [2015-05-12 16:01:41,377]  INFO
> >> > {org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a
> >> > message
> >> > of type PINGREQ
> >> >
> >> > [2015-05-12 16:01:47,270]  INFO
> >> > {org.dna.mqtt.moquette.parser.netty.PublishDecoder} -  decode invoked
> >> > with
> >> > buffer UnpooledUnsafeDirectByteBuf(ridx: 1, widx: 63, cap: 208)
> >> >
> >> > [2015-05-12 16:01:47,271]  INFO
> >> > {org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a
> >> > message
> >> > of type PUBLISH
> >> >
> >> > [2015-05-12 16:01:47,271]  INFO
> >> > {org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging} -  onEvent
> >> > processing messaging event from input ringbuffer ProtocolEvent
> wrapping
> >> > PUBLISH
> >> >
> >> > STORE >> message part id374739636907147264 offset 0
> >> >
> >> > [2015-05-12 16:01:47,272]  INFO
> >> > {org.wso2.andes.messageStore.CassandraBasedMessageStoreImpl} -  Wrote
> >> > message 374739636907147264 to Global Queue TopicNodeQueue_0
> >> >
> >> > REMOVE CONTENT>> id 374739636907147264
> >> >
> >> >
> >> > On Tue, May 12, 2015 at 3:41 PM, Sriashalya Srivathsan
> >> > 
> >> > wrote:
> >> >>
> >> >> Hi Chanaka,
> >> >> I've opened the TCP monitor for the UI client. The noticed message
> has
> >> >> been attached below.Is the client sending the message properly?
> >> >>
> >> >>
> >> >> Thank you,
> >> >>
> >> >> On Wed, May 6, 2015 at 1:20 PM, Sriashalya Srivathsan
> >> >> 
> >> >> wrote:
> >> >>>
> >> >>> HI Malaka,
> >> >>> I'll proceed with that.
> >> >>>
> >> >>> On Wed, May 6, 2015 at 1:11 PM, Malaka Silva 
> wrote:
> >> 
> >>  Hi Sriashalya,
> >> 
> >>  As we discussed offline, we need to get the source code (I guess
> this
> >>  is
> >>  carbon 4.2.0) and start debugging the MQTTListener code.
> >> 
> >>  On Wed, Apr 29, 2015 at 10:16 PM, Sriashalya Srivathsan
> >>   wrote:
> >> >
> >> > Sajini you are correct. I'm using MB 3.0.0.
> >> > Chanaka I've used log mediator, but I cannot see any thing in my
> ESB
> >> > console.
> >> >
> >> >
> >> >
> >> > Thank you,
> >> >
> >> > On Wed, Apr 29, 2015 at 5:27 PM, Chanaka Fernando
> >> > 
> >> > wrote:
> >> >>
> >> >> Hi Sriashalya,
> >> >>
> >> >> You can use log mediator to view the message when it is passing
> >> >> through ESB.
> >> >>
> >> >> 
> >> >>
> >> >> Thanks,
> >> >> Chanaka
> >> >>
> >> >> On Wed, Apr 29, 2015 at 5:25 PM, Sajini De Silva <
> saj...@wso2.com>
> >> >> wrote:
> >> >>>
> >> >>> Hi Sriashalya,
> >> >>>
> >> >>> What is the MB version you are using in this scenario? I see
> >> >>> global
> >> >>> queues in the logs which is used in MB 2.2.0. MB 2.2.0 does not
> >> >>> support
> >> >>> MQTT.
> >> >>>
> >> >>> Thank you,
> >> >>> Sajini
> >> >>>
> >> >>> Thank you,
> >> >>> Sajini
> >> >>>
> >> >>> On Wed, Apr 29, 2015 at 5:15 PM, Sriashalya Srivathsan
> >> >>>  wrote:
> >> 
> >>  looping to Dev
> >> 
> >>  On Wed, Apr 29, 2015 at 5:13 PM, Sriashalya Srivathsan
> >>   wrote:
> >> >
> >> > Hi Chanaka,
> >> > I've sent the message from client ,It is going to MB
> perfectly.
> >> > But
> >> > I couldn't get anything in the ESB console. It seems ESB don't
> >> > receive the
> >> > message. How Can I proceed with this?
> >> >>>

Re: [Dev] Fwd: MQTT Transport

2015-05-12 Thread Pamod Sylvester
Hmm.. These logs appear when attempted to publish to a topic and
there're no subscribers for it.

On Tue, May 12, 2015 at 5:34 PM, Sriashalya Srivathsan  wrote:
> Hi Pamod,
> I tried with the MB M7 pack.I'm getting the following log in the console,
> when I publish the message.
>
> [2015-05-12 17:32:08,369]  INFO
> {org.wso2.andes.kernel.distruptor.inbound.MessagePreProcessor} -  Message
> routing key: stocks No routes in cluster. Ignoring Message id
> 36295443315163136
>
>
>
> On Tue, May 12, 2015 at 4:36 PM, Pamod Sylvester  wrote:
>>
>> Hi Sriashalya,
>>
>> Could you try the use case with MB M7 pack [1] which is the latest.
>> You could download it from [2]
>>
>> [1] WSO2 Message Broker 3.0.0 Milestone 7 Released !
>> [2]
>> https://svn.wso2.org/repos/wso2/scratch/MB/3.0.0/M7/wso2mb-3.0.0-SNAPSHOT-m7.zip
>>
>> Thanks,
>> Pamod
>>
>> On Tue, May 12, 2015 at 4:29 PM, Chanaka Fernando 
>> wrote:
>> > [Adding Pamod]
>> >
>> > @Pamod: Could you shed some light on this scenario. AFAIR, you have
>> > implemented this use case with some custom changes to the mqtt
>> > transport.
>> >
>> > On Tue, May 12, 2015 at 4:24 PM, Madhuranga Bandara
>> > 
>> > wrote:
>> >>
>> >> Hi Sriashalya,
>> >>
>> >> Just a small comment. Wireshark is better and easier than TCP mon in
>> >> analysing the message content.
>> >> Try to use Wireshark when you need to analyse messages.
>> >> Madhuranga Sampath Bandara
>> >> Software Engineer
>> >>
>> >> WSO2, Inc.;http://wso2.com/
>> >> lean.enterprise.middleware
>> >> Mobile: +94722241065
>> >>
>> >>
>> >> On Tue, May 12, 2015 at 4:06 PM, Sriashalya Srivathsan
>> >> 
>> >> wrote:
>> >> > Hi Chanaka,
>> >> > But I'm getting the following in my MB console
>> >> >
>> >> >
>> >> > [2015-05-12 16:01:41,377]  INFO
>> >> > {org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a
>> >> > message
>> >> > of type PINGREQ
>> >> >
>> >> > [2015-05-12 16:01:47,270]  INFO
>> >> > {org.dna.mqtt.moquette.parser.netty.PublishDecoder} -  decode invoked
>> >> > with
>> >> > buffer UnpooledUnsafeDirectByteBuf(ridx: 1, widx: 63, cap: 208)
>> >> >
>> >> > [2015-05-12 16:01:47,271]  INFO
>> >> > {org.dna.mqtt.moquette.server.netty.NettyMQTTHandler} -  Received a
>> >> > message
>> >> > of type PUBLISH
>> >> >
>> >> > [2015-05-12 16:01:47,271]  INFO
>> >> > {org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging} -  onEvent
>> >> > processing messaging event from input ringbuffer ProtocolEvent
>> >> > wrapping
>> >> > PUBLISH
>> >> >
>> >> > STORE >> message part id374739636907147264 offset 0
>> >> >
>> >> > [2015-05-12 16:01:47,272]  INFO
>> >> > {org.wso2.andes.messageStore.CassandraBasedMessageStoreImpl} -  Wrote
>> >> > message 374739636907147264 to Global Queue TopicNodeQueue_0
>> >> >
>> >> > REMOVE CONTENT>> id 374739636907147264
>> >> >
>> >> >
>> >> > On Tue, May 12, 2015 at 3:41 PM, Sriashalya Srivathsan
>> >> > 
>> >> > wrote:
>> >> >>
>> >> >> Hi Chanaka,
>> >> >> I've opened the TCP monitor for the UI client. The noticed message
>> >> >> has
>> >> >> been attached below.Is the client sending the message properly?
>> >> >>
>> >> >>
>> >> >> Thank you,
>> >> >>
>> >> >> On Wed, May 6, 2015 at 1:20 PM, Sriashalya Srivathsan
>> >> >> 
>> >> >> wrote:
>> >> >>>
>> >> >>> HI Malaka,
>> >> >>> I'll proceed with that.
>> >> >>>
>> >> >>> On Wed, May 6, 2015 at 1:11 PM, Malaka Silva 
>> >> >>> wrote:
>> >> 
>> >>  Hi Sriashalya,
>> >> 
>> >>  As we discussed offline, we need to get the source code (I guess
>> >>  this
>> >>  is
>> >>  carbon 4.2.0) and start debugging the MQTTListener code.
>> >> 
>> >>  On Wed, Apr 29, 2015 at 10:16 PM, Sriashalya Srivathsan
>> >>   wrote:
>> >> >
>> >> > Sajini you are correct. I'm using MB 3.0.0.
>> >> > Chanaka I've used log mediator, but I cannot see any thing in my
>> >> > ESB
>> >> > console.
>> >> >
>> >> >
>> >> >
>> >> > Thank you,
>> >> >
>> >> > On Wed, Apr 29, 2015 at 5:27 PM, Chanaka Fernando
>> >> > 
>> >> > wrote:
>> >> >>
>> >> >> Hi Sriashalya,
>> >> >>
>> >> >> You can use log mediator to view the message when it is passing
>> >> >> through ESB.
>> >> >>
>> >> >> 
>> >> >>
>> >> >> Thanks,
>> >> >> Chanaka
>> >> >>
>> >> >> On Wed, Apr 29, 2015 at 5:25 PM, Sajini De Silva
>> >> >> 
>> >> >> wrote:
>> >> >>>
>> >> >>> Hi Sriashalya,
>> >> >>>
>> >> >>> What is the MB version you are using in this scenario? I see
>> >> >>> global
>> >> >>> queues in the logs which is used in MB 2.2.0. MB 2.2.0 does not
>> >> >>> support
>> >> >>> MQTT.
>> >> >>>
>> >> >>> Thank you,
>> >> >>> Sajini
>> >> >>>
>> >> >>> Thank you,
>> >> >>> Sajini
>> >> >>>
>> >> >>> On Wed, Apr 29, 2015 at 5:15 PM, Sriashalya Srivathsan
>> >> >>>  wrote:
>> >> 
>> >>  looping to Dev
>> >> 
>> >>  On Wed, Apr 29, 2015 at 5:13 PM, Sri

Re: [Dev] HT error when browsing Greg 5.0.0 M4 publisher with APIM features installed

2015-05-12 Thread Lalaji Sureshika
Hi Waruna,

We checked with a BPS snapshot build [on c4.4.0] also and your reply
mentioned tomcat not importing intermittent issue is exists in BPS snapshot
pack as well..

Thanks;


On Mon, May 11, 2015 at 4:52 AM, Waruna Jayaweera  wrote:

> Hi Lalaji,
> This seems to be intermittent issue. I checked the issue with osgiconsole.
> Issue can not be reproduced when
> package org.wso2.carbon.humantask.core.dao.jpa.openjpa.model is imported by
> tomcat.
>
> osgi> p  org.wso2.carbon.humantask.core.dao.jpa.openjpa.model
> org.wso2.carbon.humantask.core.dao.jpa.openjpa.model;
> version="4.4.0"
>   org.apache.openjpa_2.2.0.wso2v1 [100] imports
>   serp_1.13.1.wso2v1 [518] imports
> *  tomcat_7.0.59.wso2v1 [536] imports*
>
> But when tomcat doesn't import we can observe the openjpa issue with "The
> name "org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.Task" is not a
> recognized entity"
>
> osgi> p  org.wso2.carbon.humantask.core.dao.jpa.openjpa.model
> org.wso2.carbon.humantask.core.dao.jpa.openjpa.model;
> version="4.4.0"
>   org.apache.openjpa_2.2.0.wso2v1 [100] imports
>   serp_1.13.1.wso2v1 [518] imports
>
> So seems like issue with conflicting packages.
>
> Thanks,
> Waruna
>
>
>
>
> On Mon, May 11, 2015 at 11:01 AM, Lalaji Sureshika 
> wrote:
>
>> Hi Waruna,
>>
>> When we tried installing AM features on top of GReg 5.0.0 M4 [compatible
>> with c4.4.0],we are observing the below error[1],when browsing assets from
>> GReg publisher.Any clue on this error..?
>>
>> Thanks;
>>
>> [1]
>> TID: [-1234] [] [2015-05-11 00:30:19,684] ERROR
>> {org.wso2.carbon.humantask.core.TaskOperationServiceImpl} -
>>  
>> org.apache.openjpa.persistence.ArgumentException: An error occurred while
>> parsing the query filter "SELECT COUNT(DISTINCT t) FROM
>> org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.Task t  JOIN
>> t.humanRoles hr JOIN hr.orgEntities oe WHERE   oe.name = :name  AND
>>  hr.type = :roleType  AND  t.tenantId = :tenantId  AND  t.type = :taskType
>>  AND  t.status IN :taskStatuses". Error message: The name
>> "org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.Task" is not a
>> recognized entity or identifier. Perhaps you meant PresentationDescription,
>> which is a close match. Known entity names: [PresentationParameter,
>> Attachment, Message, Event, Comment, Deadline, PresentationName,
>> OrganizationalEntity, DeploymentUnit, GenericHumanRole,
>> PresentationSubject, Task, TaskVersion, PresentationDescription,
>> PresentationElement, HumanTaskJob]
>> {org.wso2.carbon.humantask.core.TaskOperationServiceImpl}
>> TID: [-1234] [] [2015-05-11 00:30:19,687] ERROR
>> {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>>  org.mozilla.javascript.WrappedException: Wrapped
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.WrappedException: Wrapped
>> org.wso2.carbon.humantask.client.api.IllegalArgumentFault:
>> 
>> org.apache.openjpa.persistence.ArgumentException: An error occurred while
>> parsing the query filter "SELECT COUNT(DISTINCT t) FROM
>> org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.Task t  JOIN
>> t.humanRoles hr JOIN hr.orgEntities oe WHERE   oe.name = :name  AND
>>  hr.type = :roleType  AND  t.tenantId = :tenantId  AND  t.type = :taskType
>>  AND  t.status IN :taskStatuses". Error message: The name
>> "org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.Task" is not a
>> recognized entity or identifier. Perhaps you meant PresentationDescription,
>> which is a close match. Known entity names: [PresentationParameter,
>> Attachment, Message, Event, Comment, Deadline, PresentationName,
>> OrganizationalEntity, DeploymentUnit, GenericHumanRole,
>> PresentationSubject, Task, TaskVersion, PresentationDescription,
>> PresentationElement, HumanTaskJob] (eval code#1(eval)#56)
>> (/publisher/controllers/assets-router.jag#75)
>> {org.jaggeryjs.jaggery.core.manager.WebAppManager}
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.WrappedException: Wrapped
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.WrappedException: Wrapped
>> org.wso2.carbon.humantask.client.api.IllegalArgumentFault:
>> 
>> org.apache.openjpa.persistence.ArgumentException: An error occurred while
>> parsing the query filter "SELECT COUNT(DISTINCT t) FROM
>> org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.Task t  JOIN
>> t.humanRoles hr JOIN hr.orgEntities oe WHERE   oe.name = :name  AND
>>  hr.type = :roleType  AND  t.tenantId = :tenantId  AND  t.type = :taskType
>>  AND  t.status IN :taskStatuses". Error message: The name
>> "org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.Task" is not a
>> recognized entity or identifier. Perhaps you meant PresentationDescription,
>> which is a close match. Known entity names: [PresentationParameter,
>> Attachment, Message, Event, Comment, Deadline, PresentationName,
>> OrganizationalEntity, DeploymentUnit, GenericHumanRole,
>> PresentationSubject, Task, TaskVersion, PresentationDes

Re: [Dev] Displaying claimable user tasks in BPMN explorer

2015-05-12 Thread Shiva Balachandran
Hi All,

I deployed a process containing user tasks with candidate users and
cadidate groups. Once i deployed these processes in the server, i created
instances of the task. I used the rest API to check if the task are created
and i noticed that the json returned doesn't have the candidate properties
specified in the process. Without these properties we cannot differentiate
or address these task to a user, these will be hidden. I have attached the
.bar file and the json response from the server for the request[1]. This
would be the reason for JIRA[2].

We need to identify as to why these properties are not listed or ignored.

[1] - http://localhost:9763/bpmn/runtime/tasks
[2] - https://wso2.org/jira/browse/BPS-656

Thank you.

Regards,
Shiva Balachandran

On Tue, May 12, 2015 at 11:32 AM, Amal Gunatilake  wrote:

> Hi Shiva,
>
> I have created a sample icon that matches with the existing icons which
> can be used for the new "Claimable tasks" tab.
>
> Best regards,
> Amal.
>
> On Tue, May 12, 2015 at 11:29 AM, Shiva Balachandran 
> wrote:
>
>> Hi Firzhan,
>>
>> The tab we currently have is My Tasks view only, we will be introducing
>> the claimable tasks tab for the above mentioned requirement. The queued and
>> involved tabs are what is present in the acitviti explorer from activiti.
>>
>> Thank you.
>>
>> Regards,
>> Shiva Balachandran
>>
>> On Tue, May 12, 2015 at 11:22 AM, Firzhan Naqash 
>> wrote:
>>
>>> Hi All,
>>>
>>> Just for clarification, if we are going to move the claimable tasks to a
>>> separate tab, then we will be utilising the both involved and claimable
>>> tabs.
>>>
>>> Can I know the necessity of using queued tab in this scenario.
>>>
>>>
>>> Regards,
>>> Firzhan
>>>
>>> On Tue, May 12, 2015 at 12:40 AM, Shiva Balachandran 
>>> wrote:
>>>
 Hi Amal,

 Also, to add to that, i just deployed a process with tasks containing
 candidate users and a candidate group. The users cannot see these tasks
 listed anywhere in the BPMN Explorer. I checked the backend the explorer
 has the necessary jag code to populate these in the My Tasks view, will
 debug further. JIRA[1] has been created previously to track this.

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

 I will work on this.

 Thank you.

 Regards,
 Shiva Balachandran



 On Tue, May 12, 2015 at 11:00 AM, Amal Gunatilake 
 wrote:

> Hi Chathura,
>
> Yes, I too think having a separate tab for claimable tasks is a better
> approach. Shall we call it the "Claimable tasks" tab?
> To keep in track I created a jira ticket for this :
> https://wso2.org/jira/browse/BPS-660
>
> Best regards,
> Amal.
>
> On Tue, May 12, 2015 at 10:41 AM, Chathura Ekanayake <
> chath...@wso2.com> wrote:
>
>> Hi Amal,
>>
>> Currently the BPMN explorer displays only the tasks "assigned" to the
>> logged in user. But it does not display tasks if the current user is a
>> candidate user or in a candidate group. Did we plan to implement this in
>> the explorer?
>>
>> I think we should have a separate tab for claimable tasks, which
>> shows tasks assigned to both candidate user and candidate group. WDYT?
>>
>> Regards,
>> Chathura
>>
>
>
>
> --
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>



 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/

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


>>>
>>
>>
>> --
>> Shiva Balachandran
>> Software Engineer
>> WSO2 Inc.
>>
>> Mobile - +94 774445788
>> Blog - https://shivabalachandran.wordpress.com/
>>
>
>
>
> --
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>



-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

Mobile - +94 774445788
Blog - https://shivabalachandran.wordpress.com/
{"data":[{"id":"2504","url":"http://localhost:9763/bpmn/runtime/tasks/2504","owner":null,"assignee":null,"delegationState":null,"name":"Approve","description":null,"createTime":"2015-05-12T18:17:54.836+05:30","dueDate":null,"priority":50,"suspended":false,"taskDefinitionKey":"sid-764B7362-1642-40BF-B844-8F2ED9662AFD","tenantId":"-1234","category":null,"formKey":null,"parentTaskId":null,"parentTaskUrl":null,"executionId":"2501","executionUrl":"http://localhost:9763/bpmn/runtime/executions/2501","processInstanceId":"2501","processInstanceUrl":"http://localhost:9763/bpmn/runtime/process-instances/2501","processDefinitionId":"process:2:12","processDefinitionUrl":"http://localhost:9763/bpmn/repository/process-definitions/process%3A2%3A12","variables":[]},{"id":"2515","url":"http://localhost:9763/bpmn/runtime/task

Re: [Dev] HT error when browsing Greg 5.0.0 M4 publisher with APIM features installed

2015-05-12 Thread Dhanuka Ranasinghe
Hi,

We tried to prevent tomcat importing
org.wso2.carbon.humantask.core.dao.jpa.openjpa.model
package by doing following things but still tomcat import those packages.
This is bit urgent matter, could some one please shed some light on this to
resolve OSGI issue.

1. Remove javax.persistence from tomcat orbit
2. Use equinox specific Export command
(com.example.impl;x-friends:=com.example.other,
// Only com.example.other should access it)

Please note tomcat DefaultInstanceManager
(org/apache/catalina/core/DefaultInstanceManager) use javax.persistence to
create persistence unit so may be due to that tomcat still import
javax.persistence.

Cheers,
Dhanuka

*Dhanuka Ranasinghe*

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

phone : +94 715381915

On Tue, May 12, 2015 at 6:20 PM, Lalaji Sureshika  wrote:

> Hi Waruna,
>
> We checked with a BPS snapshot build [on c4.4.0] also and your reply
> mentioned tomcat not importing intermittent issue is exists in BPS snapshot
> pack as well..
>
> Thanks;
>
>
> On Mon, May 11, 2015 at 4:52 AM, Waruna Jayaweera 
> wrote:
>
>> Hi Lalaji,
>> This seems to be intermittent issue. I checked the issue with
>> osgiconsole. Issue can not be reproduced when
>> package org.wso2.carbon.humantask.core.dao.jpa.openjpa.model is imported by
>> tomcat.
>>
>> osgi> p  org.wso2.carbon.humantask.core.dao.jpa.openjpa.model
>> org.wso2.carbon.humantask.core.dao.jpa.openjpa.model;
>> version="4.4.0"
>>   org.apache.openjpa_2.2.0.wso2v1 [100] imports
>>   serp_1.13.1.wso2v1 [518] imports
>> *  tomcat_7.0.59.wso2v1 [536] imports*
>>
>> But when tomcat doesn't import we can observe the openjpa issue with "The
>> name "org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.Task" is not
>> a recognized entity"
>>
>> osgi> p  org.wso2.carbon.humantask.core.dao.jpa.openjpa.model
>> org.wso2.carbon.humantask.core.dao.jpa.openjpa.model;
>> version="4.4.0"
>>   org.apache.openjpa_2.2.0.wso2v1 [100] imports
>>   serp_1.13.1.wso2v1 [518] imports
>>
>> So seems like issue with conflicting packages.
>>
>> Thanks,
>> Waruna
>>
>>
>>
>>
>> On Mon, May 11, 2015 at 11:01 AM, Lalaji Sureshika 
>> wrote:
>>
>>> Hi Waruna,
>>>
>>> When we tried installing AM features on top of GReg 5.0.0 M4 [compatible
>>> with c4.4.0],we are observing the below error[1],when browsing assets from
>>> GReg publisher.Any clue on this error..?
>>>
>>> Thanks;
>>>
>>> [1]
>>> TID: [-1234] [] [2015-05-11 00:30:19,684] ERROR
>>> {org.wso2.carbon.humantask.core.TaskOperationServiceImpl} -
>>>  
>>> org.apache.openjpa.persistence.ArgumentException: An error occurred while
>>> parsing the query filter "SELECT COUNT(DISTINCT t) FROM
>>> org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.Task t  JOIN
>>> t.humanRoles hr JOIN hr.orgEntities oe WHERE   oe.name = :name  AND
>>>  hr.type = :roleType  AND  t.tenantId = :tenantId  AND  t.type = :taskType
>>>  AND  t.status IN :taskStatuses". Error message: The name
>>> "org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.Task" is not a
>>> recognized entity or identifier. Perhaps you meant PresentationDescription,
>>> which is a close match. Known entity names: [PresentationParameter,
>>> Attachment, Message, Event, Comment, Deadline, PresentationName,
>>> OrganizationalEntity, DeploymentUnit, GenericHumanRole,
>>> PresentationSubject, Task, TaskVersion, PresentationDescription,
>>> PresentationElement, HumanTaskJob]
>>> {org.wso2.carbon.humantask.core.TaskOperationServiceImpl}
>>> TID: [-1234] [] [2015-05-11 00:30:19,687] ERROR
>>> {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>>>  org.mozilla.javascript.WrappedException: Wrapped
>>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>>> org.mozilla.javascript.WrappedException: Wrapped
>>> org.wso2.carbon.humantask.client.api.IllegalArgumentFault:
>>> 
>>> org.apache.openjpa.persistence.ArgumentException: An error occurred while
>>> parsing the query filter "SELECT COUNT(DISTINCT t) FROM
>>> org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.Task t  JOIN
>>> t.humanRoles hr JOIN hr.orgEntities oe WHERE   oe.name = :name  AND
>>>  hr.type = :roleType  AND  t.tenantId = :tenantId  AND  t.type = :taskType
>>>  AND  t.status IN :taskStatuses". Error message: The name
>>> "org.wso2.carbon.humantask.core.dao.jpa.openjpa.model.Task" is not a
>>> recognized entity or identifier. Perhaps you meant PresentationDescription,
>>> which is a close match. Known entity names: [PresentationParameter,
>>> Attachment, Message, Event, Comment, Deadline, PresentationName,
>>> OrganizationalEntity, DeploymentUnit, GenericHumanRole,
>>> PresentationSubject, Task, TaskVersion, PresentationDescription,
>>> PresentationElement, HumanTaskJob] (eval code#1(eval)#56)
>>> (/publisher/controllers/assets-router.jag#75)
>>> {org.jaggeryjs.jaggery.core.manager.WebAppManager}
>>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>>> org.mozilla.javascript.WrappedException: Wrapped
>>> org.jaggeryjs.scriptengine.exceptions.

[Dev] App Manager latest build pack - 12-05-2015

2015-05-12 Thread Dinusha Senanayaka
Hi,

Please find $subject in [1].

[1] http://builder1.us1.wso2.org/~appm/12-05-2015/

Regards,
Dinusha.

-- 
Dinusha Dilrukshi
Associate Technical Lead
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


[Dev] Please Review and Merge

2015-05-12 Thread Milan Perera
Hi,

Please review and merge PR[1]

[1] https://github.com/wso2/carbon-device-mgt/pull/7

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

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


Re: [Dev] Displaying claimable user tasks in BPMN explorer

2015-05-12 Thread Amal Gunatilake
Hi Shiva,

Send the request with the parameter candidateUsers:
https://locaohst:9443/bpmn/runtime/tasks?candidateUsers=kermit

More info regarding the parameters are mentioned in the Activiti user guide
under "*Table 111. List of tasks - URL query parameters*"
http://www.activiti.org/userguide/#_tasks_2

Regards,
Amal

On Tue, May 12, 2015 at 6:36 PM, Shiva Balachandran  wrote:

> Hi All,
>
> I deployed a process containing user tasks with candidate users and
> cadidate groups. Once i deployed these processes in the server, i created
> instances of the task. I used the rest API to check if the task are created
> and i noticed that the json returned doesn't have the candidate properties
> specified in the process. Without these properties we cannot differentiate
> or address these task to a user, these will be hidden. I have attached the
> .bar file and the json response from the server for the request[1]. This
> would be the reason for JIRA[2].
>
> We need to identify as to why these properties are not listed or ignored.
>
> [1] - http://localhost:9763/bpmn/runtime/tasks
> [2] - https://wso2.org/jira/browse/BPS-656
>
> Thank you.
>
> Regards,
> Shiva Balachandran
>
> On Tue, May 12, 2015 at 11:32 AM, Amal Gunatilake  wrote:
>
>> Hi Shiva,
>>
>> I have created a sample icon that matches with the existing icons which
>> can be used for the new "Claimable tasks" tab.
>>
>> Best regards,
>> Amal.
>>
>> On Tue, May 12, 2015 at 11:29 AM, Shiva Balachandran 
>> wrote:
>>
>>> Hi Firzhan,
>>>
>>> The tab we currently have is My Tasks view only, we will be introducing
>>> the claimable tasks tab for the above mentioned requirement. The queued and
>>> involved tabs are what is present in the acitviti explorer from activiti.
>>>
>>> Thank you.
>>>
>>> Regards,
>>> Shiva Balachandran
>>>
>>> On Tue, May 12, 2015 at 11:22 AM, Firzhan Naqash 
>>> wrote:
>>>
 Hi All,

 Just for clarification, if we are going to move the claimable tasks to
 a separate tab, then we will be utilising the both involved and claimable
 tabs.

 Can I know the necessity of using queued tab in this scenario.


 Regards,
 Firzhan

 On Tue, May 12, 2015 at 12:40 AM, Shiva Balachandran 
 wrote:

> Hi Amal,
>
> Also, to add to that, i just deployed a process with tasks containing
> candidate users and a candidate group. The users cannot see these tasks
> listed anywhere in the BPMN Explorer. I checked the backend the explorer
> has the necessary jag code to populate these in the My Tasks view, will
> debug further. JIRA[1] has been created previously to track this.
>
> [1] - https://wso2.org/jira/browse/BPS-656
>
> I will work on this.
>
> Thank you.
>
> Regards,
> Shiva Balachandran
>
>
>
> On Tue, May 12, 2015 at 11:00 AM, Amal Gunatilake 
> wrote:
>
>> Hi Chathura,
>>
>> Yes, I too think having a separate tab for claimable tasks is a
>> better approach. Shall we call it the "Claimable tasks" tab?
>> To keep in track I created a jira ticket for this :
>> https://wso2.org/jira/browse/BPS-660
>>
>> Best regards,
>> Amal.
>>
>> On Tue, May 12, 2015 at 10:41 AM, Chathura Ekanayake <
>> chath...@wso2.com> wrote:
>>
>>> Hi Amal,
>>>
>>> Currently the BPMN explorer displays only the tasks "assigned" to
>>> the logged in user. But it does not display tasks if the current user 
>>> is a
>>> candidate user or in a candidate group. Did we plan to implement this in
>>> the explorer?
>>>
>>> I think we should have a separate tab for claimable tasks, which
>>> shows tasks assigned to both candidate user and candidate group. WDYT?
>>>
>>> Regards,
>>> Chathura
>>>
>>
>>
>>
>> --
>> *Amal Gunatilake*
>>  Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
> Blog - https://shivabalachandran.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

>>>
>>>
>>> --
>>> Shiva Balachandran
>>> Software Engineer
>>> WSO2 Inc.
>>>
>>> Mobile - +94 774445788
>>> Blog - https://shivabalachandran.wordpress.com/
>>>
>>
>>
>>
>> --
>> *Amal Gunatilake*
>>  Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
> Blog - https://shivabalachandran.wordpress.com/
>



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


Re: [Dev] Please Review and Merge

2015-05-12 Thread Prabath Abeysekera
Done.

Cheers,
Prabath

On Tue, May 12, 2015 at 7:31 PM, Milan Perera  wrote:

> Hi,
>
> Please review and merge PR[1]
>
> [1] https://github.com/wso2/carbon-device-mgt/pull/7
>
> Thanks,
> --
> Milan Harindu Perera
> Software Engineer
> *WSO2, Inc*
> (+94) 77 309 7088
> lean . enterprise . middleware
> 
>



-- 
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] ESB connector Api Method for posting on Google+

2015-05-12 Thread Nadeeshaan Gunasinghe
Hi All,
At the moment I am trying to implement a scenario for retrieving latest
posts from Facebook or latest tweets from Twitter , and then post them on
Google+ by using Facebook, twitter and Google+ Connectors. At the moment
there is no such API operation in the current Google+ connector. Is there
any other alternate way of achieve this requirement or is there any plan to
adding the afore mentioned API operation.

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


[Dev] [Registry] CNF when ML server shutdowns

2015-05-12 Thread Nirmal Fernando
Hi,

We're seen [1] below when server shutdowns. Which feature carries this
lucene bundle?

[1]

Exception in thread "Thread-15" java.lang.NoClassDefFoundError:
org/apache/lucene/analysis/util/ResourceLoader

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)

at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:638)

at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:613)

at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:574)

at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492)

at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465)

at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)

at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)

at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

at org.apache.solr.core.CoreContainer.(CoreContainer.java:153)

at
org.wso2.carbon.registry.indexing.solr.SolrClient.(SolrClient.java:119)

at
org.wso2.carbon.registry.indexing.solr.SolrClient.getInstance(SolrClient.java:131)

at
org.wso2.carbon.registry.indexing.AsyncIndexer.(AsyncIndexer.java:100)

at
org.wso2.carbon.registry.indexing.IndexingManager.(IndexingManager.java:61)

at
org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:71)

at
org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)

at
org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)

at
org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)

at
org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)

at
org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:901)

Caused by: java.lang.ClassNotFoundException:
org.apache.lucene.analysis.util.ResourceLoader cannot be found by
solr_5.0.0.wso2v1

at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)

at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)

at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

... 26 more

-- 

Thanks & regards,
Nirmal

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


[Dev] Please Review and Merge

2015-05-12 Thread Milan Perera
Hi,

Please review and merge PR[1].

[1] https://github.com/wso2/product-mdm/pull/50

Thanks

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

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


[Dev] Some claims mapped in the SCIM claim dialect are not set when we send those with the create user request

2015-05-12 Thread Gayan Dhanushka
Hi all,

Need some clarity on SCIM claim dialect.

I tried to add some claims which are described in "urn:scim:schemas:core:1.0
"
claim dialect.(e.g. urn:scim:schemas:core:1.0:addresses.region). But It was
not getting added.

However some claims got set (e.g. urn:scim:schemas:core:1.0:title)

*Request*

curl -v -k --user admin:admin --data
"{"schemas":[],"title":"Mr","region":"colombo","name":{"familyName":"dhanushka","givenName":"gayan"},"userName":"gayan","password":"gayan","emails":[{"primary":true,"value":"
gayanl...@gmail.com","type":"home"},{"value":"gay...@wso2.com","type":"work"}]}"
--header "Content-Type:application/json"
https://localhost:9443/wso2/scim/Users


*Response*

{"id":"b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9","title":"Mr","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyName":"dhanushka","givenName":"gayan"},"userName":"gayan","emails":[{"value":"
gayanl...@gmail.com","type":"home"},{"value":"gay...@wso2.com
","type":"work"}],"meta":{"lastModified":"2015-05-12T16:47:40","location":"
https://localhost:9443/wso2/scim/Users/b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9
","created":"2015-05-12T16:47:40"}}

Any particular reason for this behavior ?


Regards



-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB connector Api Method for posting on Google+

2015-05-12 Thread Malaka Silva
Hi Nadeeshaan,

Currently there is no plan of extending it. Meanwhile you can add that
method locally and use it.

@Connector Team
Can we add this to the TODO list? We need to track this type of requests.
Maybe we can add a jira for ESBCONNECTORS [1]

[1] https://wso2.org/jira/browse/ESBCONNECT

On Tue, May 12, 2015 at 7:34 PM, Nadeeshaan Gunasinghe 
wrote:

> Hi All,
> At the moment I am trying to implement a scenario for retrieving latest
> posts from Facebook or latest tweets from Twitter , and then post them on
> Google+ by using Facebook, twitter and Google+ Connectors. At the moment
> there is no such API operation in the current Google+ connector. Is there
> any other alternate way of achieve this requirement or is there any plan to
> adding the afore mentioned API operation.
>
> Thanks
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

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

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


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


[Dev] Use of wso2carbon-version.txt

2015-05-12 Thread Kalpa Welivitigoda
Hi,

wso2carbon-version.txt is used in wso2server.sh and carbondump.sh to print
the version of the Carbon framework. Are there any other usages of
wso2carbon-version.txt?

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


[Dev] [Architecture] WSO2 BPS v3.5.0 M6 Released!

2015-05-12 Thread Waruna Jayaweera
Hi,

WSO2 BPS team is pleased to announce the sixth milestone release of WSO2
BPS v3.5.0. The distribution is available at [1]. This release includes
following bug-fixes, improvements, tasks and sub-tasks.
Bug

   - [BPS-552 ] - Provide a way to
   disable keep alive for invokes as a configuration option
   - [BPS-567 ] - Links (try-it, wsdl
   uris) are broken in Process Information page
   - [BPS-571 ] - BPMN admin UI
   instance variables always empty
   - [BPS-573 ] - BPS Server start up
   fails intermittently java.lang.ClassNotFoundException:
   org.wso2.carbon.tomcat.ext.servlet.DelegationServlet
   - [BPS-578 ] - Optimistic locking
   errors when try to undeploy a process which has active instances
   - [BPS-580 ] - APIM admin dash
   board not displaying human tasks
   - [BPS-581 ] - Process Cleanup
   tool does not work with some processes.
   - [BPS-605 ] - Create a method to
   pass parameters from BPMN jaggery UI
   - [BPS-648 ] - Getting Referential
   integrity constraint violation when undeploying BPMN process
   - [BPS-651 ] - Human Task server
   feature should pack carbon-analytics-common dependency

Improvement

   - [BPS-572 ] - Add current active
   state diagram to BPMN admin UI process instance information page
   - [BPS-623 ] - Rename BPMN rest
   api context path /bpmnrest to bpmn
   - [BPS-632 ] -
   [ws-humantask-explorer] Need to proper meaningful names instead of Inbox,
   Task Pool, All Tasks of WS humantask explorer
   - [BPS-636 ] -
   [ws-humantask-explorer] Locate action buttons to visible location in ws
   humantask explorer

Task

   - [BPS-557 ] - Support Activiti
   Multitenancy
   - [BPS-574 ] - Moving the artifact
   storage from Registry to BPS corresponding DB
   - [BPS-579 ] - Upgrade hazelcast
   version to 3.2.6.wso2v2
   - [BPS-606 ] - URL for Human Task
   Explorer should be displayed during the server start-up
   - [BPS-612 ] - BPMN Integration
   Tests
   - [BPS-639 ] - BPMN Explorer show
   logged in user next to the logout sign
   - [BPS-641 ] - BPMN explorer
   footer stick to bottom of the page always
   - [BPS-642 ] - BPMN Explorer
   replace home button to dashboard
   - [BPS-643 ] - BPMN explorer
   rename tasks to My Task and add Completed task instead Historical Task
   - [BPS-644 ] - BPMN Explorer
   Processes but no drop down
   - [BPS-645 ] - BPMN Explorer
   session timed out should redirect to login page
   - [BPS-646 ] - BPMN explorer
   remove breadcrumb
   - [BPS-652 ] - Upgrade activiti
   database scripts to activiti-5.16.3

Sub-task

   - [BPS-544 ] - Basic view for
   WS-HumanTask
   - [BPS-545 ] - Providing task
   state transition support for webapp
   - [BPS-546 ] - Rendering support
   for Input / Output
   - [BPS-548 ] - Providing
   Commenting functionality
   - [BPS-549 ] - Attachment support
   for humanTask UI


The documentation for BPS v3.5.0 can be found at [2]. Your feedback is most
welcome, and any issues can be reported to the project at [3].

[1]
https://svn.wso2.org/repos/wso2/people/warunaj/releases/bps350/M6/wso2bps-3.5.0-SNAPSHOT.zip
[2]
https://docs.wso2.com/display/BPS350/WSO2+Business+Process+Server+Documentation
[3] https://wso2.org/jira/browse/BPS


- WSO2 BPS Team.

-- 
Regards,

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


Re: [Dev] [Registry] CNF when ML server shutdowns

2015-05-12 Thread Danesh Kuruppu
Hi Nirmal,

Registry Content Search
Feature(org.wso2.carbon.registry.contentsearch.feature) have both solr and
lucene bundle. Can you please check whether ML pack contains
lucene_5.0.0.wso2v1.jar.
May be there is a problem in feature installation.

Thanks
Danesh

On Tue, May 12, 2015 at 7:59 PM, Nirmal Fernando  wrote:

> Hi,
>
> We're seen [1] below when server shutdowns. Which feature carries this
> lucene bundle?
>
> [1]
>
> Exception in thread "Thread-15" java.lang.NoClassDefFoundError:
> org/apache/lucene/analysis/util/ResourceLoader
>
> at java.lang.ClassLoader.defineClass1(Native Method)
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:638)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:613)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:574)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>
> at org.apache.solr.core.CoreContainer.(CoreContainer.java:153)
>
> at
> org.wso2.carbon.registry.indexing.solr.SolrClient.(SolrClient.java:119)
>
> at
> org.wso2.carbon.registry.indexing.solr.SolrClient.getInstance(SolrClient.java:131)
>
> at
> org.wso2.carbon.registry.indexing.AsyncIndexer.(AsyncIndexer.java:100)
>
> at
> org.wso2.carbon.registry.indexing.IndexingManager.(IndexingManager.java:61)
>
> at
> org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:71)
>
> at
> org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)
>
> at
> org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
>
> at
> org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
>
> at
> org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
>
> at
> org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:901)
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.lucene.analysis.util.ResourceLoader cannot be found by
> solr_5.0.0.wso2v1
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>
> ... 26 more
>
> --
>
> Thanks & regards,
> Nirmal
>
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 

Danesh Kuruppu
Software Engineer
WSO2 Inc,
Mobile: +94 (77) 1690552
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Some claims mapped in the SCIM claim dialect are not set when we send those with the create user request

2015-05-12 Thread Isura Karunaratne
Hi Gayan,

region is a part of address. So your request should be like below. (
urn:scim:schemas:core:1.0:*addresses*.region)

curl -v -k --user admin:admin --data "{"schemas":[],"title": "Mr",
"addresses": { "region": "colombo" }, "name":erName": "gayand", "password":
"gayandd", "emails": [ { "primary": true, "value": "gayanl...@gmail.com",
"type": "home" }, { "value": "gay...@wso2.com", "type": "work" } ] }"
--header "Content-Type:application/json"
https://localhost:9443/wso2/scim/Users


Thanks
Isura

On Tue, May 12, 2015 at 10:56 AM, Gayan Dhanushka  wrote:

> Hi all,
>
> Need some clarity on SCIM claim dialect.
>
> I tried to add some claims which are described in "urn:scim:schemas:core:1.0
>
> "
> claim dialect.(e.g. urn:scim:schemas:core:1.0:addresses.region). But It was
> not getting added.
>
> However some claims got set (e.g. urn:scim:schemas:core:1.0:title)
>
> *Request*
>
> curl -v -k --user admin:admin --data
> "{"schemas":[],"title":"Mr","region":"colombo","name":{"familyName":"dhanushka","givenName":"gayan"},"userName":"gayan","password":"gayan","emails":[{"primary":true,"value":"
> gayanl...@gmail.com","type":"home"},{"value":"gay...@wso2.com","type":"work"}]}"
> --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Users
>
>
> *Response*
>
>
> {"id":"b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9","title":"Mr","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyName":"dhanushka","givenName":"gayan"},"userName":"gayan","emails":[{"value":"
> gayanl...@gmail.com","type":"home"},{"value":"gay...@wso2.com
> ","type":"work"}],"meta":{"lastModified":"2015-05-12T16:47:40","location":"
> https://localhost:9443/wso2/scim/Users/b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9
> ","created":"2015-05-12T16:47:40"}}
>
> Any particular reason for this behavior ?
>
>
> Regards
>
>
>
> --
> Gayan Dhanuska
> Software Engineer
> http://wso2.com/
> Lean Enterprise Middleware
>
> Mobile
> 071 666 2327
>
> Office
> Tel   : 94 11 214 5345
> Fax  : 94 11 214 5300
>
> Twitter : https://twitter.com/gayanlggd
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Isura Dilhara Karunaratne
Senior Software Engineer

Mob +94 772 254 810
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Some claims mapped in the SCIM claim dialect are not set when we send those with the create user request

2015-05-12 Thread Isura Karunaratne
Corrected curl command.

curl -v -k --user admin:admin --data "{"schemas":[],"title": "Mr",
"addresses": { "region": "colombo" }, "name": { "familyName": "dhanushka",
"givenName": "gayan" }, "userName": "gayand", "password": "gayandd",
"emails": [ { "primary": true, "value": "gayanl...@gmail.com", "type":
"home" }, { "value": "gay...@wso2.com", "type": "work" } ] }" --header
"Content-Type:application/json" https://localhost:9443/wso2/scim/Users


On Tue, May 12, 2015 at 1:55 PM, Isura Karunaratne  wrote:

> Hi Gayan,
>
> region is a part of address. So your request should be like below. (
> urn:scim:schemas:core:1.0:*addresses*.region)
>
> curl -v -k --user admin:admin --data "{"schemas":[],"title": "Mr",
> "addresses": { "region": "colombo" }, "name":erName": "gayand", "password":
> "gayandd", "emails": [ { "primary": true, "value": "gayanl...@gmail.com",
> "type": "home" }, { "value": "gay...@wso2.com", "type": "work" } ] }"
> --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Users
>
>
> Thanks
> Isura
>
> On Tue, May 12, 2015 at 10:56 AM, Gayan Dhanushka  wrote:
>
>> Hi all,
>>
>> Need some clarity on SCIM claim dialect.
>>
>> I tried to add some claims which are described in "urn:scim:schemas:core:1.0
>>
>> "
>> claim dialect.(e.g. urn:scim:schemas:core:1.0:addresses.region). But It was
>> not getting added.
>>
>> However some claims got set (e.g. urn:scim:schemas:core:1.0:title)
>>
>> *Request*
>>
>> curl -v -k --user admin:admin --data
>> "{"schemas":[],"title":"Mr","region":"colombo","name":{"familyName":"dhanushka","givenName":"gayan"},"userName":"gayan","password":"gayan","emails":[{"primary":true,"value":"
>> gayanl...@gmail.com","type":"home"},{"value":"gay...@wso2.com","type":"work"}]}"
>> --header "Content-Type:application/json"
>> https://localhost:9443/wso2/scim/Users
>>
>>
>> *Response*
>>
>>
>> {"id":"b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9","title":"Mr","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyName":"dhanushka","givenName":"gayan"},"userName":"gayan","emails":[{"value":"
>> gayanl...@gmail.com","type":"home"},{"value":"gay...@wso2.com
>> ","type":"work"}],"meta":{"lastModified":"2015-05-12T16:47:40","location":"
>> https://localhost:9443/wso2/scim/Users/b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9
>> ","created":"2015-05-12T16:47:40"}}
>>
>> Any particular reason for this behavior ?
>>
>>
>> Regards
>>
>>
>>
>> --
>> Gayan Dhanuska
>> Software Engineer
>> http://wso2.com/
>> Lean Enterprise Middleware
>>
>> Mobile
>> 071 666 2327
>>
>> Office
>> Tel   : 94 11 214 5345
>> Fax  : 94 11 214 5300
>>
>> Twitter : https://twitter.com/gayanlggd
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isura Dilhara Karunaratne
> Senior Software Engineer
>
> Mob +94 772 254 810
>
>


-- 
Isura Dilhara Karunaratne
Senior Software Engineer

Mob +94 772 254 810
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Some claims mapped in the SCIM claim dialect are not set when we send those with the create user request

2015-05-12 Thread Gayan Dhanushka
Hi Isura,

Thanks a lot. I corrected my request.

Regards

On Tue, May 12, 2015 at 7:57 PM, Isura Karunaratne  wrote:

> Corrected curl command.
>
> curl -v -k --user admin:admin --data "{"schemas":[],"title": "Mr",
> "addresses": { "region": "colombo" }, "name": { "familyName": "dhanushka",
> "givenName": "gayan" }, "userName": "gayand", "password": "gayandd",
> "emails": [ { "primary": true, "value": "gayanl...@gmail.com", "type":
> "home" }, { "value": "gay...@wso2.com", "type": "work" } ] }" --header
> "Content-Type:application/json" https://localhost:9443/wso2/scim/Users
>
>
> On Tue, May 12, 2015 at 1:55 PM, Isura Karunaratne  wrote:
>
>> Hi Gayan,
>>
>> region is a part of address. So your request should be like below. (
>> urn:scim:schemas:core:1.0:*addresses*.region)
>>
>> curl -v -k --user admin:admin --data "{"schemas":[],"title": "Mr",
>> "addresses": { "region": "colombo" }, "name":erName": "gayand", "password":
>> "gayandd", "emails": [ { "primary": true, "value": "gayanl...@gmail.com",
>> "type": "home" }, { "value": "gay...@wso2.com", "type": "work" } ] }"
>> --header "Content-Type:application/json"
>> https://localhost:9443/wso2/scim/Users
>>
>>
>> Thanks
>> Isura
>>
>> On Tue, May 12, 2015 at 10:56 AM, Gayan Dhanushka 
>> wrote:
>>
>>> Hi all,
>>>
>>> Need some clarity on SCIM claim dialect.
>>>
>>> I tried to add some claims which are described in "urn:scim:schemas:core:1.0
>>>
>>> "
>>> claim dialect.(e.g. urn:scim:schemas:core:1.0:addresses.region). But It was
>>> not getting added.
>>>
>>> However some claims got set (e.g. urn:scim:schemas:core:1.0:title)
>>>
>>> *Request*
>>>
>>> curl -v -k --user admin:admin --data
>>> "{"schemas":[],"title":"Mr","region":"colombo","name":{"familyName":"dhanushka","givenName":"gayan"},"userName":"gayan","password":"gayan","emails":[{"primary":true,"value":"
>>> gayanl...@gmail.com","type":"home"},{"value":"gay...@wso2.com","type":"work"}]}"
>>> --header "Content-Type:application/json"
>>> https://localhost:9443/wso2/scim/Users
>>>
>>>
>>> *Response*
>>>
>>>
>>> {"id":"b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9","title":"Mr","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyName":"dhanushka","givenName":"gayan"},"userName":"gayan","emails":[{"value":"
>>> gayanl...@gmail.com","type":"home"},{"value":"gay...@wso2.com
>>> ","type":"work"}],"meta":{"lastModified":"2015-05-12T16:47:40","location":"
>>> https://localhost:9443/wso2/scim/Users/b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9
>>> ","created":"2015-05-12T16:47:40"}}
>>>
>>> Any particular reason for this behavior ?
>>>
>>>
>>> Regards
>>>
>>>
>>>
>>> --
>>> Gayan Dhanuska
>>> Software Engineer
>>> http://wso2.com/
>>> Lean Enterprise Middleware
>>>
>>> Mobile
>>> 071 666 2327
>>>
>>> Office
>>> Tel   : 94 11 214 5345
>>> Fax  : 94 11 214 5300
>>>
>>> Twitter : https://twitter.com/gayanlggd
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Isura Dilhara Karunaratne
>> Senior Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>
>
> --
> Isura Dilhara Karunaratne
> Senior Software Engineer
>
> Mob +94 772 254 810
>
>


-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] VFS/JMS Sender in tenant mode error

2015-05-12 Thread Malaka Silva
Hi Carbon Team,

I have removed the hard-coded entries and changed it to a dynamic way.

Please review and merge [1].

[1] https://github.com/wso2/carbon4-kernel/pull/205

On Tue, May 12, 2015 at 2:37 PM, Malaka Silva  wrote:

> Hi Kasun,
>
> Added rabbitmq as well. It's better if we can do this dynamically. Will
> check on that.
>
> Currently added vfs/jms and rabbitmq
>
> On Tue, May 12, 2015 at 2:14 PM, Kasun Indrasiri  wrote:
>
>> Hi Malaka,
>>
>> Are we only adding them for JMS and VFS. How about other transports? Is
>> it possible to make this dynamic so that we don't have to hardcode the
>> transports?
>>
>> On Tue, May 12, 2015 at 12:49 PM, Malaka Silva  wrote:
>>
>>> Hi Carbon Team,
>>>
>>> Please merge [1].
>>>
>>> Related Jiras [2] and [3]
>>>
>>> [1] https://github.com/wso2/carbon4-kernel/pull/205
>>> [2] https://wso2.org/jira/browse/CARBON-15245
>>> [3] https://wso2.org/jira/browse/ESBJAVA-3683
>>>
>>> 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.
>>>
>>
>>
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.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.
>



-- 

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] [Registry] CNF when ML server shutdowns

2015-05-12 Thread Nirmal Fernando
Thanks Danesh! Adding that feature solved the issue.

On Wed, May 13, 2015 at 12:04 AM, Danesh Kuruppu  wrote:

> Hi Nirmal,
>
> Registry Content Search
> Feature(org.wso2.carbon.registry.contentsearch.feature) have both solr and
> lucene bundle. Can you please check whether ML pack contains
> lucene_5.0.0.wso2v1.jar.
> May be there is a problem in feature installation.
>
> Thanks
> Danesh
>
> On Tue, May 12, 2015 at 7:59 PM, Nirmal Fernando  wrote:
>
>> Hi,
>>
>> We're seen [1] below when server shutdowns. Which feature carries this
>> lucene bundle?
>>
>> [1]
>>
>> Exception in thread "Thread-15" java.lang.NoClassDefFoundError:
>> org/apache/lucene/analysis/util/ResourceLoader
>>
>> at java.lang.ClassLoader.defineClass1(Native Method)
>>
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:638)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:613)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:574)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>
>> at org.apache.solr.core.CoreContainer.(CoreContainer.java:153)
>>
>> at
>> org.wso2.carbon.registry.indexing.solr.SolrClient.(SolrClient.java:119)
>>
>> at
>> org.wso2.carbon.registry.indexing.solr.SolrClient.getInstance(SolrClient.java:131)
>>
>> at
>> org.wso2.carbon.registry.indexing.AsyncIndexer.(AsyncIndexer.java:100)
>>
>> at
>> org.wso2.carbon.registry.indexing.IndexingManager.(IndexingManager.java:61)
>>
>> at
>> org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:71)
>>
>> at
>> org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)
>>
>> at
>> org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
>>
>> at
>> org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
>>
>> at
>> org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
>>
>> at
>> org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:901)
>>
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.lucene.analysis.util.ResourceLoader cannot be found by
>> solr_5.0.0.wso2v1
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>
>> ... 26 more
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
>
> Danesh Kuruppu
> Software Engineer
> WSO2 Inc,
> Mobile: +94 (77) 1690552
>



-- 

Thanks & regards,
Nirmal

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


Re: [Dev] New Icon required for WSO2 CEP Execution Manager feature

2015-05-12 Thread Chanaka Jayasena
Hi Tharik,

I have attached you three icons where one with a little modification for
the current icon and an alternative icon that I think more suitable for the
scenario. You can use one from them.

thanks,
Chanaka

On Tue, May 12, 2015 at 3:23 PM, Tharik Kanaka  wrote:

> Hi Chanaka,
>
> We have added a new feature for WSO2 CEP called Execution Manager. We need
> a new icon for this menu item of manage console. Menu item is located at
> the top of event processor as shown in following image. Since this is
> related Execution Plans, existing Execution Plans icon can be used and
> modified accordingly (Execution Plans icon .gif is attached along with this
> mail).
>
>
> [image: Inline image 4]
>
>
> Regards,
>
> --
>
> *Tharik Kanaka* | Associate Software Engineer
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Email: tha...@wso2.com | Web: www.wso2.com
>



-- 
Chanaka Jayasena
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
email: chan...@wso2.com; cell: +94 77 785 5565
blog: http://chanaka3d.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Use of wso2carbon-version.txt

2015-05-12 Thread Sajith Ariyarathna
Hi Kalpa,

AFAIK *wso2carbon-version.txt* file is used in following scripts.

bin/wso2server.bat
bin/wso2server.sh
bin/carbondump.sh
bin/carbondump.bat

As you mentioned, *wso2carbon-version.txt* is used in above files just to
print/echo carbon framework version.
You can use grep -r 'wso2carbon-version.txt' * command in CARBON_HOME
directory to find usage of *wso2carbon-version.txt* file.

thanks and regards.

On Tue, May 12, 2015 at 10:37 PM, Kalpa Welivitigoda 
wrote:

> Hi,
>
> wso2carbon-version.txt is used in wso2server.sh and carbondump.sh to print
> the version of the Carbon framework. Are there any other usages of
> wso2carbon-version.txt?
>
> --
> 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
>
>


-- 
Sajith Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/
mobile: +94 77 6602284, +94 71 3951048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Dynamically loading jars that implements an interface

2015-05-12 Thread Himasha Guruge
Hi All,

I'm working on a requirement where jars need to be dynamically loaded to
the classpath in order to prevent server restarting. I was able to load the
jar and load the required class by using a URLClassLoader. But at the place
where I'm using the implementation of this class(ex:foo.a), an error is
thrown saying "cannot instantiate foo.a" . I assume this is happening
because this class is initially implementing an interface (javaDelegate)
and this interface is not available in the classpath.

What I have done so far is getting the current system class loader, and
within my custom class loader I'm adding the jar path as a url.

URLClassLoader loader = (URLClassLoader)ClassLoader.getSystemClassLoader();
MyClassLoader loader1 = new MyClassLoader(loader.getURLs());
loader1.addURL(new URL("jar","","file:"+artifactLocation+"!/"));

Any suggestions on how to resolve this issue/ better method of handling
dynamic loading will be appreciated.

Thanks,

Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Adding httpclient-4.3.1.wso2v2 and httpmime-4.3.1.wso2v2

2015-05-12 Thread Malithi Edirisinghe
Hi Kernel team,

Could you please review and merge [1].

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

Thanks,
Malithi.

-- 

*Malithi Edirisinghe*
Senior Software Engineer
WSO2 Inc.

Mobile : +94 (0) 718176807
malit...@wso2.com
___
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-05-12 Thread Kasun Indrasiri
Hi KasunG,

Can you please review and merge asap. ESB 4.9 alpha release is blocked due
to this.

On Fri, May 8, 2015 at 2:09 PM, Sandamal Weerasinghe 
wrote:

> Hi KasunG,
>
> Updated the pull request after doing a version upgrade. The following
> dependencies had to be embedded; neethi, woodstox-core-asl and
> xmlschema-core.
> I have removed the wss4j and slf4j bundles as they are not essential to
> the functionality of the cxf ws-rm inbound endpoint and connector. As for
> the changes in the spring.schemas and spring.handlers, without those
> changes the following error gets thrown at when starting an inbound
> endpoint.
>
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
> Configuration problem: Unable to locate Spring NamespaceHandler for XML
> schema namespace [http://cxf.apache.org/core]
>
> Please review and merge.
>
> [1] https://github.com/wso2/orbit/pull/71
>
> Thanks.
>
> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>
> Mobile - +94-77-144-9640
>
> On Tue, May 5, 2015 at 10:57 AM, KasunG Gajasinghe 
> wrote:
>
>> Hi Sandamal,
>>
>> We have forked some of the bundles you have mentioned above such as the
>> wss4j bundle. Are you doing a version upgrade here? How is this going to
>> affect the components that rely on wss4j 1.5.11?
>>
>> And, can you also verify whether all these libraries approved?
>>
>> Thanks.
>>
>> On Thu, Apr 30, 2015 at 7:12 PM, Sandamal Weerasinghe 
>> wrote:
>>
>>> Hi Prabath,
>>>
>>> Please check if the RMConnector works with the following in place,
>>>
>>> cxf-bundle-3.0.2.wso2v1.jar
>>> jetty-bundle-8.1.15.v20140411.wso2v1.jar
>>> slf4j-bundle-1.7.7.wso2v1.jar
>>> wss4j-bundle-2.0.2.wso2v1.jar
>>>
>>> org.apache.aries.blueprint-1.1.0.jar
>>> org.apache.aries.proxy-1.0.1.jar
>>> org.apache.aries.util-1.1.0.jar
>>> stax2-api-3.1.4.jar
>>>
>>> https://github.com/wso2/orbit/pull/71
>>>
>>> Thanks.
>>>
>>> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>>>
>>> Mobile - +94-77-144-9640
>>>
>>> On Thu, Apr 23, 2015 at 2:29 PM, Sandamal Weerasinghe >> > wrote:
>>>
 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 <
 prabat...@wso2.com> 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 <
> sanda...@wso2.com> 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 <
>> sanda...@wso2.com> 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/co

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

2015-05-12 Thread Sandamal Weerasinghe
Since CXF is already being used in WSO2 products there is no need for
approval [1]. And even if we are embedding this dependency or making the
entire CXF-RM inbound an installable feature, we will need this as an Orbit
bundle first.

[1] [Thrid Party Library Approval] Apache CXF

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

Mobile - +94-77-144-9640

On Wed, May 13, 2015 at 11:15 AM, Kasun Indrasiri  wrote:

> Hi KasunG,
>
> Can you please review and merge asap. ESB 4.9 alpha release is blocked due
> to this.
>
> On Fri, May 8, 2015 at 2:09 PM, Sandamal Weerasinghe 
> wrote:
>
>> Hi KasunG,
>>
>> Updated the pull request after doing a version upgrade. The following
>> dependencies had to be embedded; neethi, woodstox-core-asl and
>> xmlschema-core.
>> I have removed the wss4j and slf4j bundles as they are not essential to
>> the functionality of the cxf ws-rm inbound endpoint and connector. As for
>> the changes in the spring.schemas and spring.handlers, without those
>> changes the following error gets thrown at when starting an inbound
>> endpoint.
>>
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Unable to locate Spring NamespaceHandler for XML
>> schema namespace [http://cxf.apache.org/core]
>>
>> Please review and merge.
>>
>> [1] https://github.com/wso2/orbit/pull/71
>>
>> Thanks.
>>
>> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
>>
>> Mobile - +94-77-144-9640
>>
>> On Tue, May 5, 2015 at 10:57 AM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Sandamal,
>>>
>>> We have forked some of the bundles you have mentioned above such as the
>>> wss4j bundle. Are you doing a version upgrade here? How is this going to
>>> affect the components that rely on wss4j 1.5.11?
>>>
>>> And, can you also verify whether all these libraries approved?
>>>
>>> Thanks.
>>>
>>> On Thu, Apr 30, 2015 at 7:12 PM, Sandamal Weerasinghe >> > wrote:
>>>
 Hi Prabath,

 Please check if the RMConnector works with the following in place,

 cxf-bundle-3.0.2.wso2v1.jar
 jetty-bundle-8.1.15.v20140411.wso2v1.jar
 slf4j-bundle-1.7.7.wso2v1.jar
 wss4j-bundle-2.0.2.wso2v1.jar

 org.apache.aries.blueprint-1.1.0.jar
 org.apache.aries.proxy-1.0.1.jar
 org.apache.aries.util-1.1.0.jar
 stax2-api-3.1.4.jar

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

 Thanks.

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

 Mobile - +94-77-144-9640

 On Thu, Apr 23, 2015 at 2:29 PM, Sandamal Weerasinghe <
 sanda...@wso2.com> wrote:

> 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 <
> prabat...@wso2.com> 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 <
>> sanda...@wso2.com> 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 <
>>> sanda...@wso2.com> 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.fronte

Re: [Dev] Dynamically loading jars that implements an interface

2015-05-12 Thread Madhuranga Bandara
Hi Himasha,

Have you tried using JCL frame work.
This framework support Class loading from different ways as URLs, File
input streams , jar files from a folder.
Hope this is helpful.

https://github.com/kamranzafar/JCL/blob/master/README.textile


Madhuranga Sampath Bandara
Software Engineer

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


On Wed, May 13, 2015 at 10:47 AM, Himasha Guruge  wrote:
> Hi All,
>
> I'm working on a requirement where jars need to be dynamically loaded to the
> classpath in order to prevent server restarting. I was able to load the jar
> and load the required class by using a URLClassLoader. But at the place
> where I'm using the implementation of this class(ex:foo.a), an error is
> thrown saying "cannot instantiate foo.a" . I assume this is happening
> because this class is initially implementing an interface (javaDelegate) and
> this interface is not available in the classpath.
>
> What I have done so far is getting the current system class loader, and
> within my custom class loader I'm adding the jar path as a url.
>
> URLClassLoader loader = (URLClassLoader)ClassLoader.getSystemClassLoader();
> MyClassLoader loader1 = new MyClassLoader(loader.getURLs());
> loader1.addURL(new URL("jar","","file:"+artifactLocation+"!/"));
>
> Any suggestions on how to resolve this issue/ better method of handling
> dynamic loading will be appreciated.
>
> Thanks,
>
> Himasha Guruge
> Software Engineer
> WSO2 Inc.
> Mobile: +94 777459299
> himas...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dynamically loading jars that implements an interface

2015-05-12 Thread Thusitha Thilina Dayaratne
Hi Himasha,

This might be helpful for you
[1] -
http://stackoverflow.com/questions/9433003/how-to-load-a-class-which-implements-a-interface-from-a-jar-file-at-runtime

Thanks

On Wed, May 13, 2015 at 10:47 AM, Himasha Guruge  wrote:

> Hi All,
>
> I'm working on a requirement where jars need to be dynamically loaded to
> the classpath in order to prevent server restarting. I was able to load the
> jar and load the required class by using a URLClassLoader. But at the place
> where I'm using the implementation of this class(ex:foo.a), an error is
> thrown saying "cannot instantiate foo.a" . I assume this is happening
> because this class is initially implementing an interface (javaDelegate)
> and this interface is not available in the classpath.
>
> What I have done so far is getting the current system class loader, and
> within my custom class loader I'm adding the jar path as a url.
>
> URLClassLoader loader = (URLClassLoader)ClassLoader.getSystemClassLoader();
> MyClassLoader loader1 = new MyClassLoader(loader.getURLs());
> loader1.addURL(new URL("jar","","file:"+artifactLocation+"!/"));
>
> Any suggestions on how to resolve this issue/ better method of handling
> dynamic loading will be appreciated.
>
> Thanks,
>
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] MTOM on BPS +ESB

2015-05-12 Thread R.Lardera
Hi all!
I would like to have a BPS process that uses MTOM attachment in responses and 
requests.
In our architecture BPS processes are called through ESB, so I tried to get a 
workaround following this guide
https://docs.wso2.com/pages/viewpage.action?pageId=33136025

When I try to call the service with SOAPUI

[cid:image001.jpg@01D08CC3.58829A90]


I obtain "Mime parts not found. Stream ended while searching for the boundary"

So I've develop a service MTOMFileDownloader that write a response with an 
attachment without read anything. I've added this part to synapse_sample_51.xml








http://localhost:9000/services/MTOMFileDownloader"; optimize="mtom"/>





It works only if the axis process is configured to work with MTOM  (i.e. if has 
true in its services.xml), but in this 
way Axis do the job, becuse if I remove enableMTOM parameter in service.xml I 
don't get the attachment, but only the base64 encoded message.
So now I can work with MTOM with axis processes but not with BPS processes.
Moreover, even if I will be able to enable MTOM in ESB, it is that the correct 
way to avoid traffic without MTOM messages? I think that messages between BPS 
and ESB would be sent without MTOM, so my first aim (i.e. avoid not MTOM 
messages traffic) would be  eluded





SEDA Spa - Gruppo KGS

Roberto Lardera 


T: 

F: 

M: 

E: r.lard...@seda.it






Il messaggio di posta elettronica che avete ricevuto e gli eventuali allegati 
sono destinati esclusivamente ai loro destinatari originali e possono contenere 
informazioni protette dal segreto professionale e/o riservate. Nel caso siate 
stati inclusi tra i destinatari per errore, Vi preghiamo di comunicare 
l'accaduto al mittente e di cancellare dal Vs. sistema sia il messaggio che le 
eventuali copie, nonche eliminare le stampe prodotte. Vi diffidiamo, comunque, 
dal divulgare, diffondere o utilizzare in qualsiasi modo il contenuto del 
messaggio e gli eventuali allegati. Qualsiasi uso o divulgazione non 
autorizzati potrebbero costituire reato. Il presente messaggio potrebbe 
contenere opinioni personali dell'autore e non necessariamente riflettere le 
posizioni di SEDA Spa - Gruppo KGS

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


Re: [Dev] Use of wso2carbon-version.txt

2015-05-12 Thread Kalpa Welivitigoda
Thanks Sajith.

Learnt that this file is maintained merely to reflect the latest version of
carbon.

On Wed, May 13, 2015 at 10:36 AM, Sajith Ariyarathna 
wrote:

> Hi Kalpa,
>
> AFAIK *wso2carbon-version.txt* file is used in following scripts.
>
> bin/wso2server.bat
> bin/wso2server.sh
> bin/carbondump.sh
> bin/carbondump.bat
>
> As you mentioned, *wso2carbon-version.txt* is used in above files just to
> print/echo carbon framework version.
> You can use grep -r 'wso2carbon-version.txt' * command in CARBON_HOME
> directory to find usage of *wso2carbon-version.txt* file.
>
> thanks and regards.
>
> On Tue, May 12, 2015 at 10:37 PM, Kalpa Welivitigoda 
> wrote:
>
>> Hi,
>>
>> wso2carbon-version.txt is used in wso2server.sh and carbondump.sh to
>> print the version of the Carbon framework. Are there any other usages of
>> wso2carbon-version.txt?
>>
>> --
>> 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
>>
>>
>
>
> --
> Sajith Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
> mobile: +94 77 6602284, +94 71 3951048
>



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