Re: [Dev] Use of UserDNPattern property in ADs

2015-02-26 Thread Harshan Liyanage
Thanks Asela.

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

On Thu, Feb 26, 2015 at 12:28 PM, Asela Pathberiya  wrote:

> On Thu, Feb 26, 2015 at 11:44 AM, Harshan Liyanage 
> wrote:
> > Hi,
> >
> > Why don't we use the UserDNPattern attribute in user-store configuration
> for
> > AD? Is that not mandatory or no necessary at all?
>
> It is not required. It can be used to improve the searching when there
> is a flat user structure in your user/role base.  It is mentioned here
> [1]
>
> [1]
> https://docs.wso2.com/display/IS500/Working+with+Properties+of+Primary+User+Stores
>
> Thanks,
> Asela.
> >
> > [1].
> >
> https://docs.wso2.com/display/IS500/Configuring+an+Active+Directory+User+Store
> >
> > Thanks,
> >
> > Lakshitha Harshan
> > Software Engineer
> > Mobile: +94724423048
> > Email: hars...@wso2.com
> > Blog : http://harshanliyanage.blogspot.com/
> > WSO2, Inc. : wso2.com
> > lean.enterprise.middleware.
>
>
>
> --
> Thanks & Regards,
> Asela
>
> ATL
> Mobile : +94 777 625 933
>  +358 449 228 979
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the fix

2015-02-26 Thread Godwin Amila Shrimal
Hi,

This fix the charon version issue in carbon-identity.

https://github.com/wso2/carbon-identity/pull/104/

Thanks
Godwin



-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Aiyadurai Rajeevn

2015-02-26 Thread Sam Sivayogam
Congrats Rajeevan !!!

On Thu, Feb 26, 2015 at 11:12 AM, Kalpa Welivitigoda 
wrote:

> Congratulations Rajeevan !
>
> On Thu, Feb 26, 2015 at 10:23 AM, Ashan Dhananjaya 
> wrote:
>
>> Congratulations :-)
>>
>> On Thu, Feb 26, 2015 at 10:21 AM, Manisha Gayathri 
>> wrote:
>>
>>> Congrats Rajeevan!!!
>>>
>>> On Thu, Feb 26, 2015 at 10:19 AM, Inshaf Mahath  wrote:
>>>
 Congrats Rajeevan 

 On Thu, Feb 26, 2015 at 10:08 AM, Rajeevan Vimalanathan <
 rajeev...@wso2.com> wrote:

> Congrats Rajeevan...!!!
>
> On Thu, Feb 26, 2015 at 10:05 AM, Lahiru Cooray 
> wrote:
>
>> Congratz Rajeevan!!!
>>
>> On Thu, Feb 26, 2015 at 10:00 AM, Dimuthu Leelarathne <
>> dimut...@wso2.com> wrote:
>>
>>>
>>> Hi all,
>>>
>>> It is with great pleasure that WSO2 welcomes Aiyadurai Rajeevn as
>>> WSO2 committer!
>>>
>>> Congratulations!
>>>
>>> thanks,
>>> Dimuthu
>>> --
>>> Dimuthu Leelarathne
>>> Architect & Product Lead of App Factory
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: dimut...@wso2.com
>>> Mobile : 0773661935
>>>
>>> Lean . Enterprise . Middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Lahiru Cooray*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> lean.enterprise.middleware
>>
>> Mobile: +94 715 654154
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
> V.Rajeevan
> Software Engineer,
> WSO2 Inc. :http://wso2.com
>
> Mobile : +94 773090875
> Email : rajeev...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Inshaf Mahath
 Associate Software Engineer
 Mobile: +94775907181
 WSO2 Inc.
 Lean . Enterprise . Middleware


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


>>>
>>>
>>> --
>>> ~Regards
>>> *Manisha Eleperuma*
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> *blog:  http://manisha-eleperuma.blogspot.com/
>>> *
>>> *mobile:  +94 71 8279777 <%2B94%2071%208279777>*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Ashan Dhananjaya Kumara
>> Trainee Software Engineer, WSO2 Inc.
>> Inc: *WSO2 Inc. *
>> Phone : +94715547461
>> Blog : http://ashandhananjaya.blogspot.com/
>> Twitter  : https://twitter.com/Dhananjaya92
>> Say ello :https://ello.co/ashandk
>>
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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
>
>


-- 
*Sam Sivayogam*

Software Engineer
Mobile  : +94 772 906 439
Office   : +94 112 145 345
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Please review and mergr PR for IDENTITY-3028

2015-02-26 Thread Nuwandi Wickramasinghe
Hi,

Code review feedback can be found in [1]

[1]
https://docs.google.com/a/wso2.com/document/d/1KGYP_yX3gXe3HuZmnkjNfnaJCpHsW2bOFoFlnaFLDXE

On Wed, Feb 25, 2015 at 4:46 PM, Nuwandi Wickramasinghe 
wrote:

> Hi,
>
> Please find the fix for [1] in PR [2]
>
> Thanks
>
> [1] https://wso2.org/jira/browse/IDENTITY-3028
> [2] https://github.com/wso2/carbon-identity/pull/102
>
> --
>
> Best Regards,
>
> Nuwandi Wickramasinghe
>
> Software Engineer
>
> WSO2 Inc.
>
> Web : http://wso2.com
>
> Mobile : 0719214873
>



-- 

Best Regards,

Nuwandi Wickramasinghe

Software Engineer

WSO2 Inc.

Web : http://wso2.com

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


Re: [Dev] Please review and merge the fix

2015-02-26 Thread Hasintha Indrajee
Commited with
https://github.com/wso2/carbon-identity/commit/aeb08a8d19430d95e68a61a0822a98e085fda64c

On Thu, Feb 26, 2015 at 2:19 PM, Godwin Amila Shrimal 
wrote:

> Hi,
>
> This fix the charon version issue in carbon-identity.
>
> https://github.com/wso2/carbon-identity/pull/104/
>
> Thanks
> Godwin
>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>



-- 
Hasintha Indrajee
Software Engineer
WSO2, Inc.
Mobile:+94 771892453
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Test failure in org.wso2.carbon.registry.social.impl module due to a commit to user.core 4.4.0-SNAPSHOT

2015-02-26 Thread Thanuja Jayasinghe
Hi Sameera,

Please review and merge.

https://github.com/wso2/carbon-registry/pull/31
https://github.com/wso2/carbon4-kernel/pull/150

Thanks,
Thanuja

On Thu, Feb 26, 2015 at 11:41 AM, Sameera Jayasoma  wrote:

> Thanks for the quick response. Let me know once you are done.
>
> Thanks,
> Sameera.
>
> On Thu, Feb 26, 2015 at 11:39 AM, Thanuja Jayasinghe 
> wrote:
>
>> Hi Sameera,
>>
>> This test case need to be fixed. will do the needful.
>>
>> Thanks,
>> Thanuja.
>>
>> On Thu, Feb 26, 2015 at 11:32 AM, Sameera Jayasoma 
>> wrote:
>>
>>> I am building carbon-registry by changing the kernel version to Carbon
>>> 4.4.0-SNAPSHOT. I am getting the following build failure. This failure
>>> occurs due to the following PR.
>>>
>>> https://github.com/wso2/carbon4-kernel/pull/111
>>>
>>> Thanuja, can you have a look at this please? We need this to be fixed
>>> for the Carbon 4.4.0-release.
>>>
>>>
>>> Running
>>> org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest
>>>
>>> log4j:WARN No appenders could be found for logger
>>> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
>>>
>>> log4j:WARN Please initialize the log4j system properly.
>>>
>>> Warning: Could not get charToByteConverterClass!
>>>
>>> Feb 26, 2015 11:13:23 AM org.apache.tomcat.jdbc.pool.ConnectionPool init
>>>
>>> WARNING: maxIdle is larger than maxActive, setting maxIdle to: 50
>>>
>>> Listening for transport dt_socket at address: 11000
>>>
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 129.964
>>> sec <<< FAILURE! - in
>>> org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest
>>>
>>> testGetPerson1(org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest)
>>> Time elapsed: 129.956 sec  <<< ERROR!
>>>
>>> org.wso2.carbon.registry.social.api.SocialDataException: Error while
>>> saving person with id admin
>>>
>>> at
>>> org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl.savePerson(PersonManagerImpl.java:103)
>>>
>>> at
>>> org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest.testGetPerson1(PersonManagerImplTest.java:142)
>>>
>>> Caused by: org.wso2.carbon.user.core.UserStoreException:
>>> org.wso2.carbon.user.core.UserStoreException: Invalid claim URI value
>>>
>>> at
>>> org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doSetUserClaimValues(JDBCUserStoreManager.java:1872)
>>>
>>> at
>>> org.wso2.carbon.user.core.common.AbstractUserStoreManager.setUserClaimValues(AbstractUserStoreManager.java:978)
>>>
>>> at
>>> org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl.savePerson(PersonManagerImpl.java:100)
>>>
>>> ... 23 more
>>>
>>> Caused by: org.wso2.carbon.user.core.UserStoreException: Invalid claim
>>> URI value
>>>
>>> at
>>> org.wso2.carbon.user.core.common.AbstractUserStoreManager.getClaimAtrribute(AbstractUserStoreManager.java:814)
>>>
>>> at
>>> org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doSetUserClaimValues(JDBCUserStoreManager.java:1857)
>>>
>>> ... 25 more
>>>
>>>
>>>
>>> Results :
>>>
>>>
>>> Tests in error:
>>>
>>>
>>> org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest#testGetPerson1
>>> SocialDataException
>>>
>>>
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
>>>
>>>
>>> --
>>> Sameera Jayasoma,
>>> Software Architect,
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://blog.sameera.org
>>> twitter: https://twitter.com/sameerajayasoma
>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>> Mobile: 0094776364456
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> *Thanuja Lakmal*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94715979891 +94758009992
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 
*Thanuja Lakmal*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94715979891 +94758009992
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] SVN DepSync partially checkout with latest AS snapshot build

2015-02-26 Thread Manoj Kumara
Hi Team,

With latest AS product with carbon-commons version 4.3.4 SVN deployment
synchronizer seems to be not working with latest svnClientBundle-1.0.0.jar
and svn-client-adapter-1.10.5.wso2v1.jar 1.7.x with svn versioned
repository.

After discussing with KasunG I replaced these jars with
svnkit-1.3.9.wso2v1.jar and the default client adapter with a svn 1.6.x
versioned repository everything seems to be working fine.

I debugged the code and checked that the flow seems to be working fine and
svn update() method get called on the client but the update happens
partially.

What could be the issue here.

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


Re: [Dev] SVN DepSync partially checkout with latest AS snapshot build

2015-02-26 Thread Aruna Karunarathna
Hi Manoj,

On Thu, Feb 26, 2015 at 3:14 PM, Manoj Kumara  wrote:

> Hi Team,
>
> With latest AS product with carbon-commons version 4.3.4 SVN deployment
> synchronizer seems to be not working with latest svnClientBundle-1.0.0.jar
> and svn-client-adapter-1.10.5.wso2v1.jar 1.7.x with svn versioned
> repository.
>
> After discussing with KasunG I replaced these jars with
> svnkit-1.3.9.wso2v1.jar and the default client adapter with a svn 1.6.x
> versioned repository everything seems to be working fine.
>
> I debugged the code and checked that the flow seems to be working fine and
> svn update() method get called on the client but the update happens
> partially.
>
> What could be the issue here.
>

This was tested in ESB M7 by Maheeka, as I remember. So it should work for
AS.

Shall we revert the changes in  SVN deployment synchronizer changes, and
try to isolate the issue?.

>
> Regards,
> Manoj
>



-- 

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


[Dev] json_2.0.0.wso2v1 bundle is missing in IS 5.1.0

2015-02-26 Thread Isura Karunaratne
Hi All,

In carbon-multitenancy component[1], it has defined two values for
 as follows,




2.0.0.wso2v1


1.0.0.wso2v1


We require json_2.0.0.wso2v1 bundle for salesforce outbound provisioning
but the resolved version is 1.0.0.wso2v1. Because of the above wrong
configurations currently identity server 5.1.0 doesn't
have 2.0.0.wso2v1  bundle.

Please do the needful.


Thanks
Isura


[1]https://github.com/wso2/carbon-multitenancy/blob/master/pom.xml

-- 
Isura Dilhara Karunaratne
Software Engineer

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


[Dev] Internal Server Error when using the REST API.

2015-02-26 Thread Mohammed Fawsan
Hi,

I am trying to authenticate a user via a HTML Form using AJAX.
I'm trying to submit a HTML form to a REST API(created by pubudu)  and it
fails. I have several issues here.


   1.

   I'm making a CORS request. ( My app resides in localhost:3000/login.html &
   My server resides in http://10.100.4.135:9763/ )
   2.

   The REST API (created by pubudu) in http://10.100.4.135:9763/ accepts
   JSON requests and give back a JSON Responce.

(I have disabled the web-security in the browser to allow the CORS Requests)

So, I have created the HTML Form and tried to submit it with AJAX. Here you
can see the code.

$(function(){
$("#loginform").submit(function(e){

e.preventDefault();
//  var data = $("#loginform").serialize();

var data =  {"username" : $("#username").val(),"password"
: $("#password").val()};

alert(JSON.stringify(data));

$.ajax({
type: "POST",
url: "http://localhost:3001/Login/auth";,
data: data,

contentType: "application/json",
crossDomain : true,
dataType: "json",
success: function(data) {

alert("success" + JSON.stringify(data));

},
error:function(data){
alert('error : '+JSON.stringify(data));
}

});

});});

When I submit a form, I get an error like this.

POST http://10.100.4.135:9763/dashboardConfigs/dashBoardConfigs/login 500
(Internal Server Error)

But, When I try to send the request via ADVANCED REST CLIENT. I get the
response *true*.
[Please refer the image attached]


Can anyone help me out here?

-- 
Mohammed Fawsan
Software Engineering Intern,
Faculty of Engineering, University of Peradeniya.
+94771121195
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Internal Server Error when using the REST API.

2015-02-26 Thread Mohammed Fawsan
CORRECTION : The JS function looks like this.

$(function(){
$("#loginform").submit(function(e){

e.preventDefault();
//  var data = $("#loginform").serialize();

var data =  {"username" : $("#username").val(),"password"
: $("#password").val()};

alert(JSON.stringify(data));

$.ajax({
type: "POST",
url:
"http://10.100.4.135:9763/dashboardConfigs/dashBoardConfigs/login ",
data: data,

contentType: "application/json",
crossDomain : true,
dataType: "json",
success: function(data) {

alert("success" + JSON.stringify(data));

},
error:function(data){
alert('error : '+JSON.stringify(data));
}

});

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


Re: [Dev] json_2.0.0.wso2v1 bundle is missing in IS 5.1.0

2015-02-26 Thread KasunG Gajasinghe
Hi Isura,

Verify which dependencies need json 1.0.0 version. If all of them can work
with json 2.0.0, then please send a pull request for this change.

On Thu, Feb 26, 2015 at 3:58 PM, Isura Karunaratne  wrote:

> Hi All,
>
> In carbon-multitenancy component[1], it has defined two values for
>  as follows,
>
>
>
> 
> 2.0.0.wso2v1
>
>
> 1.0.0.wso2v1
>
>
> We require json_2.0.0.wso2v1 bundle for salesforce outbound provisioning
> but the resolved version is 1.0.0.wso2v1. Because of the above wrong
> configurations currently identity server 5.1.0 doesn't
> have 2.0.0.wso2v1  bundle.
>
> Please do the needful.
>
>
> Thanks
> Isura
>
>
> [1]https://github.com/wso2/carbon-multitenancy/blob/master/pom.xml
>
> --
> Isura Dilhara Karunaratne
> Software Engineer
>
> Mob +94 772 254 810
>
>


-- 

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


Re: [Dev] WSO2 Committers += Aiyadurai Rajeevn

2015-02-26 Thread Pirinthapan Mahendran
Congrats Rajeevan !!

Thanks.



Mahendran Pirinthapan
Software Engineer | WSO2 Inc.
Mobile +94772378732.

On Thu, Feb 26, 2015 at 2:26 PM, Sam Sivayogam  wrote:

> Congrats Rajeevan !!!
>
> On Thu, Feb 26, 2015 at 11:12 AM, Kalpa Welivitigoda 
> wrote:
>
>> Congratulations Rajeevan !
>>
>> On Thu, Feb 26, 2015 at 10:23 AM, Ashan Dhananjaya 
>> wrote:
>>
>>> Congratulations :-)
>>>
>>> On Thu, Feb 26, 2015 at 10:21 AM, Manisha Gayathri 
>>> wrote:
>>>
 Congrats Rajeevan!!!

 On Thu, Feb 26, 2015 at 10:19 AM, Inshaf Mahath 
 wrote:

> Congrats Rajeevan 
>
> On Thu, Feb 26, 2015 at 10:08 AM, Rajeevan Vimalanathan <
> rajeev...@wso2.com> wrote:
>
>> Congrats Rajeevan...!!!
>>
>> On Thu, Feb 26, 2015 at 10:05 AM, Lahiru Cooray 
>> wrote:
>>
>>> Congratz Rajeevan!!!
>>>
>>> On Thu, Feb 26, 2015 at 10:00 AM, Dimuthu Leelarathne <
>>> dimut...@wso2.com> wrote:
>>>

 Hi all,

 It is with great pleasure that WSO2 welcomes Aiyadurai Rajeevn as
 WSO2 committer!

 Congratulations!

 thanks,
 Dimuthu
 --
 Dimuthu Leelarathne
 Architect & Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware

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


>>>
>>>
>>> --
>>> *Lahiru Cooray*
>>> Software Engineer
>>> WSO2, Inc.;http://wso2.com/
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94 715 654154
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards,
>> V.Rajeevan
>> Software Engineer,
>> WSO2 Inc. :http://wso2.com
>>
>> Mobile : +94 773090875
>> Email : rajeev...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Inshaf Mahath
> Associate Software Engineer
> Mobile: +94775907181
> WSO2 Inc.
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

 *blog:  http://manisha-eleperuma.blogspot.com/
 *
 *mobile:  +94 71 8279777 <%2B94%2071%208279777>*


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


>>>
>>>
>>> --
>>> Ashan Dhananjaya Kumara
>>> Trainee Software Engineer, WSO2 Inc.
>>> Inc: *WSO2 Inc. *
>>> Phone : +94715547461
>>> Blog : http://ashandhananjaya.blogspot.com/
>>> Twitter  : https://twitter.com/Dhananjaya92
>>> Say ello :https://ello.co/ashandk
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> *Sam Sivayogam*
>
> Software Engineer
> Mobile  : +94 772 906 439
> Office   : +94 112 145 345
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Aiyadurai Rajeevn

2015-02-26 Thread Gayan Dhanushka
congratzz Rajeevan !!!

On Thu, Feb 26, 2015 at 4:20 PM, Pirinthapan Mahendran  wrote:

> Congrats Rajeevan !!
>
> Thanks.
>
>
>
> Mahendran Pirinthapan
> Software Engineer | WSO2 Inc.
> Mobile +94772378732.
>
> On Thu, Feb 26, 2015 at 2:26 PM, Sam Sivayogam  wrote:
>
>> Congrats Rajeevan !!!
>>
>> On Thu, Feb 26, 2015 at 11:12 AM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Congratulations Rajeevan !
>>>
>>> On Thu, Feb 26, 2015 at 10:23 AM, Ashan Dhananjaya 
>>> wrote:
>>>
 Congratulations :-)

 On Thu, Feb 26, 2015 at 10:21 AM, Manisha Gayathri 
 wrote:

> Congrats Rajeevan!!!
>
> On Thu, Feb 26, 2015 at 10:19 AM, Inshaf Mahath 
> wrote:
>
>> Congrats Rajeevan 
>>
>> On Thu, Feb 26, 2015 at 10:08 AM, Rajeevan Vimalanathan <
>> rajeev...@wso2.com> wrote:
>>
>>> Congrats Rajeevan...!!!
>>>
>>> On Thu, Feb 26, 2015 at 10:05 AM, Lahiru Cooray 
>>> wrote:
>>>
 Congratz Rajeevan!!!

 On Thu, Feb 26, 2015 at 10:00 AM, Dimuthu Leelarathne <
 dimut...@wso2.com> wrote:

>
> Hi all,
>
> It is with great pleasure that WSO2 welcomes Aiyadurai Rajeevn as
> WSO2 committer!
>
> Congratulations!
>
> thanks,
> Dimuthu
> --
> Dimuthu Leelarathne
> Architect & Product Lead of App Factory
>
> WSO2, Inc. (http://wso2.com)
> email: dimut...@wso2.com
> Mobile : 0773661935
>
> Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Lahiru Cooray*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 lean.enterprise.middleware

 Mobile: +94 715 654154

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


>>>
>>>
>>> --
>>> Best Regards,
>>> V.Rajeevan
>>> Software Engineer,
>>> WSO2 Inc. :http://wso2.com
>>>
>>> Mobile : +94 773090875
>>> Email : rajeev...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Inshaf Mahath
>> Associate Software Engineer
>> Mobile: +94775907181
>> WSO2 Inc.
>> Lean . Enterprise . Middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> ~Regards
> *Manisha Eleperuma*
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
>
> *blog:  http://manisha-eleperuma.blogspot.com/
> *
> *mobile:  +94 71 8279777 <%2B94%2071%208279777>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Ashan Dhananjaya Kumara
 Trainee Software Engineer, WSO2 Inc.
 Inc: *WSO2 Inc. *
 Phone : +94715547461
 Blog : http://ashandhananjaya.blogspot.com/
 Twitter  : https://twitter.com/Dhananjaya92
 Say ello :https://ello.co/ashandk





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


>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>> *Sam Sivayogam*
>>
>> Software Engineer
>> Mobile  : +94 772 906 439
>> Office   : +94 112 145 345
>> *WSO2, Inc. :** wso2.com *
>> lean.enterprise.middleware.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
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] WSO2 Committers += Aiyadurai Rajeevn

2015-02-26 Thread Roshan Deniyage
congrats rajeevan!

Roshan Deniyage
Associate Technical Lead
WSO2, Inc: http://wso2.com

Mobile:  +94 777636406
Twitter:  *https://twitter.com/roshku *
LinkedIn :  https://www.linkedin.com/in/roshandeniyage


On Thu, Feb 26, 2015 at 2:26 PM, Sam Sivayogam  wrote:

> Congrats Rajeevan !!!
>
> On Thu, Feb 26, 2015 at 11:12 AM, Kalpa Welivitigoda 
> wrote:
>
>> Congratulations Rajeevan !
>>
>> On Thu, Feb 26, 2015 at 10:23 AM, Ashan Dhananjaya 
>> wrote:
>>
>>> Congratulations :-)
>>>
>>> On Thu, Feb 26, 2015 at 10:21 AM, Manisha Gayathri 
>>> wrote:
>>>
 Congrats Rajeevan!!!

 On Thu, Feb 26, 2015 at 10:19 AM, Inshaf Mahath 
 wrote:

> Congrats Rajeevan 
>
> On Thu, Feb 26, 2015 at 10:08 AM, Rajeevan Vimalanathan <
> rajeev...@wso2.com> wrote:
>
>> Congrats Rajeevan...!!!
>>
>> On Thu, Feb 26, 2015 at 10:05 AM, Lahiru Cooray 
>> wrote:
>>
>>> Congratz Rajeevan!!!
>>>
>>> On Thu, Feb 26, 2015 at 10:00 AM, Dimuthu Leelarathne <
>>> dimut...@wso2.com> wrote:
>>>

 Hi all,

 It is with great pleasure that WSO2 welcomes Aiyadurai Rajeevn as
 WSO2 committer!

 Congratulations!

 thanks,
 Dimuthu
 --
 Dimuthu Leelarathne
 Architect & Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware

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


>>>
>>>
>>> --
>>> *Lahiru Cooray*
>>> Software Engineer
>>> WSO2, Inc.;http://wso2.com/
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94 715 654154
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards,
>> V.Rajeevan
>> Software Engineer,
>> WSO2 Inc. :http://wso2.com
>>
>> Mobile : +94 773090875
>> Email : rajeev...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Inshaf Mahath
> Associate Software Engineer
> Mobile: +94775907181
> WSO2 Inc.
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

 *blog:  http://manisha-eleperuma.blogspot.com/
 *
 *mobile:  +94 71 8279777 <%2B94%2071%208279777>*


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


>>>
>>>
>>> --
>>> Ashan Dhananjaya Kumara
>>> Trainee Software Engineer, WSO2 Inc.
>>> Inc: *WSO2 Inc. *
>>> Phone : +94715547461
>>> Blog : http://ashandhananjaya.blogspot.com/
>>> Twitter  : https://twitter.com/Dhananjaya92
>>> Say ello :https://ello.co/ashandk
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> *Sam Sivayogam*
>
> Software Engineer
> Mobile  : +94 772 906 439
> Office   : +94 112 145 345
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] json_2.0.0.wso2v1 bundle is missing in IS 5.1.0

2015-02-26 Thread Isura Karunaratne
HI Kasun,

Create a  pull request : https://github.com/wso2/carbon-multitenancy/pull/29

Thanks
Isura

On Thu, Feb 26, 2015 at 4:13 PM, KasunG Gajasinghe  wrote:

> Hi Isura,
>
> Verify which dependencies need json 1.0.0 version. If all of them can work
> with json 2.0.0, then please send a pull request for this change.
>
> On Thu, Feb 26, 2015 at 3:58 PM, Isura Karunaratne  wrote:
>
>> Hi All,
>>
>> In carbon-multitenancy component[1], it has defined two values for
>>  as follows,
>>
>>
>>
>> 
>> 2.0.0.wso2v1
>>
>>
>> 1.0.0.wso2v1
>>
>>
>> We require json_2.0.0.wso2v1 bundle for salesforce outbound provisioning
>> but the resolved version is 1.0.0.wso2v1. Because of the above wrong
>> configurations currently identity server 5.1.0 doesn't
>> have 2.0.0.wso2v1  bundle.
>>
>> Please do the needful.
>>
>>
>> Thanks
>> Isura
>>
>>
>> [1]https://github.com/wso2/carbon-multitenancy/blob/master/pom.xml
>>
>> --
>> Isura Dilhara Karunaratne
>> Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
Isura Dilhara Karunaratne
Software Engineer

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


Re: [Dev] json_2.0.0.wso2v1 bundle is missing in IS 5.1.0

2015-02-26 Thread Johann Nallathamby
Hi Kasun,

2.0.0.wso2v1 was already shipped with IS 5.0 pack which comes from same
feature.  The introduction of 1.0.0.wso2v1 to this POM seems to be a
mistake.

Thanks.

On Thu, Feb 26, 2015 at 4:13 PM, KasunG Gajasinghe  wrote:

> Hi Isura,
>
> Verify which dependencies need json 1.0.0 version. If all of them can work
> with json 2.0.0, then please send a pull request for this change.
>
> On Thu, Feb 26, 2015 at 3:58 PM, Isura Karunaratne  wrote:
>
>> Hi All,
>>
>> In carbon-multitenancy component[1], it has defined two values for
>>  as follows,
>>
>>
>>
>> 
>> 2.0.0.wso2v1
>>
>>
>> 1.0.0.wso2v1
>>
>>
>> We require json_2.0.0.wso2v1 bundle for salesforce outbound provisioning
>> but the resolved version is 1.0.0.wso2v1. Because of the above wrong
>> configurations currently identity server 5.1.0 doesn't
>> have 2.0.0.wso2v1  bundle.
>>
>> Please do the needful.
>>
>>
>> Thanks
>> Isura
>>
>>
>> [1]https://github.com/wso2/carbon-multitenancy/blob/master/pom.xml
>>
>> --
>> Isura Dilhara Karunaratne
>> Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
Thanks & Regards,

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

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


Re: [Dev] Internal Server Error when using the REST API.

2015-02-26 Thread Vinod Kavinda
Hi,
Have you tried replacing $("#username").val() and $("#password").val() with
just "admin".
Maybe ajax request is getting invoked before initialising the data obj. I
guess there is no guarantee data is initialised first, right?

Regards,
Vinod Kavinda

On Thu, Feb 26, 2015 at 4:04 PM, Mohammed Fawsan  wrote:

> CORRECTION : The JS function looks like this.
>
> $(function(){
> $("#loginform").submit(function(e){
>
> e.preventDefault();
> //  var data = $("#loginform").serialize();
>
> var data =  {"username" : $("#username").val(),"password" : 
> $("#password").val()};
>
> alert(JSON.stringify(data));
>
> $.ajax({
> type: "POST",
> url: 
> "http://10.100.4.135:9763/dashboardConfigs/dashBoardConfigs/login ",
> data: data,
>
> contentType: "application/json",
> crossDomain : true,
> dataType: "json",
> success: function(data) {
>
> alert("success" + JSON.stringify(data));
>
> },
> error:function(data){
> alert('error : '+JSON.stringify(data));
> }
>
> });
>
> });});
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] Jaggery server.address support in CEP 4.0.0

2015-02-26 Thread Sabra Ossen
Hi,

I am getting the following error when trying to run the jaggery sample [1]
in WSO2 CEP 4.0.0. The mentioned sample runs fine in WSO2 CEP 3.1.0.

[2015-02-26 17:18:52,580] ERROR - {WebAppManager}
 org.mozilla.javascript.EcmaError: TypeError: Cannot find function address
in object [object Object]. (/Test//index.jag#12)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: TypeError: Cannot find function address
in object [object Object]. (/Test//index.jag#12)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:559)
at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find
function address in object [object Object]. (/Test//index.jag#12)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3712)
at
org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3783)
at
org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2269)
at
org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2251)
at org.jaggeryjs.rhino.Test.c0._c_script_0(/Test//index.jag:12)
at org.jaggeryjs.rhino.Test.c0.call(/Test//index.jag)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.jaggeryjs.rhino.Test.c0.call(/Test//index.jag)
at org.jaggeryjs.rhino.Test.c0.exec(/Test//index.jag)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
... 36 more


When I checked the server.js file in the carbon modules in both the CEP
versions I noticed that the server.address

Re: [Dev] carbon4-kernel tests migration - to be compatible with TAF 4.3.1

2015-02-26 Thread Dimuthu De Lanerolle
Hi Kishanthan / KasunG,

Please merge the below PR [1] which includes the fix for the above
intermittent test failure.

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

Regards

On Wed, Feb 25, 2015 at 4:40 PM, Dimuthu De Lanerolle 
wrote:

> Hi Kishanthan,
>
> Can you merge-back the said pull request to master so that we can provide
> a fix for this?
>
> Regards
>
> On Wed, Feb 25, 2015 at 11:54 AM, Dimuthu De Lanerolle 
> wrote:
>
>> We are looking into this intermittent failure now.
>>
>> Regards
>>
>> On Wed, Feb 25, 2015 at 11:09 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Yes, and this seems to be intermittent. Until we find the cause, we will
>>> revert the merge.
>>>
>>> On Wed, Feb 25, 2015 at 10:58 AM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi guys,

 This is causing a test failures in kernel. It looks like an issue with
 automation framework. @Dimuthu, can you have a quick look?

 [1]
 https://wso2.org/jenkins/job/carbon4-kernel/org.wso2.carbon$org.wso2.carbon.integration.tests.integration/737/testReport/junit/org.wso2.carbon.integration.tests.integration/ServerAdminTestCase/testRetrieveServerInfo/

 Thanks.


 On Tue, Feb 24, 2015 at 6:13 PM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> This is merged with master.
>
> On Thu, Feb 19, 2015 at 5:05 PM, Dimuthu De Lanerolle <
> dimut...@wso2.com> wrote:
>
>> Kishanthan , the initial effort was only to migrate  tests classes
>> inside the 'tests' module to 'tests-integration' module. However now,  we
>> have gone through the integration module and sub modules and done the
>> changes you have mentioned. You can now merge the updated pull request.
>>
>> Regards
>>
>> On Wed, Feb 18, 2015 at 1:20 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> DimuthuD, I still see submodule dependencies having version defined
>>> even though they are defined in the parent pom Eg:
>>> distribution/integration/test-common/integration-test-utils/pom.xml.
>>>
>>> Also when adding new dependencies to dependencyManagement section,
>>> check whether they are already added. If yes, we will end up having
>>> duplicated dependencies.
>>>
>>>
>>>
>>> On Fri, Feb 13, 2015 at 4:26 PM, Dimuthu De Lanerolle <
>>> dimut...@wso2.com> wrote:
>>>
 Hi Krishantha / Kishanthan,

 The pull request is updated accordingly.

 Regards

 On Fri, Feb 13, 2015 at 11:08 AM, Krishantha Samaraweera <
 krishan...@wso2.com> wrote:

> Hi Dimuthu,
>
> Can you fix all the problems and send a pull again.
>
> Thanks,
> Krishantha.
>
> On Tue, Feb 10, 2015 at 10:18 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Hi DimuthuD,
>>
>> While trying to merge this, I found some pom level issues with
>> the integration module that should be fixed.
>>
>> 1. We need to remove the dependencyManagement section in
>> distribution/integration/pom.xml and move all those dependencies to 
>> the
>> root pom at carbon4-kernel/parent/pom.xml
>> 2. Submodule pom's should not have versions defined/hard-coded
>> for any dependencies, instead they should be defined at root parent 
>> pom.
>> The same applied for maven build plugins sections as-well.
>>
>> So shall we also fix the above with this effort?
>>
>> On Fri, Jan 23, 2015 at 7:39 PM, Dimuthu De Lanerolle <
>> dimut...@wso2.com> wrote:
>>
>>> Hi Kishanthan,
>>>
>>> Yes,  we have the updated PR [1] which is compatible with the
>>> master branch to-date. Pls merge.
>>>
>>> [1] https://github.com/wso2/carbon4-kernel/pull/132
>>>
>>> Regards
>>>
>>> On Thu, Jan 22, 2015 at 11:09 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 Great. Thanks Dimuthu and Krishantha. So we just have to remove
 the old framework from code base right? Also can we get the 
 updated PR on
 this migration sent to master branch, if not already done?

 On Wed, Jan 21, 2015 at 11:57 PM, Krishantha Samaraweera <
 krishan...@wso2.com> wrote:

> Hi Dimuthu,
>
> Thanks for attending to this.
>
> We need to remove the old test framework in kernel and test
> suite.
>
> Thanks,
> Krishantha.
>
> On Wed, Jan 21, 2015 at 8:24 PM, Dimuthu De Lanerolle <
> dimut...@wso2.com> wrote:
>
>> This is completed.  Please 

Re: [Dev] Invitation: [Code Review] DataPublisher Rewrite @ Thu Feb 26, 2015 11am - 12pm (Sinthuja Ragendran)

2015-02-26 Thread Sinthuja Ragendran
Hi,

Below points was discussed in the review:

   - Concern raised on keeping the events in a queue until it becomes full
   when all the receiver endpoints are not available in a specified receiver
   group, and use fail fast method.
   - Use three different states on the endpoint such as ACTIVE, INACTIVE,
   BUSY states to handle the loadbalancing and fail over logic for a receiver
   group rather two states ACTIVE and INACTIVE.

Thanks,

Sinthuja.

On Wed, Feb 25, 2015 at 4:17 PM, Sinthuja Ragendran 
wrote:

> more details »
> 
> [Code Review] DataPublisher Rewrite
> Code review for data publisher rewrite.
> *When*
> Thu Feb 26, 2015 11am – 12pm Colombo
> *Where*
> LK Trace Mezzanine Floor Board Room - Shire (map
> 
> )
> *Video call*
> https://plus.google.com/hangouts/_/wso2.com/code-review
> 
> *Calendar*
> Sinthuja Ragendran
> *Who*
> •
> Sinthuja Ragendran - organizer
> •
> Niranda Perera
> •
> Maninda Edirisooriya
> •
> Gimantha Bandara
> •
> Sriskandarajah Suhothayan
> •
> Inosh Goonewardena
> •
> Srinath Perera
> •
> Mohanadarshan Vivekanandalingam
> •
> Gokul Balakrishnan
> •
> Dunith Dhanushka
> •
> Malith Dhanushka
> •
> WSO2 Developers' List
> •
> Anjana Fernando
> •
> Gihan Anuruddha
>
> Going?   *Yes
> 
> - Maybe
> 
> - No
> *
> more options »
> 
>
> Invitation from Google Calendar 
>
> You are receiving this courtesy email at the account dev@wso2.org because
> you are an attendee of this event.
>
> To stop receiving future updates for this event, decline this event.
> Alternatively you can sign up for a Google account at
> https://www.google.com/calendar/ and control your notification settings
> for your entire calendar.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] Internal Server Error when using the REST API.

2015-02-26 Thread Gimantha Bandara
Hi Fawsan,

Use JSON.Stringify on the data object submitted with POST.

On Thu, Feb 26, 2015 at 4:04 PM, Mohammed Fawsan  wrote:

> CORRECTION : The JS function looks like this.
>
> $(function(){
> $("#loginform").submit(function(e){
>
> e.preventDefault();
> //  var data = $("#loginform").serialize();
>
> var data =  {"username" : $("#username").val(),"password" : 
> $("#password").val()};
>
> alert(JSON.stringify(data));
>
> $.ajax({
> type: "POST",
> url: 
> "http://10.100.4.135:9763/dashboardConfigs/dashBoardConfigs/login ",
> data: data,
>
> contentType: "application/json",
> crossDomain : true,
> dataType: "json",
> success: function(data) {
>
> alert("success" + JSON.stringify(data));
>
> },
> error:function(data){
> alert('error : '+JSON.stringify(data));
> }
>
> });
>
> });});
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Jaggery server.address support in CEP 4.0.0

2015-02-26 Thread Inshaf Mahath
Hi Sabra,

You can try [1] sample to get the runtime server address.

[1] - https://gist.github.com/dulichan/9577696




On Thu, Feb 26, 2015 at 5:33 PM, Sabra Ossen  wrote:

> Hi,
>
> I am getting the following error when trying to run the jaggery sample [1]
> in WSO2 CEP 4.0.0. The mentioned sample runs fine in WSO2 CEP 3.1.0.
>
> [2015-02-26 17:18:52,580] ERROR - {WebAppManager}
>  org.mozilla.javascript.EcmaError: TypeError: Cannot find function address
> in object [object Object]. (/Test//index.jag#12)
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EcmaError: TypeError: Cannot find function address
> in object [object Object]. (/Test//index.jag#12)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
> at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:559)
> at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
> at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:722)
> Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find
> function address in object [object Object]. (/Test//index.jag#12)
> at
> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
> at
> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
> at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)
> at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3712)
> at
> org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3783)
> at
> org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2269)
> at
> org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2251)
> at org.jaggeryjs.rhino.Test.c0._c_script_0(/Test//index.jag:12)
> at org.jaggeryjs.rhino.Test.c0.call(/Test//index.jag)
> at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
> at org.mozilla.javascript.

Re: [Dev] WSO2 Committers += Aiyadurai Rajeevn

2015-02-26 Thread Aiyadurai Rajeevan
Thanks folks for your wishes.

Thanks & Regards,
S.A.Rajeevan
Software Engineer WSO2 Inc
E-Mail: rajeev...@wso2.com | Mobile : +94776411636

On Thu, Feb 26, 2015 at 4:46 PM, Roshan Deniyage  wrote:

> congrats rajeevan!
>
> Roshan Deniyage
> Associate Technical Lead
> WSO2, Inc: http://wso2.com
>
> Mobile:  +94 777636406
> Twitter:  *https://twitter.com/roshku *
> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>
>
> On Thu, Feb 26, 2015 at 2:26 PM, Sam Sivayogam  wrote:
>
>> Congrats Rajeevan !!!
>>
>> On Thu, Feb 26, 2015 at 11:12 AM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Congratulations Rajeevan !
>>>
>>> On Thu, Feb 26, 2015 at 10:23 AM, Ashan Dhananjaya 
>>> wrote:
>>>
 Congratulations :-)

 On Thu, Feb 26, 2015 at 10:21 AM, Manisha Gayathri 
 wrote:

> Congrats Rajeevan!!!
>
> On Thu, Feb 26, 2015 at 10:19 AM, Inshaf Mahath 
> wrote:
>
>> Congrats Rajeevan 
>>
>> On Thu, Feb 26, 2015 at 10:08 AM, Rajeevan Vimalanathan <
>> rajeev...@wso2.com> wrote:
>>
>>> Congrats Rajeevan...!!!
>>>
>>> On Thu, Feb 26, 2015 at 10:05 AM, Lahiru Cooray 
>>> wrote:
>>>
 Congratz Rajeevan!!!

 On Thu, Feb 26, 2015 at 10:00 AM, Dimuthu Leelarathne <
 dimut...@wso2.com> wrote:

>
> Hi all,
>
> It is with great pleasure that WSO2 welcomes Aiyadurai Rajeevn as
> WSO2 committer!
>
> Congratulations!
>
> thanks,
> Dimuthu
> --
> Dimuthu Leelarathne
> Architect & Product Lead of App Factory
>
> WSO2, Inc. (http://wso2.com)
> email: dimut...@wso2.com
> Mobile : 0773661935
>
> Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Lahiru Cooray*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 lean.enterprise.middleware

 Mobile: +94 715 654154

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


>>>
>>>
>>> --
>>> Best Regards,
>>> V.Rajeevan
>>> Software Engineer,
>>> WSO2 Inc. :http://wso2.com
>>>
>>> Mobile : +94 773090875
>>> Email : rajeev...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Inshaf Mahath
>> Associate Software Engineer
>> Mobile: +94775907181
>> WSO2 Inc.
>> Lean . Enterprise . Middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> ~Regards
> *Manisha Eleperuma*
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
>
> *blog:  http://manisha-eleperuma.blogspot.com/
> *
> *mobile:  +94 71 8279777 <%2B94%2071%208279777>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Ashan Dhananjaya Kumara
 Trainee Software Engineer, WSO2 Inc.
 Inc: *WSO2 Inc. *
 Phone : +94715547461
 Blog : http://ashandhananjaya.blogspot.com/
 Twitter  : https://twitter.com/Dhananjaya92
 Say ello :https://ello.co/ashandk





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


>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>> *Sam Sivayogam*
>>
>> Software Engineer
>> Mobile  : +94 772 906 439
>> Office   : +94 112 145 345
>> *WSO2, Inc. :** wso2.com *
>> lean.enterprise.middleware.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DevStudio] Please review and merge the pull request : TOOLS-2721

2015-02-26 Thread Viraj Rajaguru
Merged.

Thanks,
Viraj.

On Thu, Feb 26, 2015 at 12:52 PM, Rajeevan Vimalanathan 
wrote:

> Hi,
>
> Please review and merge the pull request[1] that includes fix for JIRA[2].
>
> [1] https://github.com/wso2/cloud-dev-studio/pull/2
> [2] https://wso2.org/jira/browse/TOOLS-2721
>
> Thanks,
> Rajeevan
>
> --
> Best Regards,
> V.Rajeevan
> Software Engineer,
> WSO2 Inc. :http://wso2.com
>
> Mobile : +94 773090875
> Email : rajeev...@wso2.com
>



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

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


Re: [Dev] [DevStudio] Please review and merge the pull request : TOOLS-2722

2015-02-26 Thread Viraj Rajaguru
Merged.

Thanks,
Viraj.

On Wed, Feb 25, 2015 at 6:21 PM, Rajeevan Vimalanathan 
wrote:

> Hi,
>
> Please review and merge the pull request[1] that includes fix for JIRA[2].
>
> [1] https://github.com/wso2/cloud-dev-studio/pull/1
> [2] https://wso2.org/jira/browse/TOOLS-2722
>
> Thanks,
> Rajeevan
>
> --
> Best Regards,
> V.Rajeevan
> Software Engineer,
> WSO2 Inc. :http://wso2.com
>
> Mobile : +94 773090875
> Email : rajeev...@wso2.com
>



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

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


[Dev] Connection Refused exception after setting userDNpattern in user store configuration

2015-02-26 Thread Harshan Liyanage
Hi,

When I configured the userDNpattern for my user-store configuration in IS
5.0.0, it gives the following exception at the server start-up & when
trying to login to the system. This exception was occurred after applying
the service pack. It seems like the user-core is constructing the ldap
host-name by appending "*DC*" values in "*userDNpattern*" property. Given
below is the userDN property configuration.

uid={0},ou=Users,*dc=wso2,dc=org*

Once I've changed the above property to,

uid={0},ou=Users,dc=*wso23*,dc=org

The host-name also changed to wso23.org. However everything works fine if
the userDNproperty is commented-out. So according to this, if we don't have
a DNS mapping to the ldap, we could not use the *userDNpattren* property.

Is this the expected functionality?

[2015-02-26 17:50:02,813] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Using User
DN Patterns uid={0},ou=Users,dc=wso2,dc=org
[2015-02-26 17:50:03,039] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Searching
for user with SearchFilter: (&(objectClass=user)(cn=a)) in SearchBase:
[2015-02-26 17:50:03,039] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :streetAddress
[2015-02-26 17:50:03,039] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :mail
[2015-02-26 17:50:03,039] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :sn
[2015-02-26 17:50:03,039] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :organizationName
[2015-02-26 17:50:03,040] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :telephoneNumber
[2015-02-26 17:50:03,040] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :role
[2015-02-26 17:50:03,040] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :profileConfiguration
[2015-02-26 17:50:03,040] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :givenName
[2015-02-26 17:50:03,040] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :im
[2015-02-26 17:50:03,040] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :url
[2015-02-26 17:50:03,040] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :country
[2015-02-26 17:50:03,040] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Requesting
attribute :mobile
[2015-02-26 17:50:03,055] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  *wso2.org:636
*
javax.naming.CommunicationException: wso2.org:636 [Root exception is
java.net.ConnectException: Connection refused]
at com.sun.jndi.ldap.LdapReferralContext.(LdapReferralContext.java:74)
at
com.sun.jndi.ldap.LdapReferralException.getReferralContext(LdapReferralException.java:132)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1838)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1749)
at
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
at
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
at
org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager.getUserPropertyValues(ReadOnlyLDAPUserStoreManager.java:477)
at
org.wso2.carbon.user.core.common.AbstractUserStoreManager.doGetUserClaimValues(AbstractUserStoreManager.java:2654)
at
org.wso2.carbon.user.core.common.AbstractUserStoreManager.getUserClaimValues(AbstractUserStoreManager.java:566)
at
org.wso2.carbon.user.core.common.AbstractUserStoreManager.getUserClaimValues(AbstractUserStoreManager.java:560)
at
org.wso2.carbon.identity.user.profile.mgt.UserProfileAdmin.getUserProfiles(UserProfileAdmin.java:232)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
at
org.apach

Re: [Dev] WSO2 Committers += Aiyadurai Rajeevn

2015-02-26 Thread Harsha Kumara
Congratulations Rajeevan!

On Thu, Feb 26, 2015 at 5:44 PM, Aiyadurai Rajeevan 
wrote:

> Thanks folks for your wishes.
>
> Thanks & Regards,
> S.A.Rajeevan
> Software Engineer WSO2 Inc
> E-Mail: rajeev...@wso2.com | Mobile : +94776411636
>
> On Thu, Feb 26, 2015 at 4:46 PM, Roshan Deniyage  wrote:
>
>> congrats rajeevan!
>>
>> Roshan Deniyage
>> Associate Technical Lead
>> WSO2, Inc: http://wso2.com
>>
>> Mobile:  +94 777636406
>> Twitter:  *https://twitter.com/roshku *
>> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>>
>>
>> On Thu, Feb 26, 2015 at 2:26 PM, Sam Sivayogam  wrote:
>>
>>> Congrats Rajeevan !!!
>>>
>>> On Thu, Feb 26, 2015 at 11:12 AM, Kalpa Welivitigoda 
>>> wrote:
>>>
 Congratulations Rajeevan !

 On Thu, Feb 26, 2015 at 10:23 AM, Ashan Dhananjaya 
 wrote:

> Congratulations :-)
>
> On Thu, Feb 26, 2015 at 10:21 AM, Manisha Gayathri 
> wrote:
>
>> Congrats Rajeevan!!!
>>
>> On Thu, Feb 26, 2015 at 10:19 AM, Inshaf Mahath 
>> wrote:
>>
>>> Congrats Rajeevan 
>>>
>>> On Thu, Feb 26, 2015 at 10:08 AM, Rajeevan Vimalanathan <
>>> rajeev...@wso2.com> wrote:
>>>
 Congrats Rajeevan...!!!

 On Thu, Feb 26, 2015 at 10:05 AM, Lahiru Cooray 
 wrote:

> Congratz Rajeevan!!!
>
> On Thu, Feb 26, 2015 at 10:00 AM, Dimuthu Leelarathne <
> dimut...@wso2.com> wrote:
>
>>
>> Hi all,
>>
>> It is with great pleasure that WSO2 welcomes Aiyadurai Rajeevn as
>> WSO2 committer!
>>
>> Congratulations!
>>
>> thanks,
>> Dimuthu
>> --
>> Dimuthu Leelarathne
>> Architect & Product Lead of App Factory
>>
>> WSO2, Inc. (http://wso2.com)
>> email: dimut...@wso2.com
>> Mobile : 0773661935
>>
>> Lean . Enterprise . Middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Lahiru Cooray*
> Software Engineer
> WSO2, Inc.;http://wso2.com/
> lean.enterprise.middleware
>
> Mobile: +94 715 654154
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Best Regards,
 V.Rajeevan
 Software Engineer,
 WSO2 Inc. :http://wso2.com

 Mobile : +94 773090875
 Email : rajeev...@wso2.com

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


>>>
>>>
>>> --
>>> Inshaf Mahath
>>> Associate Software Engineer
>>> Mobile: +94775907181
>>> WSO2 Inc.
>>> Lean . Enterprise . Middleware
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> ~Regards
>> *Manisha Eleperuma*
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>>
>> *blog:  http://manisha-eleperuma.blogspot.com/
>> *
>> *mobile:  +94 71 8279777 <%2B94%2071%208279777>*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ashan Dhananjaya Kumara
> Trainee Software Engineer, WSO2 Inc.
> Inc: *WSO2 Inc. *
> Phone : +94715547461
> Blog : http://ashandhananjaya.blogspot.com/
> Twitter  : https://twitter.com/Dhananjaya92
> Say ello :https://ello.co/ashandk
>
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


>>>
>>>
>>> --
>>> *Sam Sivayogam*
>>>
>>> Software Engineer
>>> Mobile  : +94 772 906 439
>>> Office   : +94 112 145 345
>>> *WSO2, Inc. :** wso2.com *
>>> lean.enterprise.middleware.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/

Re: [Dev] SVN DepSync partially checkout with latest AS snapshot build

2015-02-26 Thread Maheeka Jayasuriya
DepSync is working successfully in M7. Let me retry and see if I face any
issues as you mention and will get back.


Thanks,

Maheeka Jayasuriya
Software Engineer
Mobile : +9450661

On Thu, Feb 26, 2015 at 3:23 PM, Aruna Karunarathna  wrote:

> Hi Manoj,
>
> On Thu, Feb 26, 2015 at 3:14 PM, Manoj Kumara  wrote:
>
>> Hi Team,
>>
>> With latest AS product with carbon-commons version 4.3.4 SVN deployment
>> synchronizer seems to be not working with latest svnClientBundle-1.0.0.jar
>> and svn-client-adapter-1.10.5.wso2v1.jar 1.7.x with svn versioned
>> repository.
>>
>> After discussing with KasunG I replaced these jars with
>> svnkit-1.3.9.wso2v1.jar and the default client adapter with a svn 1.6.x
>> versioned repository everything seems to be working fine.
>>
>> I debugged the code and checked that the flow seems to be working fine
>> and svn update() method get called on the client but the update happens
>> partially.
>>
>> What could be the issue here.
>>
>
> This was tested in ESB M7 by Maheeka, as I remember. So it should work for
> AS.
>
> Shall we revert the changes in  SVN deployment synchronizer changes, and
> try to isolate the issue?.
>
>>
>> Regards,
>> Manoj
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Java 8] [AS Integration Tests] AS distribution fails to start after instrumenting using EMMA 2.1.5320

2015-02-26 Thread Sameera Jayasoma
Hi Folks,

AS integration tests are failing in Java 8 due to $Subject. Following is
the error.

*java.lang.ClassFormatError: Illegal local variable table length 5 in
method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.()V*

Looks like Java 8 cannot understand the bytecode produced by
instrumentations. We are using an older version of EMMA. I guess the
generated bytecode does not compatible with Java 8.

Automation Team, can we find a solution to this problem?

Thanks,
Sameera.


[2015-02-26 15:05:04,157] ERROR
{org.wso2.carbon.user.core.internal.Activator} -  Cannot start User Manager
Core bundle

*java.lang.ClassFormatError: Illegal local variable table length 5 in
method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.()V*at
java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:340)
at
org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1181)
at
org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1177)
at java.security.AccessController.doPrivileged(Native Method)
at
org.wso2.carbon.context.internal.CarbonContextDataHolder.classForName(CarbonContextDataHolder.java:1177)
at
org.wso2.carbon.context.internal.CarbonContextDataHolder.access$700(CarbonContextDataHolder.java:94)
at
org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContextFactoryBuilder.createInitialContextFactory(CarbonContextDataHolder.java:456)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:681)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:341)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at javax.naming.InitialContext.doLookup(InitialContext.java:290)


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] [Java 8] [AS Integration Tests] AS distribution fails to start after instrumenting using EMMA 2.1.5320

2015-02-26 Thread Dharshana Warusavitharana
Hi Sameera,

Will have a look.

Thank you,
Dharshana.

On Thu, Feb 26, 2015 at 6:56 PM, Sameera Jayasoma  wrote:

> Hi Folks,
>
> AS integration tests are failing in Java 8 due to $Subject. Following is
> the error.
>
> *java.lang.ClassFormatError: Illegal local variable table length 5 in
> method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.()V*
>
> Looks like Java 8 cannot understand the bytecode produced by
> instrumentations. We are using an older version of EMMA. I guess the
> generated bytecode does not compatible with Java 8.
>
> Automation Team, can we find a solution to this problem?
>
> Thanks,
> Sameera.
>
>
> [2015-02-26 15:05:04,157] ERROR
> {org.wso2.carbon.user.core.internal.Activator} -  Cannot start User Manager
> Core bundle
>
> *java.lang.ClassFormatError: Illegal local variable table length 5 in
> method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.()V*at
> java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:340)
> at
> org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1181)
> at
> org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1177)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.wso2.carbon.context.internal.CarbonContextDataHolder.classForName(CarbonContextDataHolder.java:1177)
> at
> org.wso2.carbon.context.internal.CarbonContextDataHolder.access$700(CarbonContextDataHolder.java:94)
> at
> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContextFactoryBuilder.createInitialContextFactory(CarbonContextDataHolder.java:456)
> at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:681)
> at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
> at
> javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:341)
> at javax.naming.InitialContext.lookup(InitialContext.java:417)
> at javax.naming.InitialContext.doLookup(InitialContext.java:290)
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 

Dharshana Warusavitharana
Senior Software Engineer , Test Automation
WSO2 Inc. http://wso2.com
email : dharsha...@wso2.com 
Tel  : +94 11 214 5345
Fax :+94 11 2145300
cell : +94770342233
blog : http://dharshanaw.blogspot.com

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


Re: [Dev] SVN DepSync partially checkout with latest AS snapshot build

2015-02-26 Thread Manoj Kumara
Hi Maheeka,

I believe you have tested with the default svn-client-adapter. In next
release we are planing to upgrade this to support svn 1.8.x. I was also
able to test this with default pack. This seems to be some compatible issue
with the latest adapter with the recent changed done on deployment
synchronizer.

Thanks,
Manoj


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188

On Thu, Feb 26, 2015 at 6:33 PM, Maheeka Jayasuriya 
wrote:

> DepSync is working successfully in M7. Let me retry and see if I face any
> issues as you mention and will get back.
>
>
> Thanks,
>
> Maheeka Jayasuriya
> Software Engineer
> Mobile : +9450661
>
> On Thu, Feb 26, 2015 at 3:23 PM, Aruna Karunarathna 
> wrote:
>
>> Hi Manoj,
>>
>> On Thu, Feb 26, 2015 at 3:14 PM, Manoj Kumara  wrote:
>>
>>> Hi Team,
>>>
>>> With latest AS product with carbon-commons version 4.3.4 SVN deployment
>>> synchronizer seems to be not working with latest svnClientBundle-1.0.0.jar
>>> and svn-client-adapter-1.10.5.wso2v1.jar 1.7.x with svn versioned
>>> repository.
>>>
>>> After discussing with KasunG I replaced these jars with
>>> svnkit-1.3.9.wso2v1.jar and the default client adapter with a svn 1.6.x
>>> versioned repository everything seems to be working fine.
>>>
>>> I debugged the code and checked that the flow seems to be working fine
>>> and svn update() method get called on the client but the update happens
>>> partially.
>>>
>>> What could be the issue here.
>>>
>>
>> This was tested in ESB M7 by Maheeka, as I remember. So it should work
>> for AS.
>>
>> Shall we revert the changes in  SVN deployment synchronizer changes, and
>> try to isolate the issue?.
>>
>>>
>>> Regards,
>>> Manoj
>>>
>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Test failure in org.wso2.carbon.registry.social.impl module due to a commit to user.core 4.4.0-SNAPSHOT

2015-02-26 Thread Sameera Jayasoma
Thanks Thanuja. It works now.



On Thu, Feb 26, 2015 at 2:54 PM, Thanuja Jayasinghe 
wrote:

> Hi Sameera,
>
> Please review and merge.
>
> https://github.com/wso2/carbon-registry/pull/31
> https://github.com/wso2/carbon4-kernel/pull/150
>
> Thanks,
> Thanuja
>
> On Thu, Feb 26, 2015 at 11:41 AM, Sameera Jayasoma 
> wrote:
>
>> Thanks for the quick response. Let me know once you are done.
>>
>> Thanks,
>> Sameera.
>>
>> On Thu, Feb 26, 2015 at 11:39 AM, Thanuja Jayasinghe 
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> This test case need to be fixed. will do the needful.
>>>
>>> Thanks,
>>> Thanuja.
>>>
>>> On Thu, Feb 26, 2015 at 11:32 AM, Sameera Jayasoma 
>>> wrote:
>>>
 I am building carbon-registry by changing the kernel version to Carbon
 4.4.0-SNAPSHOT. I am getting the following build failure. This failure
 occurs due to the following PR.

 https://github.com/wso2/carbon4-kernel/pull/111

 Thanuja, can you have a look at this please? We need this to be fixed
 for the Carbon 4.4.0-release.


 Running
 org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest

 log4j:WARN No appenders could be found for logger
 (org.wso2.carbon.context.internal.CarbonContextDataHolder).

 log4j:WARN Please initialize the log4j system properly.

 Warning: Could not get charToByteConverterClass!

 Feb 26, 2015 11:13:23 AM org.apache.tomcat.jdbc.pool.ConnectionPool init

 WARNING: maxIdle is larger than maxActive, setting maxIdle to: 50

 Listening for transport dt_socket at address: 11000

 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 129.964
 sec <<< FAILURE! - in
 org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest

 testGetPerson1(org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest)
 Time elapsed: 129.956 sec  <<< ERROR!

 org.wso2.carbon.registry.social.api.SocialDataException: Error while
 saving person with id admin

 at
 org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl.savePerson(PersonManagerImpl.java:103)

 at
 org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest.testGetPerson1(PersonManagerImplTest.java:142)

 Caused by: org.wso2.carbon.user.core.UserStoreException:
 org.wso2.carbon.user.core.UserStoreException: Invalid claim URI value

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

 at
 org.wso2.carbon.user.core.common.AbstractUserStoreManager.setUserClaimValues(AbstractUserStoreManager.java:978)

 at
 org.wso2.carbon.registry.social.impl.people.userprofile.PersonManagerImpl.savePerson(PersonManagerImpl.java:100)

 ... 23 more

 Caused by: org.wso2.carbon.user.core.UserStoreException: Invalid claim
 URI value

 at
 org.wso2.carbon.user.core.common.AbstractUserStoreManager.getClaimAtrribute(AbstractUserStoreManager.java:814)

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

 ... 25 more



 Results :


 Tests in error:


 org.wso2.carbon.registry.social.impl.test.people.userprofile.PersonManagerImplTest#testGetPerson1
 SocialDataException


 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0


 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://blog.sameera.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>> *Thanuja Lakmal*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94715979891 +94758009992
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Thanuja Lakmal*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94715979891 +94758009992
>



-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Lucene and Solr bundles package conflicts

2015-02-26 Thread Supun Sethunga
Hi,

Is this fixed? We are facing the same issue in ML product as well.

Thanks,
Supun

On Tue, Feb 24, 2015 at 1:14 PM, Gokul Balakrishnan  wrote:

> Hi Danesh,
>
> Is there any update on the status of the above, because we'll have to
> attend to this before our M1 release?
>
> Thanks,
>
>
>
> On 4 February 2015 at 22:54, Danesh Kuruppu  wrote:
>
>> Hi Gimantha,
>>
>> Sorry for the delay in responding.
>> Problem seems to be when importing packages in registry-indexing, There
>> we have imported lucene package as [1]. which will look for version 2.9.3
>> or upper.
>>
>> 1. org.apache.lucene.*;version="2.9.3"
>>
>> https://github.com/wso2-dev/carbon-registry/blob/master/components/registry/org.wso2.carbon.registry.indexing/pom.xml
>>
>> This issue will be fixed with Apache Solr update [2] where we export only
>> solr package and lucene package will bundle inside. We are not going import
>> lucene package from registry-indexing.
>>
>> 2. https://github.com/wso2/orbit/pull/47/files
>>
>> Thanks
>> Danesh
>>
>>
>> On Mon, Feb 2, 2015 at 1:43 PM, Gimantha Bandara 
>> wrote:
>>
>>>
>>>
>>> On Mon, Feb 2, 2015 at 1:08 PM, Gimantha Bandara 
>>> wrote:
>>>
 Hi,

 For carbon-analytics, the lucene version we use, is 4.10.3 (
 4.10.3.wso2v1) which is the latest. For carbon registry indexing and search
 functionalities, Solris used, which depends on lucene. we are facing the
 following issue when we install the carbon-analytics features because of
 two missing classes.

 1).

 Exception in thread "Thread-16" java.lang.NoClassDefFoundError:
 org/apache/lucene/search/Searcher
 at org.apache.solr.core.SolrConfig.(SolrConfig.java:166)
 at
 org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
 at
 org.wso2.carbon.registry.indexing.solr.SolrClient.(SolrClient.java:90)
 at
 org.wso2.carbon.registry.indexing.solr.SolrClient.getInstance(SolrClient.java:98)
 at
 org.wso2.carbon.registry.indexing.AsyncIndexer.(AsyncIndexer.java:93)
 at
 org.wso2.carbon.registry.indexing.IndexingManager.(IndexingManager.java:69)
 at
 org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:78)
 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.search.Searcher
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
 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:356)
 ... 12 more

 2).

 Exception in thread "Thread-18" java.lang.NoClassDefFoundError:
 org/apache/lucene/index/FilterIndexReader

 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:632)

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

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

 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(
 

[Dev] [DevStudio] Please review and merge the pull request : TOOLS-2726

2015-02-26 Thread Rajeevan Vimalanathan
Hi,

Please review and merge the pull request[1] that includes fix for JIRA[2].

[1] https://github.com/wso2/cloud-dev-studio/pull/3
[2] https://wso2.org/jira/browse/TOOLS-2726

Thanks,
Rajeevan

-- 
Best Regards,
V.Rajeevan
Software Engineer,
WSO2 Inc. :http://wso2.com

Mobile : +94 773090875
Email : rajeev...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Jaggery] Facing an error while parsing an XML

2015-02-26 Thread Bhathiya Jayasekara
Hi all,

I'm facing some issues while trying to read some values from a datasource
XML. My code is like this.

1   var stub = new
org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminStub('https://localhost:9443/services/NDataSourceAdmin');
2   var client = stub._getServiceClient();
3   var options = client.getOptions();
4   var authenticator = new
org.apache.axis2.transport.http.HttpTransportProperties.Authenticator();
5   authenticator.setUsername(username);
6   authenticator.setPassword(password);
7   authenticator.setPreemptiveAuthentication(true);
8   
options.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE,
authenticator);
9   client.setOptions(options);

10  var dsName = "WSO2_STAT_DB";

11  var dataSource =
stub.getDataSource(dsName).getDsMetaInfo().getDefinition().getDsXMLConfiguration();
12  //var dataSource =
https://localhost:9445adminadmincom.mysql.jdbc.Driver;
13  var dataSourceXml = new XML(dataSource);

Above code gives below error.

[2015-02-26 22:09:57,153] ERROR - RhinoEngine
org.mozilla.javascript.EvaluatorException: The choice of Java method
java.lang.String.replace matching JavaScript argument types
(function,string) is ambiguous; candidate methods are:
class java.lang.String
replace(java.lang.CharSequence,java.lang.CharSequence)
class java.lang.String replace(char,char) (xml#4)
[2015-02-26 22:09:57,153] ERROR - WebAppManager
org.mozilla.javascript.EvaluatorException: The choice of Java method
java.lang.String.replace matching JavaScript argument types
(function,string) is ambiguous; candidate methods are:
class java.lang.String
replace(java.lang.CharSequence,java.lang.CharSequence)
class java.lang.String replace(char,char) (xml#4)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EvaluatorException: The choice of Java method
java.lang.String.replace matching JavaScript argument types
(function,string) is ambiguous; candidate methods are:
class java.lang.String
replace(java.lang.CharSequence,java.lang.CharSequence)
class java.lang.String replace(char,char) (xml#4)


If I uncomment *line 12* and comment *line 11*, I don't get above error.
but if I log both lines (11 and 12), they still give the same output. How
do I get *line 11 *working like *line 12*?

Thanks,
Bhathiya





var dataSourceXml = new XML("'" + dataSource + "'");


-- 
*Bhathiya Jayasekara*
*Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Facing an error while parsing an XML

2015-02-26 Thread Rajith Vitharana
Hi,

Try using toXMLString() method.

Thanks,

On Thu, Feb 26, 2015 at 10:17 PM, Bhathiya Jayasekara 
wrote:

> Hi all,
>
> I'm facing some issues while trying to read some values from a datasource
> XML. My code is like this.
>
> 1   var stub = new 
> org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminStub('https://localhost:9443/services/NDataSourceAdmin');
> 2   var client = stub._getServiceClient();
> 3   var options = client.getOptions();
> 4   var authenticator = new 
> org.apache.axis2.transport.http.HttpTransportProperties.Authenticator();
> 5   authenticator.setUsername(username);
> 6   authenticator.setPassword(password);
> 7   authenticator.setPreemptiveAuthentication(true);
> 8   
> options.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE,
>  authenticator);
> 9   client.setOptions(options);
>
> 10  var dsName = "WSO2_STAT_DB";
>
> 11  var dataSource = 
> stub.getDataSource(dsName).getDsMetaInfo().getDefinition().getDsXMLConfiguration();
> 12  //var dataSource = 
> https://localhost:9445adminadmincom.mysql.jdbc.Driver;
> 13  var dataSourceXml = new XML(dataSource);
>
> Above code gives below error.
>
> [2015-02-26 22:09:57,153] ERROR - RhinoEngine 
> org.mozilla.javascript.EvaluatorException: The choice of Java method 
> java.lang.String.replace matching JavaScript argument types (function,string) 
> is ambiguous; candidate methods are:
> class java.lang.String 
> replace(java.lang.CharSequence,java.lang.CharSequence)
> class java.lang.String replace(char,char) (xml#4)
> [2015-02-26 22:09:57,153] ERROR - WebAppManager 
> org.mozilla.javascript.EvaluatorException: The choice of Java method 
> java.lang.String.replace matching JavaScript argument types (function,string) 
> is ambiguous; candidate methods are:
> class java.lang.String 
> replace(java.lang.CharSequence,java.lang.CharSequence)
> class java.lang.String replace(char,char) (xml#4)
> org.jaggeryjs.scriptengine.exceptions.ScriptException: 
> org.mozilla.javascript.EvaluatorException: The choice of Java method 
> java.lang.String.replace matching JavaScript argument types (function,string) 
> is ambiguous; candidate methods are:
> class java.lang.String 
> replace(java.lang.CharSequence,java.lang.CharSequence)
> class java.lang.String replace(char,char) (xml#4)
>
>
> If I uncomment *line 12* and comment *line 11*, I don't get above error.
> but if I log both lines (11 and 12), they still give the same output. How
> do I get *line 11 *working like *line 12*?
>
> Thanks,
> Bhathiya
>
>
>
>
>
> var dataSourceXml = new XML("'" + dataSource + "'");
>
>
> --
> *Bhathiya Jayasekara*
> *Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

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


Re: [Dev] [Jaggery] Facing an error while parsing an XML

2015-02-26 Thread Bhathiya Jayasekara
Email was sent by mistake while typing. Sorry about that.

I could resolve above parsing issue with below code.

var dataSourceXml = new XML("'" + dataSource + "'");

But I still can't read values from it. My code is like this.

var url = dataSourceXml.*::['url'].text();
log.info(url);
log.info(dataSourceXml.url.text());

Both above logs give empty outputs. What am I doing wrong here?

@Rajith: I tried your suggestion. But it says

[2015-02-26 22:37:56,928] ERROR - RhinoEngine
org.mozilla.javascript.EcmaError: TypeError: Cannot find function
toXMLString in object https://localhost:9445
adminadmincom.mysql.jdbc.Driver
. (/admin-dashboard/modules/analytics/list.jag#64)
[2015-02-26 22:37:56,928] ERROR - WebAppManager
org.mozilla.javascript.EcmaError: TypeError: Cannot find function
toXMLString in object https://localhost:9445
adminadmincom.mysql.jdbc.Driver
. (/admin-dashboard/modules/analytics/list.jag#64)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: TypeError: Cannot find function
toXMLString in object https://localhost:9445
adminadmincom.mysql.jdbc.Driver

Thanks,
Bhathiya



On Thu, Feb 26, 2015 at 10:17 PM, Bhathiya Jayasekara 
wrote:

> Hi all,
>
> I'm facing some issues while trying to read some values from a datasource
> XML. My code is like this.
>
> 1   var stub = new 
> org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminStub('https://localhost:9443/services/NDataSourceAdmin');
> 2   var client = stub._getServiceClient();
> 3   var options = client.getOptions();
> 4   var authenticator = new 
> org.apache.axis2.transport.http.HttpTransportProperties.Authenticator();
> 5   authenticator.setUsername(username);
> 6   authenticator.setPassword(password);
> 7   authenticator.setPreemptiveAuthentication(true);
> 8   
> options.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE,
>  authenticator);
> 9   client.setOptions(options);
>
> 10  var dsName = "WSO2_STAT_DB";
>
> 11  var dataSource = 
> stub.getDataSource(dsName).getDsMetaInfo().getDefinition().getDsXMLConfiguration();
> 12  //var dataSource = 
> https://localhost:9445adminadmincom.mysql.jdbc.Driver;
> 13  var dataSourceXml = new XML(dataSource);
>
> Above code gives below error.
>
> [2015-02-26 22:09:57,153] ERROR - RhinoEngine 
> org.mozilla.javascript.EvaluatorException: The choice of Java method 
> java.lang.String.replace matching JavaScript argument types (function,string) 
> is ambiguous; candidate methods are:
> class java.lang.String 
> replace(java.lang.CharSequence,java.lang.CharSequence)
> class java.lang.String replace(char,char) (xml#4)
> [2015-02-26 22:09:57,153] ERROR - WebAppManager 
> org.mozilla.javascript.EvaluatorException: The choice of Java method 
> java.lang.String.replace matching JavaScript argument types (function,string) 
> is ambiguous; candidate methods are:
> class java.lang.String 
> replace(java.lang.CharSequence,java.lang.CharSequence)
> class java.lang.String replace(char,char) (xml#4)
> org.jaggeryjs.scriptengine.exceptions.ScriptException: 
> org.mozilla.javascript.EvaluatorException: The choice of Java method 
> java.lang.String.replace matching JavaScript argument types (function,string) 
> is ambiguous; candidate methods are:
> class java.lang.String 
> replace(java.lang.CharSequence,java.lang.CharSequence)
> class java.lang.String replace(char,char) (xml#4)
>
>
> If I uncomment *line 12* and comment *line 11*, I don't get above error.
> but if I log both lines (11 and 12), they still give the same output. How
> do I get *line 11 *working like *line 12*?
>
> Thanks,
> Bhathiya
>
>
>
>
>
> var dataSourceXml = new XML("'" + dataSource + "'");
>
>
> --
> *Bhathiya Jayasekara*
> *Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>



-- 
*Bhathiya Jayasekara*
*Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*

On Thu, Feb 26, 2015 at 10:17 PM, Bhathiya Jayasekara 
wrote:

> Hi all,
>
> I'm facing some issues while trying to read some values from a datasource
> XML. My code is like this.
>
> 1   var stub = new 
> org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminStub('https://localhost:9443/services/NDataSourceAdmin');
> 2   var client = stub._getServiceClient();
> 3   var options = client.getOptions();
> 4   var authenticator = new 
> org.apache.axis2.transport.http.HttpTransportProperties.Authenticator();
> 5   authenticator.setUsern

Re: [Dev] [Orbit] Please merge the PR for Spark core, sql v1.2.1 and other dependencies

2015-02-26 Thread Niranda Perera
Hi Maheshika,

It seems that you have only deployed spark-core and spark-sql bundles only.

in the PR there were 5 more bundles required by these.
hadoop-client v2.2.0
Uncommons Math v1.2.2
json4s-jackson_2.10 v3.2.10
twitter chill and java v0.5.0
stream v2.2.0

I'm afraid these were not deployed. could you please look into this?

rgds

On Thu, Feb 26, 2015 at 9:36 AM, Niranda Perera  wrote:

> Thanks Maheshika and the carbon team
>
> cheers
>
> On Wed, Feb 25, 2015 at 7:16 PM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Kasun
>>
>> Both were deployed successfully.
>>
>> On Wed, Feb 25, 2015 at 5:08 PM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Niranda,
>>>
>>> This is merged now. @Maheshika, can you please deploy these orbit
>>> bundles? There are five of them I believe.
>>>
>>> Thanks.
>>>
>>> On Tue, Feb 24, 2015 at 5:36 PM, Niranda Perera 
>>> wrote:
>>>
 Hi Kasun,

 May I know the progress of this?

 Cheers

 On Tue, Feb 24, 2015 at 4:26 PM, Niranda Perera 
 wrote:

> Hi Kasun,
>
> Sorry my mistake. I put those in to test an orbit build locally.
> forgot to remove it in the commit.
>
> https://github.com/wso2/orbit/pull/65
>
> On Tue, Feb 24, 2015 at 4:20 PM, KasunG Gajasinghe 
> wrote:
>
>> Hi,
>>
>> Did you push all the changes? I still see that root pom has
>> sub-module references.
>>
>>
>> On Tue, Feb 24, 2015 at 4:05 PM, Niranda Perera 
>> wrote:
>>
>>> Hi Kasun,
>>>
>>> here are the changes I did.
>>>
>>> 1. done
>>> 2. changed
>>> org.wso2.apache.spark
>>> org.wso2.apache.hadoop
>>> org.wso2.clearspring.analytics
>>> org.wso2.json4s
>>> org.wso2.uncommons.maths
>>> org.wso2.twitter
>>>
>>> 3. done
>>>
>>> 4. the todo was to resolve the private packages warnings. But I have
>>> to include the private packages. so, I removed the todo item
>>>
>>> 5. that was how it was done in the 1.1.0 orbit bundle. but the jar
>>> imports are optional. they are already in the spark core resources, so
>>> deleted those.
>>>
>>> 6. uncommon-maths do not need any imports
>>>
>>> Could you please check it. [1]
>>>
>>> [1] https://github.com/wso2/orbit/pull/65
>>>
>>> Thanks
>>>
>>> On Tue, Feb 24, 2015 at 1:10 PM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi Niranda,

 Please do the following sugestions on these orbit bundles. There's
 a quite number of orbits here, hence the long list!

 1. Set the dependencies as optional.

 2. The groupId should start with org.wso2.*. This is a recent
 addition to policy to make our orbit bundles compatible with maven 
 central
 artifact policies.

 3. Remove the references from parent orbit pom

 4. There's a TODO item in the spark-core_2.10 orbit. Can you fix
 that before releasing this?

 5. Why are the conf files created in spark-core_2.10 orbit. It
 looks like this is coming from a third-party jar. Please use
  instruction for this as well like you have done for
 other config files.

 6. Use explicit imports in uncommons-maths orbit.

 Thanks.


 On Tue, Feb 24, 2015 at 12:45 PM, KasunG Gajasinghe <
 kas...@wso2.com> wrote:

>
> Sure Sameera.
>
> On Tue, Feb 24, 2015 at 12:32 PM, Sameera Jayasoma <
> same...@wso2.com> wrote:
>
>> KasunG can you have a look at this.
>>
>>
>> On Tue, Feb 24, 2015 at 10:20 AM, Niranda Perera <
>> nira...@wso2.com> wrote:
>>
>>> Hi Sameera,
>>>
>>> Please review and merge this PR [1]
>>>
>>> It adds the spark core and sql v1.2.1 to the orbit together with,
>>> hadoop-client v2.2.0
>>> Uncommons Math v1.2.2
>>> json4s-jackson_2.10 v3.2.10
>>> twitter chill and java v0.5.0
>>> stream v2.2.0
>>>
>>> Would be very grateful if you could attend to this ASAP because
>>> we have scheduled a M1 release by the EOD today 24th Feb.
>>>
>>> I have reviewed the spark core and sql bundles with KIshanthan
>>> last week. Much appreciate if you could go through the poms 
>>> nevertheless.
>>>
>>> cheers
>>>
>>> [1] https://github.com/wso2/orbit/pull/65
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> emai

Re: [Dev] [Orbit] Please merge the PR for Spark core, sql v1.2.1 and other dependencies

2015-02-26 Thread Maheshika Goonetilleke
Hi Niranda

I deployed them now, my mistake.

Please do check.

On Thu, Feb 26, 2015 at 10:49 PM, Niranda Perera  wrote:

> Hi Maheshika,
>
> It seems that you have only deployed spark-core and spark-sql bundles
> only.
>
> in the PR there were 5 more bundles required by these.
> hadoop-client v2.2.0
> Uncommons Math v1.2.2
> json4s-jackson_2.10 v3.2.10
> twitter chill and java v0.5.0
> stream v2.2.0
>
> I'm afraid these were not deployed. could you please look into this?
>
> rgds
>
> On Thu, Feb 26, 2015 at 9:36 AM, Niranda Perera  wrote:
>
>> Thanks Maheshika and the carbon team
>>
>> cheers
>>
>> On Wed, Feb 25, 2015 at 7:16 PM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Kasun
>>>
>>> Both were deployed successfully.
>>>
>>> On Wed, Feb 25, 2015 at 5:08 PM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi Niranda,

 This is merged now. @Maheshika, can you please deploy these orbit
 bundles? There are five of them I believe.

 Thanks.

 On Tue, Feb 24, 2015 at 5:36 PM, Niranda Perera 
 wrote:

> Hi Kasun,
>
> May I know the progress of this?
>
> Cheers
>
> On Tue, Feb 24, 2015 at 4:26 PM, Niranda Perera 
> wrote:
>
>> Hi Kasun,
>>
>> Sorry my mistake. I put those in to test an orbit build locally.
>> forgot to remove it in the commit.
>>
>> https://github.com/wso2/orbit/pull/65
>>
>> On Tue, Feb 24, 2015 at 4:20 PM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> Did you push all the changes? I still see that root pom has
>>> sub-module references.
>>>
>>>
>>> On Tue, Feb 24, 2015 at 4:05 PM, Niranda Perera 
>>> wrote:
>>>
 Hi Kasun,

 here are the changes I did.

 1. done
 2. changed
 org.wso2.apache.spark
 org.wso2.apache.hadoop
 org.wso2.clearspring.analytics
 org.wso2.json4s
 org.wso2.uncommons.maths
 org.wso2.twitter

 3. done

 4. the todo was to resolve the private packages warnings. But I
 have to include the private packages. so, I removed the todo item

 5. that was how it was done in the 1.1.0 orbit bundle. but the jar
 imports are optional. they are already in the spark core resources, so
 deleted those.

 6. uncommon-maths do not need any imports

 Could you please check it. [1]

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

 Thanks

 On Tue, Feb 24, 2015 at 1:10 PM, KasunG Gajasinghe >>> > wrote:

> Hi Niranda,
>
> Please do the following sugestions on these orbit bundles. There's
> a quite number of orbits here, hence the long list!
>
> 1. Set the dependencies as optional.
>
> 2. The groupId should start with org.wso2.*. This is a recent
> addition to policy to make our orbit bundles compatible with maven 
> central
> artifact policies.
>
> 3. Remove the references from parent orbit pom
>
> 4. There's a TODO item in the spark-core_2.10 orbit. Can you fix
> that before releasing this?
>
> 5. Why are the conf files created in spark-core_2.10 orbit. It
> looks like this is coming from a third-party jar. Please use
>  instruction for this as well like you have done for
> other config files.
>
> 6. Use explicit imports in uncommons-maths orbit.
>
> Thanks.
>
>
> On Tue, Feb 24, 2015 at 12:45 PM, KasunG Gajasinghe <
> kas...@wso2.com> wrote:
>
>>
>> Sure Sameera.
>>
>> On Tue, Feb 24, 2015 at 12:32 PM, Sameera Jayasoma <
>> same...@wso2.com> wrote:
>>
>>> KasunG can you have a look at this.
>>>
>>>
>>> On Tue, Feb 24, 2015 at 10:20 AM, Niranda Perera <
>>> nira...@wso2.com> wrote:
>>>
 Hi Sameera,

 Please review and merge this PR [1]

 It adds the spark core and sql v1.2.1 to the orbit together
 with,
 hadoop-client v2.2.0
 Uncommons Math v1.2.2
 json4s-jackson_2.10 v3.2.10
 twitter chill and java v0.5.0
 stream v2.2.0

 Would be very grateful if you could attend to this ASAP because
 we have scheduled a M1 release by the EOD today 24th Feb.

 I have reviewed the spark core and sql bundles with KIshanthan
 last week. Much appreciate if you could go through the poms 
 nevertheless.

 cheers

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

 --
 *Niranda Perera*
>>

Re: [Dev] WSO2 Committers += Senduran Balasubramaniyam

2015-02-26 Thread Kathees Rajendram
Congratulations Senduran!

On Thu, Feb 19, 2015 at 10:32 AM, Niranda Perera  wrote:

> Congrats Senduran!
>
> On Thu, Feb 19, 2015 at 10:16 AM, Prasanna Dangalla 
> wrote:
>
>> Congratulations Senduran!!!
>>
>> On Thu, Feb 19, 2015 at 10:15 AM, Thanuja Jayasinghe 
>> wrote:
>>
>>> Congratz Senduran..
>>>
>>> On Thu, Feb 19, 2015 at 10:11 AM, Dilan Udara Ariyaratne <
>>> dil...@wso2.com> wrote:
>>>
 Congratulations, Senduran!!!


 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. 
 Mobile: +94775149066
 lean . enterprise . middleware

 On Thu, Feb 19, 2015 at 12:05 AM, Roshan Deniyage 
 wrote:

> congrats !!!
>
> Roshan Deniyage
> Associate Technical Lead
> WSO2, Inc: http://wso2.com
>
> Mobile:  +94 777636406
> Twitter:  *https://twitter.com/roshku
> *
> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>
>
> On Wed, Feb 18, 2015 at 11:57 PM, Chanuka Dissanayake <
> chan...@wso2.com> wrote:
>
>> Congratulations Senduran..!
>>
>> On Wed, Feb 18, 2015 at 11:36 PM, Samith Dassanayake > > wrote:
>>
>>> Congratz Senduran!
>>>
>>> On Wed, Feb 18, 2015 at 10:25 PM, Srisunmugaraja Paraparan <
>>> parapa...@wso2.com> wrote:
>>>
 Congratulations Senduran .

 On Wed, Feb 18, 2015 at 10:12 PM, Ravi Undupitiya 
 wrote:

> Congratulations Senduran!
>
> On Wed, Feb 18, 2015 at 3:36 AM, Kasun Indrasiri 
> wrote:
>
>> Hi devs,
>>
>> Its my pleasure to welcome Senduran Balasubramaniyam as a WSO2
>> Committer.
>>
>> Senduran, welcome aboard and keep up the good work!
>>
>> Thanks.
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
> *Ravi Undupitiya*
> Senior Software Engineer; WSO2 http://wso2.com
>
>
> *E-mail: r...@wso2.com **M: **+94 772 930 712
> <%2B94%C2%A0772%20930%20712>*
>
> Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Thanks & Regards
 --
 Srisunmugaraja Paraparan
 Software Engineer,
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email : parapa...@wso2.com, mobile : +94 77 0362151

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


>>>
>>>
>>> --
>>> Best Regards
>>>
>>> Samith Dassanayake
>>> Software Engineer | Cloud TG
>>> WSO2, Inc. | http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> Mobile : +947 76207351
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Chanuka Dissanayake
>> *Software Engineer | **WSO2 Inc.*; http://wso2.com
>>
>> Mobile: +94 71 33 63 596
>> Email: chan...@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
>
>

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


>>>
>>>
>>> --
>>> *Thanuja Lakmal*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94715979891 +94758009992
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Prasanna Dangalla
>> Software Engineer, WSO2, Inc.; http://wso2.com/
>> lean.enterprise.middleware
>>
>> cell: +94 777 55 80 30 | +94 718 11 27 51
>> twitter: @prasa77
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
>
> ___
> Dev mailing list
> D

Re: [Dev] [Jaggery] Facing an error while parsing an XML

2015-02-26 Thread Tanya Madurapperuma
Hi Bhathiya,

Try changing your line 13 to
   var dataSourceXml = new XML(new String(dataSource));

Thanks,
Tanya

On Thu, Feb 26, 2015 at 10:39 PM, Bhathiya Jayasekara 
wrote:

> Email was sent by mistake while typing. Sorry about that.
>
> I could resolve above parsing issue with below code.
>
> var dataSourceXml = new XML("'" + dataSource + "'");
>
> But I still can't read values from it. My code is like this.
>
> var url = dataSourceXml.*::['url'].text();
> log.info(url);
> log.info(dataSourceXml.url.text());
>
> Both above logs give empty outputs. What am I doing wrong here?
>
> @Rajith: I tried your suggestion. But it says
>
> [2015-02-26 22:37:56,928] ERROR - RhinoEngine
> org.mozilla.javascript.EcmaError: TypeError: Cannot find function
> toXMLString in object https://localhost:9445
> adminadmincom.mysql.jdbc.Driver
> . (/admin-dashboard/modules/analytics/list.jag#64)
> [2015-02-26 22:37:56,928] ERROR - WebAppManager
> org.mozilla.javascript.EcmaError: TypeError: Cannot find function
> toXMLString in object https://localhost:9445
> adminadmincom.mysql.jdbc.Driver
> . (/admin-dashboard/modules/analytics/list.jag#64)
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EcmaError: TypeError: Cannot find function
> toXMLString in object https://localhost:9445
> adminadmincom.mysql.jdbc.Driver
>
> Thanks,
> Bhathiya
>
>
>
> On Thu, Feb 26, 2015 at 10:17 PM, Bhathiya Jayasekara 
> wrote:
>
>> Hi all,
>>
>> I'm facing some issues while trying to read some values from a datasource
>> XML. My code is like this.
>>
>> 1   var stub = new 
>> org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminStub('https://localhost:9443/services/NDataSourceAdmin');
>> 2   var client = stub._getServiceClient();
>> 3   var options = client.getOptions();
>> 4   var authenticator = new 
>> org.apache.axis2.transport.http.HttpTransportProperties.Authenticator();
>> 5   authenticator.setUsername(username);
>> 6   authenticator.setPassword(password);
>> 7   authenticator.setPreemptiveAuthentication(true);
>> 8   
>> options.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE,
>>  authenticator);
>> 9   client.setOptions(options);
>>
>> 10  var dsName = "WSO2_STAT_DB";
>>
>> 11  var dataSource = 
>> stub.getDataSource(dsName).getDsMetaInfo().getDefinition().getDsXMLConfiguration();
>> 12  //var dataSource = 
>> https://localhost:9445adminadmincom.mysql.jdbc.Driver;
>> 13  var dataSourceXml = new XML(dataSource);
>>
>> Above code gives below error.
>>
>> [2015-02-26 22:09:57,153] ERROR - RhinoEngine 
>> org.mozilla.javascript.EvaluatorException: The choice of Java method 
>> java.lang.String.replace matching JavaScript argument types 
>> (function,string) is ambiguous; candidate methods are:
>> class java.lang.String 
>> replace(java.lang.CharSequence,java.lang.CharSequence)
>> class java.lang.String replace(char,char) (xml#4)
>> [2015-02-26 22:09:57,153] ERROR - WebAppManager 
>> org.mozilla.javascript.EvaluatorException: The choice of Java method 
>> java.lang.String.replace matching JavaScript argument types 
>> (function,string) is ambiguous; candidate methods are:
>> class java.lang.String 
>> replace(java.lang.CharSequence,java.lang.CharSequence)
>> class java.lang.String replace(char,char) (xml#4)
>> org.jaggeryjs.scriptengine.exceptions.ScriptException: 
>> org.mozilla.javascript.EvaluatorException: The choice of Java method 
>> java.lang.String.replace matching JavaScript argument types 
>> (function,string) is ambiguous; candidate methods are:
>> class java.lang.String 
>> replace(java.lang.CharSequence,java.lang.CharSequence)
>> class java.lang.String replace(char,char) (xml#4)
>>
>>
>> If I uncomment *line 12* and comment *line 11*, I don't get above error.
>> but if I log both lines (11 and 12), they still give the same output. How
>> do I get *line 11 *working like *line 12*?
>>
>> Thanks,
>> Bhathiya
>>
>>
>>
>>
>>
>> var dataSourceXml = new XML("'" + dataSource + "'");
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>
>
>
> --
> *Bhathiya Jayasekara*
> *Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>
> On Thu, Feb 26, 2015 at 10:17 PM, Bhathiya Jayasekara 
> wrote:
>
>> Hi all,
>>
>> I'm facing some issues while trying to read some values from a datasource
>> XML

Re: [Dev] [Jaggery] Facing an error while parsing an XML

2015-02-26 Thread Bhathiya Jayasekara
Hi Tanya,

That worked like a charm. :) Thanks a lot.

Regards,
Bhathiya

On Fri, Feb 27, 2015 at 12:00 AM, Tanya Madurapperuma 
wrote:

> Hi Bhathiya,
>
> Try changing your line 13 to
>var dataSourceXml = new XML(new String(dataSource));
>
> Thanks,
> Tanya
>
> On Thu, Feb 26, 2015 at 10:39 PM, Bhathiya Jayasekara 
> wrote:
>
>> Email was sent by mistake while typing. Sorry about that.
>>
>> I could resolve above parsing issue with below code.
>>
>> var dataSourceXml = new XML("'" + dataSource + "'");
>>
>> But I still can't read values from it. My code is like this.
>>
>> var url = dataSourceXml.*::['url'].text();
>> log.info(url);
>> log.info(dataSourceXml.url.text());
>>
>> Both above logs give empty outputs. What am I doing wrong here?
>>
>> @Rajith: I tried your suggestion. But it says
>>
>> [2015-02-26 22:37:56,928] ERROR - RhinoEngine
>> org.mozilla.javascript.EcmaError: TypeError: Cannot find function
>> toXMLString in object https://localhost:9445
>> adminadmincom.mysql.jdbc.Driver
>> . (/admin-dashboard/modules/analytics/list.jag#64)
>> [2015-02-26 22:37:56,928] ERROR - WebAppManager
>> org.mozilla.javascript.EcmaError: TypeError: Cannot find function
>> toXMLString in object https://localhost:9445
>> adminadmincom.mysql.jdbc.Driver
>> . (/admin-dashboard/modules/analytics/list.jag#64)
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.EcmaError: TypeError: Cannot find function
>> toXMLString in object https://localhost:9445
>> adminadmincom.mysql.jdbc.Driver
>>
>> Thanks,
>> Bhathiya
>>
>>
>>
>> On Thu, Feb 26, 2015 at 10:17 PM, Bhathiya Jayasekara 
>> wrote:
>>
>>> Hi all,
>>>
>>> I'm facing some issues while trying to read some values from a
>>> datasource XML. My code is like this.
>>>
>>> 1   var stub = new 
>>> org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminStub('https://localhost:9443/services/NDataSourceAdmin');
>>> 2   var client = stub._getServiceClient();
>>> 3   var options = client.getOptions();
>>> 4   var authenticator = new 
>>> org.apache.axis2.transport.http.HttpTransportProperties.Authenticator();
>>> 5   authenticator.setUsername(username);
>>> 6   authenticator.setPassword(password);
>>> 7   authenticator.setPreemptiveAuthentication(true);
>>> 8   
>>> options.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE,
>>>  authenticator);
>>> 9   client.setOptions(options);
>>>
>>> 10  var dsName = "WSO2_STAT_DB";
>>>
>>> 11  var dataSource = 
>>> stub.getDataSource(dsName).getDsMetaInfo().getDefinition().getDsXMLConfiguration();
>>> 12  //var dataSource = 
>>> https://localhost:9445adminadmincom.mysql.jdbc.Driver;
>>> 13  var dataSourceXml = new XML(dataSource);
>>>
>>> Above code gives below error.
>>>
>>> [2015-02-26 22:09:57,153] ERROR - RhinoEngine 
>>> org.mozilla.javascript.EvaluatorException: The choice of Java method 
>>> java.lang.String.replace matching JavaScript argument types 
>>> (function,string) is ambiguous; candidate methods are:
>>> class java.lang.String 
>>> replace(java.lang.CharSequence,java.lang.CharSequence)
>>> class java.lang.String replace(char,char) (xml#4)
>>> [2015-02-26 22:09:57,153] ERROR - WebAppManager 
>>> org.mozilla.javascript.EvaluatorException: The choice of Java method 
>>> java.lang.String.replace matching JavaScript argument types 
>>> (function,string) is ambiguous; candidate methods are:
>>> class java.lang.String 
>>> replace(java.lang.CharSequence,java.lang.CharSequence)
>>> class java.lang.String replace(char,char) (xml#4)
>>> org.jaggeryjs.scriptengine.exceptions.ScriptException: 
>>> org.mozilla.javascript.EvaluatorException: The choice of Java method 
>>> java.lang.String.replace matching JavaScript argument types 
>>> (function,string) is ambiguous; candidate methods are:
>>> class java.lang.String 
>>> replace(java.lang.CharSequence,java.lang.CharSequence)
>>> class java.lang.String replace(char,char) (xml#4)
>>>
>>>
>>> If I uncomment *line 12* and comment *line 11*, I don't get above
>>> error. but if I log both lines (11 and 12), they still give the same
>>> output. How do I get *line 11 *working like *line 12*?
>>>
>>> Thanks,
>>> Bhathiya
>>>
>>>
>>>
>>>
>>>
>>> var dataSourceXml = new XML("'" + dataSource + "'");
>>>
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> *
>>> *Twitter: https://twitter.com/bhathiyax *
>>> *Blog: http://movingaheadblog.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax 

[Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?

2015-02-26 Thread Prabath Siriwardena
$subject...


Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +1 650 625 7950

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?

2015-02-26 Thread Ajith Vitharana
Hi Prabath,

AFAIK, It can't do from publisher, first we need to remove the subscription
from store , then delete from publisher.

-Ajith

On Thu, Feb 26, 2015 at 3:55 PM, Prabath Siriwardena 
wrote:

> $subject...
>
>
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +1-812-360-5335
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?

2015-02-26 Thread Prabath Siriwardena
Thanks..! But who has to remove the subscriptions...? Is it the one who
subscribed..?

I think there needs to be a way to remove an API by the API Publisher...

Thanks & regards,
-Prabath

On Thu, Feb 26, 2015 at 1:00 PM, Ajith Vitharana  wrote:

>
> Hi Prabath,
>
> AFAIK, It can't do from publisher, first we need to remove the
> subscription from store , then delete from publisher.
>
> -Ajith
>
> On Thu, Feb 26, 2015 at 3:55 PM, Prabath Siriwardena 
> wrote:
>
>> $subject...
>>
>>
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +1 650 625 7950
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +1-812-360-5335
>
>


-- 
Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +1 650 625 7950

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?

2015-02-26 Thread Prabath Siriwardena
Yes.. but blocking wont allow you to delete it..

Thanks & regards,
-Prabath

On Thu, Feb 26, 2015 at 1:15 PM, Ajith Vitharana  wrote:

>
>
> On Thu, Feb 26, 2015 at 4:04 PM, Prabath Siriwardena 
> wrote:
>
>> Thanks..! But who has to remove the subscriptions...? Is it the one who
>> subscribed..?
>>
>
>  Currently yes. But I understand that ,  it is not possible when we have
> lots of user subscriptions.
>
>
>> I think there needs to be a way to remove an API by the API Publisher...
>>
>
> So, without deleting the the API we can make the LC state to BLOCKED in
> publisher.
>
> -Ajith
>
>
>>
>> Thanks & regards,
>> -Prabath
>>
>> On Thu, Feb 26, 2015 at 1:00 PM, Ajith Vitharana  wrote:
>>
>>>
>>> Hi Prabath,
>>>
>>> AFAIK, It can't do from publisher, first we need to remove the
>>> subscription from store , then delete from publisher.
>>>
>>> -Ajith
>>>
>>> On Thu, Feb 26, 2015 at 3:55 PM, Prabath Siriwardena 
>>> wrote:
>>>
 $subject...


 Thanks & Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +1 650 625 7950

 http://blog.facilelogin.com
 http://blog.api-security.org

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


>>>
>>>
>>> --
>>> Ajith Vitharana.
>>> WSO2 Inc. - http://wso2.org
>>> Email  :  aji...@wso2.com
>>> Mobile : +1-812-360-5335
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +1 650 625 7950
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +1-812-360-5335
>
>


-- 
Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +1 650 625 7950

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?

2015-02-26 Thread Ajith Vitharana
On Thu, Feb 26, 2015 at 4:04 PM, Prabath Siriwardena 
wrote:

> Thanks..! But who has to remove the subscriptions...? Is it the one who
> subscribed..?
>

 Currently yes. But I understand that ,  it is not possible when we have
lots of user subscriptions.


> I think there needs to be a way to remove an API by the API Publisher...
>

So, without deleting the the API we can make the LC state to BLOCKED in
publisher.

-Ajith


>
> Thanks & regards,
> -Prabath
>
> On Thu, Feb 26, 2015 at 1:00 PM, Ajith Vitharana  wrote:
>
>>
>> Hi Prabath,
>>
>> AFAIK, It can't do from publisher, first we need to remove the
>> subscription from store , then delete from publisher.
>>
>> -Ajith
>>
>> On Thu, Feb 26, 2015 at 3:55 PM, Prabath Siriwardena 
>> wrote:
>>
>>> $subject...
>>>
>>>
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +1 650 625 7950
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +1-812-360-5335
>>
>>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +1-812-360-5335
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?

2015-02-26 Thread Ajith Vitharana
On Thu, Feb 26, 2015 at 4:17 PM, Prabath Siriwardena 
wrote:

> Yes.. but blocking wont allow you to delete it..
>

Yes. Currently  no clean approach to delete it.

But this is a workaround:

1. Change the LC sate to BLOCKED .
2. Logged  in to the Carbon Admin UI
3. Home -> Metadata -> List -> APIs and delete that API, then API
will disappear from publisher.

Only problem is publisher doesn't allow  you again to create API with same
name and context.  Because when you delete the API from Admin UI, it only
delete the API from registry database and AM database still remain the AM
metadata(name, context ...etc).

-Ajith


>
> Thanks & regards,
> -Prabath
>
>
> On Thu, Feb 26, 2015 at 1:15 PM, Ajith Vitharana  wrote:
>
>>
>>
>> On Thu, Feb 26, 2015 at 4:04 PM, Prabath Siriwardena 
>> wrote:
>>
>>> Thanks..! But who has to remove the subscriptions...? Is it the one who
>>> subscribed..?
>>>
>>
>>  Currently yes. But I understand that ,  it is not possible when we have
>> lots of user subscriptions.
>>
>>
>>> I think there needs to be a way to remove an API by the API Publisher...
>>>
>>
>> So, without deleting the the API we can make the LC state to BLOCKED in
>> publisher.
>>
>> -Ajith
>>
>>
>>>
>>> Thanks & regards,
>>> -Prabath
>>>
>>> On Thu, Feb 26, 2015 at 1:00 PM, Ajith Vitharana 
>>> wrote:
>>>

 Hi Prabath,

 AFAIK, It can't do from publisher, first we need to remove the
 subscription from store , then delete from publisher.

 -Ajith

 On Thu, Feb 26, 2015 at 3:55 PM, Prabath Siriwardena 
 wrote:

> $subject...
>
>
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +1 650 625 7950
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +1-812-360-5335
>>
>>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +1-812-360-5335
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [API Manager] Adding an API with the context "wso2"

2015-02-26 Thread Prabath Siriwardena
Created an API with the context wso2 and published it...

This appears in store - and anyone can subscribe.. But not in the Gateway..

Is this a known issue...

Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +1 650 625 7950

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] API Manager always returns back errors in XML

2015-02-26 Thread Prabath Siriwardena
I tried to call an API with an invalid access token - and following in the
the response I get..  Shouldn't I get a JSON response here..?

curl -H "Authorization: Bearer 227f7e7119361b31f873b1b6b3abfdff"  -k  -H
"Accept: application/json"  https://localhost:8243/mywso2/1.0.0/employee/4

http://wso2.org/apimanager/security";>900901Invalid
CredentialsAccess failure for API: /mywso2,
version: 1.0.0 with key:
227f7e7119361b31f873b1b6b3abfdff


Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +1 650 625 7950

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API Manager] Adding an API with the context "wso2"

2015-02-26 Thread Ajith Vitharana
On Thu, Feb 26, 2015 at 5:22 PM, Prabath Siriwardena 
wrote:

> Created an API with the context wso2 and published it...
>
> This appears in store - and anyone can subscribe.. But not in the Gateway..
>
> Is this a known issue...
>

If you try with the Publisher REST API make sure to pass the*
publishToGateway=true
*parameter while "Change API State". If not all the things success but API
not in GW.
No way to recover(push back to GW) such an API, if you missed to pass at
first place . :) . That is known bug.

 [1]
https://docs.wso2.com/display/AM180/Publisher+APIs#PublisherAPIs-ChangeAPIStatus


> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +1-812-360-5335
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API Manager] Adding an API with the context "wso2"

2015-02-26 Thread Prabath Siriwardena
This is directly from the Publisher. It looks like something to do with the
name.. When I created an new API with mywso2 it got published
successfully...

Thanks & regards,
-Prabath

On Thu, Feb 26, 2015 at 2:58 PM, Ajith Vitharana  wrote:

>
>
> On Thu, Feb 26, 2015 at 5:22 PM, Prabath Siriwardena 
> wrote:
>
>> Created an API with the context wso2 and published it...
>>
>> This appears in store - and anyone can subscribe.. But not in the
>> Gateway..
>>
>> Is this a known issue...
>>
>
> If you try with the Publisher REST API make sure to pass the* 
> publishToGateway=true
> *parameter while "Change API State". If not all the things success but
> API not in GW.
> No way to recover(push back to GW) such an API, if you missed to pass at
> first place . :) . That is known bug.
>
>  [1]
> https://docs.wso2.com/display/AM180/Publisher+APIs#PublisherAPIs-ChangeAPIStatus
>
>
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +1 650 625 7950
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +1-812-360-5335
>
>


-- 
Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +1 650 625 7950

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager always returns back errors in XML

2015-02-26 Thread Ajith Vitharana
By default application/xml, you can change that
in _auth_failure_handler_.xml file under
wso2am-1.8.0/repository/deployment/server/synapse-configs/default/sequences

http://ws.apache.org/ns/synapse";>



-Ajith


On Thu, Feb 26, 2015 at 5:45 PM, Prabath Siriwardena 
wrote:

> I tried to call an API with an invalid access token - and following in the
> the response I get..  Shouldn't I get a JSON response here..?
>
> curl -H "Authorization: Bearer 227f7e7119361b31f873b1b6b3abfdff"  -k  -H
> "Accept: application/json"  https://localhost:8243/mywso2/1.0.0/employee/4
>
>  xmlns:ams="http://wso2.org/apimanager/security";>900901Invalid
> CredentialsAccess failure for API: /mywso2,
> version: 1.0.0 with key:
> 227f7e7119361b31f873b1b6b3abfdff
>
>
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +1-812-360-5335
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager always returns back errors in XML

2015-02-26 Thread Prabath Siriwardena
Thanks.. But its should respect the "Accept: application/json" header..

Thanks & regards,
-Prabath

On Thu, Feb 26, 2015 at 3:06 PM, Ajith Vitharana  wrote:

> By default application/xml, you can change that
> in _auth_failure_handler_.xml file under
> wso2am-1.8.0/repository/deployment/server/synapse-configs/default/sequences
>
> http://ws.apache.org/ns/synapse";>
> 
> 
>
> -Ajith
>
>
> On Thu, Feb 26, 2015 at 5:45 PM, Prabath Siriwardena 
> wrote:
>
>> I tried to call an API with an invalid access token - and following in
>> the the response I get..  Shouldn't I get a JSON response here..?
>>
>> curl -H "Authorization: Bearer 227f7e7119361b31f873b1b6b3abfdff"  -k  -H
>> "Accept: application/json"
>> https://localhost:8243/mywso2/1.0.0/employee/4
>>
>> > xmlns:ams="http://wso2.org/apimanager/security";>900901Invalid
>> CredentialsAccess failure for API: /mywso2,
>> version: 1.0.0 with key:
>> 227f7e7119361b31f873b1b6b3abfdff
>>
>>
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +1 650 625 7950
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +1-812-360-5335
>
>


-- 
Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +1 650 625 7950

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 BAM 3.0 M1 Released!

2015-02-26 Thread Anjana Fernando
The WSO2 BAM team is pleased to announce the first milestone release of
WSO2 BAM v3.0. The distribution is available at [1]. The release includes
the following new features.
New Features

   - [BAM-1948 ] - Data Abstraction
   Layer for Analytics
   - [BAM-1949 ] - Spark SQL based
   Analytics Query Execution
   - [BAM-1950 ] - DataPublisher
   Rewrite
   - [BAM-1951 ] - RDBMS Datasource
   Support
   - [BAM-1952 ] - REST APIs for
   Analytics Data Service
   - [BAM-1953 ] - CLI like UI
   interface for Spark Integration

The documentation for BAM v3.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/gihan/wso2bam-3.0.0-M1.zip
[2]
https://docs.wso2.com/display/BAM300/WSO2+Business+Activity+Monitor+Documentation
[3] https://wso2.org/jira/browse/BAM

- *WSO2 BAM Team*
-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Java 8] [AS Integration Tests] AS distribution fails to start after instrumenting using EMMA 2.1.5320

2015-02-26 Thread Dharshana Warusavitharana
Hi Sameera,

Thank you for sharing the pack. I tried to execute integration test
pointing the pack you have shared.

Its not only the tomcat bundle that gives error it sees some other bundles
too.

Seems like EMMA is no longer have support for latest JDKs. Since EMMA is
off development since 2005 we may need to change our coverage strategy by
moving to jacoco

Untill we figure this out you can move forward with the integration tests
by disabling coverage.

You can disable coverage by making
true
in automation.xml

Thank You,
Dharshana.

On Thu, Feb 26, 2015 at 7:54 PM, Sameera Jayasoma  wrote:

> Thanks Darshana,
>
> I've uploaded the wso2as-6.0.0-SNAPSHOT distribution to an svn repository.
> This pack is built in Java 8. Here are the steps reproduce this error.
>
> 1) Download the AS pack from [1], unzip and start. You won't get the error
> coz no jar files are instrumented using EMMA.
> 2) Instrument carbon.tomcat bundle using the following command. I've
> attached emma jar file as well.
>
> java -cp emma-2.1.5320.jar emma instr -m overwrite -cp 
> org.wso2.carbon.tomcat_4.4.0-SNAPSHOT.jar
>
> 3) Now start the pack. You will get the error.
>
> Thanks,
> Sameera.
>
> [1] http://svn.wso2.org/repos/wso2/people/sameera/work/emma-as-pack
>
>
> On Thu, Feb 26, 2015 at 7:02 PM, Dharshana Warusavitharana <
> dharsha...@wso2.com> wrote:
>
>> Hi Sameera,
>>
>> Will have a look.
>>
>> Thank you,
>> Dharshana.
>>
>> On Thu, Feb 26, 2015 at 6:56 PM, Sameera Jayasoma 
>> wrote:
>>
>>> Hi Folks,
>>>
>>> AS integration tests are failing in Java 8 due to $Subject. Following is
>>> the error.
>>>
>>> *java.lang.ClassFormatError: Illegal local variable table length 5 in
>>> method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.()V*
>>>
>>> Looks like Java 8 cannot understand the bytecode produced by
>>> instrumentations. We are using an older version of EMMA. I guess the
>>> generated bytecode does not compatible with Java 8.
>>>
>>> Automation Team, can we find a solution to this problem?
>>>
>>> Thanks,
>>> Sameera.
>>>
>>>
>>> [2015-02-26 15:05:04,157] ERROR
>>> {org.wso2.carbon.user.core.internal.Activator} -  Cannot start User Manager
>>> Core bundle
>>>
>>> *java.lang.ClassFormatError: Illegal local variable table length 5 in
>>> method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.()V*at
>>> java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Class.java:340)
>>> at
>>> org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1181)
>>> at
>>> org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1177)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>> org.wso2.carbon.context.internal.CarbonContextDataHolder.classForName(CarbonContextDataHolder.java:1177)
>>> at
>>> org.wso2.carbon.context.internal.CarbonContextDataHolder.access$700(CarbonContextDataHolder.java:94)
>>> at
>>> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContextFactoryBuilder.createInitialContextFactory(CarbonContextDataHolder.java:456)
>>> at
>>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:681)
>>> at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
>>> at
>>> javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:341)
>>> at javax.naming.InitialContext.lookup(InitialContext.java:417)
>>> at javax.naming.InitialContext.doLookup(InitialContext.java:290)
>>>
>>>
>>> --
>>> Sameera Jayasoma,
>>> Software Architect,
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://blog.sameera.org
>>> twitter: https://twitter.com/sameerajayasoma
>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>> Mobile: 0094776364456
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>>
>> Dharshana Warusavitharana
>> Senior Software Engineer , Test Automation
>> WSO2 Inc. http://wso2.com
>> email : dharsha...@wso2.com 
>> Tel  : +94 11 214 5345
>> Fax :+94 11 2145300
>> cell : +94770342233
>> blog : http://dharshanaw.blogspot.com
>>
>> lean . enterprise . middleware
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 

Dharshana Warusavitharana
Senior Software Engineer , Test Automation
WSO2 Inc. http://wso2.com
email : dharsha...@wso2.com 
Tel  : +94 11 214 5345
Fax :+94 11 2145300
cell : +94770342233
blog : http://dharshanaw.blogspot.com

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


Re: [Dev] SVN DepSync partially checkout with latest AS snapshot build

2015-02-26 Thread Maheeka Jayasuriya
Hi Manoj,

Yes I tried with the default adapter and for a svn 1.7.x server and that
worked fine for me. If possible please share the latest adapter for me to
give it a try.


Thanks,

Maheeka Jayasuriya
Software Engineer
Mobile : +9450661

On Thu, Feb 26, 2015 at 7:04 PM, Manoj Kumara  wrote:

> Hi Maheeka,
>
> I believe you have tested with the default svn-client-adapter. In next
> release we are planing to upgrade this to support svn 1.8.x. I was also
> able to test this with default pack. This seems to be some compatible issue
> with the latest adapter with the recent changed done on deployment
> synchronizer.
>
> Thanks,
> Manoj
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
> On Thu, Feb 26, 2015 at 6:33 PM, Maheeka Jayasuriya 
> wrote:
>
>> DepSync is working successfully in M7. Let me retry and see if I face any
>> issues as you mention and will get back.
>>
>>
>> Thanks,
>>
>> Maheeka Jayasuriya
>> Software Engineer
>> Mobile : +9450661
>>
>> On Thu, Feb 26, 2015 at 3:23 PM, Aruna Karunarathna 
>> wrote:
>>
>>> Hi Manoj,
>>>
>>> On Thu, Feb 26, 2015 at 3:14 PM, Manoj Kumara  wrote:
>>>
 Hi Team,

 With latest AS product with carbon-commons version 4.3.4 SVN deployment
 synchronizer seems to be not working with latest svnClientBundle-1.0.0.jar
 and svn-client-adapter-1.10.5.wso2v1.jar 1.7.x with svn versioned
 repository.

 After discussing with KasunG I replaced these jars with
 svnkit-1.3.9.wso2v1.jar and the default client adapter with a svn 1.6.x
 versioned repository everything seems to be working fine.

 I debugged the code and checked that the flow seems to be working fine
 and svn update() method get called on the client but the update happens
 partially.

 What could be the issue here.

>>>
>>> This was tested in ESB M7 by Maheeka, as I remember. So it should work
>>> for AS.
>>>
>>> Shall we revert the changes in  SVN deployment synchronizer changes, and
>>> try to isolate the issue?.
>>>

 Regards,
 Manoj

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


[Dev] Limitation in loading characters in UTF-8 using fmt:bundle in JSP page

2015-02-26 Thread Nuwan Wimalasekara
Hi
In SSO login page (authenticationendpoint.war) we are using fmt:bundle tag
to localise the text in pages. fmt tag use PropertyResourceBundle class[1]
itself to load the text and It reads the text in  ISO-8859-1. So unable to
handle the UTF-8 characters in resource properly. files

For an Example if we insert chinese characters(zh-cn) in Resource Bundle,
 Those characters are not displaying properly.

Ex: 电子邮件地址 are display like 电子邮件地址 in html page.

Is there any way to handle UTF-8 characters with fmt:bundle ?

One possible solution is to implement a own class to read the text in
resource bundle and use that class in jsp pages instead of fmt tag.


[1]
http://docs.oracle.com/javase/7/docs/api/java/util/PropertyResourceBundle.html#PropertyResourceBundle(java.io.InputStream)


Thanks,
Nuwanw

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

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


Re: [Dev] WSO2 BAM 3.0 M1 Released!

2015-02-26 Thread Thilini Cooray
Hi,

It is great to hear about BAM v3.0 milestone 1 release.

I would like to go through the documentation.
But the documentation for BAM v3.0 [1] returns "Page not found".

[1]
https://docs.wso2.com/display/BAM300/WSO2+Business+Activity+Monitor+Documentation

Thank you.

On Fri, Feb 27, 2015 at 5:57 AM, Anjana Fernando  wrote:

> The WSO2 BAM team is pleased to announce the first milestone release of
> WSO2 BAM v3.0. The distribution is available at [1]. The release includes
> the following new features.
> New Features
>
>- [BAM-1948 ] - Data
>Abstraction Layer for Analytics
>- [BAM-1949 ] - Spark SQL based
>Analytics Query Execution
>- [BAM-1950 ] - DataPublisher
>Rewrite
>- [BAM-1951 ] - RDBMS
>Datasource Support
>- [BAM-1952 ] - REST APIs for
>Analytics Data Service
>- [BAM-1953 ] - CLI like UI
>interface for Spark Integration
>
> The documentation for BAM v3.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/gihan/wso2bam-3.0.0-M1.zip
> [2]
> https://docs.wso2.com/display/BAM300/WSO2+Business+Activity+Monitor+Documentation
> [3] https://wso2.org/jira/browse/BAM
>
> - *WSO2 BAM Team*
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

Thilini Cooray
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : thili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Internal Server Error when using the REST API.

2015-02-26 Thread Mohammed Fawsan
Hi Gimantha,

It worked. Thanks a lot.

-Cheers

On Thu, Feb 26, 2015 at 5:35 PM, Gimantha Bandara  wrote:

> Hi Fawsan,
>
> Use JSON.Stringify on the data object submitted with POST.
>
> On Thu, Feb 26, 2015 at 4:04 PM, Mohammed Fawsan  wrote:
>
>> CORRECTION : The JS function looks like this.
>>
>> $(function(){
>> $("#loginform").submit(function(e){
>>
>> e.preventDefault();
>> //  var data = $("#loginform").serialize();
>>
>> var data =  {"username" : $("#username").val(),"password" : 
>> $("#password").val()};
>>
>> alert(JSON.stringify(data));
>>
>> $.ajax({
>> type: "POST",
>> url: 
>> "http://10.100.4.135:9763/dashboardConfigs/dashBoardConfigs/login ",
>> data: data,
>>
>> contentType: "application/json",
>> crossDomain : true,
>> dataType: "json",
>> success: function(data) {
>>
>> alert("success" + JSON.stringify(data));
>>
>> },
>> error:function(data){
>> alert('error : '+JSON.stringify(data));
>> }
>>
>> });
>>
>> });});
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Gimantha Bandara
> Software Engineer
> WSO2. Inc : http://wso2.com
> Mobile : +94714961919
>



-- 
Mohammed Fawsan
Software Engineering Intern,
Faculty of Engineering, University of Peradeniya.
+94771121195
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Creating a JAX-RS service project using WSO2 Developer Studio in eclipse

2015-02-26 Thread Chanaka Cooray
Hi,
I created a jax-rs service using the wso2 developer studio. I want to add
an external library to that project. I added that to the pom as a
dependency. But it is not working. Any help on this would be appreciated.

Thanks,
-- 
*Chanaka Sampath Cooray*
Software Engineering Intern,
WSO2 Lanka (pvt) Ltd.
Mobile:+94713614884
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Senduran Balasubramaniyam

2015-02-26 Thread Akalanka Pagoda Arachchi
Congratz Sendu

On Thu, Feb 26, 2015 at 11:20 PM, Kathees Rajendram 
wrote:

> Congratulations Senduran!
>
> On Thu, Feb 19, 2015 at 10:32 AM, Niranda Perera  wrote:
>
>> Congrats Senduran!
>>
>> On Thu, Feb 19, 2015 at 10:16 AM, Prasanna Dangalla 
>> wrote:
>>
>>> Congratulations Senduran!!!
>>>
>>> On Thu, Feb 19, 2015 at 10:15 AM, Thanuja Jayasinghe 
>>> wrote:
>>>
 Congratz Senduran..

 On Thu, Feb 19, 2015 at 10:11 AM, Dilan Udara Ariyaratne <
 dil...@wso2.com> wrote:

> Congratulations, Senduran!!!
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>
> On Thu, Feb 19, 2015 at 12:05 AM, Roshan Deniyage 
> wrote:
>
>> congrats !!!
>>
>> Roshan Deniyage
>> Associate Technical Lead
>> WSO2, Inc: http://wso2.com
>>
>> Mobile:  +94 777636406
>> Twitter:  *https://twitter.com/roshku
>> *
>> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>>
>>
>> On Wed, Feb 18, 2015 at 11:57 PM, Chanuka Dissanayake <
>> chan...@wso2.com> wrote:
>>
>>> Congratulations Senduran..!
>>>
>>> On Wed, Feb 18, 2015 at 11:36 PM, Samith Dassanayake <
>>> sam...@wso2.com> wrote:
>>>
 Congratz Senduran!

 On Wed, Feb 18, 2015 at 10:25 PM, Srisunmugaraja Paraparan <
 parapa...@wso2.com> wrote:

> Congratulations Senduran .
>
> On Wed, Feb 18, 2015 at 10:12 PM, Ravi Undupitiya 
> wrote:
>
>> Congratulations Senduran!
>>
>> On Wed, Feb 18, 2015 at 3:36 AM, Kasun Indrasiri 
>> wrote:
>>
>>> Hi devs,
>>>
>>> Its my pleasure to welcome Senduran Balasubramaniyam as a WSO2
>>> Committer.
>>>
>>> Senduran, welcome aboard and keep up the good work!
>>>
>>> Thanks.
>>>
>>> --
>>> Kasun Indrasiri
>>> Software Architect
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> cell: +94 77 556 5206
>>> Blog : http://kasunpanorama.blogspot.com/
>>>
>>
>>
>>
>> --
>> *Ravi Undupitiya*
>> Senior Software Engineer; WSO2 http://wso2.com
>>
>>
>> *E-mail: r...@wso2.com **M: **+94 772 930 712
>> <%2B94%C2%A0772%20930%20712>*
>>
>> Lean . Enterprise . Middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards
> --
> Srisunmugaraja Paraparan
> Software Engineer,
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email : parapa...@wso2.com, mobile : +94 77 0362151
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Best Regards

 Samith Dassanayake
 Software Engineer | Cloud TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +947 76207351

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


>>>
>>>
>>> --
>>> Chanuka Dissanayake
>>> *Software Engineer | **WSO2 Inc.*; http://wso2.com
>>>
>>> Mobile: +94 71 33 63 596
>>> Email: chan...@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
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Thanuja Lakmal*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94715979891 +94758009992

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


>>>
>>>
>>> --
>>> Prasanna Dangalla
>>> Software Engineer, WSO2, Inc.; http://wso2.com/
>>> lean.enterprise.middleware
>>>
>>> cell: +94 777 55 80 30 | +94 718 11 27 51
>>> twitter: @prasa77
>>>
>>> _

Re: [Dev] Creating a JAX-RS service project using WSO2 Developer Studio in eclipse

2015-02-26 Thread Awanthika Senarath
Hi Chanaka,

AFAIK you need to clean the project and trigger a build to get it, it
should work that way. Anyways could you please share the stack trace you
are getting?

also you can refer [1] on this as well..


[1]
http://stackoverflow.com/questions/2037188/how-to-configure-eclipse-build-path-to-use-maven-dependencies

On Fri, Feb 27, 2015 at 8:59 AM, Chanaka Cooray  wrote:

> Hi,
> I created a jax-rs service using the wso2 developer studio. I want to add
> an external library to that project. I added that to the pom as a
> dependency. But it is not working. Any help on this would be appreciated.
>
> Thanks,
> --
> *Chanaka Sampath Cooray*
> Software Engineering Intern,
> WSO2 Lanka (pvt) Ltd.
> Mobile:+94713614884
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Lucene and Solr bundles package conflicts

2015-02-26 Thread Danesh Kuruppu
Hi Supun/ Gokul,

No, this is not yet fixed. As we are decided to move to java 8. we are
currently having feasibility study of moving to solr 5.0.

Will update you soon.

Thanks
Danesh

On Thu, Feb 26, 2015 at 9:16 PM, Supun Sethunga  wrote:

> Hi,
>
> Is this fixed? We are facing the same issue in ML product as well.
>
> Thanks,
> Supun
>
> On Tue, Feb 24, 2015 at 1:14 PM, Gokul Balakrishnan 
> wrote:
>
>> Hi Danesh,
>>
>> Is there any update on the status of the above, because we'll have to
>> attend to this before our M1 release?
>>
>> Thanks,
>>
>>
>>
>> On 4 February 2015 at 22:54, Danesh Kuruppu  wrote:
>>
>>> Hi Gimantha,
>>>
>>> Sorry for the delay in responding.
>>> Problem seems to be when importing packages in registry-indexing, There
>>> we have imported lucene package as [1]. which will look for version 2.9.3
>>> or upper.
>>>
>>> 1. org.apache.lucene.*;version="2.9.3"
>>>
>>> https://github.com/wso2-dev/carbon-registry/blob/master/components/registry/org.wso2.carbon.registry.indexing/pom.xml
>>>
>>> This issue will be fixed with Apache Solr update [2] where we export
>>> only solr package and lucene package will bundle inside. We are not going
>>> import lucene package from registry-indexing.
>>>
>>> 2. https://github.com/wso2/orbit/pull/47/files
>>>
>>> Thanks
>>> Danesh
>>>
>>>
>>> On Mon, Feb 2, 2015 at 1:43 PM, Gimantha Bandara 
>>> wrote:
>>>


 On Mon, Feb 2, 2015 at 1:08 PM, Gimantha Bandara 
 wrote:

> Hi,
>
> For carbon-analytics, the lucene version we use, is 4.10.3 (
> 4.10.3.wso2v1) which is the latest. For carbon registry indexing and 
> search
> functionalities, Solris used, which depends on lucene. we are facing the
> following issue when we install the carbon-analytics features because of
> two missing classes.
>
> 1).
>
> Exception in thread "Thread-16" java.lang.NoClassDefFoundError:
> org/apache/lucene/search/Searcher
> at org.apache.solr.core.SolrConfig.(SolrConfig.java:166)
> at
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
> at
> org.wso2.carbon.registry.indexing.solr.SolrClient.(SolrClient.java:90)
> at
> org.wso2.carbon.registry.indexing.solr.SolrClient.getInstance(SolrClient.java:98)
> at
> org.wso2.carbon.registry.indexing.AsyncIndexer.(AsyncIndexer.java:93)
> at
> org.wso2.carbon.registry.indexing.IndexingManager.(IndexingManager.java:69)
> at
> org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:78)
> 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.search.Searcher
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
> 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:356)
> ... 12 more
>
> 2).
>
> Exception in thread "Thread-18" java.lang.NoClassDefFoundError:
> org/apache/lucene/index/FilterIndexReader
>
> 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:632)
>
> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.
> defineClass(ClasspathManager.java:607)
>
> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(
> ClasspathManager.java:568)
>
> 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)
>>

Re: [Dev] Creating a JAX-RS service project using WSO2 Developer Studio in eclipse

2015-02-26 Thread Chanaka Cooray
Hi Awanthika,
I did mvn clean install command to build the target .war file, It seems
that output .war file doesn't contain the external libraries. Here the
stacktrace I'm getting.

java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonGenerationException
>   java.lang.Class.getDeclaredConstructors0(Native Method)
>   java.lang.Class.privateGetDeclaredConstructors(Class.java:2585)
>   java.lang.Class.getConstructor0(Class.java:2885)
>   java.lang.Class.getDeclaredConstructor(Class.java:2058)
>   
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
>   
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
>   
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
>   
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
>   
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>   
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>   
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>   
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>   
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
>   
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
>   
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
>   
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
>   
> org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:160)
>   org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
>   
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:71)
>   
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>   
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>   
> org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43)
>   
> org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
>   
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>   
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>   
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>   
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>   
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>   
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>   
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>   
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>   
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>   
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>   
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>   
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>   
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   java.lang.Thread.run(Thread.java:745)
>
>
Thanks,

On Fri, Feb 27, 2015 at 9:14 AM, Awanthika Senarath 
wrote:

> Hi Chanaka,
>
> AFAIK you need to clean the project and trigger a build to get it, it
> should work that way. Anyways could you please share the stack trace you
> are getting?
>
> also you can refer [1] on this as well..
>
>
> [1]
> http://stackoverflow.com/questions/2037188/how-to-configure-eclipse-build-path-to-use-maven-dependencies
>
> On Fri, Feb 27, 2015 at 8:59 AM, Chanaka Cooray  wrote:
>
>> Hi,
>> I created a jax-rs service using the wso2 developer studio. I want to add
>> an external library to that project. I added that to the pom as a
>> dependency. But it is not working. Any help on this would be appreciated.
>>
>> Thanks,
>> --
>> *Chanaka Samp

Re: [Dev] Supporting blocking calls in Call mediator

2015-02-26 Thread Kathees Rajendram
Hi Isuru,

I will additionally add the following section for blocking functionality in
call mediator.



Thanks
Kathees
​

On Thu, Feb 26, 2015 at 10:48 AM, Kathees Rajendram 
wrote:

> Hi Isuru,
>
> I have implemented the blocking functionality in call mediator.
>
> Please find the pull request [1] for wso2-synapse
>
> [1] - https://github.com/wso2/wso2-synapse/pull/93
>
> Thanks,
> Kathees
>
> On Wed, Feb 25, 2015 at 5:06 PM, Kathees Rajendram 
> wrote:
>
>> Hi Isuru,
>>
>> Endpoint with key is not handled in BlockingSender.I will introduce the
>> changes in BlockingSender.
>>
>> Thanks,
>> kathees
>>
>> On Wed, Feb 25, 2015 at 4:26 PM, Isuru Udana  wrote:
>>
>>> Hi Kathees,
>>>
>>> If you find this not working, please introduce this change to the
>>> BlockingMsgSender but not the Call Mediator. So that all the components
>>> using BlockingMsgSender will inherit this.
>>>
>>> Thanks.
>>>
>>>
>>> On Wed, Feb 25, 2015 at 4:14 PM, Isuru Udana  wrote:
>>>
 Hi Kathees,

 On Tue, Feb 24, 2015 at 4:00 PM, Kathees Rajendram 
 wrote:

> Hi Isuru,
>
> The blocking is working in the following synapse configuration.
>
> 
> 
>http://localhost:9000/services/SimpleStockQuoteService"/>
> 
>  
>
> but I want to add the blocking in the following configuration also, as
> it is in call mediator.
>
> 
>
>  
>
 I do not think you need to explicitly handle this. AFAIR
 BlockingMsgSender handles the IndirectEndpoint so no extra work needed.

>>>
 Thanks.

>
>
> 
>http://localhost:9000/services/SimpleStockQuoteService"/>
>  
>
>
> Thanks,
> Kathees
>
>
> On Tue, Feb 24, 2015 at 3:14 PM, Isuru Udana  wrote:
>
>> Hi Kathees,
>>
>>
>>
>> On Tue, Feb 24, 2015 at 3:06 PM, Kathees Rajendram 
>> wrote:
>>
>>> Hi,
>>>
>>> The call mediator blocking is working with direct endpoint. I want
>>> to write logic with endpoint key and Xpath. We can't use the existing
>>> functionality for blocking as it is in call mediator.
>>>
>> Could you please clarify what you mean by xpath here ?
>> If you meant getting Source/Target xpath expressions in Callout
>> mediator options into Call mediator, that is not required at all. Same 
>> for
>> the endpoint key as well.
>> Let's stick to the above discussed configuration syntax and
>> functionality.
>>
>> Thanks.
>>
>>
>>>
>>> Thanks,
>>> Kathees
>>> --
>>> Kathees
>>> Software Engineer,
>>> email: kath...@wso2.com
>>> mobile: +94772596173
>>>
>>
>>
>>
>> --
>> *Isuru Udana*
>> Senior
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> email: isu...@wso2.com cell: +94 77 3791887
>> blog: http://mytecheye.blogspot.com/
>> twitter: http://twitter.com/isudana
>>
>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>



 --
 *Isuru Udana*
 Senior
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/
 twitter: http://twitter.com/isudana

>>>
>>>
>>>
>>> --
>>> *Isuru Udana*
>>> Senior
>>> *Software Engineer*
>>> WSO2 Inc.; http://wso2.com
>>> email: isu...@wso2.com cell: +94 77 3791887
>>> blog: http://mytecheye.blogspot.com/
>>> twitter: http://twitter.com/isudana
>>>
>>
>>
>>
>> --
>> Kathees
>> Software Engineer,
>> email: kath...@wso2.com
>> mobile: +94772596173
>>
>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>



-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Senduran Balasubramaniyam

2015-02-26 Thread Lasitha Wattaladeniya
Congratulations !

On Fri, Feb 27, 2015 at 9:12 AM, Akalanka Pagoda Arachchi <
darsha...@wso2.com> wrote:

> Congratz Sendu
>
> On Thu, Feb 26, 2015 at 11:20 PM, Kathees Rajendram 
> wrote:
>
>> Congratulations Senduran!
>>
>> On Thu, Feb 19, 2015 at 10:32 AM, Niranda Perera 
>> wrote:
>>
>>> Congrats Senduran!
>>>
>>> On Thu, Feb 19, 2015 at 10:16 AM, Prasanna Dangalla 
>>> wrote:
>>>
 Congratulations Senduran!!!

 On Thu, Feb 19, 2015 at 10:15 AM, Thanuja Jayasinghe 
 wrote:

> Congratz Senduran..
>
> On Thu, Feb 19, 2015 at 10:11 AM, Dilan Udara Ariyaratne <
> dil...@wso2.com> wrote:
>
>> Congratulations, Senduran!!!
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> On Thu, Feb 19, 2015 at 12:05 AM, Roshan Deniyage 
>> wrote:
>>
>>> congrats !!!
>>>
>>> Roshan Deniyage
>>> Associate Technical Lead
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile:  +94 777636406
>>> Twitter:  *https://twitter.com/roshku
>>> *
>>> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>>>
>>>
>>> On Wed, Feb 18, 2015 at 11:57 PM, Chanuka Dissanayake <
>>> chan...@wso2.com> wrote:
>>>
 Congratulations Senduran..!

 On Wed, Feb 18, 2015 at 11:36 PM, Samith Dassanayake <
 sam...@wso2.com> wrote:

> Congratz Senduran!
>
> On Wed, Feb 18, 2015 at 10:25 PM, Srisunmugaraja Paraparan <
> parapa...@wso2.com> wrote:
>
>> Congratulations Senduran .
>>
>> On Wed, Feb 18, 2015 at 10:12 PM, Ravi Undupitiya 
>> wrote:
>>
>>> Congratulations Senduran!
>>>
>>> On Wed, Feb 18, 2015 at 3:36 AM, Kasun Indrasiri >> > wrote:
>>>
 Hi devs,

 Its my pleasure to welcome Senduran Balasubramaniyam as a WSO2
 Committer.

 Senduran, welcome aboard and keep up the good work!

 Thanks.

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

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

>>>
>>>
>>>
>>> --
>>> *Ravi Undupitiya*
>>> Senior Software Engineer; WSO2 http://wso2.com
>>>
>>>
>>> *E-mail: r...@wso2.com **M: **+94 772 930 712
>>> <%2B94%C2%A0772%20930%20712>*
>>>
>>> Lean . Enterprise . Middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks & Regards
>> --
>> Srisunmugaraja Paraparan
>> Software Engineer,
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> email : parapa...@wso2.com, mobile : +94 77 0362151
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards
>
> Samith Dassanayake
> Software Engineer | Cloud TG
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +947 76207351
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Chanuka Dissanayake
 *Software Engineer | **WSO2 Inc.*; http://wso2.com

 Mobile: +94 71 33 63 596
 Email: chan...@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
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Thanuja Lakmal*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94715979891 +94758009992
>
> ___
> Dev mailing list
> Dev@wso2.org
> ht

Re: [Dev] Registry related tenant data deletion

2015-02-26 Thread Kishanthan Thangarajah
Hi Senaka,

We have an approach known as TenantMgtListener, where all the registered
listeners will get notified when a tenant is created or deleted. There are
methods (onPreDelete, onPostDelete, etc) that gets called by the tenant-mgt
core component during tenant deletion. So for all component specific data
deletion, we can use this listener approach. And from tenant-mgt/kernel
point of view, we only have to deal with the kernel level registry data,
when deleting a tenant.

@Shashika, can we have an update on this please? Where are we with registry
level tenant data deletion?

On Wed, Feb 25, 2015 at 7:35 PM, Senaka Fernando  wrote:

> Hi Shashika,
>
> So do you plan to create API methods on a per kernel component and per
> product component basis? I would find that rather scattered and hard to
> maintain. Though this looks justifiable from a kernel's point of view how
> would you repeat the same at a component level? My thought was that you'd
> be creating some new or adding to an existing component and you'll
> aggregate all tenant clean-up functionality in there making it easier to
> execute cross component operations. But, this is my personal viewpoint and
> it could be that I'm missing something.
>
> Thanks,
> Senaka.
>
> On Wed, Feb 25, 2015 at 10:21 AM, Shashika Karunatilaka <
> shashi...@wso2.com> wrote:
>
>> HI Senaka,
>>
>> Main reason for putting this method inside the kernel is, because when
>> creating a tenant all the user management data addition resides inside the
>> kernel, and all the registry related data addition reside inside the. and
>> each data deletion methods also reside inside the kernel, so this is the
>> main reason for putting this method inside kernel to delete all the tenant
>> registry data
>>
>> Thank you.
>>
>> On Wed, Feb 25, 2015 at 2:39 PM, Senaka Fernando  wrote:
>>
>>> Shashika,
>>>
>>> Apart from whatever tool that you build (again for a specific tenant
>>> administration purpose), who else will need to invoke this API method? My
>>> feeling is that this method does not belong inside the registry kernel or
>>> components. WDYT?
>>>
>>> Thanks,
>>> Senaka.
>>>
>>>
>>> On Wed, Feb 25, 2015 at 3:18 AM, Shashika Karunatilaka <
>>> shashi...@wso2.com> wrote:
>>>
 Hi Senaka/all

 To do delete the DB related data one option is to add a new method to
 registry api called deleteAllTenantData(or suitable one) so i have to
 implement this method on every dependent registry classes, Is it ok to
 introduce new method to registry api?

 As i see when deleting a registry resources it goes to
 UserRegistry->CacheBackRegistry->EmbeddedRegistry and it calls data
 deletion DAOs. So in my case do i need to go through this flow to delete
 the DB data or is it enough calling the DB queries in UserRegistry tenant
 data deletion method

 Also i have another concern, as an example let say there is an
 association related operation  so to do that it will go above process I
 mentioned and call the DAOs, those DAOs are implemented in a structural
 manner where JDBCAssociationDAO implemented all the AssociationDAO
 operation, in my case do i need to adhere to above structure where adding
 all the registry related table data deletion methods to interface and
 implement it or else is it ok to call the queries directly?

 Thank you.

 On Tue, Feb 24, 2015 at 10:52 AM, Danesh Kuruppu 
 wrote:

> Hi Shashika,
>
> In solr indexing, we store the resource by its tenant_id
> (indexed_document_id = resourcePath + "tenant" + tenantId)
>
> e.g: Assume you stored resource from the tenant1, indexed document id
> looks like below,
>
> "id": "/_system/governance/services/aaa/aaa/1.0.0*tenantId1*"
>
> You can get all resource store under tenantId using wildcard search.
>
> id:**tenantId1*
>>
>
> In Solr server, they have provided an api to delete by query.
>
> deleteByQuery(String query)
>>
>
> We can write new method in SolrClient to support this and call it from
> your component. Currently we only support delete index by resource id 
> where
> we need resource path.
>
> Thanks
> Danesh
>
> On Mon, Feb 23, 2015 at 7:14 PM, Senaka Fernando 
> wrote:
>
>> Hi Shashika,
>>
>> I believe this is the only way to do this. There are several things
>> to note here.
>>
>> 1. In memory data - Ideally unloading the tenant should clean-up all
>> of this and if it does not there is an issue.
>> 2. DB data - all the tables have a tenant-id column. What you need is
>> a query to delete all records matching that tenant id.
>> 3. Solr Index etc and Registry Extensions deployed on the Filesystem
>> - These should be in corresponding folder/files structures either having 
>> a
>> tenant id or tenant domain. I don't recall this is as X, Y, and Z and I

Re: [Dev] Creating a JAX-RS service project using WSO2 Developer Studio in eclipse

2015-02-26 Thread Awanthika Senarath
Hi Chanaka,

Adding the dependency to the pom.file alone will not ensure that it gets
packed into the war ouput .

 As explained in [1] you need to have the subject jar in the
project/WEB-INF/lib folder in order to get it packed into your war file.
You can refer [2] to see how to get this done . As to put it in to the
specific location you can use the plugin at [3] . This will copy all your
dependencies to the desired location which will ensure that it gets packed
to your war file.

[1]
http://stackoverflow.com/questions/6496560/where-should-i-put-external-jar-files-when-developing-a-web-app

[2]
http://stackoverflow.com/questions/97640/force-maven2-to-copy-dependencies-into-target-lib

[3] 
maven-dependency-plugin
2.1


copy-dependencies
process-sources

copy-dependencies


lib <--- the output directory you want
the jars to be packed
false
false
true
true
runtime






regards
Awanhtika

On Fri, Feb 27, 2015 at 9:27 AM, Chanaka Cooray  wrote:

> Hi Awanthika,
> I did mvn clean install command to build the target .war file, It seems
> that output .war file doesn't contain the external libraries. Here the
> stacktrace I'm getting.
>
> java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonGenerationException
>>  java.lang.Class.getDeclaredConstructors0(Native Method)
>>  java.lang.Class.privateGetDeclaredConstructors(Class.java:2585)
>>  java.lang.Class.getConstructor0(Class.java:2885)
>>  java.lang.Class.getDeclaredConstructor(Class.java:2058)
>>  
>> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
>>  
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
>>  
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
>>  
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
>>  
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>>  
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>>  
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>  
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>>  
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
>>  
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
>>  
>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
>>  
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
>>  
>> org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:160)
>>  org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
>>  
>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:71)
>>  
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>  
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>  
>> org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43)
>>  
>> org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
>>  
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>>  
>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>  
>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>  
>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>  
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>>  
>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>>  
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>>  
>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>>  
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>>  
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>>  
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>>  
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcess

Re: [Dev] Jaggery server.address support in CEP 4.0.0

2015-02-26 Thread Sabra Ossen
Hi,

I tried it. But it returns "https://null:9443"; as the server address, I
have shown the code segment below. The host variable is null.

var carbon = require('carbon');

var getAddress = function(transport){
 var process = require("process"),
 host = process.getProperty('server.host'),
 ip = process.getProperty('carbon.local.ip');
 var log = new Log();
 var port;
 if(transport=="http"){
  port = process.getProperty('mgt.transport.http.proxyPort');
  if(!port){
   //can use http.port as well
   port = process.getProperty('mgt.transport.http.port');
  }
 }else if(transport=="https"){
  port = process.getProperty('mgt.transport.https.proxyPort');
  if(!port){
   //can use https.port as well
   port = process.getProperty('mgt.transport.https.port');
  }
 }
 var postUrl;
 if(host=="localhost"){
  postUrl  = "https://"; + ip + ":" + port;
 }else{
  postUrl = "https://"; + host+ ":" +port;
 }
 return postUrl;
}

print(getAddress('https'));
print('');
print(carbon.server.tenantDomain());
print('');
print(carbon.server.tenantId());
print('');
print(carbon.server.tenantUser('admin'));
print('');


On Thu, Feb 26, 2015 at 5:39 PM, Inshaf Mahath  wrote:

> Hi Sabra,
>
> You can try [1] sample to get the runtime server address.
>
> [1] - https://gist.github.com/dulichan/9577696
>
>
>
>
> On Thu, Feb 26, 2015 at 5:33 PM, Sabra Ossen  wrote:
>
>> Hi,
>>
>> I am getting the following error when trying to run the jaggery sample
>> [1] in WSO2 CEP 4.0.0. The mentioned sample runs fine in WSO2 CEP 3.1.0.
>>
>> [2015-02-26 17:18:52,580] ERROR - {WebAppManager}
>>  org.mozilla.javascript.EcmaError: TypeError: Cannot find function address
>> in object [object Object]. (/Test//index.jag#12)
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.EcmaError: TypeError: Cannot find function address
>> in object [object Object]. (/Test//index.jag#12)
>> at
>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
>> at
>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>> at
>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:559)
>> at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
>> at
>> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>> at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>> at
>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>> at
>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
>> at
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>> at
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
>> at
>> org.apache.coyote.Abst

[Dev] [BAM] Facing an error while creating dashboard according to the Quick Start Guide

2015-02-26 Thread Lakshani Gamage
Hi ,
When I'm trying to create a dashboard according to [1], I got following pop
up box. Although, I gave all the compulsory fields. No back end exceptions
observed.
Is there any reason?

[image: Inline image 1]

[1] - https://docs.wso2.com/display/BAM250/Quick+Start+Guide

Thank you.

-- 
Lakshani Gamage

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


[Dev] [BAM] Facing an error while creating dashboard according to the Quick Start Guide

2015-02-26 Thread Lakshani Gamage
Hi ,
When I'm trying to create a dashboard according to [1], I got following
pop-up message. Although, I gave all the compulsory fields. No back end
exceptions observed.
Is there any reason?

[image: Inline image 1]

[1] - https://docs.wso2.com/display/BAM250/Quick+Start+Guide

Thank you.


-- 
Lakshani Gamage

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


Re: [Dev] wso2 ESB error accessing https proxy service - No subject alternative names present

2015-02-26 Thread Udara Liyanage
Hi,

Can you try by adding following parameter to the proxy configuration

true

On Thu, Feb 19, 2015 at 3:42 PM, Akila Nimantha [IT/EKO/LOITS] <
aki...@lolctech.com> wrote:

>  *Hi all,*
>
>
>
> *I'm trying to create a proxy service where the endpoint URL uses HTTPS
> and uses a ip address instead of a fqdn. I've done the following steps*
>
>
>
> *imported the certificate to
> /repository/resources/security/client-truststore.jks*
>
>
>
> *set the parameter AllowAll*
>
> *in PassThroughHttpSender,PassThroughHttpSSLSender*
>
>
>
> *but getting the following error message. what should I do to overcome
> this problem.*
>
>
>
> TID: [0] [ESB] [2015-02-19 15:11:24,203] ERROR
> {org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin} -  Error trying to
> add the proxy service to the ESB configuration : dd :: Error reading from
> wsdl URI {org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin}
>
> org.apache.synapse.SynapseException: Error reading from wsdl URI
>
> at
> org.apache.synapse.core.axis2.ProxyService.handleException(ProxyService.java:856)
>
> at
> org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:330)
>
> at
> org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin.addProxyService(ProxyServiceAdmin.java:237)
>
> at
> org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin.addProxy(ProxyServiceAdmin.java:656)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:606)
>
> at
> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
>
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>
> at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
>
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
>
> at
> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
>
> at
> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
>
> at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>
> at
> org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub.addProxy(ProxyServiceAdminStub.java:1272)
>
> at
> org.wso2.carbon.proxyadmin.ui.client.ProxyServiceAdminClient.addProxy(ProxyServiceAdminClient.java:102)
>
> at
> org.apache.jsp.proxyservices.template_005fpass_002dthrough_jsp._jspService(org.apache.jsp.proxyservices.template_005fpass_002dthrough_jsp:226)
>
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
>
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
> at
> org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>
> at
> org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(Pr

Re: [Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?

2015-02-26 Thread Sanjeewa Malalgoda
On Fri, Feb 27, 2015 at 3:29 AM, Ajith Vitharana  wrote:

>
>
> On Thu, Feb 26, 2015 at 4:17 PM, Prabath Siriwardena 
> wrote:
>
>> Yes.. but blocking wont allow you to delete it..
>>
>
> Yes. Currently  no clean approach to delete it.
>
> But this is a workaround:
>
> 1. Change the LC sate to BLOCKED .
> 2. Logged  in to the Carbon Admin UI
> 3. Home -> Metadata -> List -> APIs and delete that API, then API
> will disappear from publisher.
>
This is completely wrong. We should never recommend this to anyone.  API
store may completely unusable due to this[1].

[1]
http://sanjeewamalalgoda.blogspot.com/2014/03/how-to-fix-issue-in-wso2-api-manager.html


Thanks,
sanjeewa.

>
> Only problem is publisher doesn't allow  you again to create API with same
> name and context.  Because when you delete the API from Admin UI, it only
> delete the API from registry database and AM database still remain the AM
> metadata(name, context ...etc).
>
> -Ajith
>
>
>>
>> Thanks & regards,
>> -Prabath
>>
>>
>> On Thu, Feb 26, 2015 at 1:15 PM, Ajith Vitharana  wrote:
>>
>>>
>>>
>>> On Thu, Feb 26, 2015 at 4:04 PM, Prabath Siriwardena 
>>> wrote:
>>>
 Thanks..! But who has to remove the subscriptions...? Is it the one who
 subscribed..?

>>>
>>>  Currently yes. But I understand that ,  it is not possible when we have
>>> lots of user subscriptions.
>>>
>>>
 I think there needs to be a way to remove an API by the API Publisher...

>>>
>>> So, without deleting the the API we can make the LC state to BLOCKED in
>>> publisher.
>>>
>>> -Ajith
>>>
>>>

 Thanks & regards,
 -Prabath

 On Thu, Feb 26, 2015 at 1:00 PM, Ajith Vitharana 
 wrote:

>
> Hi Prabath,
>
> AFAIK, It can't do from publisher, first we need to remove the
> subscription from store , then delete from publisher.
>
> -Ajith
>
> On Thu, Feb 26, 2015 at 3:55 PM, Prabath Siriwardena  > wrote:
>
>> $subject...
>>
>>
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +1 650 625 7950
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +1-812-360-5335
>
>


 --
 Thanks & Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +1 650 625 7950

 http://blog.facilelogin.com
 http://blog.api-security.org

>>>
>>>
>>>
>>> --
>>> Ajith Vitharana.
>>> WSO2 Inc. - http://wso2.org
>>> Email  :  aji...@wso2.com
>>> Mobile : +1-812-360-5335
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +1 650 625 7950
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +1-812-360-5335
>
>


-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

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

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


Re: [Dev] Registry related tenant data deletion

2015-02-26 Thread Shashika Karunatilaka
HI Kishanthan,

Currently i have done some implementation on registry related data
deletion, removing solr indexes. But there are scenarios i have to consider
where deleting registry related data in mounted environment.

Thank you.

On Fri, Feb 27, 2015 at 10:00 AM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

> Hi Senaka,
>
> We have an approach known as TenantMgtListener, where all the registered
> listeners will get notified when a tenant is created or deleted. There are
> methods (onPreDelete, onPostDelete, etc) that gets called by the tenant-mgt
> core component during tenant deletion. So for all component specific data
> deletion, we can use this listener approach. And from tenant-mgt/kernel
> point of view, we only have to deal with the kernel level registry data,
> when deleting a tenant.
>
> @Shashika, can we have an update on this please? Where are we with
> registry level tenant data deletion?
>
> On Wed, Feb 25, 2015 at 7:35 PM, Senaka Fernando  wrote:
>
>> Hi Shashika,
>>
>> So do you plan to create API methods on a per kernel component and per
>> product component basis? I would find that rather scattered and hard to
>> maintain. Though this looks justifiable from a kernel's point of view how
>> would you repeat the same at a component level? My thought was that you'd
>> be creating some new or adding to an existing component and you'll
>> aggregate all tenant clean-up functionality in there making it easier to
>> execute cross component operations. But, this is my personal viewpoint and
>> it could be that I'm missing something.
>>
>> Thanks,
>> Senaka.
>>
>> On Wed, Feb 25, 2015 at 10:21 AM, Shashika Karunatilaka <
>> shashi...@wso2.com> wrote:
>>
>>> HI Senaka,
>>>
>>> Main reason for putting this method inside the kernel is, because when
>>> creating a tenant all the user management data addition resides inside the
>>> kernel, and all the registry related data addition reside inside the. and
>>> each data deletion methods also reside inside the kernel, so this is the
>>> main reason for putting this method inside kernel to delete all the tenant
>>> registry data
>>>
>>> Thank you.
>>>
>>> On Wed, Feb 25, 2015 at 2:39 PM, Senaka Fernando 
>>> wrote:
>>>
 Shashika,

 Apart from whatever tool that you build (again for a specific tenant
 administration purpose), who else will need to invoke this API method? My
 feeling is that this method does not belong inside the registry kernel or
 components. WDYT?

 Thanks,
 Senaka.


 On Wed, Feb 25, 2015 at 3:18 AM, Shashika Karunatilaka <
 shashi...@wso2.com> wrote:

> Hi Senaka/all
>
> To do delete the DB related data one option is to add a new method to
> registry api called deleteAllTenantData(or suitable one) so i have to
> implement this method on every dependent registry classes, Is it ok to
> introduce new method to registry api?
>
> As i see when deleting a registry resources it goes to
> UserRegistry->CacheBackRegistry->EmbeddedRegistry and it calls data
> deletion DAOs. So in my case do i need to go through this flow to delete
> the DB data or is it enough calling the DB queries in UserRegistry tenant
> data deletion method
>
> Also i have another concern, as an example let say there is an
> association related operation  so to do that it will go above process I
> mentioned and call the DAOs, those DAOs are implemented in a structural
> manner where JDBCAssociationDAO implemented all the AssociationDAO
> operation, in my case do i need to adhere to above structure where adding
> all the registry related table data deletion methods to interface and
> implement it or else is it ok to call the queries directly?
>
> Thank you.
>
> On Tue, Feb 24, 2015 at 10:52 AM, Danesh Kuruppu 
> wrote:
>
>> Hi Shashika,
>>
>> In solr indexing, we store the resource by its tenant_id
>> (indexed_document_id = resourcePath + "tenant" + tenantId)
>>
>> e.g: Assume you stored resource from the tenant1, indexed document id
>> looks like below,
>>
>> "id": "/_system/governance/services/aaa/aaa/1.0.0*tenantId1*"
>>
>> You can get all resource store under tenantId using wildcard search.
>>
>> id:**tenantId1*
>>>
>>
>> In Solr server, they have provided an api to delete by query.
>>
>> deleteByQuery(String query)
>>>
>>
>> We can write new method in SolrClient to support this and call it
>> from your component. Currently we only support delete index by resource 
>> id
>> where we need resource path.
>>
>> Thanks
>> Danesh
>>
>> On Mon, Feb 23, 2015 at 7:14 PM, Senaka Fernando 
>> wrote:
>>
>>> Hi Shashika,
>>>
>>> I believe this is the only way to do this. There are several things
>>> to note here.
>>>
>>> 1. In memory data - Ideally unloading the tenant sho

Re: [Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?

2015-02-26 Thread Ajith Vitharana
On Thu, Feb 26, 2015 at 11:37 PM, Sanjeewa Malalgoda 
wrote:

>
>
> On Fri, Feb 27, 2015 at 3:29 AM, Ajith Vitharana  wrote:
>
>>
>>
>> On Thu, Feb 26, 2015 at 4:17 PM, Prabath Siriwardena 
>> wrote:
>>
>>> Yes.. but blocking wont allow you to delete it..
>>>
>>
>> Yes. Currently  no clean approach to delete it.
>>
>> But this is a workaround:
>>
>> 1. Change the LC sate to BLOCKED .
>> 2. Logged  in to the Carbon Admin UI
>> 3. Home -> Metadata -> List -> APIs and delete that API, then API
>> will disappear from publisher.
>>
> This is completely wrong. We should never recommend this to anyone.  API
> store may completely unusable due to this[1].
>
> [1]
> http://sanjeewamalalgoda.blogspot.com/2014/03/how-to-fix-issue-in-wso2-api-manager.html
>
>

It is not not completely wrong to delete *the API having subscriptions*
  :). Only thing is 4th and 5th steps is missing .

   4.) Find the API data from AM database and delete.
   5.) Go to
the wso2am-1.8.0/repository/deployment/server/synapse-configs/default/api
and delete the API artifact.

Your blog post described *how to recover an API*, But what I have mentioned
here is *how to delete an API which is having user subscriptions*(without
removing subscriptions one by one  from  store). Hope it is clear now. Am I
missed anything ?

-Ajith

>
> Thanks,
> sanjeewa.
>
>>
>> Only problem is publisher doesn't allow  you again to create API with
>> same name and context.  Because when you delete the API from Admin UI, it
>> only delete the API from registry database and AM database still remain the
>> AM metadata(name, context ...etc).
>>
>> -Ajith
>>
>>
>>>
>>> Thanks & regards,
>>> -Prabath
>>>
>>>
>>> On Thu, Feb 26, 2015 at 1:15 PM, Ajith Vitharana 
>>> wrote:
>>>


 On Thu, Feb 26, 2015 at 4:04 PM, Prabath Siriwardena 
 wrote:

> Thanks..! But who has to remove the subscriptions...? Is it the one
> who subscribed..?
>

  Currently yes. But I understand that ,  it is not possible when we
 have lots of user subscriptions.


> I think there needs to be a way to remove an API by the API
> Publisher...
>

 So, without deleting the the API we can make the LC state to BLOCKED in
 publisher.

 -Ajith


>
> Thanks & regards,
> -Prabath
>
> On Thu, Feb 26, 2015 at 1:00 PM, Ajith Vitharana 
> wrote:
>
>>
>> Hi Prabath,
>>
>> AFAIK, It can't do from publisher, first we need to remove the
>> subscription from store , then delete from publisher.
>>
>> -Ajith
>>
>> On Thu, Feb 26, 2015 at 3:55 PM, Prabath Siriwardena <
>> prab...@wso2.com> wrote:
>>
>>> $subject...
>>>
>>>
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +1 650 625 7950
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +1-812-360-5335
>>
>>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



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


>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +1 650 625 7950
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +1-812-360-5335
>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  blog
> :http://sanjeewamalalgoda.blogspot.com/
> 
>
>
>


-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +1-812-360-5335
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Creating a JAX-RS service project using WSO2 Developer Studio in eclipse

2015-02-26 Thread Chanaka Cooray
Hi Awanthika,

I made changes to the pom build tag as indicated in your message. It
worked!

Thanks a lot.

On Fri, Feb 27, 2015 at 10:03 AM, Awanthika Senarath 
wrote:

> Hi Chanaka,
>
> Adding the dependency to the pom.file alone will not ensure that it gets
> packed into the war ouput .
>
>  As explained in [1] you need to have the subject jar in the
> project/WEB-INF/lib folder in order to get it packed into your war file.
> You can refer [2] to see how to get this done . As to put it in to the
> specific location you can use the plugin at [3] . This will copy all your
> dependencies to the desired location which will ensure that it gets packed
> to your war file.
>
> [1]
> http://stackoverflow.com/questions/6496560/where-should-i-put-external-jar-files-when-developing-a-web-app
>
> [2]
> http://stackoverflow.com/questions/97640/force-maven2-to-copy-dependencies-into-target-lib
>
> [3] 
> maven-dependency-plugin
> 2.1
> 
> 
> copy-dependencies
> process-sources
> 
> copy-dependencies
> 
> 
> lib <--- the output directory you want
> the jars to be packed
> false
> false
> true
> true
> runtime
> 
> 
> 
> 
>
>
> regards
> Awanhtika
>
> On Fri, Feb 27, 2015 at 9:27 AM, Chanaka Cooray  wrote:
>
>> Hi Awanthika,
>> I did mvn clean install command to build the target .war file, It seems
>> that output .war file doesn't contain the external libraries. Here the
>> stacktrace I'm getting.
>>
>> java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonGenerationException
>>> java.lang.Class.getDeclaredConstructors0(Native Method)
>>> java.lang.Class.privateGetDeclaredConstructors(Class.java:2585)
>>> java.lang.Class.getConstructor0(Class.java:2885)
>>> java.lang.Class.getDeclaredConstructor(Class.java:2058)
>>> 
>>> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
>>> 
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
>>> 
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
>>> 
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
>>> 
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>>> 
>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>>> 
>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>> 
>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>>> 
>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
>>> 
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
>>> 
>>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
>>> 
>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
>>> 
>>> org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:160)
>>> org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
>>> 
>>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:71)
>>> 
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>> 
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>> 
>>> org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43)
>>> 
>>> org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
>>> 
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>>> 
>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>> 
>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>> 
>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>> 
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>>> 
>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>>> 
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>>> 
>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>>> 
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapte

Re: [Dev] [BAM] Facing an error while creating dashboard according to the Quick Start Guide

2015-02-26 Thread Thayalan
Are you using Mysql by any chance? Please note the fields are case
sensitive.

On Thu, Feb 26, 2015 at 11:53 PM, Lakshani Gamage  wrote:

> Hi ,
> When I'm trying to create a dashboard according to [1], I got following
> pop up box. Although, I gave all the compulsory fields. No back end
> exceptions observed.
> Is there any reason?
>
> [image: Inline image 1]
>
> [1] - https://docs.wso2.com/display/BAM250/Quick+Start+Guide
>
> Thank you.
>
> --
> Lakshani Gamage
>
> *Software Engineer*
> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,
Thayalan Sivapaleswararajah
Associate Technical Lead - QA
Mob: +94(0)777872485
Tel : +94(0)(11)2145345
Fax : +94(0)(11)2145300
Email: thaya...@wso2.com


*Disclaimer*: *This communication may contain privileged or other
confidential information and is intended exclusively for the addressee/s.
If you are not the intended recipient/s, or believe that you may have
received this communication in error, please reply to the sender indicating
that fact and delete the copy you received and in addition, you should not
print, copy, retransmit, disseminate, or otherwise use the information
contained in this communication. Internet communications cannot be
guaranteed to be timely, secure, error or virus-free. The sender does not
accept liability for any errors or omissions.*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?

2015-02-26 Thread Sanjeewa Malalgoda
On Fri, Feb 27, 2015 at 10:25 AM, Ajith Vitharana  wrote:

>
>
> On Thu, Feb 26, 2015 at 11:37 PM, Sanjeewa Malalgoda 
> wrote:
>
>>
>>
>> On Fri, Feb 27, 2015 at 3:29 AM, Ajith Vitharana  wrote:
>>
>>>
>>>
>>> On Thu, Feb 26, 2015 at 4:17 PM, Prabath Siriwardena 
>>> wrote:
>>>
 Yes.. but blocking wont allow you to delete it..

>>>
>>> Yes. Currently  no clean approach to delete it.
>>>
>>> But this is a workaround:
>>>
>>> 1. Change the LC sate to BLOCKED .
>>> 2. Logged  in to the Carbon Admin UI
>>> 3. Home -> Metadata -> List -> APIs and delete that API, then API
>>> will disappear from publisher.
>>>
>> This is completely wrong. We should never recommend this to anyone.  API
>> store may completely unusable due to this[1].
>>
>> [1]
>> http://sanjeewamalalgoda.blogspot.com/2014/03/how-to-fix-issue-in-wso2-api-manager.html
>>
>>
>
> It is not not completely wrong to delete *the API having
> subscriptions*   :). Only thing is 4th and 5th steps is missing .
>
>4.) Find the API data from AM database and delete.
>5.) Go to
> the wso2am-1.8.0/repository/deployment/server/synapse-configs/default/api
> and delete the API artifact.
>
No still this is missing some steps. How about resource mapping associate
with API? You cant simply find entries in all tables associate with API and
delete them(see following list). That is why we do not recommend it.
Hope you got it now :)

String deleteLCEventQuery = "DELETE FROM AM_API_LC_EVENT WHERE
API_ID=? ";
String deleteCommentQuery = "DELETE FROM AM_API_COMMENTS WHERE
API_ID=? ";
String deleteRatingsQuery = "DELETE FROM AM_API_RATINGS WHERE
API_ID=? ";
String deleteSubscriptionQuery = "DELETE FROM AM_SUBSCRIPTION WHERE
API_ID=?";
String deleteExternalAPIStoresQuery = "DELETE FROM
AM_EXTERNAL_STORES WHERE API_ID=?";
String deleteAPIQuery = "DELETE FROM AM_API WHERE API_PROVIDER=?
AND API_NAME=? AND API_VERSION=? ";
String deleteURLTemplateQuery = "DELETE FROM AM_API_URL_MAPPING
WHERE API_ID = ?";

Thanks,
sanjeewa.

>
> Your blog post described *how to recover an API*, But what I have
> mentioned here is *how to delete an API which is having user
> subscriptions*(without removing subscriptions one by one  from  store).
> Hope it is clear now. Am I missed anything ?
>
> -Ajith
>
>>
>> Thanks,
>> sanjeewa.
>>
>>>
>>> Only problem is publisher doesn't allow  you again to create API with
>>> same name and context.  Because when you delete the API from Admin UI, it
>>> only delete the API from registry database and AM database still remain the
>>> AM metadata(name, context ...etc).
>>>
>>> -Ajith
>>>
>>>

 Thanks & regards,
 -Prabath


 On Thu, Feb 26, 2015 at 1:15 PM, Ajith Vitharana 
 wrote:

>
>
> On Thu, Feb 26, 2015 at 4:04 PM, Prabath Siriwardena  > wrote:
>
>> Thanks..! But who has to remove the subscriptions...? Is it the one
>> who subscribed..?
>>
>
>  Currently yes. But I understand that ,  it is not possible when we
> have lots of user subscriptions.
>
>
>> I think there needs to be a way to remove an API by the API
>> Publisher...
>>
>
> So, without deleting the the API we can make the LC state to BLOCKED
> in publisher.
>
> -Ajith
>
>
>>
>> Thanks & regards,
>> -Prabath
>>
>> On Thu, Feb 26, 2015 at 1:00 PM, Ajith Vitharana 
>> wrote:
>>
>>>
>>> Hi Prabath,
>>>
>>> AFAIK, It can't do from publisher, first we need to remove the
>>> subscription from store , then delete from publisher.
>>>
>>> -Ajith
>>>
>>> On Thu, Feb 26, 2015 at 3:55 PM, Prabath Siriwardena <
>>> prab...@wso2.com> wrote:
>>>
 $subject...


 Thanks & Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +1 650 625 7950

 http://blog.facilelogin.com
 http://blog.api-security.org

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


>>>
>>>
>>> --
>>> Ajith Vitharana.
>>> WSO2 Inc. - http://wso2.org
>>> Email  :  aji...@wso2.com
>>> Mobile : +1-812-360-5335
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +1 650 625 7950
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +1-812-360-5335
>
>


 --
 Thanks & Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.li

Re: [Dev] [API Manager] How to remove an API having active subscriptions - from the API Publisher....?

2015-02-26 Thread Ajith Vitharana
On Fri, Feb 27, 2015 at 12:21 AM, Sanjeewa Malalgoda 
wrote:

>
>
> On Fri, Feb 27, 2015 at 10:25 AM, Ajith Vitharana  wrote:
>
>>
>>
>> On Thu, Feb 26, 2015 at 11:37 PM, Sanjeewa Malalgoda 
>> wrote:
>>
>>>
>>>
>>> On Fri, Feb 27, 2015 at 3:29 AM, Ajith Vitharana 
>>> wrote:
>>>


 On Thu, Feb 26, 2015 at 4:17 PM, Prabath Siriwardena 
 wrote:

> Yes.. but blocking wont allow you to delete it..
>

 Yes. Currently  no clean approach to delete it.

 But this is a workaround:

 1. Change the LC sate to BLOCKED .
 2. Logged  in to the Carbon Admin UI
 3. Home -> Metadata -> List -> APIs and delete that API, then API
 will disappear from publisher.

>>> This is completely wrong. We should never recommend this to anyone.  API
>>> store may completely unusable due to this[1].
>>>
>>> [1]
>>> http://sanjeewamalalgoda.blogspot.com/2014/03/how-to-fix-issue-in-wso2-api-manager.html
>>>
>>>
>>
>> It is not not completely wrong to delete *the API having
>> subscriptions*   :). Only thing is 4th and 5th steps is missing .
>>
>>4.) Find the API data from AM database and delete.
>>5.) Go to
>> the wso2am-1.8.0/repository/deployment/server/synapse-configs/default/api
>> and delete the API artifact.
>>
> No still this is missing some steps. How about resource mapping associate
> with API? You cant simply find entries in all tables associate with API and
> delete them(see following list). That is why we do not recommend it.
> Hope you got it now :)
>
> String deleteLCEventQuery = "DELETE FROM AM_API_LC_EVENT WHERE
> API_ID=? ";
> String deleteCommentQuery = "DELETE FROM AM_API_COMMENTS WHERE
> API_ID=? ";
> String deleteRatingsQuery = "DELETE FROM AM_API_RATINGS WHERE
> API_ID=? ";
> String deleteSubscriptionQuery = "DELETE FROM AM_SUBSCRIPTION
> WHERE API_ID=?";
> String deleteExternalAPIStoresQuery = "DELETE FROM
> AM_EXTERNAL_STORES WHERE API_ID=?";
> String deleteAPIQuery = "DELETE FROM AM_API WHERE API_PROVIDER=?
> AND API_NAME=? AND API_VERSION=? ";
> String deleteURLTemplateQuery = "DELETE FROM AM_API_URL_MAPPING
> WHERE API_ID = ?";
>

That is what I mentioned  5) "Find the API data from AM database and
delete. " it is not just name and context , we need to delete all API
related  data.

-Ajith


> Thanks,
> sanjeewa.
>
>>
>> Your blog post described *how to recover an API*, But what I have
>> mentioned here is *how to delete an API which is having user
>> subscriptions*(without removing subscriptions one by one  from  store).
>> Hope it is clear now. Am I missed anything ?
>>
>> -Ajith
>>
>>>
>>> Thanks,
>>> sanjeewa.
>>>

 Only problem is publisher doesn't allow  you again to create API with
 same name and context.  Because when you delete the API from Admin UI, it
 only delete the API from registry database and AM database still remain the
 AM metadata(name, context ...etc).

 -Ajith


>
> Thanks & regards,
> -Prabath
>
>
> On Thu, Feb 26, 2015 at 1:15 PM, Ajith Vitharana 
> wrote:
>
>>
>>
>> On Thu, Feb 26, 2015 at 4:04 PM, Prabath Siriwardena <
>> prab...@wso2.com> wrote:
>>
>>> Thanks..! But who has to remove the subscriptions...? Is it the one
>>> who subscribed..?
>>>
>>
>>  Currently yes. But I understand that ,  it is not possible when we
>> have lots of user subscriptions.
>>
>>
>>> I think there needs to be a way to remove an API by the API
>>> Publisher...
>>>
>>
>> So, without deleting the the API we can make the LC state to BLOCKED
>> in publisher.
>>
>> -Ajith
>>
>>
>>>
>>> Thanks & regards,
>>> -Prabath
>>>
>>> On Thu, Feb 26, 2015 at 1:00 PM, Ajith Vitharana 
>>> wrote:
>>>

 Hi Prabath,

 AFAIK, It can't do from publisher, first we need to remove the
 subscription from store , then delete from publisher.

 -Ajith

 On Thu, Feb 26, 2015 at 3:55 PM, Prabath Siriwardena <
 prab...@wso2.com> wrote:

> $subject...
>
>
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> Lin

Re: [Dev] Jaggery server.address support in CEP 4.0.0

2015-02-26 Thread Sameera Medagammaddegedara
Hi Sabra,

There could be an issue with the version of the carbon module used by CEP
4.0.0.The address method has not been removed from the carbon module and
was added before 3.1.0 and has not been changed since.

Thank You,
Sameera

On Thu, Feb 26, 2015 at 5:57 PM, Sabra Ossen  wrote:

> Hi,
>
> I tried it. But it returns "https://null:9443"; as the server address, I
> have shown the code segment below. The host variable is null.
>
> var carbon = require('carbon');
>
> var getAddress = function(transport){
>  var process = require("process"),
>  host = process.getProperty('server.host'),
>  ip = process.getProperty('carbon.local.ip');
>  var log = new Log();
>  var port;
>  if(transport=="http"){
>   port = process.getProperty('mgt.transport.http.proxyPort');
>   if(!port){
>//can use http.port as well
>port = process.getProperty('mgt.transport.http.port');
>   }
>  }else if(transport=="https"){
>   port = process.getProperty('mgt.transport.https.proxyPort');
>   if(!port){
>//can use https.port as well
>port = process.getProperty('mgt.transport.https.port');
>   }
>  }
>  var postUrl;
>  if(host=="localhost"){
>   postUrl  = "https://"; + ip + ":" + port;
>  }else{
>   postUrl = "https://"; + host+ ":" +port;
>  }
>  return postUrl;
> }
>
> print(getAddress('https'));
> print('');
> print(carbon.server.tenantDomain());
> print('');
> print(carbon.server.tenantId());
> print('');
> print(carbon.server.tenantUser('admin'));
> print('');
>
>
> On Thu, Feb 26, 2015 at 5:39 PM, Inshaf Mahath  wrote:
>
>> Hi Sabra,
>>
>> You can try [1] sample to get the runtime server address.
>>
>> [1] - https://gist.github.com/dulichan/9577696
>>
>>
>>
>>
>> On Thu, Feb 26, 2015 at 5:33 PM, Sabra Ossen  wrote:
>>
>>> Hi,
>>>
>>> I am getting the following error when trying to run the jaggery sample
>>> [1] in WSO2 CEP 4.0.0. The mentioned sample runs fine in WSO2 CEP 3.1.0.
>>>
>>> [2015-02-26 17:18:52,580] ERROR - {WebAppManager}
>>>  org.mozilla.javascript.EcmaError: TypeError: Cannot find function address
>>> in object [object Object]. (/Test//index.jag#12)
>>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>>> org.mozilla.javascript.EcmaError: TypeError: Cannot find function address
>>> in object [object Object]. (/Test//index.jag#12)
>>> at
>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
>>> at
>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>>> at
>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:559)
>>> at
>>> org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
>>> at
>>> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>>> at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>>> at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>> at
>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
>>> at
>>> org.apache.catalina.valves.AccessLogValve

Re: [Dev] Jaggery server.address support in CEP 4.0.0

2015-02-26 Thread Sabra Ossen
Hi Sameera,

Thank you for the clarification. Depending on a fix for this issue, I will
use an appropriate method to access the address of the server.

Thanks.

On Fri, Feb 27, 2015 at 11:30 AM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hi Sabra,
>
> There could be an issue with the version of the carbon module used by CEP
> 4.0.0.The address method has not been removed from the carbon module and
> was added before 3.1.0 and has not been changed since.
>
> Thank You,
> Sameera
>
> On Thu, Feb 26, 2015 at 5:57 PM, Sabra Ossen  wrote:
>
>> Hi,
>>
>> I tried it. But it returns "https://null:9443"; as the server address, I
>> have shown the code segment below. The host variable is null.
>>
>> var carbon = require('carbon');
>>
>> var getAddress = function(transport){
>>  var process = require("process"),
>>  host = process.getProperty('server.host'),
>>  ip = process.getProperty('carbon.local.ip');
>>  var log = new Log();
>>  var port;
>>  if(transport=="http"){
>>   port = process.getProperty('mgt.transport.http.proxyPort');
>>   if(!port){
>>//can use http.port as well
>>port = process.getProperty('mgt.transport.http.port');
>>   }
>>  }else if(transport=="https"){
>>   port = process.getProperty('mgt.transport.https.proxyPort');
>>   if(!port){
>>//can use https.port as well
>>port = process.getProperty('mgt.transport.https.port');
>>   }
>>  }
>>  var postUrl;
>>  if(host=="localhost"){
>>   postUrl  = "https://"; + ip + ":" + port;
>>  }else{
>>   postUrl = "https://"; + host+ ":" +port;
>>  }
>>  return postUrl;
>> }
>>
>> print(getAddress('https'));
>> print('');
>> print(carbon.server.tenantDomain());
>> print('');
>> print(carbon.server.tenantId());
>> print('');
>> print(carbon.server.tenantUser('admin'));
>> print('');
>>
>>
>> On Thu, Feb 26, 2015 at 5:39 PM, Inshaf Mahath  wrote:
>>
>>> Hi Sabra,
>>>
>>> You can try [1] sample to get the runtime server address.
>>>
>>> [1] - https://gist.github.com/dulichan/9577696
>>>
>>>
>>>
>>>
>>> On Thu, Feb 26, 2015 at 5:33 PM, Sabra Ossen  wrote:
>>>
 Hi,

 I am getting the following error when trying to run the jaggery sample
 [1] in WSO2 CEP 4.0.0. The mentioned sample runs fine in WSO2 CEP 3.1.0.

 [2015-02-26 17:18:52,580] ERROR - {WebAppManager}
  org.mozilla.javascript.EcmaError: TypeError: Cannot find function address
 in object [object Object]. (/Test//index.jag#12)
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.EcmaError: TypeError: Cannot find function address
 in object [object Object]. (/Test//index.jag#12)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:559)
 at
 org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
 at
 org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:5

Re: [Dev] [IS] Please review and mergr PR for IDENTITY-3028

2015-02-26 Thread Nuwandi Wickramasinghe
Please check updated PR in [1]

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

Thanks

On Thu, Feb 26, 2015 at 2:40 PM, Nuwandi Wickramasinghe 
wrote:

> Hi,
>
> Code review feedback can be found in [1]
>
> [1]
> https://docs.google.com/a/wso2.com/document/d/1KGYP_yX3gXe3HuZmnkjNfnaJCpHsW2bOFoFlnaFLDXE
>
> On Wed, Feb 25, 2015 at 4:46 PM, Nuwandi Wickramasinghe  > wrote:
>
>> Hi,
>>
>> Please find the fix for [1] in PR [2]
>>
>> Thanks
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-3028
>> [2] https://github.com/wso2/carbon-identity/pull/102
>>
>> --
>>
>> Best Regards,
>>
>> Nuwandi Wickramasinghe
>>
>> Software Engineer
>>
>> WSO2 Inc.
>>
>> Web : http://wso2.com
>>
>> Mobile : 0719214873
>>
>
>
>
> --
>
> Best Regards,
>
> Nuwandi Wickramasinghe
>
> Software Engineer
>
> WSO2 Inc.
>
> Web : http://wso2.com
>
> Mobile : 0719214873
>



-- 

Best Regards,

Nuwandi Wickramasinghe

Software Engineer

WSO2 Inc.

Web : http://wso2.com

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


Re: [Dev] Jaggery server.address support in CEP 4.0.0

2015-02-26 Thread Sameera Medagammaddegedara
Adding Thishan and Mohan.

Hi Sabra,

I built product-cep and the carbon module has the address method.

Thank You,
Sameera


On Fri, Feb 27, 2015 at 11:39 AM, Sabra Ossen  wrote:

> Hi Sameera,
>
> Thank you for the clarification. Depending on a fix for this issue, I will
> use an appropriate method to access the address of the server.
>
> Thanks.
>
> On Fri, Feb 27, 2015 at 11:30 AM, Sameera Medagammaddegedara <
> samee...@wso2.com> wrote:
>
>> Hi Sabra,
>>
>> There could be an issue with the version of the carbon module used by CEP
>> 4.0.0.The address method has not been removed from the carbon module and
>> was added before 3.1.0 and has not been changed since.
>>
>> Thank You,
>> Sameera
>>
>> On Thu, Feb 26, 2015 at 5:57 PM, Sabra Ossen  wrote:
>>
>>> Hi,
>>>
>>> I tried it. But it returns "https://null:9443"; as the server address, I
>>> have shown the code segment below. The host variable is null.
>>>
>>> var carbon = require('carbon');
>>>
>>> var getAddress = function(transport){
>>>  var process = require("process"),
>>>  host = process.getProperty('server.host'),
>>>  ip = process.getProperty('carbon.local.ip');
>>>  var log = new Log();
>>>  var port;
>>>  if(transport=="http"){
>>>   port = process.getProperty('mgt.transport.http.proxyPort');
>>>   if(!port){
>>>//can use http.port as well
>>>port = process.getProperty('mgt.transport.http.port');
>>>   }
>>>  }else if(transport=="https"){
>>>   port = process.getProperty('mgt.transport.https.proxyPort');
>>>   if(!port){
>>>//can use https.port as well
>>>port = process.getProperty('mgt.transport.https.port');
>>>   }
>>>  }
>>>  var postUrl;
>>>  if(host=="localhost"){
>>>   postUrl  = "https://"; + ip + ":" + port;
>>>  }else{
>>>   postUrl = "https://"; + host+ ":" +port;
>>>  }
>>>  return postUrl;
>>> }
>>>
>>> print(getAddress('https'));
>>> print('');
>>> print(carbon.server.tenantDomain());
>>> print('');
>>> print(carbon.server.tenantId());
>>> print('');
>>> print(carbon.server.tenantUser('admin'));
>>> print('');
>>>
>>>
>>> On Thu, Feb 26, 2015 at 5:39 PM, Inshaf Mahath  wrote:
>>>
 Hi Sabra,

 You can try [1] sample to get the runtime server address.

 [1] - https://gist.github.com/dulichan/9577696




 On Thu, Feb 26, 2015 at 5:33 PM, Sabra Ossen  wrote:

> Hi,
>
> I am getting the following error when trying to run the jaggery sample
> [1] in WSO2 CEP 4.0.0. The mentioned sample runs fine in WSO2 CEP 3.1.0.
>
> [2015-02-26 17:18:52,580] ERROR - {WebAppManager}
>  org.mozilla.javascript.EcmaError: TypeError: Cannot find function address
> in object [object Object]. (/Test//index.jag#12)
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EcmaError: TypeError: Cannot find function address
> in object [object Object]. (/Test//index.jag#12)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:559)
> at
> org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
> at
> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv

Re: [Dev] [BAM] Facing an error while creating dashboard according to the Quick Start Guide

2015-02-26 Thread Lakshani Gamage
Hi Thayalan,

I used H2 here. By the way, can you please tell me the relationship between
Gadget UI element and database? The only Input I have to give is Table
tile. I thought it was UI element table name.

Thanks.



On Fri, Feb 27, 2015 at 10:47 AM, Thayalan  wrote:

> Are you using Mysql by any chance? Please note the fields are case
> sensitive.
>
> On Thu, Feb 26, 2015 at 11:53 PM, Lakshani Gamage 
> wrote:
>
>> Hi ,
>> When I'm trying to create a dashboard according to [1], I got following
>> pop up box. Although, I gave all the compulsory fields. No back end
>> exceptions observed.
>> Is there any reason?
>>
>> [image: Inline image 1]
>>
>> [1] - https://docs.wso2.com/display/BAM250/Quick+Start+Guide
>>
>> Thank you.
>>
>> --
>> Lakshani Gamage
>>
>> *Software Engineer*
>> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Regards,
> Thayalan Sivapaleswararajah
> Associate Technical Lead - QA
> Mob: +94(0)777872485
> Tel : +94(0)(11)2145345
> Fax : +94(0)(11)2145300
> Email: thaya...@wso2.com
>
>
> *Disclaimer*: *This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, retransmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.*
>
>


-- 
Lakshani Gamage

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