Re: [Dev] [jaggery][kernel]Missing patch

2014-03-11 Thread Manoj Kumara
Hi Tanya,

I think during the merging process relevant changes on configurations were
not added. I asked Geeth to double check these changes.

Thanks,
Manoj


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


On Wed, Mar 12, 2014 at 11:07 AM, Tanya Madurapperuma wrote:

> Hi Manoj and all,
>
> I will fork the kernel and provide the patch again ASAP.
> But how can this patch be missing in kernel because this is issued for
> patch0005, seems this is missed when moving from svn to git.
>
> Thanks,
> Tanya
>
>
> On Tue, Mar 11, 2014 at 3:35 PM, Madhuka Udantha  wrote:
>
>> Ping for the subject,
>>
>>
>>
>> On Thu, Mar 6, 2014 at 12:03 PM, Manoj Kumara  wrote:
>>
>>> Hi Tanya,
>>>
>>> Can you send a pull request correspond to your change to [1]
>>> dev-repository, so afterwards we can merge this with [2]
>>>
>>> [1] https://github.com/wso2-dev/carbon4-kernel
>>> [2] https://github.com/wso2/carbon4-kernel
>>>
>>> Thanks,
>>> Manoj
>>>
>>>
>>> *Manoj Kumara*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94713448188
>>>
>>>
>>> On Thu, Mar 6, 2014 at 11:48 AM, Madhuka Udantha wrote:
>>>
 Hi,

 Kernel[3] seems missing of patched[1] and details can be found in[2].
 Need to added that patched for[3].
 Since jaggery[4] switch for carbon 4.3.0 and
 testOAuthProviderOperations failed on jaggery test OauthObjectTestCase.



 [1] https://wso2.org/jira/browse/CARBON-14635
 [2] Email subjected "[Dev] Please commit to kernel patch0005 @ dev"
 [3] https://github.com/wso2/carbon4-kernel
 [4] https://github.com/wso2/jaggery/tree/branch-for-kernel4.3.0

 --
 *Madhuka* Udantha
 Senior Software Engineer
 Development Technologies
 WSO2 Inc. : http://wso2.com

 *Mobile*: +94774066336
 *Blog*: http://madhukaudantha.blogspot.com/

>>>
>>>
>>
>>
>> --
>> *Madhuka* Udantha
>> Senior Software Engineer
>> Development Technologies
>> WSO2 Inc. : http://wso2.com
>>
>> *Mobile*: +94774066336
>> *Blog*: http://madhukaudantha.blogspot.com/
>>
>
>
>
> --
> Tanya Madurapperuma
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439
> Blog : http://tanyamadurapperuma.blogspot.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Committing 4.2.0 kernel patches to 4.3.0 in Git repo

2014-03-11 Thread Manoj Kumara
Hi Geeth,

Along with committing the code changes on the kernel patches we may need to
consider the changes on configuration files, dbscripts etc. Please consider
them during your process.

Thanks,
Manoj


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


On Tue, Mar 11, 2014 at 11:46 PM, Geeth Munasinghe  wrote:

> Hi
>
> I have compared  kernel 4.3.0 git repo with kernel 4.2.0 branch in svn and
> merged the changes to of patches to git repo kernel. I have made pull
> request to kernel 4.3.0 and axis2 1.6.1-wso2v11-SNAPSHOT in git repo.
>
> Please review and commit to kernel and axis2 repos in git hub.
>
> Svn revision used to compare repos is 197947. Any thing committed after
> this commit does not include in this patches.
>
> When committing new patches, Please make sure to commit them to both svn
> and git repo.
>
> Thanks
> Geeth
>
>
>
> *G. K. S. Munasinghe *
> *Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [jaggery][kernel]Missing patch

2014-03-11 Thread Tanya Madurapperuma
Hi Manoj and all,

I will fork the kernel and provide the patch again ASAP.
But how can this patch be missing in kernel because this is issued for
patch0005, seems this is missed when moving from svn to git.

Thanks,
Tanya


On Tue, Mar 11, 2014 at 3:35 PM, Madhuka Udantha  wrote:

> Ping for the subject,
>
>
>
> On Thu, Mar 6, 2014 at 12:03 PM, Manoj Kumara  wrote:
>
>> Hi Tanya,
>>
>> Can you send a pull request correspond to your change to [1]
>> dev-repository, so afterwards we can merge this with [2]
>>
>> [1] https://github.com/wso2-dev/carbon4-kernel
>> [2] https://github.com/wso2/carbon4-kernel
>>
>> Thanks,
>> Manoj
>>
>>
>> *Manoj Kumara*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94713448188
>>
>>
>> On Thu, Mar 6, 2014 at 11:48 AM, Madhuka Udantha wrote:
>>
>>> Hi,
>>>
>>> Kernel[3] seems missing of patched[1] and details can be found in[2].
>>> Need to added that patched for[3].
>>> Since jaggery[4] switch for carbon 4.3.0 and testOAuthProviderOperations
>>> failed on jaggery test OauthObjectTestCase.
>>>
>>>
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-14635
>>> [2] Email subjected "[Dev] Please commit to kernel patch0005 @ dev"
>>> [3] https://github.com/wso2/carbon4-kernel
>>> [4] https://github.com/wso2/jaggery/tree/branch-for-kernel4.3.0
>>>
>>> --
>>> *Madhuka* Udantha
>>> Senior Software Engineer
>>> Development Technologies
>>> WSO2 Inc. : http://wso2.com
>>>
>>> *Mobile*: +94774066336
>>> *Blog*: http://madhukaudantha.blogspot.com/
>>>
>>
>>
>
>
> --
> *Madhuka* Udantha
> Senior Software Engineer
> Development Technologies
> WSO2 Inc. : http://wso2.com
>
> *Mobile*: +94774066336
> *Blog*: http://madhukaudantha.blogspot.com/
>



-- 
Tanya Madurapperuma

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


[Dev] Enhanced GitHub pull request plugin with WSO2 Jenkins

2014-03-11 Thread Afkham Azeez
Have we enabled this plugin on our Jenkins setup?

Where do we maintain this code? Perhaps we have the fork within the WSO2
repo?

Did we send the enhancements as pull requests to the relevant original
repos? If not, please do so with the proper comments explaining what the
enhancement does.

Write a blog post about this, Tweet it etc. and make some noise about this
and our vision towards continuous delivery.

-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919 blog: **http://blog.afkham.org*
*twitter: **http://twitter.com/afkham_azeez*
* linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


Re: [Dev] Committing 4.2.0 kernel patches to 4.3.0 in Git repo

2014-03-11 Thread Manoj Kumara
Noted. Will ask the developers to merge their changes to git repo.

Hi,

IsuruH and Shazni please merge your changes relevant to [1], [2]

[1] https://wso2.org/jira/browse/CARBON-14729
[2] https://wso2.org/jira/browse/CARBON-14726

Thanks,
Manoj


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


On Tue, Mar 11, 2014 at 11:46 PM, Geeth Munasinghe  wrote:

> Hi
>
> I have compared  kernel 4.3.0 git repo with kernel 4.2.0 branch in svn and
> merged the changes to of patches to git repo kernel. I have made pull
> request to kernel 4.3.0 and axis2 1.6.1-wso2v11-SNAPSHOT in git repo.
>
> Please review and commit to kernel and axis2 repos in git hub.
>
> Svn revision used to compare repos is 197947. Any thing committed after
> this commit does not include in this patches.
>
> When committing new patches, Please make sure to commit them to both svn
> and git repo.
>
> Thanks
> Geeth
>
>
>
> *G. K. S. Munasinghe *
> *Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need to commit some integration tests for next ESB release

2014-03-11 Thread Kishanthan Thangarajah
On Mon, Mar 10, 2014 at 4:50 PM, Vanjikumaran Sivajothy wrote:

> Hi Bhathiya,
>
> You can send a pull request to
>
> If it is a synapse change [1]
> if it is a carbon mediation change [2]
> If it is a change in the product [3]
>
> But, We have not trigger the integration test yet.
>
> [1]https://github.com/wso2/wso2-synapse
> [2]https://github.com/wso2/carbon-mediation
> [3]https://github.com/wso2/product-esb
>

These are the main repos. The pull requests should be sent to wso2-dev
repos.


>
>
>
>
> On Mon, Mar 10, 2014 at 4:19 PM, Bhathiya Jayasekara wrote:
>
>> Hi Shafreen,
>>
>> Thanks for the information. I attached the diffs and raised the priority
>> level.
>>
>> Thanks,
>> Bhathiya
>>
>>
>> On Mon, Mar 10, 2014 at 1:53 PM, Shafreen Anfar wrote:
>>
>>> Hi Bhathiya,
>>>
>>> Since the next release is based on GIT, it may take a while to create a
>>> location for the next release (ESB 4.9.0). So, what you can do is change
>>> the priority level of the issue to highest and attach the test-cases to it.
>>>
>>>
>>> On Sun, Mar 9, 2014 at 12:48 AM, Bhathiya Jayasekara 
>>> wrote:
>>>
 Hi ESB team,

 I have written some integration tests for this [1], and I need to
 commit them. But I can only see ESB 4.8.1 in svn. Can you please create the
 location for next release if you have already decided a version?

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

 Thanks,

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


>>>
>>>
>>> --
>>> Regards,
>>> *Shafreen*
>>> Software Engineer
>>> WSO2 Inc
>>> Mobile : 077-556-395-1
>>>
>>
>>
>>
>> --
>> *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
>>
>>
>
>
> --
> Sivajothy Vanjikumaran
> *Senior Software Engineer*
> *Integration Technologies Team*
> *WSO2 Inc. http://wso2.com *
> *Mobile:(+94)777219209*
> *Mobile USA:**(+1)918 813 2403*
> [image: Facebook]  [image: 
> Twitter] [image:
> LinkedIn]  
> [image:
> Blogger]  [image: 
> SlideShare]
>
> 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, re-transmit, 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
>
>


-- 
*Kishanthan Thangarajah*
Senior Software Engineer,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

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


Re: [Dev] DSS:The input stream for an incoming message is null

2014-03-11 Thread Isuru Perera
Yes. This is a known issue due to session timeout.

stevegyc,

I guess you are clicking tryit from Management Console Service overview
page, which has a chart showing statistics.

When you go to try it page, the session expires on the admin console.

That's why you are seeing the error on the console.

I hope this is clear. There are many issues reported for this also [1]

[1]
https://wso2.org/jira/browse/WSAS-1549?jql=text%20~%20%22ERROR%20org.wso2.carbon.statistics.ui.StatisticsAdminClient%20Cannot%20get%20service%20stats%22


On Wed, Mar 12, 2014 at 7:29 AM, Iranga Muthuthanthri wrote:

> Hi,
>
> The  possible reason for this excption could be a session time out, which
> is not specific to DSS.  Please refer to (1)
>
> Regards,
> Iranga
>
> (1) https://wso2.org/jira/WSAS-1214
>  On Mar 12, 2014 6:54 AM, "stevegyc"  wrote:
>
>>   Hi :
>>
>>
>> When I began to do a query operation of DSS service by tryit tool, it will 
>> output the following error message on the Mgt Console.
>>
>> TID: [0] [DSS] [2014-03-10 12
>> :57:39,799] ERROR {org.wso2.carbon.statistics.ui.StatisticsAdminClient} -  
>> Cannot get service stats for service dss_test2. Backend server may be 
>> unavailable. {org.wso2.carbon.statistics.ui.StatisticsAdminClient}
>>
>> org.apache.axis2.AxisFault: The input stream for an incoming message is null.
>>
>> at 
>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:93)
>>
>>
>> But If I continue to do the query operation, it will output the correct 
>> result.
>>
>> I am using DSS3.1.1 and jdk1.6.0_39(32bit).
>>
>> The same dbs file will work succesfully in another machine.
>>
>> Anyone know why these error message outputted?
>>
>>
>> --
>> stevegyc
>>
>> ___
>> 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
>
>


-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

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


Re: [Dev] DSS:The input stream for an incoming message is null

2014-03-11 Thread Iranga Muthuthanthri
Hi,

The  possible reason for this excption could be a session time out, which
is not specific to DSS.  Please refer to (1)

Regards,
Iranga

(1) https://wso2.org/jira/WSAS-1214
 On Mar 12, 2014 6:54 AM, "stevegyc"  wrote:

>  Hi :
>
>
> When I began to do a query operation of DSS service by tryit tool, it will 
> output the following error message on the Mgt Console.
>
> TID: [0] [DSS] [2014-03-10 12
> :57:39,799] ERROR {org.wso2.carbon.statistics.ui.StatisticsAdminClient} -  
> Cannot get service stats for service dss_test2. Backend server may be 
> unavailable. {org.wso2.carbon.statistics.ui.StatisticsAdminClient}
>
> org.apache.axis2.AxisFault: The input stream for an incoming message is null.
>
> at 
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:93)
>
>
> But If I continue to do the query operation, it will output the correct 
> result.
>
> I am using DSS3.1.1 and jdk1.6.0_39(32bit).
>
> The same dbs file will work succesfully in another machine.
>
> Anyone know why these error message outputted?
>
>
> --
> stevegyc
>
> ___
> 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] DSS:The input stream for an incoming message is null

2014-03-11 Thread stevegyc
Hi :

When I began to do a query operation of DSS service by tryit tool, it will 
output the following error message on the Mgt Console.

TID: [0] [DSS] [2014-03-10 12:57:39,799] ERROR 
{org.wso2.carbon.statistics.ui.StatisticsAdminClient} -  Cannot get service 
stats for service dss_test2. Backend server may be unavailable. 
{org.wso2.carbon.statistics.ui.StatisticsAdminClient}
org.apache.axis2.AxisFault: The input stream for an incoming message is null.
at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:93)

But If I continue to do the query operation, it will output the correct result.

I am using DSS3.1.1 and jdk1.6.0_39(32bit).

The same dbs file will work succesfully in another machine.

Anyone know why these error message outputted?





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


[Dev] Newbie

2014-03-11 Thread Jay Parikh
Hello Everyone,

My name is Jay Parikh and i am doing MS-IT at DA-IICT India. From the last
couple of months i was wondering about the buzz words like RESTFULL API,
WEB-SERVICES, SOA, Platform independent services.

So, i was looking for gsoc project and here i landed on WSO2 by reading
initial WSO2 Enterprise service bus documentation
*https://docs.wso2.org/display/ESB481/WSO2+Enterprise+Service+Bus+Documentation
*
which arose my curiosity to know more about Middle-ware.

By the way i have sound experience in developing application using java and
python.

Coming back to the point i would like to contribute in this project so
could anyone help to mark a demarcation as how could i start to contribute
in this project?

Any kind of help would extremely appreciated.

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


Re: [Dev] [ESB] Getting random NullPointerException on Operation Client during Connector Integration Tests

2014-03-11 Thread Ramindu Deshapriya
Hi Dushan,

Thanks for your reply. There's so client termination as such, I'm simply
creating a new ServiceClient object for each individual test.

Thanks.
On Mar 11, 2014 9:59 PM, "Dushan Abeyruwan"  wrote:

> Hi Ramidu,
>[found few typo error in previous reply] please do apologize.
>
> Anyway what i need to know,
>   How you terminate your client operations ?
>
> Anyway, found similar sort of issues reported [1] and possible workaround
> in [2]
> [1]https://wso2.org/jira/browse/CARBON-10439
> [2]https://wso2.org/jira/browse/ESBJAVA-2419
>
> Cheers,
> Dushan
>
>
>
>
> On Tue, Mar 11, 2014 at 9:37 PM, Dushan Abeyruwan  wrote:
>
>> Hi Ramidu
>> Can I know I you terminate your client operations? when searching issue
>> related to the stack you posted, it seems like the client handler shutdown
>> immediately but still there are some requests being processing.
>>
>> based on the searching [1] reported similar issue and to avoid what we
>> have suggested [2]
>> [1]https://wso2.org/jira/browse/CARBON-10439
>> [2]https://wso2.org/jira/browse/ESBJAVA-2419
>>
>>
>> Cheers,
>> Dushan
>>
>>
>>
>>
>> https://wso2.org/jira/browse/CARBON-10439
>>
>>
>>
>>
>> On Tue, Mar 11, 2014 at 3:15 PM, Ramindu Deshapriya 
>> wrote:
>>
>>> Hi,
>>>
>>> I have written 50+ Integration Tests for the Google Drive Cloud Connector
>>> using a ServiceClient to send messages to the ESB. I use the following
>>> method to build the client:
>>>
>>> public static OperationClient buildMEPClient(EndpointReference endpoint,
>>> OMElement request) throws AxisFault {
>>>
>>> ServiceClient serviceClient = new ServiceClient();
>>>
>>> Options serviceOptions = new Options();
>>> serviceOptions.setTo(endpoint);
>>> serviceOptions.setAction("mediate");
>>> serviceClient.setOptions(serviceOptions);
>>> MessageContext messageContext = new MessageContext();
>>>
>>> SOAPEnvelope soapEnvelope =
>>> TransportUtils.createSOAPEnvelope(request);
>>> messageContext.setEnvelope(soapEnvelope);
>>> OperationClient mepClient =
>>> serviceClient.createClient(ServiceClient.ANON_OUT_IN_OP);
>>> mepClient.addMessageContext(messageContext);
>>> return mepClient;
>>> }
>>>
>>> after which I call mepClient.execute(true) to receive a response in the
>>> following manner within each test:
>>>
>>> mepClient = ConnectorIntegrationUtil.buildMEPClient(new
>>> EndpointReference(
>>> getProxyServiceURL(CONNECTOR_NAME + "_" +
>>> methodName)),
>>> requestEnvelope);
>>>  mepClient.execute(true);
>>> MessageContext responseMsgCtx =
>>> mepClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
>>>
>>> However, when running this test suite, sometimes I receive random
>>> NullPointerExceptions on different methods. Note that I do not get this
>>> exception on the same test methods, rather I might get it on one or two
>>> random methods during a single test run or I might not get it at all. The
>>> stack trace for a typical occurrence is;
>>>
>>> java.lang.NullPointerException
>>> at
>>>
>>> org.apache.axis2.context.AbstractContext.needPropertyDifferences(AbstractContext.java:239)
>>> at
>>>
>>> org.apache.axis2.context.AbstractContext.setProperty(AbstractContext.java:202)
>>> at
>>>
>>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:270)
>>> at
>>>
>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
>>> at
>>> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>>> at
>>>
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
>>> at
>>>
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>> at
>>>
>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398)
>>> at
>>>
>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
>>> at
>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>> at
>>>
>>> org.wso2.carbon.connector.integration.test.googledrive.GoogledriveConnectorIntegrationTest.testgetCommentByIDOptionalParams(GoogledriveConnectorIntegrationTest.java:1316)
>>>
>>> In these instances, I have noticed that the correct response is returned
>>> by
>>> the backend API via monitoring the wire log, however, the test will
>>> simply
>>> fail giving the above stack trace.
>>>
>>> Is there any way to overcome this issue?
>>>
>>> Thanks.
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-Getting-random-NullPointerException-on-Operation-Client-during-Connector-Integration-Tests-tp93294.html
>>> Sent from the WSO2 Development mailing list archive at Nabble.c

[Dev] Committing 4.2.0 kernel patches to 4.3.0 in Git repo

2014-03-11 Thread Geeth Munasinghe
Hi

I have compared  kernel 4.3.0 git repo with kernel 4.2.0 branch in svn and
merged the changes to of patches to git repo kernel. I have made pull
request to kernel 4.3.0 and axis2 1.6.1-wso2v11-SNAPSHOT in git repo.

Please review and commit to kernel and axis2 repos in git hub.

Svn revision used to compare repos is 197947. Any thing committed after
this commit does not include in this patches.

When committing new patches, Please make sure to commit them to both svn
and git repo.

Thanks
Geeth



*G. K. S. Munasinghe *
*Software Engineer,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

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


Re: [Dev] Include -DworkerNode=false by default in wso2server.sh startup script?

2014-03-11 Thread Afkham Azeez
Yeah, profile=worker is more consistent. The workerNode system property was
introduced before Carbon had multiple profile support, and that is the
reason it is still retained.


On Tue, Mar 11, 2014 at 9:54 PM, Shameera Rathnayaka wrote:

> Hi Azeez/Sameera,
>
> It is bit confuse as we have workerNode property and profile
> property,AFAIK Manger node means carbon runtime with default profile and
> worker node mean carbon runtime with worker profile. So what if we remove
> this workerNode property  and use -Dprofile=worker instead ( or add this to
> carbon.xml for the sake of clearness)? . please correct me if i am wrong
> here.
>
> Thanks,
> Shameera.
>
>
> On Sat, Mar 8, 2014 at 11:01 PM, Afkham Azeez  wrote:
>
>>
>>
>>
>> On Sat, Mar 8, 2014 at 8:58 AM, Kasun Gajasinghe  wrote:
>>
>>>
>>>
>>> On Friday, March 7, 2014, Afkham Azeez  wrote:
>>>
 Worker manager separation is not applicable to all products in the
 platform. Hence, it is wrong to have an irrelevant parameter in products
 where this concept does not apply.


>>> Yes, that's fine Azeez. But if we go with this argument, it's wrong to
>>> have the GhostDeployment tag in carbon.xml which is only applicable to AS.
>>> And, whole clustering section in axis2.xml doesn't make sense in products
>>> like mb, bam etc. isn't it? There are lot of cases like this.
>>>
>>
>> Clustering makes sense. If you need to use distributed caching for
>> example, you need to enable clustering.
>>
>>
>>>
>>> I guess this is a trade-off that we have to live with with the
>>> wide-range of products we have!! It's at least better than the alternative
>>> we have right now where the user has to be mindful about the use of
>>> workerNode property. Adding this shows the importance of the property. Wdyt?
>>>
>>
>> Just because we may have done certain things in an not so proper way, it
>> does not give you an excuse to continue to add to that.
>>
>>
>>>
>>> Thanks,
>>> KasunG
>>>
>>>

 Azeez

>>>

 On Mon, Mar 3, 2014 at 10:40 PM, Kasun Gajasinghe wrote:

> Hi,
>
> Shall we $subject from Carbon 4.3.0? And then, force the users to
> enable workerNode mode by modifying the startup script itself, instead of
> passing -DworkerNode=true property via command-line?
>
> We have noticed that lot of users are passing the said property via
> the command-line, but they sometimes miss to set that. That might lead to
> lot of issues especially in DepSync. If we set as above, we can lower the
> human errors. WDYT?
>
> Thanks,
> KasunG
>
> --
> *Kasun Gajasinghe*
> Software Engineer;
> WSO2 Inc.; http://wso2.com
>
>
>  ,
> *email: *
> *kasung AT spamfree wso2.com    ** cell: **+94 (77)
> 678-0813 <%2B94%20%2877%29%20678-0813>*
> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>
>
>
> *blog: **http://kasunbg.org* 
>
>
>
> *twitter: **http://twitter.com/kasunbg* 
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * *
 *email: **az...@wso2.com*
 * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
 *http://blog.afkham.org* 
 *twitter: 
 **http://twitter.com/afkham_azeez*
 * linked-in: **http://lk.linkedin.com/in/afkhamazeez
 *

 *Lean . Enterprise . Middleware*

>>>
>>>
>>> --
>>> *Kasun Gajasinghe*
>>> Software Engineer;
>>> WSO2 Inc.; http://wso2.com
>>>
>>>
>>>  ,
>>> *email: *
>>> *kasung AT spamfree wso2.com    ** cell: **+94 (77)
>>> 678-0813 <%2B94%20%2877%29%20678-0813>*
>>> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>>>
>>>
>>>
>>> *blog: **http://kasunbg.org* 
>>>
>>>
>>>
>>> *twitter: **http://twitter.com/kasunbg* 
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Software

Re: [Dev] [ESB] Getting random NullPointerException on Operation Client during Connector Integration Tests

2014-03-11 Thread Dushan Abeyruwan
Hi Ramidu,
   [found few typo error in previous reply] please do apologize.

Anyway what i need to know,
  How you terminate your client operations ?

Anyway, found similar sort of issues reported [1] and possible workaround
in [2]
[1]https://wso2.org/jira/browse/CARBON-10439
[2]https://wso2.org/jira/browse/ESBJAVA-2419

Cheers,
Dushan




On Tue, Mar 11, 2014 at 9:37 PM, Dushan Abeyruwan  wrote:

> Hi Ramidu
> Can I know I you terminate your client operations? when searching issue
> related to the stack you posted, it seems like the client handler shutdown
> immediately but still there are some requests being processing.
>
> based on the searching [1] reported similar issue and to avoid what we
> have suggested [2]
> [1]https://wso2.org/jira/browse/CARBON-10439
> [2]https://wso2.org/jira/browse/ESBJAVA-2419
>
>
> Cheers,
> Dushan
>
>
>
>
> https://wso2.org/jira/browse/CARBON-10439
>
>
>
>
> On Tue, Mar 11, 2014 at 3:15 PM, Ramindu Deshapriya wrote:
>
>> Hi,
>>
>> I have written 50+ Integration Tests for the Google Drive Cloud Connector
>> using a ServiceClient to send messages to the ESB. I use the following
>> method to build the client:
>>
>> public static OperationClient buildMEPClient(EndpointReference endpoint,
>> OMElement request) throws AxisFault {
>>
>> ServiceClient serviceClient = new ServiceClient();
>>
>> Options serviceOptions = new Options();
>> serviceOptions.setTo(endpoint);
>> serviceOptions.setAction("mediate");
>> serviceClient.setOptions(serviceOptions);
>> MessageContext messageContext = new MessageContext();
>>
>> SOAPEnvelope soapEnvelope =
>> TransportUtils.createSOAPEnvelope(request);
>> messageContext.setEnvelope(soapEnvelope);
>> OperationClient mepClient =
>> serviceClient.createClient(ServiceClient.ANON_OUT_IN_OP);
>> mepClient.addMessageContext(messageContext);
>> return mepClient;
>> }
>>
>> after which I call mepClient.execute(true) to receive a response in the
>> following manner within each test:
>>
>> mepClient = ConnectorIntegrationUtil.buildMEPClient(new EndpointReference(
>> getProxyServiceURL(CONNECTOR_NAME + "_" +
>> methodName)),
>> requestEnvelope);
>>  mepClient.execute(true);
>> MessageContext responseMsgCtx =
>> mepClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
>>
>> However, when running this test suite, sometimes I receive random
>> NullPointerExceptions on different methods. Note that I do not get this
>> exception on the same test methods, rather I might get it on one or two
>> random methods during a single test run or I might not get it at all. The
>> stack trace for a typical occurrence is;
>>
>> java.lang.NullPointerException
>> at
>>
>> org.apache.axis2.context.AbstractContext.needPropertyDifferences(AbstractContext.java:239)
>> at
>>
>> org.apache.axis2.context.AbstractContext.setProperty(AbstractContext.java:202)
>> at
>>
>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:270)
>> at
>>
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
>> at
>> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>> at
>>
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
>> at
>>
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at
>>
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398)
>> at
>>
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
>> at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>> at
>>
>> org.wso2.carbon.connector.integration.test.googledrive.GoogledriveConnectorIntegrationTest.testgetCommentByIDOptionalParams(GoogledriveConnectorIntegrationTest.java:1316)
>>
>> In these instances, I have noticed that the correct response is returned
>> by
>> the backend API via monitoring the wire log, however, the test will simply
>> fail giving the above stack trace.
>>
>> Is there any way to overcome this issue?
>>
>> Thanks.
>>
>>
>>
>> --
>> View this message in context:
>> http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-Getting-random-NullPointerException-on-Operation-Client-during-Connector-Integration-Tests-tp93294.html
>> Sent from the WSO2 Development mailing list archive at Nabble.com.
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
>
> --
> Dushan Abeyruwan | Associate Tech Lead
>  Integration Technologies Team
> PMC Member Apache Synpase
> WSO2 Inc. http://wso2.com/
> Blog:http://dushansview.blogspot.com/
> Mobile:(0094)713942042
>
>


-- 
Dushan A

Re: [Dev] Include -DworkerNode=false by default in wso2server.sh startup script?

2014-03-11 Thread Shameera Rathnayaka
Hi Azeez/Sameera,

It is bit confuse as we have workerNode property and profile property,AFAIK
Manger node means carbon runtime with default profile and worker node mean
carbon runtime with worker profile. So what if we remove this workerNode
property  and use -Dprofile=worker instead ( or add this to carbon.xml for
the sake of clearness)? . please correct me if i am wrong here.

Thanks,
Shameera.


On Sat, Mar 8, 2014 at 11:01 PM, Afkham Azeez  wrote:

>
>
>
> On Sat, Mar 8, 2014 at 8:58 AM, Kasun Gajasinghe  wrote:
>
>>
>>
>> On Friday, March 7, 2014, Afkham Azeez  wrote:
>>
>>> Worker manager separation is not applicable to all products in the
>>> platform. Hence, it is wrong to have an irrelevant parameter in products
>>> where this concept does not apply.
>>>
>>>
>> Yes, that's fine Azeez. But if we go with this argument, it's wrong to
>> have the GhostDeployment tag in carbon.xml which is only applicable to AS.
>> And, whole clustering section in axis2.xml doesn't make sense in products
>> like mb, bam etc. isn't it? There are lot of cases like this.
>>
>
> Clustering makes sense. If you need to use distributed caching for
> example, you need to enable clustering.
>
>
>>
>> I guess this is a trade-off that we have to live with with the wide-range
>> of products we have!! It's at least better than the alternative we have
>> right now where the user has to be mindful about the use of workerNode
>> property. Adding this shows the importance of the property. Wdyt?
>>
>
> Just because we may have done certain things in an not so proper way, it
> does not give you an excuse to continue to add to that.
>
>
>>
>> Thanks,
>> KasunG
>>
>>
>>>
>>> Azeez
>>>
>>
>>>
>>> On Mon, Mar 3, 2014 at 10:40 PM, Kasun Gajasinghe wrote:
>>>
 Hi,

 Shall we $subject from Carbon 4.3.0? And then, force the users to
 enable workerNode mode by modifying the startup script itself, instead of
 passing -DworkerNode=true property via command-line?

 We have noticed that lot of users are passing the said property via the
 command-line, but they sometimes miss to set that. That might lead to lot
 of issues especially in DepSync. If we set as above, we can lower the human
 errors. WDYT?

 Thanks,
 KasunG

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


  ,
 *email: *
 *kasung AT spamfree wso2.com    ** cell: **+94 (77)
 678-0813 <%2B94%20%2877%29%20678-0813>*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe



 *blog: **http://kasunbg.org* 



 *twitter: **http://twitter.com/kasunbg* 




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


>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com*
>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: 
>>> **http://twitter.com/afkham_azeez*
>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>> --
>> *Kasun Gajasinghe*
>> Software Engineer;
>> WSO2 Inc.; http://wso2.com
>>
>>
>>  ,
>> *email: *
>> *kasung AT spamfree wso2.com    ** cell: **+94 (77)
>> 678-0813 <%2B94%20%2877%29%20678-0813>*
>> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>>
>>
>>
>> *blog: **http://kasunbg.org* 
>>
>>
>>
>> *twitter: **http://twitter.com/kasunbg* 
>>
>>
>>
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Software Engineer - WSO2 Inc.*
*email: shameera AT wso2.com  , shameera AT apache.org
*
*phone:  +9471 922 1454*

*Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
*Twitter : *https://twitter.com/Shameera_R
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Getting random NullPointerException on Operation Client during Connector Integration Tests

2014-03-11 Thread Dushan Abeyruwan
Hi Ramidu
Can I know I you terminate your client operations? when searching issue
related to the stack you posted, it seems like the client handler shutdown
immediately but still there are some requests being processing.

based on the searching [1] reported similar issue and to avoid what we have
suggested [2]
[1]https://wso2.org/jira/browse/CARBON-10439
[2]https://wso2.org/jira/browse/ESBJAVA-2419


Cheers,
Dushan




https://wso2.org/jira/browse/CARBON-10439




On Tue, Mar 11, 2014 at 3:15 PM, Ramindu Deshapriya wrote:

> Hi,
>
> I have written 50+ Integration Tests for the Google Drive Cloud Connector
> using a ServiceClient to send messages to the ESB. I use the following
> method to build the client:
>
> public static OperationClient buildMEPClient(EndpointReference endpoint,
> OMElement request) throws AxisFault {
>
> ServiceClient serviceClient = new ServiceClient();
>
> Options serviceOptions = new Options();
> serviceOptions.setTo(endpoint);
> serviceOptions.setAction("mediate");
> serviceClient.setOptions(serviceOptions);
> MessageContext messageContext = new MessageContext();
>
> SOAPEnvelope soapEnvelope =
> TransportUtils.createSOAPEnvelope(request);
> messageContext.setEnvelope(soapEnvelope);
> OperationClient mepClient =
> serviceClient.createClient(ServiceClient.ANON_OUT_IN_OP);
> mepClient.addMessageContext(messageContext);
> return mepClient;
> }
>
> after which I call mepClient.execute(true) to receive a response in the
> following manner within each test:
>
> mepClient = ConnectorIntegrationUtil.buildMEPClient(new EndpointReference(
> getProxyServiceURL(CONNECTOR_NAME + "_" + methodName)),
> requestEnvelope);
>  mepClient.execute(true);
> MessageContext responseMsgCtx =
> mepClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
>
> However, when running this test suite, sometimes I receive random
> NullPointerExceptions on different methods. Note that I do not get this
> exception on the same test methods, rather I might get it on one or two
> random methods during a single test run or I might not get it at all. The
> stack trace for a typical occurrence is;
>
> java.lang.NullPointerException
> at
>
> org.apache.axis2.context.AbstractContext.needPropertyDifferences(AbstractContext.java:239)
> at
>
> org.apache.axis2.context.AbstractContext.setProperty(AbstractContext.java:202)
> at
>
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:270)
> at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
> at
> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
> at
>
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
> at
>
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
>
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398)
> at
>
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
> at
>
> org.wso2.carbon.connector.integration.test.googledrive.GoogledriveConnectorIntegrationTest.testgetCommentByIDOptionalParams(GoogledriveConnectorIntegrationTest.java:1316)
>
> In these instances, I have noticed that the correct response is returned by
> the backend API via monitoring the wire log, however, the test will simply
> fail giving the above stack trace.
>
> Is there any way to overcome this issue?
>
> Thanks.
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-Getting-random-NullPointerException-on-Operation-Client-during-Connector-Integration-Tests-tp93294.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Dushan Abeyruwan | Associate Tech Lead
Integration Technologies Team
PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:http://dushansview.blogspot.com/
Mobile:(0094)713942042
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2014 : Implement Registry Extension (RXT) 2.0 + Associated UI support

2014-03-11 Thread Iresha Udayangani
Hi all,

Thank you for your replies. I was able to create a sample JSON file
which can be used instead of the current XML file (attached). The
current default rxt in the Artifact Source editor can be replaced by
something similar to the above.

I also went through org.wso2.carbon.governance.generic and
org.wso2.carbon.governance.generic.ui components in governance and
seems like it's the best starting point to look at the code. As far as I
could understand, the java classes corresponding jsp files needs to be
modified in order to facilitate using json instead of xml.

The XML parsing done through axiom needs to be replaced by a new JSON
parser. As mentioned in the [4] above, the new json based
implementation could facilitate adding a new artifact type inside
another artifact. I could understand how a new artifact can be added
inside an existing json file of an artifact, but I'm not very much
sure how to implement it in the code level.

Please let me know what are the other aspects of the project which I
could look at in order to get an overall idea of the project. I will
upload a draft proposal in couple of days.

Thanks,
Iresha



On Mon, Mar 10, 2014 at 7:39 AM, Eranda Sooriyabandara wrote:

> Hi Iresha,
> The deliverables to this project would be,
>
> 1. A jason configuration for replacing current RXT configuration model
> 2. Plug that model to the existing UI generator model (This should be
> refactor or replace our old UI generator)
> 3. Plug that model to the existing Governance API
> 4. Implementing nested RXT support - Currently we only allow to have basic
> data support in field. But we need to improve this to define another
> datatype inside a datatype. I'll explain this in detail later.
>
> thanks
> Eranda
>
>
> On Fri, Mar 7, 2014 at 11:01 AM, Iresha Udayangani wrote:
>
>> Hi all,
>>
>>
>> I'm Iresha Udayangani, a 3rd year undergraduate of department of
>> Electronic and Telecommunication Engineering, University of Moratuwa,
>> Sri Lanka. I went through the list of WSO2 project ideas for GSOC
>>
>> 2014. Proposal 1: Implement Registry Extension (RXT) 2.0 + Associated
>>
>> UI support seemed to be quite interesting and match my past
>> experiences.
>>
>> I was able to download wso2greg-4.6.0, then run it. I went through
>> some of the reference documents/webinars and uploaded a couple of rxt
>> files(person.rxt, project.rxt) in Extensions->Artifact Types ->Add new
>> Artifacts and got familiar with their functionality.
>>
>> As far as I can understand the project expects the following,
>>
>> [1] A new RXT format should be defined using JSON, instead of the
>> current XML Structure, so that existing JSPs might need few
>> alterations in order to render UIs based on the new JSON format.
>> JSON seems to be more efficient and browser friendly compared to XML.
>>
>> [2] Instead of user manually configuring/creating the XML structure
>> (RXT definition) the project expects to automatically generate the RXT
>> definition from a UI template.
>>
>> [3] When adding a new Artifact type, user can be provided with a new
>> UI where it contains basic fields to be filled (such as artifactType,
>> singularLabel, pluralLabel, storagePath etc. ) and few custom elements
>> (to add UI columns, content fields) instead of the current XML editor,
>> where user needs a bit of programming background to configure things.
>> After the user successfully configured the new artifact, the RXT
>> format can be generated using the information provided in the previous
>> step. An editor can be provided  for the advanced users as well.
>>
>> I'm a bit struggling in understanding  some of the project
>> deliverables and trying to find the code samples, where it needs to be
>> modified. It would be much helpful if anyone could help me out with
>> more details.
>>
>> Thanks,
>> Iresha.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Eranda Sooriyabandara*Senior Software Engineer;
> Integration Technologies Team;
> WSO2 Inc.; http://wso2.com
>  Lean . Enterprise . Middleware
>
> E-mail: eranda AT wso2.com
> Mobile: +94 716 472 816
> Linked-In: http://www.linkedin.com/in/erandasooriyabandara
> Blog: http://emsooriyabandara.blogspot.com/
>
>
>
>
>


-- 
Iresha Udayangani
Undergraduate ,
Department of Electronic & Telecommunication,
University Of Moratuwa.


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


Re: [Dev] Test framework for carbon kernal 4.3.0 products.

2014-03-11 Thread Kasun Gajasinghe
Hi Krishantha,

This is added now -
http://54.84.136.218:8080/jenkins/job/carbon-platform-integration-utils/


On Tue, Mar 11, 2014 at 7:25 PM, Krishantha Samaraweera  wrote:

> Hi Kasun,
>
> Please add following repo to Jenkins. This contain all common utils of
> test framework.
>
> https://github.com/wso2/carbon-platform-integration-utils
>
> Thanks,
> Krishantha.
>
>
> On Tue, Mar 11, 2014 at 4:34 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Hi Kasun,
>>
>> Introduced root pom in repository. Can you please check now.
>>
>> Thanks,
>> Krishantha.
>>
>>
>> On Tue, Mar 11, 2014 at 4:05 PM, Kasun Gajasinghe wrote:
>>
>>> Hi Krishantha,
>>>
>>> Thanks, I have added the build to jenkins.
>>> http://54.84.136.218:8080/jenkins/job/carbon-platform-integration/
>>>
>>> One question, do you need to top-level
>>> directory test-automation-framework in your git repo? Currently, the
>>> jenkins build is failing since it can't find the root pom. We can configure
>>> jenkins to the correct pom.xml path, but wanted to make sure. Other
>>> projects has the pom.xml at root level.
>>>
>>> Thanks,
>>> KasunG
>>>
>>>
>>> On Tue, Mar 11, 2014 at 3:49 PM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Hi KasunG,

 Please add https://github.com/wso2/carbon-platform-integration to
 Jenkins build.

 Thanks,
 Krishantha


 On Mon, Mar 3, 2014 at 10:23 PM, Krishantha Samaraweera <
 krishan...@wso2.com> wrote:

> Hi Eranda,
>
> Can you create separate repository for platform automated test suite.
> This repo will be build after building products with integration tests.
>
> Thanks,
> Krishantha.
>
>
> On Mon, Mar 3, 2014 at 1:15 PM, Geeth Munasinghe wrote:
>
>> Can some one from QAA team re-factor carbon-platform-integration in
>> git repo ?
>>
>> Please refer the mail thread [1] for the instructions regarding
>> refactoring.
>>
>> [1] Guidelines to move project into GitHub.
>>
>> Thanks
>> Geeth
>>
>>
>>
>>
>> *G. K. S. Munasinghe *
>> *Software Engineer,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ge...@wso2.com
>> phone:(+94) 777911226
>>
>>
>> On Sun, Mar 2, 2014 at 9:59 PM, Eranda Sooriyabandara <
>> era...@wso2.com> wrote:
>>
>>> Hi All,
>>> This project is created by now in [1] but need to clarify what to
>>> include and where.
>>>
>>> thanks
>>> Eranda
>>>
>>> [1]. https://github.com/wso2/carbon-platform-integration
>>>
>>>
>>> On Sat, Mar 1, 2014 at 7:45 PM, Geeth Munasinghe wrote:
>>>
 AFAIK We have not created a git repo for platform integration yet.

 @Eranda
 Can you please create git repo for platform integration?

 Thanks
 Geeth


 On Saturday, March 1, 2014, Krishantha Samaraweera <
 krishan...@wso2.com> wrote:

> Kernel test framework is already available in 4.3.0, and AFAIK all
> kernel tests are passing.
>
> Anybody created git repo for Platform-integration ? platform level
> test framework is required for AS integration tests.
>
> Also we need to migrate all AS integration tests to our new
> framework. I will work with you on this.
>
> Thanks,
> Krishantha.
>
>
> On Sat, Mar 1, 2014 at 2:46 PM, Geeth Munasinghe 
> wrote:
>
>> Hi,
>>
>> To release kernal 4.3.0 based products we will have to run test
>> automation framework with all the products. For that we will need to 
>> have
>> the test automation framework on kernal 4.3.0.
>> And we will have to move test framework to github too.  We will
>> have to do this soon, because AS release need to go on Q1.
>>
>> Can someone from QAA team help with this task ?
>>
>> Thanks
>> Geeth
>>
>>
>>
>>
>> *G. K. S. Munasinghe*
>> *Software Engineer,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ge...@wso2.com
>> phone:(+94) 777911226
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>


 --

 *G. K. S. Munasinghe*
 *Software Engineer,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: ge...@wso2.com
 phone:(+94) 777911226


>>>
>>>

Re: [Dev] Test framework for carbon kernal 4.3.0 products.

2014-03-11 Thread Krishantha Samaraweera
Hi Kasun,

Please add following repo to Jenkins. This contain all common utils of test
framework.

https://github.com/wso2/carbon-platform-integration-utils

Thanks,
Krishantha.


On Tue, Mar 11, 2014 at 4:34 PM, Krishantha Samaraweera  wrote:

> Hi Kasun,
>
> Introduced root pom in repository. Can you please check now.
>
> Thanks,
> Krishantha.
>
>
> On Tue, Mar 11, 2014 at 4:05 PM, Kasun Gajasinghe  wrote:
>
>> Hi Krishantha,
>>
>> Thanks, I have added the build to jenkins.
>> http://54.84.136.218:8080/jenkins/job/carbon-platform-integration/
>>
>> One question, do you need to top-level
>> directory test-automation-framework in your git repo? Currently, the
>> jenkins build is failing since it can't find the root pom. We can configure
>> jenkins to the correct pom.xml path, but wanted to make sure. Other
>> projects has the pom.xml at root level.
>>
>> Thanks,
>> KasunG
>>
>>
>> On Tue, Mar 11, 2014 at 3:49 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi KasunG,
>>>
>>> Please add https://github.com/wso2/carbon-platform-integration to
>>> Jenkins build.
>>>
>>> Thanks,
>>> Krishantha
>>>
>>>
>>> On Mon, Mar 3, 2014 at 10:23 PM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Hi Eranda,

 Can you create separate repository for platform automated test suite.
 This repo will be build after building products with integration tests.

 Thanks,
 Krishantha.


 On Mon, Mar 3, 2014 at 1:15 PM, Geeth Munasinghe wrote:

> Can some one from QAA team re-factor carbon-platform-integration in
> git repo ?
>
> Please refer the mail thread [1] for the instructions regarding
> refactoring.
>
> [1] Guidelines to move project into GitHub.
>
> Thanks
> Geeth
>
>
>
>
> *G. K. S. Munasinghe *
> *Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>
>
> On Sun, Mar 2, 2014 at 9:59 PM, Eranda Sooriyabandara  > wrote:
>
>> Hi All,
>> This project is created by now in [1] but need to clarify what to
>> include and where.
>>
>> thanks
>> Eranda
>>
>> [1]. https://github.com/wso2/carbon-platform-integration
>>
>>
>> On Sat, Mar 1, 2014 at 7:45 PM, Geeth Munasinghe wrote:
>>
>>> AFAIK We have not created a git repo for platform integration yet.
>>>
>>> @Eranda
>>> Can you please create git repo for platform integration?
>>>
>>> Thanks
>>> Geeth
>>>
>>>
>>> On Saturday, March 1, 2014, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Kernel test framework is already available in 4.3.0, and AFAIK all
 kernel tests are passing.

 Anybody created git repo for Platform-integration ? platform level
 test framework is required for AS integration tests.

 Also we need to migrate all AS integration tests to our new
 framework. I will work with you on this.

 Thanks,
 Krishantha.


 On Sat, Mar 1, 2014 at 2:46 PM, Geeth Munasinghe wrote:

> Hi,
>
> To release kernal 4.3.0 based products we will have to run test
> automation framework with all the products. For that we will need to 
> have
> the test automation framework on kernal 4.3.0.
> And we will have to move test framework to github too.  We will
> have to do this soon, because AS release need to go on Q1.
>
> Can someone from QAA team help with this task ?
>
> Thanks
> Geeth
>
>
>
>
> *G. K. S. Munasinghe*
> *Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>



 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

>>>
>>>
>>> --
>>>
>>> *G. K. S. Munasinghe*
>>> *Software Engineer,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: ge...@wso2.com
>>> phone:(+94) 777911226
>>>
>>>
>>
>>
>> --
>>
>> *Eranda Sooriyabandara*Senior Software Engineer;
>> Integration Technologies Team;
>> WSO2 Inc.; http://wso2.com
>> Lean . Enterprise . Middleware
>>
>> E-mail: eranda AT wso2.com
>> Mobile: +94 716 472 816
>> Linked-In: http://www.linkedin.com/in/erandasooriyabandara
>> Blog: http://emsooriyabandara.blogspot.com/
>>
>>
>>
>>
>>
>


Re: [Dev] Invitation: CEP Admin API review @ Tue Mar 11, 2014 4:30pm - 5:30pm (mo...@wso2.com)

2014-03-11 Thread Mohanadarshan Vivekanandalingam
Based on review.. TODO list is committed in revision 198130, 198129..

Thanks,
Mohan


On Tue, Mar 11, 2014 at 4:16 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> more details 
> >>
> CEP Admin API review
> *When*
> Tue Mar 11, 2014 4:30pm - 5:30pm Colombo
> *Where*
> LK 6th Floor Meeting Room - Turing 
> (map
> )
> *Calendar*
> mo...@wso2.com
> *Who*
> *
> Mohanadarshan Vivekanandalingam - organizer
> *
> Lasantha Fernando
> *
> dev@wso2.org
> *
> Sriskandarajah Suhothayan
> *
> Sajith Ravindra
> *
> Rajeev Sampath
>
> 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 notifications 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
>
>


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

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


Re: [Dev] Finding current address and port for a carbon server

2014-03-11 Thread Ruchira Wageesha
Hi Chan,

Don't write a separate Jaggery module for that. Just update the carbon
Jaggery module with your fixes.

/Ruchira


On Tue, Mar 11, 2014 at 5:08 PM, Chan  wrote:

> Had an offline chat with Kishanthan and we found that CarbonUtils or
> CarbonUIUtils will not provide us the answer. Reasons are that both classes
> will append /services or /carbon to the returned url. Another fact is that
> we have to pass in a Axis2Configuration for certain methods. We found out
> that there are system properties called 'mgt.transport.http.proxyPort' & 
> 'mgt.transport.http.port'
> which can be used to construct the full server address. I'll be writing a
> jaggery module on this and I'll share it once it's done.
>
> Cheers~
>
>
> On Tue, Mar 11, 2014 at 1:36 PM, Chan  wrote:
>
>> I implemented a method to jaggery to get the HttpSession. But I ran to
>> another issue where the CarbonConstants.SERVER_URL is getting null from
>> HttpSession & ServletContext.
>>
>> Caused by: java.lang.NullPointerException
>> at
>> org.wso2.carbon.utils.CarbonUtils.getServerURL(CarbonUtils.java:773)
>> at
>> org.wso2.carbon.utils.CarbonUtils.getServerURL(CarbonUtils.java:766)
>> at
>> org.wso2.carbon.ui.CarbonUIUtil.getServerURL(CarbonUIUtil.java:105)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:601)
>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>> ... 47 more
>>
>> I had a chat with Ruchira and he said they don't setup these values in
>> Jaggery. Are they setup in the Tomcat level? Or what could be the problem.
>>
>>
>>
>> On Tue, Mar 11, 2014 at 10:40 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> From UI front, the easy way to get the server url is to use the above
>>> method.
>>>
>>>  From a UI related component, the easy way is to use 
>>> "CarbonUIUtils#getServerURL(ServerConfigurationService
>>> serverConfig)" method, where you need to acquire the
>>> ServerConfigurationService.
>>>
>>>
>>> On Mon, Mar 10, 2014 at 10:35 PM, Chan  wrote:
>>>
 Hi folks,
 I looked into CarbonUIUtils and found an interesting method *public
 static String getServerURL(ServletContext servletContext, HttpSession
 httpSession). *I can get the ServletContext from the application
 host-object but there seems to be no method to obtain the vanilla
 HttpSession from the session host-object. @Ruchira shall we improve the
 session host-object to have method to get HttpSession?

 Also I hope CarbonUIUtils won't be removed in the future refactoring.

 Cheers~


 On Mon, Mar 10, 2014 at 2:33 PM, Afkham Azeez  wrote:

> IIRC, the CarbonUtils or CarbonUIUtils class has methods to retrieve
> the server host & ports.
>
>
> Azeez
>
>
> On Mon, Mar 10, 2014 at 2:28 PM, Chan  wrote:
>
>> Hi folks,
>> I am having a confusion regarding how to find the carbon server
>> hostname and port. This problem is related to implementing SSO in jaggery
>> applications. Say for example in the login.jag we construct the current
>> hostname to return a form to client to go to the IDP provider page. For
>> this we need to find the https://server_adress:port/admin/samlsso.
>> For this the login.jag currently use -
>>
>> var host = process.getProperty('server.host')
>> if(host=="localhost"){
>>   var postUrl = "https://"; +
>> process.getProperty('carbon.local.ip') + ":" +
>> process.getProperty('https.port');
>> }else{
>>   var postUrl = "https://"; + host;
>> }
>>
>> To get the server to work in development we get 'carbon.local.ip'
>> from process and set it up. For production we suggest users to add the
>> hostname in the carbon.xml file. 'server.host' will be populated with
>> carbon.xml entry in runtime.
>>
>> The problem in this approach is that we can't specify ports in the
>> carbon.xml entry. To overcome this  -the quick fix for this would be to
>> append port to the host. But if we do that - proxy scenario is not 
>> covered.
>> What happens is that 'https.port' will return the carbon server port 
>> (9443)
>> but not the proxy port. If we expose the 9443 port to the client it will
>> not be reachable cause that port is blocked from the inside.
>>
>> Is there away to get the current address of the server - which get
>> the address from local ip for development and full address for production
>> that we can return for the client (browser)?
>>
>> Cheers~
>>
>> --
>> Chan (Dulitha Wijewantha)
>> Software Engineer - Mobile Development
>> WSO2Mobile
>>

Re: [Dev] WSO2 Products Tenant Creation Process calls the Reset Password

2014-03-11 Thread Danushka Fernando
Well By having custom userstores and tenant stores, someone can have shared
users and someone can create tenants with an existing user. But this call
breaks everything since its trying to reset the password of the given user.

@Manjula : Will check about hashing. Didn't aware about that.

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


On Mon, Mar 10, 2014 at 10:28 PM, Amila Maha Arachchi wrote:

> What are the issues of having this?
>
>
> On Thu, Mar 6, 2014 at 9:08 AM, Danushka Fernando wrote:
>
>> Hi all
>> I found that our tenant creation process is calling reset password call
>> inside tenant creation process.
>> When we call tenant creation it goes through *persistTenant* call in
>> *TenantPersistor* class. And it calls *persistTenantInUserStore*. In the
>> end of this call it calls for *updateTenantAdminPassword*.
>>
>> By the time Tenant Manager is created the tenant admin and have added the
>> password to the LDAP.
>>
>> So is there a particular reason that we should do this?
>>
>> I cant see any reason that we call the update/reset password at this
>> moment. So IMO we should remove this if no such reason. WDYT?
>>
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>
>
>
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Finding current address and port for a carbon server

2014-03-11 Thread Chan
Had an offline chat with Kishanthan and we found that CarbonUtils or
CarbonUIUtils will not provide us the answer. Reasons are that both classes
will append /services or /carbon to the returned url. Another fact is that
we have to pass in a Axis2Configuration for certain methods. We found out
that there are system properties called 'mgt.transport.http.proxyPort'
& 'mgt.transport.http.port'
which can be used to construct the full server address. I'll be writing a
jaggery module on this and I'll share it once it's done.

Cheers~


On Tue, Mar 11, 2014 at 1:36 PM, Chan  wrote:

> I implemented a method to jaggery to get the HttpSession. But I ran to
> another issue where the CarbonConstants.SERVER_URL is getting null from
> HttpSession & ServletContext.
>
> Caused by: java.lang.NullPointerException
> at
> org.wso2.carbon.utils.CarbonUtils.getServerURL(CarbonUtils.java:773)
> at
> org.wso2.carbon.utils.CarbonUtils.getServerURL(CarbonUtils.java:766)
> at
> org.wso2.carbon.ui.CarbonUIUtil.getServerURL(CarbonUIUtil.java:105)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
> ... 47 more
>
> I had a chat with Ruchira and he said they don't setup these values in
> Jaggery. Are they setup in the Tomcat level? Or what could be the problem.
>
>
>
> On Tue, Mar 11, 2014 at 10:40 AM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> From UI front, the easy way to get the server url is to use the above
>> method.
>>
>> From a UI related component, the easy way is to use 
>> "CarbonUIUtils#getServerURL(ServerConfigurationService
>> serverConfig)" method, where you need to acquire the
>> ServerConfigurationService.
>>
>>
>> On Mon, Mar 10, 2014 at 10:35 PM, Chan  wrote:
>>
>>> Hi folks,
>>> I looked into CarbonUIUtils and found an interesting method *public
>>> static String getServerURL(ServletContext servletContext, HttpSession
>>> httpSession). *I can get the ServletContext from the application
>>> host-object but there seems to be no method to obtain the vanilla
>>> HttpSession from the session host-object. @Ruchira shall we improve the
>>> session host-object to have method to get HttpSession?
>>>
>>> Also I hope CarbonUIUtils won't be removed in the future refactoring.
>>>
>>> Cheers~
>>>
>>>
>>> On Mon, Mar 10, 2014 at 2:33 PM, Afkham Azeez  wrote:
>>>
 IIRC, the CarbonUtils or CarbonUIUtils class has methods to retrieve
 the server host & ports.


 Azeez


 On Mon, Mar 10, 2014 at 2:28 PM, Chan  wrote:

> Hi folks,
> I am having a confusion regarding how to find the carbon server
> hostname and port. This problem is related to implementing SSO in jaggery
> applications. Say for example in the login.jag we construct the current
> hostname to return a form to client to go to the IDP provider page. For
> this we need to find the https://server_adress:port/admin/samlsso.
> For this the login.jag currently use -
>
> var host = process.getProperty('server.host')
> if(host=="localhost"){
>   var postUrl = "https://"; +
> process.getProperty('carbon.local.ip') + ":" +
> process.getProperty('https.port');
> }else{
>   var postUrl = "https://"; + host;
> }
>
> To get the server to work in development we get 'carbon.local.ip' from
> process and set it up. For production we suggest users to add the hostname
> in the carbon.xml file. 'server.host' will be populated with carbon.xml
> entry in runtime.
>
> The problem in this approach is that we can't specify ports in the
> carbon.xml entry. To overcome this  -the quick fix for this would be to
> append port to the host. But if we do that - proxy scenario is not 
> covered.
> What happens is that 'https.port' will return the carbon server port 
> (9443)
> but not the proxy port. If we expose the 9443 port to the client it will
> not be reachable cause that port is blocked from the inside.
>
> Is there away to get the current address of the server - which get the
> address from local ip for development and full address for production that
> we can return for the client (browser)?
>
> Cheers~
>
> --
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
> WSO2Mobile
> Lean.Enterprise.Mobileware
>  * ~Email   duli...@wso2.com *
> *  ~Mobile +94712112165 <%2B94712112165>*
> *  ~Website   dulitha.me *
> *  ~Twitter @dulitharw *
>   *~SO @chan 

[Dev] Build fails in Jenkins Due to No space

2014-03-11 Thread Vanjikumaran Sivajothy
Hi,

Please take the necessary action to avoid this build failure due to No
space left on device.



[INFO] WSO2 Carbon - Template Editor Common .. SUCCESS [2.583s]
[INFO] WSO2 Carbon - Template Editor UI .. SUCCESS [2.901s]
[INFO] WSO2 Carbon - HL7 Business Messaging - Store UI ... SUCCESS [2.438s]
[INFO] WSO2 Carbon - HL7 Business Messaging - Samples  FAILURE [4.945s]
[INFO] SAP transport . SKIPPED
[INFO] WSO2 Carbon - Cloud Connector For Core  SKIPPED
[INFO] WSO2 Carbon - Endpoint Editor BE .. SKIPPED
[INFO] WSO2 Carbon - Localentry BE ... SKIPPED
[INFO] WSO2 Carbon - Synapse Artifact Uploader BE  SKIPPED
[INFO] WSO2 Carbon - Mediation Library ... SKIPPED
[INFO] WSO2 Carbon - Synapse Security  SKIPPED
[INFO] WSO2 Carbon - Template Editor BE .. SKIPPED
[INFO] WSO2 Carbon - Class Mediator Service .. SKIPPED
[INFO] WSO2 Carbon - Message processor Admin BE .. SKIPPED
[INFO] WSO2 Carbon - Message Store Admin BE .. SKIP[INFO]
Final Memory: 519M/847M
[INFO] 
ERROR: Asynchronous execution
failurejava.util.concurrent.ExecutionException
:
java.io.IOException: No space left on device
at hudson.remoting.Channel$3.adapt(Channel.java:755)

at hudson.remoting.Channel$3.adapt(Channel.java:750)

at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)

at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:185)

at hudson.maven.Maven3Builder.call(Maven3Builder.java:141)

at hudson.maven.Maven3Builder.call(Maven3Builder.java:69)

at hudson.remoting.UserRequest.perform(UserRequest.java:118)

at hudson.remoting.UserRequest.perform(UserRequest.java:48)

at hudson.remoting.Request$2.run(Request.java:328)

at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

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

at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

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

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

Caused by: java.io.IOException
:
No space left on device
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:345)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:316)
at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:149)
at java.io.OutputStreamWriter.close(OutputStreamWriter.java:233)
at java.io.BufferedWriter.close(BufferedWriter.java:266)
at hudson.util.AtomicFileWriter.close(AtomicFileWriter.java:94)
at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:109)
at hudson.model.Fingerprint.save(Fingerprint.java:1149)
at hudson.model.Fingerprint.save(Fingerprint.java:1099)
at hudson.model

Re: [Dev] Need to add drools 6.0.1.wso2v1 to orbit

2014-03-11 Thread Thilini Ishaka
Thanks Sameera.

Eranda/KasunG; Could you please create drools under [1].

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

Thanks
Thilini


On Tue, Mar 11, 2014 at 10:01 AM, Sameera Jayasoma  wrote:

> Hi Thilini,
>
> Create this orbit bundle in our new Github orbit repo and release it.
> Thats the best option
>
> Thanks,
> Sameera.
>
>
> On Mon, Mar 10, 2014 at 10:25 PM, Thilini Ishaka  wrote:
>
>> BRS will go with chunk-8. This release is based on svn since we haven't
>> moved BRS related components,etc to github yet.
>>
>> We need to upgrade drools version to the latest for this release. We do
>> not have drools in orbit/4.2.0
>>
>> A related mail* "[Dev] Need to add Hazelcast 2.5.wso2v1 to orbit" *suggests
>> to;
>>
>>
>>
>> *"wrap 3rd party jars from our main code repo, and have a separate repo
>> for that. All such orbit bundles will immediately be graduated, and
>> deployed into the WSO2 Maven repo. If there is an issue with such an orbit
>> bundle, which is a rare occurrence, you have to increment the orbit version
>> of that bundle." *
>> At the moment I can't find any graduated such bundle in [1]. Can I go
>> ahead and create drools 6.0.1.wso2v1 under [1] ?
>>
>> [1] https://svn.wso2.org/repos/wso2/carbon/orbit/graduated/
>>
>> or another suggestion is to create it in github?
>>
>> WDYT?
>>
>> Thanks
>> Thilini
>>
>> --
>> Thilini Ishaka
>> Senior Software Engineer
>>  Phone: +94 11 214 5345
>> WSO2 Inc. http://wso2.com
>>
>> blog: thiliniishaka.blogspot.com
>> linkedin: http://lk.linkedin.com/in/thiliniishaka
>> twitter: https://twitter.com/#!/ThiliniIsh
>>
>
>
>
> --
> Sameera Jayasoma,
> Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://sameera.adahas.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>



-- 
Thilini Ishaka
Senior Software Engineer
Phone: +94 11 214 5345
WSO2 Inc. http://wso2.com

blog: thiliniishaka.blogspot.com
linkedin: http://lk.linkedin.com/in/thiliniishaka
twitter: https://twitter.com/#!/ThiliniIsh
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Test framework for carbon kernal 4.3.0 products.

2014-03-11 Thread Krishantha Samaraweera
Hi Kasun,

Introduced root pom in repository. Can you please check now.

Thanks,
Krishantha.


On Tue, Mar 11, 2014 at 4:05 PM, Kasun Gajasinghe  wrote:

> Hi Krishantha,
>
> Thanks, I have added the build to jenkins.
> http://54.84.136.218:8080/jenkins/job/carbon-platform-integration/
>
> One question, do you need to top-level directory test-automation-framework
> in your git repo? Currently, the jenkins build is failing since it can't
> find the root pom. We can configure jenkins to the correct pom.xml path,
> but wanted to make sure. Other projects has the pom.xml at root level.
>
> Thanks,
> KasunG
>
>
> On Tue, Mar 11, 2014 at 3:49 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Hi KasunG,
>>
>> Please add https://github.com/wso2/carbon-platform-integration to
>> Jenkins build.
>>
>> Thanks,
>> Krishantha
>>
>>
>> On Mon, Mar 3, 2014 at 10:23 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi Eranda,
>>>
>>> Can you create separate repository for platform automated test suite.
>>> This repo will be build after building products with integration tests.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>> On Mon, Mar 3, 2014 at 1:15 PM, Geeth Munasinghe  wrote:
>>>
 Can some one from QAA team re-factor carbon-platform-integration in git
 repo ?

 Please refer the mail thread [1] for the instructions regarding
 refactoring.

 [1] Guidelines to move project into GitHub.

 Thanks
 Geeth




 *G. K. S. Munasinghe *
 *Software Engineer,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: ge...@wso2.com
 phone:(+94) 777911226


 On Sun, Mar 2, 2014 at 9:59 PM, Eranda Sooriyabandara 
 wrote:

> Hi All,
> This project is created by now in [1] but need to clarify what to
> include and where.
>
> thanks
> Eranda
>
> [1]. https://github.com/wso2/carbon-platform-integration
>
>
> On Sat, Mar 1, 2014 at 7:45 PM, Geeth Munasinghe wrote:
>
>> AFAIK We have not created a git repo for platform integration yet.
>>
>> @Eranda
>> Can you please create git repo for platform integration?
>>
>> Thanks
>> Geeth
>>
>>
>> On Saturday, March 1, 2014, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Kernel test framework is already available in 4.3.0, and AFAIK all
>>> kernel tests are passing.
>>>
>>> Anybody created git repo for Platform-integration ? platform level
>>> test framework is required for AS integration tests.
>>>
>>> Also we need to migrate all AS integration tests to our new
>>> framework. I will work with you on this.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>> On Sat, Mar 1, 2014 at 2:46 PM, Geeth Munasinghe wrote:
>>>
 Hi,

 To release kernal 4.3.0 based products we will have to run test
 automation framework with all the products. For that we will need to 
 have
 the test automation framework on kernal 4.3.0.
 And we will have to move test framework to github too.  We will
 have to do this soon, because AS release need to go on Q1.

 Can someone from QAA team help with this task ?

 Thanks
 Geeth




 *G. K. S. Munasinghe*
 *Software Engineer,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: ge...@wso2.com
 phone:(+94) 777911226

>>>
>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>> --
>>
>> *G. K. S. Munasinghe*
>> *Software Engineer,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ge...@wso2.com
>> phone:(+94) 777911226
>>
>>
>
>
> --
>
> *Eranda Sooriyabandara*Senior Software Engineer;
> Integration Technologies Team;
> WSO2 Inc.; http://wso2.com
> Lean . Enterprise . Middleware
>
> E-mail: eranda AT wso2.com
> Mobile: +94 716 472 816
> Linked-In: http://www.linkedin.com/in/erandasooriyabandara
> Blog: http://emsooriyabandara.blogspot.com/
>
>
>
>
>

>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>> Krishantha Samaraweera
>> Senior Technical Lead - Test Automation
>> Mobile: +94 77 7759918
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> *Kasun Gajasinghe*
> Software Engineer;
> WSO2 Inc.; http://

Re: [Dev] Test framework for carbon kernal 4.3.0 products.

2014-03-11 Thread Sagara Gunathunga
On Tue, Mar 11, 2014 at 4:25 PM, Krishantha Samaraweera  wrote:

> We might introduce test automation dashboard and deployment framework in
> future under top level directory. So having " test-automation-framework"
> under root level is required.
>

+1

Thanks !


> I will add a root pom to this project.
>
> Thanks,
> Krishantha.
>
>
> On Tue, Mar 11, 2014 at 4:09 PM, Sagara Gunathunga wrote:
>
>>
>>
>>
>> On Tue, Mar 11, 2014 at 4:05 PM, Kasun Gajasinghe wrote:
>>
>>> Hi Krishantha,
>>>
>>
>>  I think you don't need top level directory called
>> " test-automation-framework", is there any specific reason to have it ?
>>
>> Thanks !
>>
>>>
>>> Thanks, I have added the build to jenkins.
>>> http://54.84.136.218:8080/jenkins/job/carbon-platform-integration/
>>>
>>> One question, do you need to top-level
>>> directory test-automation-framework in your git repo? Currently, the
>>> jenkins build is failing since it can't find the root pom. We can configure
>>> jenkins to the correct pom.xml path, but wanted to make sure. Other
>>> projects has the pom.xml at root level.
>>>
>>> Thanks,
>>> KasunG
>>>
>>>
>>> On Tue, Mar 11, 2014 at 3:49 PM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Hi KasunG,

 Please add https://github.com/wso2/carbon-platform-integration to
 Jenkins build.

 Thanks,
 Krishantha


 On Mon, Mar 3, 2014 at 10:23 PM, Krishantha Samaraweera <
 krishan...@wso2.com> wrote:

> Hi Eranda,
>
> Can you create separate repository for platform automated test suite.
> This repo will be build after building products with integration tests.
>
> Thanks,
> Krishantha.
>
>
> On Mon, Mar 3, 2014 at 1:15 PM, Geeth Munasinghe wrote:
>
>> Can some one from QAA team re-factor carbon-platform-integration in
>> git repo ?
>>
>> Please refer the mail thread [1] for the instructions regarding
>> refactoring.
>>
>> [1] Guidelines to move project into GitHub.
>>
>> Thanks
>> Geeth
>>
>>
>>
>>
>> *G. K. S. Munasinghe *
>> *Software Engineer,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ge...@wso2.com
>> phone:(+94) 777911226
>>
>>
>> On Sun, Mar 2, 2014 at 9:59 PM, Eranda Sooriyabandara <
>> era...@wso2.com> wrote:
>>
>>> Hi All,
>>> This project is created by now in [1] but need to clarify what to
>>> include and where.
>>>
>>> thanks
>>> Eranda
>>>
>>> [1]. https://github.com/wso2/carbon-platform-integration
>>>
>>>
>>> On Sat, Mar 1, 2014 at 7:45 PM, Geeth Munasinghe wrote:
>>>
 AFAIK We have not created a git repo for platform integration yet.

 @Eranda
 Can you please create git repo for platform integration?

 Thanks
 Geeth


 On Saturday, March 1, 2014, Krishantha Samaraweera <
 krishan...@wso2.com> wrote:

> Kernel test framework is already available in 4.3.0, and AFAIK all
> kernel tests are passing.
>
> Anybody created git repo for Platform-integration ? platform level
> test framework is required for AS integration tests.
>
> Also we need to migrate all AS integration tests to our new
> framework. I will work with you on this.
>
> Thanks,
> Krishantha.
>
>
> On Sat, Mar 1, 2014 at 2:46 PM, Geeth Munasinghe 
> wrote:
>
>> Hi,
>>
>> To release kernal 4.3.0 based products we will have to run test
>> automation framework with all the products. For that we will need to 
>> have
>> the test automation framework on kernal 4.3.0.
>> And we will have to move test framework to github too.  We will
>> have to do this soon, because AS release need to go on Q1.
>>
>> Can someone from QAA team help with this task ?
>>
>> Thanks
>> Geeth
>>
>>
>>
>>
>> *G. K. S. Munasinghe*
>> *Software Engineer,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ge...@wso2.com
>> phone:(+94) 777911226
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>


 --

 *G. K. S. Munasinghe*
 *Software Engineer,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: ge...@wso2.com
 phone:(+94) 777911226


>>>
>>>
>>> --
>>>

Re: [Dev] Test framework for carbon kernal 4.3.0 products.

2014-03-11 Thread Krishantha Samaraweera
We might introduce test automation dashboard and deployment framework in
future under top level directory. So having " test-automation-framework"
under root level is required.

I will add a root pom to this project.

Thanks,
Krishantha.


On Tue, Mar 11, 2014 at 4:09 PM, Sagara Gunathunga  wrote:

>
>
>
> On Tue, Mar 11, 2014 at 4:05 PM, Kasun Gajasinghe  wrote:
>
>> Hi Krishantha,
>>
>
> I think you don't need top level directory called
> " test-automation-framework", is there any specific reason to have it ?
>
> Thanks !
>
>>
>> Thanks, I have added the build to jenkins.
>> http://54.84.136.218:8080/jenkins/job/carbon-platform-integration/
>>
>> One question, do you need to top-level
>> directory test-automation-framework in your git repo? Currently, the
>> jenkins build is failing since it can't find the root pom. We can configure
>> jenkins to the correct pom.xml path, but wanted to make sure. Other
>> projects has the pom.xml at root level.
>>
>> Thanks,
>> KasunG
>>
>>
>> On Tue, Mar 11, 2014 at 3:49 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi KasunG,
>>>
>>> Please add https://github.com/wso2/carbon-platform-integration to
>>> Jenkins build.
>>>
>>> Thanks,
>>> Krishantha
>>>
>>>
>>> On Mon, Mar 3, 2014 at 10:23 PM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Hi Eranda,

 Can you create separate repository for platform automated test suite.
 This repo will be build after building products with integration tests.

 Thanks,
 Krishantha.


 On Mon, Mar 3, 2014 at 1:15 PM, Geeth Munasinghe wrote:

> Can some one from QAA team re-factor carbon-platform-integration in
> git repo ?
>
> Please refer the mail thread [1] for the instructions regarding
> refactoring.
>
> [1] Guidelines to move project into GitHub.
>
> Thanks
> Geeth
>
>
>
>
> *G. K. S. Munasinghe *
> *Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>
>
> On Sun, Mar 2, 2014 at 9:59 PM, Eranda Sooriyabandara  > wrote:
>
>> Hi All,
>> This project is created by now in [1] but need to clarify what to
>> include and where.
>>
>> thanks
>> Eranda
>>
>> [1]. https://github.com/wso2/carbon-platform-integration
>>
>>
>> On Sat, Mar 1, 2014 at 7:45 PM, Geeth Munasinghe wrote:
>>
>>> AFAIK We have not created a git repo for platform integration yet.
>>>
>>> @Eranda
>>> Can you please create git repo for platform integration?
>>>
>>> Thanks
>>> Geeth
>>>
>>>
>>> On Saturday, March 1, 2014, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Kernel test framework is already available in 4.3.0, and AFAIK all
 kernel tests are passing.

 Anybody created git repo for Platform-integration ? platform level
 test framework is required for AS integration tests.

 Also we need to migrate all AS integration tests to our new
 framework. I will work with you on this.

 Thanks,
 Krishantha.


 On Sat, Mar 1, 2014 at 2:46 PM, Geeth Munasinghe wrote:

> Hi,
>
> To release kernal 4.3.0 based products we will have to run test
> automation framework with all the products. For that we will need to 
> have
> the test automation framework on kernal 4.3.0.
> And we will have to move test framework to github too.  We will
> have to do this soon, because AS release need to go on Q1.
>
> Can someone from QAA team help with this task ?
>
> Thanks
> Geeth
>
>
>
>
> *G. K. S. Munasinghe*
> *Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>



 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

>>>
>>>
>>> --
>>>
>>> *G. K. S. Munasinghe*
>>> *Software Engineer,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: ge...@wso2.com
>>> phone:(+94) 777911226
>>>
>>>
>>
>>
>> --
>>
>> *Eranda Sooriyabandara*Senior Software Engineer;
>> Integration Technologies Team;
>> WSO2 Inc.; http://wso2.com
>> Lean . Enterprise . Middleware
>>
>> E-mail: eranda AT wso2.com
>> Mobile: +94 716 472 816
>> Linked-In: http://www.linkedin.com/in/erandasooriyabandar

[Dev] Invitation: CEP Admin API review @ Tue Mar 11, 2014 4:30pm - 5:30pm (mo...@wso2.com)

2014-03-11 Thread Mohanadarshan Vivekanandalingam
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20140311T11Z
DTEND:20140311T12Z
DTSTAMP:20140311T104638Z
ORGANIZER;CN=Mohanadarshan Vivekanandalingam:mailto:mo...@wso2.com
UID:49uua6s58s9bl7r2007ovqr...@google.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TR
 UE;CN=LK 6th Floor Meeting Room - Turing;X-NUM-GUESTS=0:mailto:wso2.com_383
 1383731343438313...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Lasantha Fernando;X-NUM-GUESTS=0:mailto:lasan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=mo...@wso2.com;X-NUM-GUESTS=0:mailto:mo...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sriskandarajah Suhothayan;X-NUM-GUESTS=0:mailto:s...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sajith Ravindra;X-NUM-GUESTS=0:mailto:saji...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rajeev Sampath;X-NUM-GUESTS=0:mailto:raje...@wso2.com
CREATED:20140311T104537Z
DESCRIPTION:View your event at http://www.google.com/calendar/event?action=
 VIEW&eid=NDl1dWE2czU4czlibDdyMjAwN292cXJrbm8gZGV2QHdzbzIub3Jn&tok=MTQjbW9oY
 W5Ad3NvMi5jb21iYWJiY2RmZWRhM2QwZjRjMTljODFhMjkwYjgyY2UwMGU5NWM1NGRm&ctz=Asi
 a/Colombo&hl=en.
LAST-MODIFIED:20140311T104638Z
LOCATION:LK 6th Floor Meeting Room - Turing
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:CEP Admin API review
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] UI support for BPMN

2014-03-11 Thread Amal Gunatilake
Hi Chathura,

The instance view UI patch can be found at
https://wso2.org/jira/browse/BPS-478
Please review and apply.



Thank you  & Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware


On Tue, Mar 11, 2014 at 3:52 PM, Amal Gunatilake  wrote:

> Hi Chathura,
>
> I have attached the patches for process view UI under following jira -
> https://wso2.org/jira/browse/BPS-477
> Please review with your changes and apply.
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Test framework for carbon kernal 4.3.0 products.

2014-03-11 Thread Sagara Gunathunga
On Tue, Mar 11, 2014 at 4:05 PM, Kasun Gajasinghe  wrote:

> Hi Krishantha,
>

I think you don't need top level directory called
" test-automation-framework", is there any specific reason to have it ?

Thanks !

>
> Thanks, I have added the build to jenkins.
> http://54.84.136.218:8080/jenkins/job/carbon-platform-integration/
>
> One question, do you need to top-level directory test-automation-framework
> in your git repo? Currently, the jenkins build is failing since it can't
> find the root pom. We can configure jenkins to the correct pom.xml path,
> but wanted to make sure. Other projects has the pom.xml at root level.
>
> Thanks,
> KasunG
>
>
> On Tue, Mar 11, 2014 at 3:49 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Hi KasunG,
>>
>> Please add https://github.com/wso2/carbon-platform-integration to
>> Jenkins build.
>>
>> Thanks,
>> Krishantha
>>
>>
>> On Mon, Mar 3, 2014 at 10:23 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi Eranda,
>>>
>>> Can you create separate repository for platform automated test suite.
>>> This repo will be build after building products with integration tests.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>> On Mon, Mar 3, 2014 at 1:15 PM, Geeth Munasinghe  wrote:
>>>
 Can some one from QAA team re-factor carbon-platform-integration in git
 repo ?

 Please refer the mail thread [1] for the instructions regarding
 refactoring.

 [1] Guidelines to move project into GitHub.

 Thanks
 Geeth




 *G. K. S. Munasinghe *
 *Software Engineer,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: ge...@wso2.com
 phone:(+94) 777911226


 On Sun, Mar 2, 2014 at 9:59 PM, Eranda Sooriyabandara 
 wrote:

> Hi All,
> This project is created by now in [1] but need to clarify what to
> include and where.
>
> thanks
> Eranda
>
> [1]. https://github.com/wso2/carbon-platform-integration
>
>
> On Sat, Mar 1, 2014 at 7:45 PM, Geeth Munasinghe wrote:
>
>> AFAIK We have not created a git repo for platform integration yet.
>>
>> @Eranda
>> Can you please create git repo for platform integration?
>>
>> Thanks
>> Geeth
>>
>>
>> On Saturday, March 1, 2014, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Kernel test framework is already available in 4.3.0, and AFAIK all
>>> kernel tests are passing.
>>>
>>> Anybody created git repo for Platform-integration ? platform level
>>> test framework is required for AS integration tests.
>>>
>>> Also we need to migrate all AS integration tests to our new
>>> framework. I will work with you on this.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>> On Sat, Mar 1, 2014 at 2:46 PM, Geeth Munasinghe wrote:
>>>
 Hi,

 To release kernal 4.3.0 based products we will have to run test
 automation framework with all the products. For that we will need to 
 have
 the test automation framework on kernal 4.3.0.
 And we will have to move test framework to github too.  We will
 have to do this soon, because AS release need to go on Q1.

 Can someone from QAA team help with this task ?

 Thanks
 Geeth




 *G. K. S. Munasinghe*
 *Software Engineer,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: ge...@wso2.com
 phone:(+94) 777911226

>>>
>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>> --
>>
>> *G. K. S. Munasinghe*
>> *Software Engineer,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ge...@wso2.com
>> phone:(+94) 777911226
>>
>>
>
>
> --
>
> *Eranda Sooriyabandara*Senior Software Engineer;
> Integration Technologies Team;
> WSO2 Inc.; http://wso2.com
> Lean . Enterprise . Middleware
>
> E-mail: eranda AT wso2.com
> Mobile: +94 716 472 816
> Linked-In: http://www.linkedin.com/in/erandasooriyabandara
> Blog: http://emsooriyabandara.blogspot.com/
>
>
>
>
>

>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>> Krishantha Samaraweera
>> Senior Technical Lead - Test Automation
>> Mobile: +94 77 7759918
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> *Kasun Gajasinghe*

Re: [Dev] Test framework for carbon kernal 4.3.0 products.

2014-03-11 Thread Kasun Gajasinghe
Hi Krishantha,

Thanks, I have added the build to jenkins.
http://54.84.136.218:8080/jenkins/job/carbon-platform-integration/

One question, do you need to top-level directory test-automation-framework
in your git repo? Currently, the jenkins build is failing since it can't
find the root pom. We can configure jenkins to the correct pom.xml path,
but wanted to make sure. Other projects has the pom.xml at root level.

Thanks,
KasunG


On Tue, Mar 11, 2014 at 3:49 PM, Krishantha Samaraweera  wrote:

> Hi KasunG,
>
> Please add https://github.com/wso2/carbon-platform-integration to Jenkins
> build.
>
> Thanks,
> Krishantha
>
>
> On Mon, Mar 3, 2014 at 10:23 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Hi Eranda,
>>
>> Can you create separate repository for platform automated test suite.
>> This repo will be build after building products with integration tests.
>>
>> Thanks,
>> Krishantha.
>>
>>
>> On Mon, Mar 3, 2014 at 1:15 PM, Geeth Munasinghe  wrote:
>>
>>> Can some one from QAA team re-factor carbon-platform-integration in git
>>> repo ?
>>>
>>> Please refer the mail thread [1] for the instructions regarding
>>> refactoring.
>>>
>>> [1] Guidelines to move project into GitHub.
>>>
>>> Thanks
>>> Geeth
>>>
>>>
>>>
>>>
>>> *G. K. S. Munasinghe *
>>> *Software Engineer,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: ge...@wso2.com
>>> phone:(+94) 777911226
>>>
>>>
>>> On Sun, Mar 2, 2014 at 9:59 PM, Eranda Sooriyabandara 
>>> wrote:
>>>
 Hi All,
 This project is created by now in [1] but need to clarify what to
 include and where.

 thanks
 Eranda

 [1]. https://github.com/wso2/carbon-platform-integration


 On Sat, Mar 1, 2014 at 7:45 PM, Geeth Munasinghe wrote:

> AFAIK We have not created a git repo for platform integration yet.
>
> @Eranda
> Can you please create git repo for platform integration?
>
> Thanks
> Geeth
>
>
> On Saturday, March 1, 2014, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Kernel test framework is already available in 4.3.0, and AFAIK all
>> kernel tests are passing.
>>
>> Anybody created git repo for Platform-integration ? platform level
>> test framework is required for AS integration tests.
>>
>> Also we need to migrate all AS integration tests to our new
>> framework. I will work with you on this.
>>
>> Thanks,
>> Krishantha.
>>
>>
>> On Sat, Mar 1, 2014 at 2:46 PM, Geeth Munasinghe wrote:
>>
>>> Hi,
>>>
>>> To release kernal 4.3.0 based products we will have to run test
>>> automation framework with all the products. For that we will need to 
>>> have
>>> the test automation framework on kernal 4.3.0.
>>> And we will have to move test framework to github too.  We will have
>>> to do this soon, because AS release need to go on Q1.
>>>
>>> Can someone from QAA team help with this task ?
>>>
>>> Thanks
>>> Geeth
>>>
>>>
>>>
>>>
>>> *G. K. S. Munasinghe*
>>> *Software Engineer,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: ge...@wso2.com
>>> phone:(+94) 777911226
>>>
>>
>>
>>
>> --
>> Krishantha Samaraweera
>> Senior Technical Lead - Test Automation
>> Mobile: +94 77 7759918
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
> --
>
> *G. K. S. Munasinghe*
> *Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>
>


 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: +94 716 472 816
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/





>>>
>>
>>
>> --
>> Krishantha Samaraweera
>> Senior Technical Lead - Test Automation
>> Mobile: +94 77 7759918
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



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


 ,
*email: *
*kasung AT spamfree wso2.com    ** cell: **+94 (77)
678-0813*
*linked-in: *http://lk.linkedin.com/in/gajasinghe



*blog: **http://kasunbg.org* 



*twitter: **http://twitter.com/kasunbg* 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/

[Dev] UI support for BPMN

2014-03-11 Thread Amal Gunatilake
Hi Chathura,

I have attached the patches for process view UI under following jira -
https://wso2.org/jira/browse/BPS-477
Please review with your changes and apply.

Thank you  & Best regards,

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


Re: [Dev] Test framework for carbon kernal 4.3.0 products.

2014-03-11 Thread Krishantha Samaraweera
Hi KasunG,

Please add https://github.com/wso2/carbon-platform-integration to Jenkins
build.

Thanks,
Krishantha


On Mon, Mar 3, 2014 at 10:23 PM, Krishantha Samaraweera  wrote:

> Hi Eranda,
>
> Can you create separate repository for platform automated test suite. This
> repo will be build after building products with integration tests.
>
> Thanks,
> Krishantha.
>
>
> On Mon, Mar 3, 2014 at 1:15 PM, Geeth Munasinghe  wrote:
>
>> Can some one from QAA team re-factor carbon-platform-integration in git
>> repo ?
>>
>> Please refer the mail thread [1] for the instructions regarding
>> refactoring.
>>
>> [1] Guidelines to move project into GitHub.
>>
>> Thanks
>> Geeth
>>
>>
>>
>>
>> *G. K. S. Munasinghe *
>> *Software Engineer,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ge...@wso2.com
>> phone:(+94) 777911226
>>
>>
>> On Sun, Mar 2, 2014 at 9:59 PM, Eranda Sooriyabandara wrote:
>>
>>> Hi All,
>>> This project is created by now in [1] but need to clarify what to
>>> include and where.
>>>
>>> thanks
>>> Eranda
>>>
>>> [1]. https://github.com/wso2/carbon-platform-integration
>>>
>>>
>>> On Sat, Mar 1, 2014 at 7:45 PM, Geeth Munasinghe  wrote:
>>>
 AFAIK We have not created a git repo for platform integration yet.

 @Eranda
 Can you please create git repo for platform integration?

 Thanks
 Geeth


 On Saturday, March 1, 2014, Krishantha Samaraweera 
 wrote:

> Kernel test framework is already available in 4.3.0, and AFAIK all
> kernel tests are passing.
>
> Anybody created git repo for Platform-integration ? platform level
> test framework is required for AS integration tests.
>
> Also we need to migrate all AS integration tests to our new framework.
> I will work with you on this.
>
> Thanks,
> Krishantha.
>
>
> On Sat, Mar 1, 2014 at 2:46 PM, Geeth Munasinghe wrote:
>
>> Hi,
>>
>> To release kernal 4.3.0 based products we will have to run test
>> automation framework with all the products. For that we will need to have
>> the test automation framework on kernal 4.3.0.
>> And we will have to move test framework to github too.  We will have
>> to do this soon, because AS release need to go on Q1.
>>
>> Can someone from QAA team help with this task ?
>>
>> Thanks
>> Geeth
>>
>>
>>
>>
>> *G. K. S. Munasinghe*
>> *Software Engineer,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ge...@wso2.com
>> phone:(+94) 777911226
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>


 --

 *G. K. S. Munasinghe*
 *Software Engineer,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: ge...@wso2.com
 phone:(+94) 777911226


>>>
>>>
>>> --
>>>
>>> *Eranda Sooriyabandara*Senior Software Engineer;
>>> Integration Technologies Team;
>>> WSO2 Inc.; http://wso2.com
>>> Lean . Enterprise . Middleware
>>>
>>> E-mail: eranda AT wso2.com
>>> Mobile: +94 716 472 816
>>> Linked-In: http://www.linkedin.com/in/erandasooriyabandara
>>> Blog: http://emsooriyabandara.blogspot.com/
>>>
>>>
>>>
>>>
>>>
>>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [jaggery][kernel]Missing patch

2014-03-11 Thread Madhuka Udantha
Ping for the subject,



On Thu, Mar 6, 2014 at 12:03 PM, Manoj Kumara  wrote:

> Hi Tanya,
>
> Can you send a pull request correspond to your change to [1]
> dev-repository, so afterwards we can merge this with [2]
>
> [1] https://github.com/wso2-dev/carbon4-kernel
> [2] https://github.com/wso2/carbon4-kernel
>
> Thanks,
> Manoj
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
>
> On Thu, Mar 6, 2014 at 11:48 AM, Madhuka Udantha  wrote:
>
>> Hi,
>>
>> Kernel[3] seems missing of patched[1] and details can be found in[2].
>> Need to added that patched for[3].
>> Since jaggery[4] switch for carbon 4.3.0 and testOAuthProviderOperations
>> failed on jaggery test OauthObjectTestCase.
>>
>>
>>
>> [1] https://wso2.org/jira/browse/CARBON-14635
>> [2] Email subjected "[Dev] Please commit to kernel patch0005 @ dev"
>> [3] https://github.com/wso2/carbon4-kernel
>> [4] https://github.com/wso2/jaggery/tree/branch-for-kernel4.3.0
>>
>> --
>> *Madhuka* Udantha
>> Senior Software Engineer
>> Development Technologies
>> WSO2 Inc. : http://wso2.com
>>
>> *Mobile*: +94774066336
>> *Blog*: http://madhukaudantha.blogspot.com/
>>
>
>


-- 
*Madhuka* Udantha
Senior Software Engineer
Development Technologies
WSO2 Inc. : http://wso2.com

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


[Dev] [ESB] Getting random NullPointerException on Operation Client during Connector Integration Tests

2014-03-11 Thread Ramindu Deshapriya
Hi,

I have written 50+ Integration Tests for the Google Drive Cloud Connector
using a ServiceClient to send messages to the ESB. I use the following
method to build the client: 

public static OperationClient buildMEPClient(EndpointReference endpoint,
OMElement request) throws AxisFault {

ServiceClient serviceClient = new ServiceClient();

Options serviceOptions = new Options();
serviceOptions.setTo(endpoint);
serviceOptions.setAction("mediate");
serviceClient.setOptions(serviceOptions);
MessageContext messageContext = new MessageContext();

SOAPEnvelope soapEnvelope =
TransportUtils.createSOAPEnvelope(request);
messageContext.setEnvelope(soapEnvelope);
OperationClient mepClient =
serviceClient.createClient(ServiceClient.ANON_OUT_IN_OP);
mepClient.addMessageContext(messageContext);
return mepClient;
}

after which I call mepClient.execute(true) to receive a response in the
following manner within each test:

mepClient = ConnectorIntegrationUtil.buildMEPClient(new EndpointReference(
getProxyServiceURL(CONNECTOR_NAME + "_" + methodName)),
requestEnvelope);
 mepClient.execute(true); 
MessageContext responseMsgCtx =
mepClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);

However, when running this test suite, sometimes I receive random
NullPointerExceptions on different methods. Note that I do not get this
exception on the same test methods, rather I might get it on one or two
random methods during a single test run or I might not get it at all. The
stack trace for a typical occurrence is;

java.lang.NullPointerException
at
org.apache.axis2.context.AbstractContext.needPropertyDifferences(AbstractContext.java:239)
at
org.apache.axis2.context.AbstractContext.setProperty(AbstractContext.java:202)
at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:270)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at
org.wso2.carbon.connector.integration.test.googledrive.GoogledriveConnectorIntegrationTest.testgetCommentByIDOptionalParams(GoogledriveConnectorIntegrationTest.java:1316)

In these instances, I have noticed that the correct response is returned by
the backend API via monitoring the wire log, however, the test will simply
fail giving the above stack trace. 

Is there any way to overcome this issue?

Thanks. 



--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-Getting-random-NullPointerException-on-Operation-Client-during-Connector-Integration-Tests-tp93294.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Finding current address and port for a carbon server

2014-03-11 Thread Chan
I implemented a method to jaggery to get the HttpSession. But I ran to
another issue where the CarbonConstants.SERVER_URL is getting null from
HttpSession & ServletContext.

Caused by: java.lang.NullPointerException
at
org.wso2.carbon.utils.CarbonUtils.getServerURL(CarbonUtils.java:773)
at
org.wso2.carbon.utils.CarbonUtils.getServerURL(CarbonUtils.java:766)
at
org.wso2.carbon.ui.CarbonUIUtil.getServerURL(CarbonUIUtil.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
... 47 more

I had a chat with Ruchira and he said they don't setup these values in
Jaggery. Are they setup in the Tomcat level? Or what could be the problem.



On Tue, Mar 11, 2014 at 10:40 AM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

> From UI front, the easy way to get the server url is to use the above
> method.
>
> From a UI related component, the easy way is to use 
> "CarbonUIUtils#getServerURL(ServerConfigurationService
> serverConfig)" method, where you need to acquire the
> ServerConfigurationService.
>
>
> On Mon, Mar 10, 2014 at 10:35 PM, Chan  wrote:
>
>> Hi folks,
>> I looked into CarbonUIUtils and found an interesting method *public
>> static String getServerURL(ServletContext servletContext, HttpSession
>> httpSession). *I can get the ServletContext from the application
>> host-object but there seems to be no method to obtain the vanilla
>> HttpSession from the session host-object. @Ruchira shall we improve the
>> session host-object to have method to get HttpSession?
>>
>> Also I hope CarbonUIUtils won't be removed in the future refactoring.
>>
>> Cheers~
>>
>>
>> On Mon, Mar 10, 2014 at 2:33 PM, Afkham Azeez  wrote:
>>
>>> IIRC, the CarbonUtils or CarbonUIUtils class has methods to retrieve the
>>> server host & ports.
>>>
>>>
>>> Azeez
>>>
>>>
>>> On Mon, Mar 10, 2014 at 2:28 PM, Chan  wrote:
>>>
 Hi folks,
 I am having a confusion regarding how to find the carbon server
 hostname and port. This problem is related to implementing SSO in jaggery
 applications. Say for example in the login.jag we construct the current
 hostname to return a form to client to go to the IDP provider page. For
 this we need to find the https://server_adress:port/admin/samlsso. For
 this the login.jag currently use -

 var host = process.getProperty('server.host')
 if(host=="localhost"){
   var postUrl = "https://"; +
 process.getProperty('carbon.local.ip') + ":" +
 process.getProperty('https.port');
 }else{
   var postUrl = "https://"; + host;
 }

 To get the server to work in development we get 'carbon.local.ip' from
 process and set it up. For production we suggest users to add the hostname
 in the carbon.xml file. 'server.host' will be populated with carbon.xml
 entry in runtime.

 The problem in this approach is that we can't specify ports in the
 carbon.xml entry. To overcome this  -the quick fix for this would be to
 append port to the host. But if we do that - proxy scenario is not covered.
 What happens is that 'https.port' will return the carbon server port (9443)
 but not the proxy port. If we expose the 9443 port to the client it will
 not be reachable cause that port is blocked from the inside.

 Is there away to get the current address of the server - which get the
 address from local ip for development and full address for production that
 we can return for the client (browser)?

 Cheers~

 --
 Chan (Dulitha Wijewantha)
 Software Engineer - Mobile Development
 WSO2Mobile
 Lean.Enterprise.Mobileware
  * ~Email   duli...@wso2.com *
 *  ~Mobile +94712112165 <%2B94712112165>*
 *  ~Website   dulitha.me *
 *  ~Twitter @dulitharw *
   *~SO @chan *

>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: 
>>> **http://twitter.com/afkham_azeez*
>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> Chan (Dulitha Wijewantha)
>> Software Engineer - Mobile Development
>> WSO2Mobile
>> Lean.Enterprise.Mobileware
>>  * ~Email