Re: [Dev] Moving databridge components to a separate git repository

2014-05-06 Thread Udara Rathnayake
Hi all,


On Wed, May 7, 2014 at 11:23 AM, Gihan Anuruddha  wrote:

> Hi Rajeev,
>
> We can divide databridge components into a two separate parts as server
> and client.  AFAIK at the moment server part only used by BAM and CEP. But
> I think client part might need to all other wso2 products since we are
> going to create toolboxes for all of them.  So IMHO is we can keep those
> client components in the carbon-commons and we can create separate git
> repo for the databridge server related components.
>

At the moment ES also uses BAM publisher related databridge components for
the social framework.

>
> WDYT?
>
> Regards,
> Gihan
>
>
> On Wed, May 7, 2014 at 10:56 AM, Rajeev Sampath  wrote:
>
>> Hi,
>>
>> Currently part of the data-bridge (core components) are in carbon-commons
>> and the rest is in carbon-analytics. However there are arguments that
>> carbon-commons is not the right place to have these data-bridge components.
>>
>> Completely moving this to carbon-analytics doesn't seem to be a good
>> option either since quite a few products depend on this and they will have
>> to wait for a carbon-analytics release when there are updates.
>>
>> Do we need a separate git repo for data-bridge? Or else a better place to
>> move this?
>>
>>
>> Thanks
>> Rajeev
>>
>> --
>> Rajeev Sampath
>> Senior Software Engineer
>> WSO2, Inc.; http://www.wso2.com.
>>
>> Mobile:
>> * +94716265766 <%2B94716265766>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> W.G. Gihan Anuruddha
>
> Senior Software Engineer | WSO2, Inc.
> M: +94772272595
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] org.wso2.carbon.databridge.datareceiver not moved to GitHub

2014-05-06 Thread Udara Rathnayake
Hi Rajeev,


On Tue, May 6, 2014 at 4:43 PM, Kasun Gajasinghe  wrote:

> Hi Rajeev,
>
> It seems that this pull request is to move the
> org.wso2.carbon.databridge.receiver.thrift component as a whole to
> carbon-commons. I'm sorry for not noticing before, but I think we agreed
> before that carbon-commons is not the place for components like these.
> Please discuss with relevant teams (CEP/BAM etc.) and come up with an
> appropriate location for this component.
>
Have we come to the conclusion on this?

>
> I believe, we will need to move all the data-bridge components there. If
> the existing repos are not a good fit for your requirement, we might have
> to create a new repo.
>
> Thanks,
> KasunG
>
>
>
> On Tue, May 6, 2014 at 4:30 PM, Kasun Gajasinghe  wrote:
>
>>
>>
>>
>> On Tue, May 6, 2014 at 3:48 PM, Rajeev Sampath  wrote:
>>
>>> Hi Kasun,
>>>
>>> Sent a pull request to wso2-dev [1].
>>>
>>
>> Thanks.
>>
>>
>>> BTW wso2-dev/carbon-commons repo seems outdated.
>>>
>>>
>> I will sync the repo with the main repo, and remove the commit rights to
>> the main repo. Jenkins Pull Request builder is in place for the
>> carbon-commons now.
>>
>>
>>> [1] https://github.com/wso2-dev/carbon-commons/pull/3
>>>
>>> Thanks
>>> Rajeev
>>>
>>>
>>> On Tue, May 6, 2014 at 2:38 PM, Kasun Gajasinghe wrote:
>>>
 Hi Rajeev,

 Please send this pull request to wso2-dev team repo.

  Thanks.


 On Tue, May 6, 2014 at 2:36 PM, Rajeev Sampath wrote:

> Hi Kasun,
>
> Added a new pull request [1] to resolve the conflicts. Can you pls
> merge this?
>
> [1] https://github.com/wso2/carbon-commons/pull/5
>
>
> Thanks
> Rajeev
>
>
> On Tue, May 6, 2014 at 12:24 PM, Udara Rathnayake wrote:
>
>> Hi Kasun,
>>
>> Can we merge this pull request[1]?
>>
>> [1] https://github.com/wso2/carbon-commons/pull/4
>>
>>
>>
>> On Tue, May 6, 2014 at 12:15 PM, Udara Rathnayake wrote:
>>
>>> Hi all,
>>>
>>> $subject ?
>>> I'm unable to find this within both carbon-analytics &
>>> carbon-commons repos or even within carbon-utils.
>>>
>>> Regards,
>>> UdaraR
>>> --
>>> *Udara Rathnayake*
>>> Software Engineer
>>> WSO2 Inc. : http://wso2.com
>>>
>>> Mobile : +94 772207239
>>> Twitter : http://twitter.com/udarakr
>>> Blog: http://udarakr.blogspot.com
>>>
>>>
>>
>>
>> --
>> *Udara Rathnayake*
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>>
>> Mobile : +94 772207239
>> Twitter : http://twitter.com/udarakr
>> Blog: http://udarakr.blogspot.com
>>
>>
>
>
> --
> Rajeev Sampath
> Senior Software Engineer
> WSO2, Inc.; http://www.wso2.com.
>
> Mobile:
> * +94716265766 <%2B94716265766>*
>



 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



>>>
>>>
>>>
>>> --
>>> Rajeev Sampath
>>> Senior Software Engineer
>>> WSO2, Inc.; http://www.wso2.com.
>>>
>>> Mobile:
>>> * +94716265766 <%2B94716265766>*
>>>
>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ES]No Established Sessions corresponding to Session Indexes provided during logout.

2014-05-06 Thread Udara Rathnayake
Hi all,

I tried to answer this SO[1], in my ES setup SSO(login/logout & sso between
store/publisher) works perfectly.
But I'm getting the following error during log-out action and browser
redirects back to the admin-console UI.

ERROR {org.wso2.carbon.identity.sso.saml.processors.LogoutRequestProcessor}
-  No Established Sessions corresponding to Session Indexes provided.

The same error reported before too[2][3], but I'm unable to find the
solution.

[1]
http://stackoverflow.com/questions/23481465/deploy-wso2-enterprise-app-store-in-ec2-using-elb
[2] SSO enabled application logout action leads to redirect user to IS
Server login page in IS 4.1.0
[3] [Dev] SAML2 SSO based login fails with IS-4.5.0-M4 as IdP and ESB-4.7
as service provider

Regards,
UdaraR

-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting a dead page when browsing the registry after applying the kernel patch 0007

2014-05-06 Thread Chanika Geeganage
Hi All,

I have created the 4.2.1 version of org.wso2.carbon.registry.resources with
CC refactoring changes. This component and registry-core 4.2.2 feature will
be released with chunk10

Thanks



On Wed, May 7, 2014 at 10:25 AM, Subash Chaturanga  wrote:

> +1
>
>
> On Wed, May 7, 2014 at 10:07 AM, Anjana Fernando  wrote:
>
>> Hi Manoj,
>>
>> Yeah, I was directing it at the registry guys, to further verify that
>> this is correct.
>>
>> Cheers,
>> Anjana.
>>
>>
>>
>> On Wed, May 7, 2014 at 10:02 AM, Manoj Kumara  wrote:
>>
>>> Hi Anjana,
>>>
>>> I think we discussed about the solution. This was due to unre-factored
>>> org.wso2.carbon.registry.resource component as chanika mentioned. we
>>> should create a new version of this (with the cc refractory) and use that.
>>>
>>> Thanks,
>>> Manoj
>>>
>>>
>>> *Manoj Kumara*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94713448188
>>>
>>>
>>> On Wed, May 7, 2014 at 9:43 AM, Anjana Fernando  wrote:
>>>
 Guys,

 Please ACK! ..

 Cheers,
 Anjana.


 On Tue, May 6, 2014 at 2:19 PM, Chanika Geeganage wrote:

> Hi,
>
> Thanks for the input. By further investigating the issue, the
> following factors were found
>
> CC refacotoring was done in org.wso2.carbon.server.admin component
> (with r201004) in the patch0007.
>
> Modified: carbon/kernel/branches/4.2.0/
> patches
> /patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
> URL: http://wso2.org/svn/browse/wso2/carbon/kernel/branches/4.2.0/
> patches
> /patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java?rev=201004&r1=201003&r2=201004&view=diff
>
> ==
> --- 
> carbon/kernel/branches/4.2.0/patches/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
>  (original)
> +++ 
> carbon/kernel/branches/4.2.0/patches/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
>  Thu Apr 24 11:47:49 2014
> @@ -28,7 +28,6 @@
>  import org.apache.commons.logging.LogFactory;
>  import org.wso2.carbon.CarbonConstants;
>  import org.wso2.carbon.context.CarbonContext;
> -import org.wso2.carbon.context.PrivilegedCarbonContext;
>  import org.wso2.carbon.user.core.AuthorizationManager;
>  import org.wso2.carbon.user.core.UserRealm;
>  import org.wso2.carbon.user.core.UserStoreException;
> @@ -107,8 +106,8 @@
>  if (httpSession != null) {
>  username = (String)
> httpSession.getAttribute(ServerConstants.USER_LOGGED_IN);
>  UserRealm realm =
> -(UserRealm) PrivilegedCarbonContext.
> -
>  getCurrentContext(httpSession).getUserRealm();
> +(UserRealm) CarbonContext.
> +
>  getThreadLocalCarbonContext().getUserRealm();
>
>  if (realm == null) {
>  log.error("The realm is null for username: " +
> username + ".");
>
>
>
> By removing this, registry browsing works fine. But we can't revert
> this change.
>
> In the org.wso2.carbon.registry.resource 4.2.0 component, the CC
> refactoring was done in an already released version. ie. the commit 186766
> is not in the artifact deployed in nexus [1].
>
> Therefore, as a solution, refactored org.wso2.carbon.registry.resource
> can be released as the next version (4.2.1) in chunk-10. WDYT?
>
> [1]
> http://maven.wso2.org/nexus/index.html#nexus-search;quick~org.wso2.carbon.registry.resource
>
> Thanks
> Chanika
>
>
> On Tue, May 6, 2014 at 7:42 AM, Shelan Perera  wrote:
>
>> Hi Chanika,
>>
>> Have you defined any other carbon datasources? Please have a look at
>> [1] and it may have some clues.
>>
>> [1] https://wso2.org/jira/browse/ESBJAVA-2854
>>
>>
>> On Mon, May 5, 2014 at 10:13 PM, Chanika Geeganage 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm getting a dead page with the following exception when browsing
>>> the registry in the DSS 3.2.1 with kernel patch 0007.
>>>
>>> [2014-05-05 22:04:06,485] ERROR
>>> {org.apache.catalina.core.ApplicationDispatcher} -  Servlet.service() 
>>> for
>>> servlet bridgeservlet threw exception
>>> java.lang.IllegalArgumentException: [=] is not a hexadecimal digit
>>> at
>>> org.apache.catalina.util.RequestUtil.convertHexDigit(RequestUtil.java:316)
>>> at
>>> org.apache.catalina.util.RequestUtil.parseParameters(

[Dev] BRS 2.1.0 Alpha testing update

2014-05-06 Thread Chathurika De Silva
Hi All

We tried to set up the cluster for above mentioned BRS version using ELB
2.1.1. We encountered the following blocker which we reported under LB-147

Due the above issue, we are moving to ELB 2.1.0 for our further testing
process until the issue is fixed.

Best Regards

-- 
*Chathurika Erandi*
Software Engineer,
WSO2 Inc.

*E-mail:* chathuri...@wso2.com
*Mobile: *+94714 328 612
*Blog*: chathurikaerandi.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JSP error: Only a type can be imported. org.wso2.carbon.order.mgt.order.ui.OrderManagerClient resolves to a package

2014-05-06 Thread Sajini De Silva
Hi Aruna,

Thanks for the reply. I created a simple project which did not need to
install any features. There was an error in the import path of the jsp file
and by correcting that i could solve the issue.

Thank you.


On Tue, May 6, 2014 at 5:55 PM, Aruna Karunarathna  wrote:

> Hi Sajini,
>
> I think this is the same issue recorded under the title "Class visibility
> issue while building Carbon front end component".
>
> Have you tried removing all the features installed previously. Please note
> that removing the feature from carbon admin console,
> will not completely remove the feature from the carbon server.
>
> You have to manually go and remove the installed jars from
> /carbon-home/repository/components/plugins folder as I remember.
>
> Regards,
>
>
> On Tue, May 6, 2014 at 2:16 PM, Sajini De Silva  wrote:
>
>> Hi,
>>
>> I implemented a simple carbon component following [1] and when I try to
>> access the service from the carbon console I get the following error.
>>
>> ERROR {org.apache.catalina.core.ApplicationDispatcher} -
>> Servlet.service() for servlet bridgeservlet threw exception
>> org.apache.jasper.JasperException: PWC6033: Error in Javac compilation
>> for JSP
>>
>> PWC6199: Generated servlet error:
>> Only a type can be imported.
>> org.wso2.carbon.order.mgt.order.ui.OrderManagerClient resolves to a package
>>
>> PWC6197: An error occurred at line: 10 in the jsp file:
>> /order-mgt/index.jsp
>> PWC6199: Generated servlet error:
>> OrderManagerClient cannot be resolved to a type
>>
>> PWC6197: An error occurred at line: 10 in the jsp file:
>> /order-mgt/index.jsp
>> PWC6199: Generated servlet error:
>> OrderManagerClient cannot be resolved to a type
>> --
>>
>> What I'm trying to import in index.jsp class is
>>
>> <%@ page import="org.wso2.carbon.order.mgt.order.ui.OrderManagerClient" %>
>>
>> Which is clearly a class, not a package.
>>
>> Can somebody please point out what I'm doing wrong here?
>>
>>
>>
>> [1]
>> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>>
>> Thank you
>> --
>> Sajini De SIlva
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>> Email: saj...@wso2.com
>> Blog: http://sajinid.blogspot.com/
>> Git hub profile: https://github.com/sajinidesilva
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> * Aruna Sujith Karunarathna* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Moving databridge components to a separate git repository

2014-05-06 Thread Gihan Anuruddha
Hi Rajeev,

We can divide databridge components into a two separate parts as server and
client.  AFAIK at the moment server part only used by BAM and CEP. But I
think client part might need to all other wso2 products since we are going
to create toolboxes for all of them.  So IMHO is we can keep those client
components in the carbon-commons and we can create separate git repo for
the databridge server related components.

WDYT?

Regards,
Gihan


On Wed, May 7, 2014 at 10:56 AM, Rajeev Sampath  wrote:

> Hi,
>
> Currently part of the data-bridge (core components) are in carbon-commons
> and the rest is in carbon-analytics. However there are arguments that
> carbon-commons is not the right place to have these data-bridge components.
>
> Completely moving this to carbon-analytics doesn't seem to be a good
> option either since quite a few products depend on this and they will have
> to wait for a carbon-analytics release when there are updates.
>
> Do we need a separate git repo for data-bridge? Or else a better place to
> move this?
>
>
> Thanks
> Rajeev
>
> --
> Rajeev Sampath
> Senior Software Engineer
> WSO2, Inc.; http://www.wso2.com.
>
> Mobile:
> * +94716265766 <%2B94716265766>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
W.G. Gihan Anuruddha
Senior Software Engineer | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Chunk 10 - Build Failure in a clean repo

2014-05-06 Thread Waruna Jayaweera
Hi,
Removed bps related stuffs from the ch-11 build.




On Wed, May 7, 2014 at 10:55 AM, Thilini Ishaka  wrote:

> Hi Ravi,
>
> We'll check on the build failure. Anyway BPS is not going release with
> ch-11. So we'll remove bps related stuffs from the ch-11 build.
> Waruna, please note.
>
> Thanks
> Thilini
>
>
> On Tue, May 6, 2014 at 10:23 PM, Ravi Undupitiya  wrote:
>
>> Hi,
>>
>> Got the same error on a clean repo build of chunk-11. Building [1] fixed.
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/ode/1.3.5-wso2v12/bpel-extensions/e4x
>>
>>
>> On Thu, Apr 24, 2014 at 11:54 PM, Isuru Udana  wrote:
>>
>>> Hi,
>>>
>>> I am getting the following.
>>>
>>> [INFO]
>>> 
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> 
>>> [INFO] Total time: 2:43.266s
>>> [INFO] Finished at: Thu Apr 24 23:43:23 IST 2014
>>> [INFO] Final Memory: 323M/592M
>>> [INFO]
>>> 
>>> [ERROR] Failed to execute goal on project ode: Could not resolve
>>> dependencies for project org.apache.ode.wso2:ode:bundle:1.3.5.wso2v12: The
>>> following artifacts could not be resolved:
>>> org.wso2.bpel.extensions:ode-bpel-extensions-e4x:jar:1.0.0-wso2v11,
>>> org.wso2.bpel.extensions:ode-bpel-extensions-long-running:jar:1.0.0-wso2v11:
>>> Failure to find
>>> org.wso2.bpel.extensions:ode-bpel-extensions-e4x:jar:1.0.0-wso2v11 in
>>> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
>>> the local repository, resolution will not be reattempted until the update
>>> interval of wso2-nexus has elapsed or updates are forced -> [Help 1]
>>> [ERROR]
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>>> -e switch.
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR]
>>> [ERROR] For more information about the errors and possible solutions,
>>> please read the following articles:
>>> [ERROR] [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>>> [ERROR]
>>> [ERROR] After correcting the problems, you can resume the build with the
>>> command
>>> [ERROR]   mvn  -rf :ode
>>>
>>>
>>> --
>>> *Isuru Udana*
>>>  Senior
>>> * Software Engineer*
>>> WSO2 Inc.; http://wso2.com
>>> email: isu...@wso2.com cell: +94 77 3791887
>>> blog: http://mytecheye.blogspot.com/
>>> twitter: http://twitter.com/isudana
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Ravi Undupitiya*
>>  Software Engineer; WSO2 Inc.; http://wso2.com
>>
>>
>> *E-mail: r...@wso2.com **M: **+94 772 930 712
>> <%2B94%C2%A0772%20930%20712>*
>>
>> 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
>



-- 
Regards,

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


Re: [Dev] Chunk 10 - Build Failure in a clean repo

2014-05-06 Thread Ravi Undupitiya
Small correction:

We have to build [1] and [2] to resolve.

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/ode/1.3.5-wso2v11/
[2]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/ode/1.3.5-wso2v12/


On Wed, May 7, 2014 at 10:55 AM, Thilini Ishaka  wrote:

> Hi Ravi,
>
> We'll check on the build failure. Anyway BPS is not going release with
> ch-11. So we'll remove bps related stuffs from the ch-11 build.
> Waruna, please note.
>
> Thanks
> Thilini
>
>
> On Tue, May 6, 2014 at 10:23 PM, Ravi Undupitiya  wrote:
>
>> Hi,
>>
>> Got the same error on a clean repo build of chunk-11. Building [1] fixed.
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/ode/1.3.5-wso2v12/bpel-extensions/e4x
>>
>>
>> On Thu, Apr 24, 2014 at 11:54 PM, Isuru Udana  wrote:
>>
>>> Hi,
>>>
>>> I am getting the following.
>>>
>>> [INFO]
>>> 
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> 
>>> [INFO] Total time: 2:43.266s
>>> [INFO] Finished at: Thu Apr 24 23:43:23 IST 2014
>>> [INFO] Final Memory: 323M/592M
>>> [INFO]
>>> 
>>> [ERROR] Failed to execute goal on project ode: Could not resolve
>>> dependencies for project org.apache.ode.wso2:ode:bundle:1.3.5.wso2v12: The
>>> following artifacts could not be resolved:
>>> org.wso2.bpel.extensions:ode-bpel-extensions-e4x:jar:1.0.0-wso2v11,
>>> org.wso2.bpel.extensions:ode-bpel-extensions-long-running:jar:1.0.0-wso2v11:
>>> Failure to find
>>> org.wso2.bpel.extensions:ode-bpel-extensions-e4x:jar:1.0.0-wso2v11 in
>>> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
>>> the local repository, resolution will not be reattempted until the update
>>> interval of wso2-nexus has elapsed or updates are forced -> [Help 1]
>>> [ERROR]
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>>> -e switch.
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR]
>>> [ERROR] For more information about the errors and possible solutions,
>>> please read the following articles:
>>> [ERROR] [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>>> [ERROR]
>>> [ERROR] After correcting the problems, you can resume the build with the
>>> command
>>> [ERROR]   mvn  -rf :ode
>>>
>>>
>>> --
>>> *Isuru Udana*
>>>  Senior
>>> * Software Engineer*
>>> WSO2 Inc.; http://wso2.com
>>> email: isu...@wso2.com cell: +94 77 3791887
>>> blog: http://mytecheye.blogspot.com/
>>> twitter: http://twitter.com/isudana
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Ravi Undupitiya*
>>  Software Engineer; WSO2 Inc.; http://wso2.com
>>
>>
>> *E-mail: r...@wso2.com **M: **+94 772 930 712
>> <%2B94%C2%A0772%20930%20712>*
>>
>> 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
>



-- 
*Ravi Undupitiya*
Software Engineer; WSO2 Inc.; http://wso2.com


*E-mail: r...@wso2.com **M: **+94 772 930 712*

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


[Dev] Moving databridge components to a separate git repository

2014-05-06 Thread Rajeev Sampath
Hi,

Currently part of the data-bridge (core components) are in carbon-commons
and the rest is in carbon-analytics. However there are arguments that
carbon-commons is not the right place to have these data-bridge components.

Completely moving this to carbon-analytics doesn't seem to be a good option
either since quite a few products depend on this and they will have to wait
for a carbon-analytics release when there are updates.

Do we need a separate git repo for data-bridge? Or else a better place to
move this?


Thanks
Rajeev

-- 
Rajeev Sampath
Senior Software Engineer
WSO2, Inc.; http://www.wso2.com.

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


Re: [Dev] Chunk 10 - Build Failure in a clean repo

2014-05-06 Thread Thilini Ishaka
Hi Ravi,

We'll check on the build failure. Anyway BPS is not going release with
ch-11. So we'll remove bps related stuffs from the ch-11 build.
Waruna, please note.

Thanks
Thilini


On Tue, May 6, 2014 at 10:23 PM, Ravi Undupitiya  wrote:

> Hi,
>
> Got the same error on a clean repo build of chunk-11. Building [1] fixed.
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/ode/1.3.5-wso2v12/bpel-extensions/e4x
>
>
> On Thu, Apr 24, 2014 at 11:54 PM, Isuru Udana  wrote:
>
>> Hi,
>>
>> I am getting the following.
>>
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 2:43.266s
>> [INFO] Finished at: Thu Apr 24 23:43:23 IST 2014
>> [INFO] Final Memory: 323M/592M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal on project ode: Could not resolve
>> dependencies for project org.apache.ode.wso2:ode:bundle:1.3.5.wso2v12: The
>> following artifacts could not be resolved:
>> org.wso2.bpel.extensions:ode-bpel-extensions-e4x:jar:1.0.0-wso2v11,
>> org.wso2.bpel.extensions:ode-bpel-extensions-long-running:jar:1.0.0-wso2v11:
>> Failure to find
>> org.wso2.bpel.extensions:ode-bpel-extensions-e4x:jar:1.0.0-wso2v11 in
>> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
>> the local repository, resolution will not be reattempted until the update
>> interval of wso2-nexus has elapsed or updates are forced -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>> [ERROR]
>> [ERROR] After correcting the problems, you can resume the build with the
>> command
>> [ERROR]   mvn  -rf :ode
>>
>>
>> --
>> *Isuru Udana*
>>  Senior
>> * Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> email: isu...@wso2.com cell: +94 77 3791887
>> blog: http://mytecheye.blogspot.com/
>> twitter: http://twitter.com/isudana
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Ravi Undupitiya*
>  Software Engineer; WSO2 Inc.; http://wso2.com
>
>
> *E-mail: r...@wso2.com **M: **+94 772 930 712
> <%2B94%C2%A0772%20930%20712>*
>
> 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] Chunk 10 - Build Failure in a clean repo

2014-05-06 Thread Ravi Undupitiya
Hi,

Got the same error on a clean repo build of chunk-11. Building [1] fixed.

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/ode/1.3.5-wso2v12/bpel-extensions/e4x


On Thu, Apr 24, 2014 at 11:54 PM, Isuru Udana  wrote:

> Hi,
>
> I am getting the following.
>
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 2:43.266s
> [INFO] Finished at: Thu Apr 24 23:43:23 IST 2014
> [INFO] Final Memory: 323M/592M
> [INFO]
> 
> [ERROR] Failed to execute goal on project ode: Could not resolve
> dependencies for project org.apache.ode.wso2:ode:bundle:1.3.5.wso2v12: The
> following artifacts could not be resolved:
> org.wso2.bpel.extensions:ode-bpel-extensions-e4x:jar:1.0.0-wso2v11,
> org.wso2.bpel.extensions:ode-bpel-extensions-long-running:jar:1.0.0-wso2v11:
> Failure to find
> org.wso2.bpel.extensions:ode-bpel-extensions-e4x:jar:1.0.0-wso2v11 in
> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
> local repository, resolution will not be reattempted until the update
> interval of wso2-nexus has elapsed or updates are forced -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn  -rf :ode
>
>
> --
> *Isuru Udana*
>  Senior
> * Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
> twitter: http://twitter.com/isudana
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ravi Undupitiya*
Software Engineer; WSO2 Inc.; http://wso2.com


*E-mail: r...@wso2.com **M: **+94 772 930 712*

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


Re: [Dev] [Blocker] Issues with AM_DB scripts for Oracle

2014-05-06 Thread Lakmali Baminiwatta
On 6 May 2014 23:18, Nirodha Pramod  wrote:

> Hi Lakmali,
>
> There is another blocking issue[6] with Oracle when generating Keys in
> store. Please have a look.
>
> regards,
> Nirodha
>
> [6] https://wso2.org/jira/browse/APIMANAGER-2302
>

Fixed in r202087and r202103.

>
>
>
> On Mon, May 5, 2014 at 9:38 PM, Lakmali Baminiwatta wrote:
>
>> Hi,
>>
>> Please find the fixed oracle script attached.
>>
>> Thanks,
>> Lakmali
>>
>>
>> On 5 May 2014 21:11, Nirodha Pramod  wrote:
>>
>>> Hi Lakmali,
>>>
>>> Can we have a patch for this issue [3] this is an absolute blocker for
>>> testing on Oracle.
>>>
>>> regards,
>>> Nirodha
>>>
>>>
>>> On Mon, May 5, 2014 at 10:56 AM, Lakmali Baminiwatta 
>>> wrote:
>>>
 Hi,

 On 3 May 2014 00:26, Nirodha Pramod  wrote:

> Hi,
>
> Following two blocking issues were found with the oracle script for
> AM_DB on 29th April pack. Please have a look.
>

> [1] https://wso2.org/jira/browse/APIMANAGER-2266
>

 Had been Fixed now.

 [2] https://wso2.org/jira/browse/APIMANAGER-2268
>

  It seems this issue has occurred due to user not having permissions to
 create triggers.

  Fixed the issue[3] in r201794.

 [3] https://wso2.org/jira/browse/APIMANAGER-2264

  Thanks,
 Lakmali

>
> regards,
> Nirodha
>
> --
>
> *Nirodha Gallage*
> Senior Software Engineer, QA.
> WSO2 Inc.: http://wso2.com/
> Mobile: +94716429078
>



 --
 Lakmali Baminiwatta
  Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 71 2335936
 blog : lakmali.com


>>>
>>>
>>> --
>>>
>>> *Nirodha Gallage*
>>> Senior Software Engineer, QA.
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94716429078
>>>
>>
>>
>>
>> --
>> Lakmali Baminiwatta
>>  Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>> mobile:  +94 71 2335936
>> blog : lakmali.com
>>
>>
>
>
> --
>
> *Nirodha Gallage*
> Senior Software Engineer, QA.
> WSO2 Inc.: http://wso2.com/
> Mobile: +94716429078
>



-- 
Lakmali Baminiwatta
 Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting a dead page when browsing the registry after applying the kernel patch 0007

2014-05-06 Thread Subash Chaturanga
+1


On Wed, May 7, 2014 at 10:07 AM, Anjana Fernando  wrote:

> Hi Manoj,
>
> Yeah, I was directing it at the registry guys, to further verify that this
> is correct.
>
> Cheers,
> Anjana.
>
>
>
> On Wed, May 7, 2014 at 10:02 AM, Manoj Kumara  wrote:
>
>> Hi Anjana,
>>
>> I think we discussed about the solution. This was due to unre-factored
>> org.wso2.carbon.registry.resource component as chanika mentioned. we
>> should create a new version of this (with the cc refractory) and use that.
>>
>> Thanks,
>> Manoj
>>
>>
>> *Manoj Kumara*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94713448188
>>
>>
>> On Wed, May 7, 2014 at 9:43 AM, Anjana Fernando  wrote:
>>
>>> Guys,
>>>
>>> Please ACK! ..
>>>
>>> Cheers,
>>> Anjana.
>>>
>>>
>>> On Tue, May 6, 2014 at 2:19 PM, Chanika Geeganage wrote:
>>>
 Hi,

 Thanks for the input. By further investigating the issue, the following
 factors were found

 CC refacotoring was done in org.wso2.carbon.server.admin component
 (with r201004) in the patch0007.

 Modified: carbon/kernel/branches/4.2.0/
 patches
 /patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
 URL: http://wso2.org/svn/browse/wso2/carbon/kernel/branches/4.2.0/
 patches
 /patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java?rev=201004&r1=201003&r2=201004&view=diff

 ==
 --- 
 carbon/kernel/branches/4.2.0/patches/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
  (original)
 +++ 
 carbon/kernel/branches/4.2.0/patches/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
  Thu Apr 24 11:47:49 2014
 @@ -28,7 +28,6 @@
  import org.apache.commons.logging.LogFactory;
  import org.wso2.carbon.CarbonConstants;
  import org.wso2.carbon.context.CarbonContext;
 -import org.wso2.carbon.context.PrivilegedCarbonContext;
  import org.wso2.carbon.user.core.AuthorizationManager;
  import org.wso2.carbon.user.core.UserRealm;
  import org.wso2.carbon.user.core.UserStoreException;
 @@ -107,8 +106,8 @@
  if (httpSession != null) {
  username = (String)
 httpSession.getAttribute(ServerConstants.USER_LOGGED_IN);
  UserRealm realm =
 -(UserRealm) PrivilegedCarbonContext.
 -
  getCurrentContext(httpSession).getUserRealm();
 +(UserRealm) CarbonContext.
 +
  getThreadLocalCarbonContext().getUserRealm();

  if (realm == null) {
  log.error("The realm is null for username: " +
 username + ".");



 By removing this, registry browsing works fine. But we can't revert
 this change.

 In the org.wso2.carbon.registry.resource 4.2.0 component, the CC
 refactoring was done in an already released version. ie. the commit 186766
 is not in the artifact deployed in nexus [1].

 Therefore, as a solution, refactored org.wso2.carbon.registry.resource
 can be released as the next version (4.2.1) in chunk-10. WDYT?

 [1]
 http://maven.wso2.org/nexus/index.html#nexus-search;quick~org.wso2.carbon.registry.resource

 Thanks
 Chanika


 On Tue, May 6, 2014 at 7:42 AM, Shelan Perera  wrote:

> Hi Chanika,
>
> Have you defined any other carbon datasources? Please have a look at
> [1] and it may have some clues.
>
> [1] https://wso2.org/jira/browse/ESBJAVA-2854
>
>
> On Mon, May 5, 2014 at 10:13 PM, Chanika Geeganage 
> wrote:
>
>> Hi,
>>
>> I'm getting a dead page with the following exception when browsing
>> the registry in the DSS 3.2.1 with kernel patch 0007.
>>
>> [2014-05-05 22:04:06,485] ERROR
>> {org.apache.catalina.core.ApplicationDispatcher} -  Servlet.service() for
>> servlet bridgeservlet threw exception
>> java.lang.IllegalArgumentException: [=] is not a hexadecimal digit
>> at
>> org.apache.catalina.util.RequestUtil.convertHexDigit(RequestUtil.java:316)
>> at
>> org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:400)
>> at
>> org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:153)
>> at
>> org.apache.catalina.core.ApplicationHttpRequest.mergeParameters(ApplicationHttpRequest.java:894)
>> at
>> org.apache.catalina.core.ApplicationHttpRequest.parseParameters(ApplicationHttpRequest.java:756)
>> at
>> org.apache.catalina.core.Appli

Re: [Dev] Getting a dead page when browsing the registry after applying the kernel patch 0007

2014-05-06 Thread Anjana Fernando
Hi Manoj,

Yeah, I was directing it at the registry guys, to further verify that this
is correct.

Cheers,
Anjana.



On Wed, May 7, 2014 at 10:02 AM, Manoj Kumara  wrote:

> Hi Anjana,
>
> I think we discussed about the solution. This was due to unre-factored
> org.wso2.carbon.registry.resource component as chanika mentioned. we
> should create a new version of this (with the cc refractory) and use that.
>
> Thanks,
> Manoj
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
>
> On Wed, May 7, 2014 at 9:43 AM, Anjana Fernando  wrote:
>
>> Guys,
>>
>> Please ACK! ..
>>
>> Cheers,
>> Anjana.
>>
>>
>> On Tue, May 6, 2014 at 2:19 PM, Chanika Geeganage wrote:
>>
>>> Hi,
>>>
>>> Thanks for the input. By further investigating the issue, the following
>>> factors were found
>>>
>>> CC refacotoring was done in org.wso2.carbon.server.admin component (with
>>> r201004) in the patch0007.
>>>
>>> Modified: carbon/kernel/branches/4.2.0/
>>> patches
>>> /patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
>>> URL: http://wso2.org/svn/browse/wso2/carbon/kernel/branches/4.2.0/
>>> patches
>>> /patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java?rev=201004&r1=201003&r2=201004&view=diff
>>>
>>> ==
>>> --- 
>>> carbon/kernel/branches/4.2.0/patches/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
>>>  (original)
>>> +++ 
>>> carbon/kernel/branches/4.2.0/patches/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
>>>  Thu Apr 24 11:47:49 2014
>>> @@ -28,7 +28,6 @@
>>>  import org.apache.commons.logging.LogFactory;
>>>  import org.wso2.carbon.CarbonConstants;
>>>  import org.wso2.carbon.context.CarbonContext;
>>> -import org.wso2.carbon.context.PrivilegedCarbonContext;
>>>  import org.wso2.carbon.user.core.AuthorizationManager;
>>>  import org.wso2.carbon.user.core.UserRealm;
>>>  import org.wso2.carbon.user.core.UserStoreException;
>>> @@ -107,8 +106,8 @@
>>>  if (httpSession != null) {
>>>  username = (String)
>>> httpSession.getAttribute(ServerConstants.USER_LOGGED_IN);
>>>  UserRealm realm =
>>> -(UserRealm) PrivilegedCarbonContext.
>>> -
>>>  getCurrentContext(httpSession).getUserRealm();
>>> +(UserRealm) CarbonContext.
>>> +
>>>  getThreadLocalCarbonContext().getUserRealm();
>>>
>>>  if (realm == null) {
>>>  log.error("The realm is null for username: " +
>>> username + ".");
>>>
>>>
>>>
>>> By removing this, registry browsing works fine. But we can't revert this
>>> change.
>>>
>>> In the org.wso2.carbon.registry.resource 4.2.0 component, the CC
>>> refactoring was done in an already released version. ie. the commit 186766
>>> is not in the artifact deployed in nexus [1].
>>>
>>> Therefore, as a solution, refactored org.wso2.carbon.registry.resource
>>> can be released as the next version (4.2.1) in chunk-10. WDYT?
>>>
>>> [1]
>>> http://maven.wso2.org/nexus/index.html#nexus-search;quick~org.wso2.carbon.registry.resource
>>>
>>> Thanks
>>> Chanika
>>>
>>>
>>> On Tue, May 6, 2014 at 7:42 AM, Shelan Perera  wrote:
>>>
 Hi Chanika,

 Have you defined any other carbon datasources? Please have a look at
 [1] and it may have some clues.

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


 On Mon, May 5, 2014 at 10:13 PM, Chanika Geeganage wrote:

> Hi,
>
> I'm getting a dead page with the following exception when browsing the
> registry in the DSS 3.2.1 with kernel patch 0007.
>
> [2014-05-05 22:04:06,485] ERROR
> {org.apache.catalina.core.ApplicationDispatcher} -  Servlet.service() for
> servlet bridgeservlet threw exception
> java.lang.IllegalArgumentException: [=] is not a hexadecimal digit
> at
> org.apache.catalina.util.RequestUtil.convertHexDigit(RequestUtil.java:316)
> at
> org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:400)
> at
> org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:153)
> at
> org.apache.catalina.core.ApplicationHttpRequest.mergeParameters(ApplicationHttpRequest.java:894)
> at
> org.apache.catalina.core.ApplicationHttpRequest.parseParameters(ApplicationHttpRequest.java:756)
> at
> org.apache.catalina.core.ApplicationHttpRequest.getParameter(ApplicationHttpRequest.java:367)
> at
> javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:184)
> at
> org.wso2.carbon.ui.CarbonUILogin

Re: [Dev] Getting a dead page when browsing the registry after applying the kernel patch 0007

2014-05-06 Thread Manoj Kumara
Hi Anjana,

I think we discussed about the solution. This was due to unre-factored
org.wso2.carbon.registry.resource component as chanika mentioned. we should
create a new version of this (with the cc refractory) and use that.

Thanks,
Manoj


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


On Wed, May 7, 2014 at 9:43 AM, Anjana Fernando  wrote:

> Guys,
>
> Please ACK! ..
>
> Cheers,
> Anjana.
>
>
> On Tue, May 6, 2014 at 2:19 PM, Chanika Geeganage wrote:
>
>> Hi,
>>
>> Thanks for the input. By further investigating the issue, the following
>> factors were found
>>
>> CC refacotoring was done in org.wso2.carbon.server.admin component (with
>> r201004) in the patch0007.
>>
>> Modified: carbon/kernel/branches/4.2.0/
>> patches
>> /patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
>> URL: http://wso2.org/svn/browse/wso2/carbon/kernel/branches/4.2.0/patches
>> /patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java?rev=201004&r1=201003&r2=201004&view=diff
>>
>> ==
>> --- 
>> carbon/kernel/branches/4.2.0/patches/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
>>  (original)
>> +++ 
>> carbon/kernel/branches/4.2.0/patches/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
>>  Thu Apr 24 11:47:49 2014
>> @@ -28,7 +28,6 @@
>>  import org.apache.commons.logging.LogFactory;
>>  import org.wso2.carbon.CarbonConstants;
>>  import org.wso2.carbon.context.CarbonContext;
>> -import org.wso2.carbon.context.PrivilegedCarbonContext;
>>  import org.wso2.carbon.user.core.AuthorizationManager;
>>  import org.wso2.carbon.user.core.UserRealm;
>>  import org.wso2.carbon.user.core.UserStoreException;
>> @@ -107,8 +106,8 @@
>>  if (httpSession != null) {
>>  username = (String)
>> httpSession.getAttribute(ServerConstants.USER_LOGGED_IN);
>>  UserRealm realm =
>> -(UserRealm) PrivilegedCarbonContext.
>> -
>>  getCurrentContext(httpSession).getUserRealm();
>> +(UserRealm) CarbonContext.
>> +
>>  getThreadLocalCarbonContext().getUserRealm();
>>
>>  if (realm == null) {
>>  log.error("The realm is null for username: " +
>> username + ".");
>>
>>
>>
>> By removing this, registry browsing works fine. But we can't revert this
>> change.
>>
>> In the org.wso2.carbon.registry.resource 4.2.0 component, the CC
>> refactoring was done in an already released version. ie. the commit 186766
>> is not in the artifact deployed in nexus [1].
>>
>> Therefore, as a solution, refactored org.wso2.carbon.registry.resource
>> can be released as the next version (4.2.1) in chunk-10. WDYT?
>>
>> [1]
>> http://maven.wso2.org/nexus/index.html#nexus-search;quick~org.wso2.carbon.registry.resource
>>
>> Thanks
>> Chanika
>>
>>
>> On Tue, May 6, 2014 at 7:42 AM, Shelan Perera  wrote:
>>
>>> Hi Chanika,
>>>
>>> Have you defined any other carbon datasources? Please have a look at [1]
>>> and it may have some clues.
>>>
>>> [1] https://wso2.org/jira/browse/ESBJAVA-2854
>>>
>>>
>>> On Mon, May 5, 2014 at 10:13 PM, Chanika Geeganage wrote:
>>>
 Hi,

 I'm getting a dead page with the following exception when browsing the
 registry in the DSS 3.2.1 with kernel patch 0007.

 [2014-05-05 22:04:06,485] ERROR
 {org.apache.catalina.core.ApplicationDispatcher} -  Servlet.service() for
 servlet bridgeservlet threw exception
 java.lang.IllegalArgumentException: [=] is not a hexadecimal digit
 at
 org.apache.catalina.util.RequestUtil.convertHexDigit(RequestUtil.java:316)
 at
 org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:400)
 at
 org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:153)
 at
 org.apache.catalina.core.ApplicationHttpRequest.mergeParameters(ApplicationHttpRequest.java:894)
 at
 org.apache.catalina.core.ApplicationHttpRequest.parseParameters(ApplicationHttpRequest.java:756)
 at
 org.apache.catalina.core.ApplicationHttpRequest.getParameter(ApplicationHttpRequest.java:367)
 at
 javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:184)
 at
 org.wso2.carbon.ui.CarbonUILoginUtil.getCustomIndexPage(CarbonUILoginUtil.java:153)
 at
 org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:190)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)
 at
 org.eclipse.equinox.http

Re: [Dev] Getting a dead page when browsing the registry after applying the kernel patch 0007

2014-05-06 Thread Anjana Fernando
Guys,

Please ACK! ..

Cheers,
Anjana.


On Tue, May 6, 2014 at 2:19 PM, Chanika Geeganage  wrote:

> Hi,
>
> Thanks for the input. By further investigating the issue, the following
> factors were found
>
> CC refacotoring was done in org.wso2.carbon.server.admin component (with
> r201004) in the patch0007.
>
> Modified: carbon/kernel/branches/4.2.0/
> patches
> /patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
> URL: http://wso2.org/svn/browse/wso2/carbon/kernel/branches/4.2.0/patches
> /patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java?rev=201004&r1=201003&r2=201004&view=diff
>
> ==
> --- 
> carbon/kernel/branches/4.2.0/patches/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
>  (original)
> +++ 
> carbon/kernel/branches/4.2.0/patches/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
>  Thu Apr 24 11:47:49 2014
> @@ -28,7 +28,6 @@
>  import org.apache.commons.logging.LogFactory;
>  import org.wso2.carbon.CarbonConstants;
>  import org.wso2.carbon.context.CarbonContext;
> -import org.wso2.carbon.context.PrivilegedCarbonContext;
>  import org.wso2.carbon.user.core.AuthorizationManager;
>  import org.wso2.carbon.user.core.UserRealm;
>  import org.wso2.carbon.user.core.UserStoreException;
> @@ -107,8 +106,8 @@
>  if (httpSession != null) {
>  username = (String)
> httpSession.getAttribute(ServerConstants.USER_LOGGED_IN);
>  UserRealm realm =
> -(UserRealm) PrivilegedCarbonContext.
> -
>  getCurrentContext(httpSession).getUserRealm();
> +(UserRealm) CarbonContext.
> +
>  getThreadLocalCarbonContext().getUserRealm();
>
>  if (realm == null) {
>  log.error("The realm is null for username: " +
> username + ".");
>
>
>
> By removing this, registry browsing works fine. But we can't revert this
> change.
>
> In the org.wso2.carbon.registry.resource 4.2.0 component, the CC
> refactoring was done in an already released version. ie. the commit 186766
> is not in the artifact deployed in nexus [1].
>
> Therefore, as a solution, refactored org.wso2.carbon.registry.resource can
> be released as the next version (4.2.1) in chunk-10. WDYT?
>
> [1]
> http://maven.wso2.org/nexus/index.html#nexus-search;quick~org.wso2.carbon.registry.resource
>
> Thanks
> Chanika
>
>
> On Tue, May 6, 2014 at 7:42 AM, Shelan Perera  wrote:
>
>> Hi Chanika,
>>
>> Have you defined any other carbon datasources? Please have a look at [1]
>> and it may have some clues.
>>
>> [1] https://wso2.org/jira/browse/ESBJAVA-2854
>>
>>
>> On Mon, May 5, 2014 at 10:13 PM, Chanika Geeganage wrote:
>>
>>> Hi,
>>>
>>> I'm getting a dead page with the following exception when browsing the
>>> registry in the DSS 3.2.1 with kernel patch 0007.
>>>
>>> [2014-05-05 22:04:06,485] ERROR
>>> {org.apache.catalina.core.ApplicationDispatcher} -  Servlet.service() for
>>> servlet bridgeservlet threw exception
>>> java.lang.IllegalArgumentException: [=] is not a hexadecimal digit
>>> at
>>> org.apache.catalina.util.RequestUtil.convertHexDigit(RequestUtil.java:316)
>>> at
>>> org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:400)
>>> at
>>> org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:153)
>>> at
>>> org.apache.catalina.core.ApplicationHttpRequest.mergeParameters(ApplicationHttpRequest.java:894)
>>> at
>>> org.apache.catalina.core.ApplicationHttpRequest.parseParameters(ApplicationHttpRequest.java:756)
>>> at
>>> org.apache.catalina.core.ApplicationHttpRequest.getParameter(ApplicationHttpRequest.java:367)
>>> at
>>> javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:184)
>>> at
>>> org.wso2.carbon.ui.CarbonUILoginUtil.getCustomIndexPage(CarbonUILoginUtil.java:153)
>>> at
>>> org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:190)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>> at
>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(Applica

Re: [Dev] API Manager 1.7.0 & ELB-2.1.1 nightly build packs 06-05-2014

2014-05-06 Thread Charitha Kankanamge
​Thanks Sanjeewa. MSSQL related blockers are fixed in this pack. Verified
the jiras.
However, there is a critical MT failure which can be reproduced in a fresh
pack as well.

When you invoke an API in a tenant, the response is not returned. Given
below is the wire log. As you can see, the response is not sent back.
Client always gets http 202 acknowledgement instead of the actual response.
Basically MT is broken.

Note that the same API works with the same backend in super tenant mode. So
this must be a MT regression.

[2014-05-07 03:25:31,891] DEBUG - wire >> "POST
/t/superqa.com/axis2API/v1HTTP/1.1[\r][\n]"
[2014-05-07 03:25:31,892] DEBUG - wire >> "Connection: close[\r][\n]"
[2014-05-07 03:25:31,893] DEBUG - wire >> "Accept-Encoding:
gzip,deflate[\r][\n]"
[2014-05-07 03:25:31,894] DEBUG - wire >> "Content-Type:
text/xml;charset=UTF-8[\r][\n]"
[2014-05-07 03:25:31,894] DEBUG - wire >> "SOAPAction:
"urn:echoString"[\r][\n]"
[2014-05-07 03:25:31,895] DEBUG - wire >> "Authorization: Bearer
4636d529ea62b726e312a53794dccf36[\r
][\n]"
[2014-05-07 03:25:31,896] DEBUG - wire >> "Content-Length: 307[\r][\n]"
[2014-05-07 03:25:31,896] DEBUG - wire >> "Host: 10.0.0.2:8280[\r][\n]"
[2014-05-07 03:25:31,897] DEBUG - wire >> "User-Agent:
Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
[2014-05-07 03:25:31,897] DEBUG - wire >> "[\r][\n]"
[2014-05-07 03:25:31,898] DEBUG - wire >> "http://schemas.xmlsoap.o
rg/soap/envelope/" xmlns:ser="http://service.carbon.wso2.org";>[\r][\n]"
[2014-05-07 03:25:31,898] DEBUG - wire >> "   [\r][\n]"
[2014-05-07 03:25:31,899] DEBUG - wire >> "   [\r][\n]"
[2014-05-07 03:25:31,899] DEBUG - wire >> "  [\r][\n]"
[2014-05-07 03:25:31,899] DEBUG - wire >> "
[\r][\n]"
[2014-05-07 03:25:31,900] DEBUG - wire >> "
test[\r][\n]"
[2014-05-07 03:25:31,900] DEBUG - wire >> "  [\r][\n]"
[2014-05-07 03:25:31,901] DEBUG - wire >> "   [\r][\n]"
[2014-05-07 03:25:31,901] DEBUG - wire >> ""
[2014-05-07 03:25:31,917]  INFO - LogMediator To:
local://axis2services/axis2API/v1, WSAction: urn:e
choString, SOAPAction: urn:echoString, MessageID:
urn:uuid:AE969D38832DDA67D11399413331911, Directio
n: request, Envelope: http://service.carbon.wso2.org";>
  
 
 test
  
   
[2014-05-07 03:25:31,929] DEBUG - wire << "POST /services/Axis2Service
HTTP/1.1[\r][\n]"
[2014-05-07 03:25:31,930] DEBUG - wire << "Accept-Encoding:
gzip,deflate[\r][\n]"
[2014-05-07 03:25:31,930] DEBUG - wire << "Content-Type:
text/xml;charset=UTF-8[\r][\n]"
[2014-05-07 03:25:31,930] DEBUG - wire << "SOAPAction:
"urn:echoString"[\r][\n]"
[2014-05-07 03:25:31,931] DEBUG - wire << "Transfer-Encoding:
chunked[\r][\n]"
[2014-05-07 03:25:31,931] DEBUG - wire << "Host: localhost:9764[\r][\n]"
[2014-05-07 03:25:31,931] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
[2014-05-07 03:25:31,931] DEBUG - wire << "User-Agent:
Synapse-PT-HttpComponents-NIO[\r][\n]"
[2014-05-07 03:25:31,929] DEBUG - wire << "HTTP/1.1 202 Accepted[\r][\n]"
[2014-05-07 03:25:31,932] DEBUG - wire << "Date: Tue, 06 May 2014 21:55:31
GMT[\r][\n]"
[2014-05-07 03:25:31,932] DEBUG - wire << "Server:
WSO2-PassThrough-HTTP[\r][\n]"
[2014-05-07 03:25:31,932] DEBUG - wire << "Transfer-Encoding:
chunked[\r][\n]"
[2014-05-07 03:25:31,931] DEBUG - wire << "[\r][\n]"
[2014-05-07 03:25:31,933] DEBUG - wire << "Connection: close[\r][\n]"
[2014-05-07 03:25:31,933] DEBUG - wire << "[\r][\n]"
[2014-05-07 03:25:31,933] DEBUG - wire << "161[\r][\n]"
[2014-05-07 03:25:31,934] DEBUG - wire << "http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ser="
http://service.carbon.wso2.org";>
[\n]"
[2014-05-07 03:25:31,934] DEBUG - wire << "
[\n]"
[2014-05-07 03:25:31,934] DEBUG - wire << "   [\n]"
[2014-05-07 03:25:31,934] DEBUG - wire << "  [\n]"
[2014-05-07 03:25:31,934] DEBUG - wire << "0[\r][\n]"
[2014-05-07 03:25:31,935] DEBUG - wire << "[\r][\n]"
[2014-05-07 03:25:31,935] DEBUG - wire << " [\n]"
[2014-05-07 03:25:31,935] DEBUG - wire << " test[\n]"
[2014-05-07 03:25:31,936] DEBUG - wire << "  [\n]"
[2014-05-07 03:25:31,936] DEBUG - wire << "   [\n]"
[2014-05-07 03:25:31,936] DEBUG - wire << "[\r][\n]"
[2014-05-07 03:25:31,936] DEBUG - wire << "0[\r][\n]"
[2014-05-07 03:25:31,936] DEBUG - wire << "[\r][\n]"
[2014-05-07 03:25:31,991] DEBUG - wire >> "HTTP/1.1 200 OK[\r][\n]"
[2014-05-07 03:25:32,008] DEBUG - wire >> "Content-Type:
text/xml;charset=UTF-8[\r][\n]"
[2014-05-07 03:25:32,008] DEBUG - wire >> "Transfer-Encoding:
chunked[\r][\n]"
[2014-05-07 03:25:32,008] DEBUG - wire >> "Date: Tue, 06 May 2014 21:55:31
GMT[\r][\n]"
[2014-05-07 03:25:32,009] DEBUG - wire >> "Server: WSO2 Carbon
Server[\r][\n]"
[2014-05-07 03:25:32,009] DEBUG - wire >> "[\r][\n]"
[2014-05-07 03:25:32,009] DEBUG - wire >> "116[\r][\n]"
[2014-05-07 03:25:32,010] DEBUG - wire >> "http://schemas.xmlsoap.org/soap/envelope/";>http://service.carbon.wso2.org
">test[\r][\n]"
[2014-05-07 03:25:32,011] DEBUG - wire >> "0[\r][\n]"
[2014-05-07 03:25:32,011] DEBUG - wire >> "[\r][\n]"
[2014-05-07 

[Dev] Kernel commit in user core

2014-05-06 Thread Asela Pathberiya
Hi Manoj,

Please commit following attached patches to kernel..

[1] https://wso2.org/jira/browse/CARBON-14769
[2] https://wso2.org/jira/browse/IDENTITY-2281

Thanks,
Asela.

-- 
Thanks & Regards,
Asela

ATL
Mobile : +94 777 625 933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] API Manager 1.7.0 & ELB-2.1.1 nightly build packs 06-05-2014

2014-05-06 Thread Sanjeewa Malalgoda
Hi,
Please find $Subject in [1]. This API Manager pack contains mssql related
fixes.

[1]http://builder1.us1.wso2.org/~apim/06-05-2014/

Thanks,
sanjeewa.

-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

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


Re: [Dev] [Blocker] Issues with AM_DB scripts for Oracle

2014-05-06 Thread Nirodha Pramod
Hi Lakmali,

There is another blocking issue[6] with Oracle when generating Keys in
store. Please have a look.

regards,
Nirodha

[6] https://wso2.org/jira/browse/APIMANAGER-2302



On Mon, May 5, 2014 at 9:38 PM, Lakmali Baminiwatta wrote:

> Hi,
>
> Please find the fixed oracle script attached.
>
> Thanks,
> Lakmali
>
>
> On 5 May 2014 21:11, Nirodha Pramod  wrote:
>
>> Hi Lakmali,
>>
>> Can we have a patch for this issue [3] this is an absolute blocker for
>> testing on Oracle.
>>
>> regards,
>> Nirodha
>>
>>
>> On Mon, May 5, 2014 at 10:56 AM, Lakmali Baminiwatta wrote:
>>
>>> Hi,
>>>
>>> On 3 May 2014 00:26, Nirodha Pramod  wrote:
>>>
 Hi,

 Following two blocking issues were found with the oracle script for
 AM_DB on 29th April pack. Please have a look.

>>>
 [1] https://wso2.org/jira/browse/APIMANAGER-2266

>>>
>>> Had been Fixed now.
>>>
>>> [2] https://wso2.org/jira/browse/APIMANAGER-2268

>>>
>>>  It seems this issue has occurred due to user not having permissions to
>>> create triggers.
>>>
>>>  Fixed the issue[3] in r201794.
>>>
>>> [3] https://wso2.org/jira/browse/APIMANAGER-2264
>>>
>>>  Thanks,
>>> Lakmali
>>>

 regards,
 Nirodha

 --

 *Nirodha Gallage*
 Senior Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94716429078

>>>
>>>
>>>
>>> --
>>> Lakmali Baminiwatta
>>>  Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean.enterprise.middleware
>>> mobile:  +94 71 2335936
>>> blog : lakmali.com
>>>
>>>
>>
>>
>> --
>>
>> *Nirodha Gallage*
>> Senior Software Engineer, QA.
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94716429078
>>
>
>
>
> --
> Lakmali Baminiwatta
>  Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> mobile:  +94 71 2335936
> blog : lakmali.com
>
>


-- 

*Nirodha Gallage*
Senior Software Engineer, QA.
WSO2 Inc.: http://wso2.com/
Mobile: +94716429078
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jira Connector 'searchJira' operator issue

2014-05-06 Thread Chathurika Mahaarachchi
check with this [1]

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



On Tue, May 6, 2014 at 6:02 PM, Asanka Sanjeewa  wrote:

> Hi,
>
> I was using 'searchJira' operator in proxy service which queries jiras and
> send result back to the client. The proxy configuration is as given below.
>
> http://ws.apache.org/ns/synapse"; name="SearchJIRA"
> transports="http https" startOnLoad="true" trace="disable">
> 
> 
>  type="STRING"/>
> 
> project=TOOLS AND status=Reopened
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> When the proxy is invoked it successfully connected with jira and send
> result back to ESB (I have enabled wire logs and observed that jira api
> returns the result in json format). Then I logged the result coming from
> 'searchJira' operator using both json payload logging and xml payload
> logging options and it doesn't work as expected (nothing was logged in both
> cases).
>
> When it tries to send the result back to client from 'respond' mediator it
> gives an exception as given below.
>
> org.apache.axis2.AxisFault: Payload could not be written as JSON.
> at
> org.apache.synapse.commons.json.JsonUtil.writeAsJson(JsonUtil.java:109)
> at
> org.apache.synapse.commons.json.JsonStreamFormatter.writeTo(JsonStreamFormatter.java:60)
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:496)
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:254)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:163)
> at
> org.apache.synapse.mediators.builtin.RespondMediator.mediate(RespondMediator.java:23)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
> at
> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
> at
> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
>
> What would be the reason for this? Have I missed anything in my proxy
> configuration?
>
> Thanks and Regards,
> AsankaS.
>
> --
> *Asanka Sanjeewa*
> Senior Software Engineer
> Mobile: +94772532924
> WSO2 Inc. http://wso2.com/
> Blog: http://asanka-tech-blog.blogspot.com/
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chathurika Mahaarachchi*
Software Engineer, QA.
WSO2 Inc.: http://wso2.com/
lean.enterprise.middleware
Mobile: +94718223950
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] "ERROR - HazelcastGroupManagementAgent Could not add application member" in ELB , Created ESB cluster.

2014-05-06 Thread Chathurika Mahaarachchi
Hi,

I used fresh ELB, ESB packs and used same configuration. Now it is working
fine.

Thanks,
Chathurika


On Sat, May 3, 2014 at 10:12 PM, Nirmal Fernando  wrote:

>
>
>
> On Fri, May 2, 2014 at 9:01 PM, Chathurika Mahaarachchi <
> chathur...@wso2.com> wrote:
>
>> Hi ,
>>
>> Following error is observed  in ELB side when starting the management
>> node of the ESB worker manager setup.
>>
>> [2014-05-02 20:23:03,905]  INFO - HazelcastGroupManagementAgent Member
>> joined [75b433da-dc8e-4296-b325-0c696f24e920]: local.mgt.esb/
>> 10.100.1.179:4100
>> [2014-05-02 20:23:03,905]  INFO - HazelcastGroupManagementAgent Member
>> joined [75b433da-dc8e-4296-b325-0c696f24e920]: local.mgt.esb/
>> 10.100.1.179:4100
>>
>>
>> [2014-05-02 20:23:35,969] ERROR - HazelcastGroupManagementAgent Could not
>> add application member Host:10.100.1.179, Remote Host:null, Port: 4100,
>> HTTP:8281, HTTPS:8244, Domain: wso2con.domain, Sub-domain:mgt, Active:true
>>
>
> Seems the connectivity to IP:port is not successful for at least one
> combination.
>
>
>>
>>
>> Can someone explain what should be the reason for this issue.
>>
>> Attached configuration details.
>>
>> Thanks & Regards,
>>
>> --
>> *Chathurika Mahaarachchi*
>> Software Engineer, QA.
>> WSO2 Inc.: http://wso2.com/
>> lean.enterprise.middleware
>> Mobile: +94718223950
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
*Chathurika Mahaarachchi*
Software Engineer, QA.
WSO2 Inc.: http://wso2.com/
lean.enterprise.middleware
Mobile: +94718223950
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Test failures - wso2greg-5.0.0-SNAPSHOT

2014-05-06 Thread Ajith Vitharana
Hi Krishantha,


On Tue, May 6, 2014 at 10:23 PM, Krishantha Samaraweera  wrote:

> Product teams need to own these test failure in future. We've enabled only
> the tests passing in our local machine.
>

I wanted to verify those failures whether  due to latest test migrations or
actual bugs. So, if those test was passing before the migration that should
be passed after the migrated as well.

Thanks.
Ajith


> Thanks,
> Krishantha.
>
>
> On Tue, May 6, 2014 at 10:21 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Most failures are due to user management issue which is reported at -
>> https://wso2.org/jira/browse/IDENTITY-2230
>>
>> Can someone form IS team please have a look.
>>
>> Thanks,
>> Krishantha.
>>
>>
>> On Tue, May 6, 2014 at 8:49 PM, Ajith Vitharana  wrote:
>>
>>> Hi Krishantha,
>>>
>>> The product-greg build is unstable due to test failures. Please note.
>>>
>>> [1]
>>> http://54.84.136.218:8080/jenkins/view/product-builds/job/product-greg/28/
>>>
>>> Thanks.
>>> Ajith.
>>>
>>> --
>>> Ajith Vitharana.
>>> WSO2 Inc. - http://wso2.org
>>> Email  :  aji...@wso2.com
>>> Mobile : +94772217350
>>>
>>>
>>
>>
>> --
>> 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.
>



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


Re: [Dev] Test failures - wso2greg-5.0.0-SNAPSHOT

2014-05-06 Thread Krishantha Samaraweera
Product teams need to own these test failure in future. We've enabled only
the tests passing in our local machine.

Thanks,
Krishantha.


On Tue, May 6, 2014 at 10:21 PM, Krishantha Samaraweera  wrote:

> Most failures are due to user management issue which is reported at -
> https://wso2.org/jira/browse/IDENTITY-2230
>
> Can someone form IS team please have a look.
>
> Thanks,
> Krishantha.
>
>
> On Tue, May 6, 2014 at 8:49 PM, Ajith Vitharana  wrote:
>
>> Hi Krishantha,
>>
>> The product-greg build is unstable due to test failures. Please note.
>>
>> [1]
>> http://54.84.136.218:8080/jenkins/view/product-builds/job/product-greg/28/
>>
>> Thanks.
>> Ajith.
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +94772217350
>>
>>
>
>
> --
> 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] Test failures - wso2greg-5.0.0-SNAPSHOT

2014-05-06 Thread Krishantha Samaraweera
Most failures are due to user management issue which is reported at -
https://wso2.org/jira/browse/IDENTITY-2230

Can someone form IS team please have a look.

Thanks,
Krishantha.


On Tue, May 6, 2014 at 8:49 PM, Ajith Vitharana  wrote:

> Hi Krishantha,
>
> The product-greg build is unstable due to test failures. Please note.
>
> [1]
> http://54.84.136.218:8080/jenkins/view/product-builds/job/product-greg/28/
>
> Thanks.
> Ajith.
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +94772217350
>
>


-- 
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] Building a Carbon Component from an existing Axis2 service

2014-05-06 Thread Amalka Subasinghe
Try following steps

Create the folder structure with .aar file (axis2 service) and artifact
files as follows

 temp

|--> artifact.xml – [1]

|--> OrderProcessingCApp

|--> artifact.xml – [2]

|--> OrderProcessingService.aar


 [1] artifact.xml














 [2] artifact.xml





OrderProcessingService.aar




 go to the temp folder and execute the following command

 temp> jar -cvf OrderProcessingCApp.car *

 then add the .car file to the ESB



On Tue, May 6, 2014 at 4:51 PM, Pubudu Dissanayake  wrote:

> Hi,
>
> Follow these articles
> [1]
> http://wso2.com/library/tutorials/2014/03/understanding-the-carbon-component-architecture/
> [2]
> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
> [3]
> http://wso2.com/library/tutorials/2014/03/how-to-create-a-feature-from-wso2-carbon-component/
>
> Thanks,
> Pubudu
>
>
> On Tue, May 6, 2014 at 4:28 PM, Amalka Subasinghe  wrote:
>
>> This will help
>> https://docs.wso2.org/display/Carbon420/C-App+Deployment+Process
>>
>>
>>
>> On Tue, May 6, 2014 at 4:10 PM, Supun Sethunga  wrote:
>>
>>>  Hi,
>>>
>>> Is there any way of creating a carbon Component using an existing Axis2
>>> service (which includes both client and server classes) as a library? If
>>> so, is there any tutorial/article that I can refer to?
>>>
>>> The only method available for reference is [1], but it creates the
>>> carbon component from the scratch.
>>>
>>> Reference:
>>> [1]
>>> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>>>
>>> Thanks,
>>>
>>> --
>>> *Supun Sethunga*
>>> Software Engineer
>>> WSO2, Inc.
>>> lean | enterprise | middleware
>>> Mobile : +94 716546324
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Amalka Subasinghe
>>
>> Senior Software Engineer, WSO2 Inc.
>> Mobile: +94 77 9401267
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Dissanayake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Mobile: 0775503304
>



-- 
Amalka Subasinghe

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


Re: [Dev] Generting a Unique-ID from a Unique String

2014-05-06 Thread Nuwan Dias
There's a security risk in exposing the token. So encoding won't work. Best
is to has i presume.

Thanks,
NuwanD.


On Tue, May 6, 2014 at 9:43 PM, Sajith Ravindra  wrote:

> Hi Lakmali,
>
> If this is not for a encryption purpose I think it's better to use Base64
> encoding. As per the description i feel that what you are trying to do is
> encoding rather than encrypting. Also you can decode it back if you want if
> you use Base64 encoding.
>
> Thanks
> *, Sajith Ravindra*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273550
> blog: http://sajithr.blogspot.com/
> 
>
>
> On Tue, May 6, 2014 at 9:03 PM, Lakmali Baminiwatta wrote:
>
>> Hi all,
>>
>> For tracking API invocations through Google Analytic, we need to send an
>> unique ID based on the API token. As a solution,we can generate the MD5Sum
>> value of the API token and send it as the unique ID.
>>
>> Is it fine to proceed with this approach or do we have a better way to
>> achieve this? Appreciate any thoughts.
>>
>> Thanks,
>> Lakmali
>>
>>
>>
>>
>> --
>> Lakmali Baminiwatta
>>  Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>> mobile:  +94 71 2335936
>> blog : lakmali.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Dias

Associate Tech Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Generting a Unique-ID from a Unique String

2014-05-06 Thread Sajith Ravindra
Hi Lakmali,

If this is not for a encryption purpose I think it's better to use Base64
encoding. As per the description i feel that what you are trying to do is
encoding rather than encrypting. Also you can decode it back if you want if
you use Base64 encoding.

Thanks
*,Sajith Ravindra*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273550
blog: http://sajithr.blogspot.com/



On Tue, May 6, 2014 at 9:03 PM, Lakmali Baminiwatta wrote:

> Hi all,
>
> For tracking API invocations through Google Analytic, we need to send an
> unique ID based on the API token. As a solution,we can generate the MD5Sum
> value of the API token and send it as the unique ID.
>
> Is it fine to proceed with this approach or do we have a better way to
> achieve this? Appreciate any thoughts.
>
> Thanks,
> Lakmali
>
>
>
>
> --
> Lakmali Baminiwatta
>  Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> mobile:  +94 71 2335936
> blog : lakmali.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Generting a Unique-ID from a Unique String

2014-05-06 Thread Lakmali Baminiwatta
Hi all,

For tracking API invocations through Google Analytic, we need to send an
unique ID based on the API token. As a solution,we can generate the MD5Sum
value of the API token and send it as the unique ID.

Is it fine to proceed with this approach or do we have a better way to
achieve this? Appreciate any thoughts.

Thanks,
Lakmali




-- 
Lakmali Baminiwatta
 Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Test failures - wso2greg-5.0.0-SNAPSHOT

2014-05-06 Thread Ajith Vitharana
Hi Krishantha,

The product-greg build is unstable due to test failures. Please note.

[1]
http://54.84.136.218:8080/jenkins/view/product-builds/job/product-greg/28/

Thanks.
Ajith.

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


[Dev] Review and merge pull request for carbon-utils

2014-05-06 Thread Udara Liyanage
Hi,

Do $subject for https://github.com/wso2/carbon-utils/pull/1

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] OSGI Loading order?

2014-05-06 Thread Manoj Kumara
Hi Malaka,

I think it may due to ServiceBusInitializer waiting till TaskService get
registered since the cardinality is mandatory. Can you check that it get
registered.

Thanks,
Manoj


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


On Tue, May 6, 2014 at 1:43 PM, Malaka Silva  wrote:

> Hi Manoj,
>
> thx for the info.
>
> I have checked the solution.
>
> However ServiceBusInitializer component did not get activated after adding
> the following
>
>  * @scr.reference name="ntask.component"
>  * interface="org.wso2.carbon.ntask.core.service.TaskService"
> cardinality="1..1"
>  * policy="dynamic" bind="setTaskService" unbind="unsetTaskService
>
> Best Regards,
> Malaka
>
>
> On Tue, May 6, 2014 at 12:52 PM, Manoj Kumara  wrote:
>
>> Hi Malaka,
>>
>> I think this can be possible using declarative services. By synapse
>> component can having 1.1 relation to a service component registered by
>> ntask.
>>
>> Thanks,
>> Manoj
>>
>>
>> *Manoj Kumara*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94713448188
>>
>>
>> On Tue, May 6, 2014 at 11:09 AM, Malaka Silva  wrote:
>>
>>> Hi,
>>>
>>> Are the components loaded according to the order in the bundles.infofile?
>>>
>>> If so how can we change this order of activating components?
>>>
>>> eg: I need the ntask component to be loaded before synapse deployment
>>> starts.
>>>
>>> Any idea?
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Do we required to ship MB 220 with enabling Flow control by default?

2014-05-06 Thread Paul Fremantle
I understand - thanks for clarifying.

Paul


On 6 May 2014 12:33, Asanka Vithanage  wrote:

> Hi Paul,
>
> My suggestion based on the user perspective.With Current flow control
> implementation when there is a load, publishers are getting blocked and
> messages are not publishing to broker side till the available free memory
> increased.
> So publisher will get a considerable time to publish the messages and due
> to that user won't see published messages reflect on broker side as quick
> as before.
> This will confuse a new user who don't knows the internals and May be
> users feel MB performs slowly and will affect the user impression on MB.
>
> So IMO enable flow control feature should given to the user to decide.
>
> Apart from that we couldn't able to measure any memory use or negative due
> to flow control enabling.
>
>
>
>
>
>
>
> On Tue, May 6, 2014 at 3:40 PM, Paul Fremantle  wrote:
>
>> What is the impact of leaving it enabled by default?  Is there some
>> greater memory use, slow down or other negative?
>>
>> Paul
>> On 6 May 2014 06:04, "Asanka Vithanage"  wrote:
>>
>>>  Hi All,
>>>
>>> With MB 220 we are going to introduce a new feature to flow control the
>>> publisher. Currently by default MB pack comes with enabling that feature.
>>>
>>> But AFAIU flow control requires only on systems which expose to high
>>> message loads.for such systems we could enable the Flow control feature as
>>> required.
>>>
>>> So don't it a good idea to disable flow control on default pack and
>>> allow users to select whether they required flow control?
>>>
>>> WDYT?
>>>
>>>
>>>
>>> --
>>> Asanka Vithanage
>>> Senior Software Engineer -QA
>>> Mobile: +94 0716286708
>>> Email: asan...@wso2.com
>>> WSO2 Inc. www.wso2.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>
>
> --
> Asanka Vithanage
> Senior Software Engineer -QA
> Mobile: +94 0716286708
> Email: asan...@wso2.com
> WSO2 Inc. www.wso2.com
>
>


-- 
Paul Fremantle
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair, Apache Member

UK: +44 207 096 0336
US: +1 646 595 7614

blog: http://pzf.fremantle.org
twitter.com/pzfreo
p...@wso2.com

wso2.com Lean Enterprise Middleware

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


[Dev] Jira Connector 'searchJira' operator issue

2014-05-06 Thread Asanka Sanjeewa
Hi,

I was using 'searchJira' operator in proxy service which queries jiras and
send result back to the client. The proxy configuration is as given below.

http://ws.apache.org/ns/synapse"; name="SearchJIRA"
transports="http https" startOnLoad="true" trace="disable">




project=TOOLS AND status=Reopened











When the proxy is invoked it successfully connected with jira and send
result back to ESB (I have enabled wire logs and observed that jira api
returns the result in json format). Then I logged the result coming from
'searchJira' operator using both json payload logging and xml payload
logging options and it doesn't work as expected (nothing was logged in both
cases).

When it tries to send the result back to client from 'respond' mediator it
gives an exception as given below.

org.apache.axis2.AxisFault: Payload could not be written as JSON.
at
org.apache.synapse.commons.json.JsonUtil.writeAsJson(JsonUtil.java:109)
at
org.apache.synapse.commons.json.JsonStreamFormatter.writeTo(JsonStreamFormatter.java:60)
at
org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:496)
at
org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:254)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:163)
at
org.apache.synapse.mediators.builtin.RespondMediator.mediate(RespondMediator.java:23)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)

What would be the reason for this? Have I missed anything in my proxy
configuration?

Thanks and Regards,
AsankaS.

-- 
*Asanka Sanjeewa*
Senior Software Engineer
Mobile: +94772532924
WSO2 Inc. http://wso2.com/
Blog: http://asanka-tech-blog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JSP error: Only a type can be imported. org.wso2.carbon.order.mgt.order.ui.OrderManagerClient resolves to a package

2014-05-06 Thread Aruna Karunarathna
Hi Sajini,

I think this is the same issue recorded under the title "Class visibility
issue while building Carbon front end component".

Have you tried removing all the features installed previously. Please note
that removing the feature from carbon admin console,
will not completely remove the feature from the carbon server.

You have to manually go and remove the installed jars from
/carbon-home/repository/components/plugins folder as I remember.

Regards,


On Tue, May 6, 2014 at 2:16 PM, Sajini De Silva  wrote:

> Hi,
>
> I implemented a simple carbon component following [1] and when I try to
> access the service from the carbon console I get the following error.
>
> ERROR {org.apache.catalina.core.ApplicationDispatcher} -
> Servlet.service() for servlet bridgeservlet threw exception
> org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for
> JSP
>
> PWC6199: Generated servlet error:
> Only a type can be imported.
> org.wso2.carbon.order.mgt.order.ui.OrderManagerClient resolves to a package
>
> PWC6197: An error occurred at line: 10 in the jsp file:
> /order-mgt/index.jsp
> PWC6199: Generated servlet error:
> OrderManagerClient cannot be resolved to a type
>
> PWC6197: An error occurred at line: 10 in the jsp file:
> /order-mgt/index.jsp
> PWC6199: Generated servlet error:
> OrderManagerClient cannot be resolved to a type
> --
>
> What I'm trying to import in index.jsp class is
>
> <%@ page import="org.wso2.carbon.order.mgt.order.ui.OrderManagerClient" %>
>
> Which is clearly a class, not a package.
>
> Can somebody please point out what I'm doing wrong here?
>
>
>
> [1]
> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>
> Thank you
> --
> Sajini De SIlva
> Software Engineer; WSO2 Inc.; http://wso2.com ,
> Email: saj...@wso2.com
> Blog: http://sajinid.blogspot.com/
> Git hub profile: https://github.com/sajinidesilva
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

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


Re: [Dev] Do we required to ship MB 220 with enabling Flow control by default?

2014-05-06 Thread Asanka Vithanage
Hi Paul,

My suggestion based on the user perspective.With Current flow control
implementation when there is a load, publishers are getting blocked and
messages are not publishing to broker side till the available free memory
increased.
So publisher will get a considerable time to publish the messages and due
to that user won't see published messages reflect on broker side as quick
as before.
This will confuse a new user who don't knows the internals and May be users
feel MB performs slowly and will affect the user impression on MB.

So IMO enable flow control feature should given to the user to decide.

Apart from that we couldn't able to measure any memory use or negative due
to flow control enabling.







On Tue, May 6, 2014 at 3:40 PM, Paul Fremantle  wrote:

> What is the impact of leaving it enabled by default?  Is there some
> greater memory use, slow down or other negative?
>
> Paul
> On 6 May 2014 06:04, "Asanka Vithanage"  wrote:
>
>> Hi All,
>>
>> With MB 220 we are going to introduce a new feature to flow control the
>> publisher. Currently by default MB pack comes with enabling that feature.
>>
>> But AFAIU flow control requires only on systems which expose to high
>> message loads.for such systems we could enable the Flow control feature as
>> required.
>>
>> So don't it a good idea to disable flow control on default pack and allow
>> users to select whether they required flow control?
>>
>> WDYT?
>>
>>
>>
>> --
>> Asanka Vithanage
>> Senior Software Engineer -QA
>> Mobile: +94 0716286708
>> Email: asan...@wso2.com
>> WSO2 Inc. www.wso2.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>


-- 
Asanka Vithanage
Senior Software Engineer -QA
Mobile: +94 0716286708
Email: asan...@wso2.com
WSO2 Inc. www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Building a Carbon Component from an existing Axis2 service

2014-05-06 Thread Pubudu Dissanayake
Hi,

Follow these articles
[1]
http://wso2.com/library/tutorials/2014/03/understanding-the-carbon-component-architecture/
[2]
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
[3]
http://wso2.com/library/tutorials/2014/03/how-to-create-a-feature-from-wso2-carbon-component/

Thanks,
Pubudu


On Tue, May 6, 2014 at 4:28 PM, Amalka Subasinghe  wrote:

> This will help
> https://docs.wso2.org/display/Carbon420/C-App+Deployment+Process
>
>
>
> On Tue, May 6, 2014 at 4:10 PM, Supun Sethunga  wrote:
>
>>  Hi,
>>
>> Is there any way of creating a carbon Component using an existing Axis2
>> service (which includes both client and server classes) as a library? If
>> so, is there any tutorial/article that I can refer to?
>>
>> The only method available for reference is [1], but it creates the carbon
>> component from the scratch.
>>
>> Reference:
>> [1]
>> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>>
>> Thanks,
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Amalka Subasinghe
>
> Senior Software Engineer, WSO2 Inc.
> Mobile: +94 77 9401267
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] org.wso2.carbon.databridge.datareceiver not moved to GitHub

2014-05-06 Thread Kasun Gajasinghe
Hi Rajeev,

It seems that this pull request is to move the
org.wso2.carbon.databridge.receiver.thrift component as a whole to
carbon-commons. I'm sorry for not noticing before, but I think we agreed
before that carbon-commons is not the place for components like these.
Please discuss with relevant teams (CEP/BAM etc.) and come up with an
appropriate location for this component.

I believe, we will need to move all the data-bridge components there. If
the existing repos are not a good fit for your requirement, we might have
to create a new repo.

Thanks,
KasunG



On Tue, May 6, 2014 at 4:30 PM, Kasun Gajasinghe  wrote:

>
>
>
> On Tue, May 6, 2014 at 3:48 PM, Rajeev Sampath  wrote:
>
>> Hi Kasun,
>>
>> Sent a pull request to wso2-dev [1].
>>
>
> Thanks.
>
>
>> BTW wso2-dev/carbon-commons repo seems outdated.
>>
>>
> I will sync the repo with the main repo, and remove the commit rights to
> the main repo. Jenkins Pull Request builder is in place for the
> carbon-commons now.
>
>
>> [1] https://github.com/wso2-dev/carbon-commons/pull/3
>>
>> Thanks
>> Rajeev
>>
>>
>> On Tue, May 6, 2014 at 2:38 PM, Kasun Gajasinghe  wrote:
>>
>>> Hi Rajeev,
>>>
>>> Please send this pull request to wso2-dev team repo.
>>>
>>>  Thanks.
>>>
>>>
>>> On Tue, May 6, 2014 at 2:36 PM, Rajeev Sampath  wrote:
>>>
 Hi Kasun,

 Added a new pull request [1] to resolve the conflicts. Can you pls
 merge this?

 [1] https://github.com/wso2/carbon-commons/pull/5


 Thanks
 Rajeev


 On Tue, May 6, 2014 at 12:24 PM, Udara Rathnayake wrote:

> Hi Kasun,
>
> Can we merge this pull request[1]?
>
> [1] https://github.com/wso2/carbon-commons/pull/4
>
>
>
> On Tue, May 6, 2014 at 12:15 PM, Udara Rathnayake wrote:
>
>> Hi all,
>>
>> $subject ?
>> I'm unable to find this within both carbon-analytics & carbon-commons
>> repos or even within carbon-utils.
>>
>> Regards,
>> UdaraR
>> --
>> *Udara Rathnayake*
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>>
>> Mobile : +94 772207239
>> Twitter : http://twitter.com/udarakr
>> Blog: http://udarakr.blogspot.com
>>
>>
>
>
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : +94 772207239
> Twitter : http://twitter.com/udarakr
> Blog: http://udarakr.blogspot.com
>
>


 --
 Rajeev Sampath
 Senior Software Engineer
 WSO2, Inc.; http://www.wso2.com.

 Mobile:
 * +94716265766 <%2B94716265766>*

>>>
>>>
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>
>>
>>
>> --
>> Rajeev Sampath
>> Senior Software Engineer
>> WSO2, Inc.; http://www.wso2.com.
>>
>> Mobile:
>> * +94716265766 <%2B94716265766>*
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 

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


Re: [Dev] Global cluster cache invalidation code review Notes

2014-05-06 Thread Shammi Jayasinghe
Hi Amal,

I think the adding of  activemq-all bundle may adding another version of
the library which contains javax.jms and it may cause this problem. Could
you please try to not to add activemq-all but only the required bundles or
remove the other library which contains javax.jms package and try this out.

Thanks
Shammi


On Tue, May 6, 2014 at 3:57 PM, Amal Gunatilake  wrote:

> Hi Shammi/Hasitha,
>
> There is a version conflict with existing javax.jms bundles when starting
> the cache invalidation osgi bundle, which causes the casting problem. Any
> thoughts on this matter?
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> On Tue, May 6, 2014 at 1:22 PM, Shazni Nazeer  wrote:
>
>> Hi Amal,
>>
>> Yes now the cache.xml entries are correctly read. After replacing
>> activemq-core to activemq-all the debugging steps go below the
>> IniatlContext line, but as you have mentioned when session object is being
>> created the following exception is thrown. Therefore, still jms
>> initialization fails.
>>
>> [2014-05-06 13:13:58,409] ERROR
>> {org.wso2.carbon.caching.invalidator.jms.JMSGlobalCacheInvalidationImpl} -
>> Global cache invalidation: Error jms broker initialization
>> java.lang.ClassCastException:
>> org.apache.activemq.ActiveMQConnectionFactory cannot be cast to
>> javax.jms.TopicConnectionFactory
>> at
>> org.wso2.carbon.caching.invalidator.jms.JMSGlobalCacheInvalidationImpl.initJMSBroker(JMSGlobalCacheInvalidationImpl.java:112)
>> at
>> org.wso2.carbon.caching.invalidator.jms.JMSGlobalCacheInvalidationImpl.init(JMSGlobalCacheInvalidationImpl.java:96)
>> at
>> org.wso2.carbon.caching.invalidator.jms.JMSGlobalCacheInvalidationImpl.invalidateCache(JMSGlobalCacheInvalidationImpl.java:131)
>> at
>> org.wso2.carbon.registry.core.caching.CachingHandler.removeFromCache(CachingHandler.java:255)
>> at
>> org.wso2.carbon.registry.core.caching.CachingHandler.clearAncestry(CachingHandler.java:211)
>> at
>> org.wso2.carbon.registry.core.caching.CachingHandler.clearAncestry(CachingHandler.java:232)
>> at
>> org.wso2.carbon.registry.core.caching.CachingHandler.clearAncestry(CachingHandler.java:232)
>> at
>> org.wso2.carbon.registry.core.caching.CachingHandler.clearCache(CachingHandler.java:207)
>> at
>> org.wso2.carbon.registry.core.caching.CachingHandler.clearCache(CachingHandler.java:91)
>> at
>> org.wso2.carbon.registry.core.caching.CachingHandler.put(CachingHandler.java:280)
>> at
>> org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.put(HandlerManager.java:2503)
>> at
>> org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.put(HandlerLifecycleManager.java:993)
>> at
>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:697)
>> at
>> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:508)
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:680)
>> at
>> org.wso2.carbon.theme.mgt.util.ThemeUtil.transferAllThemesToRegistry(ThemeUtil.java:122)
>> at
>> org.wso2.carbon.theme.mgt.util.ThemeUtil.loadResourceThemes(ThemeUtil.java:175)
>> at
>> org.wso2.carbon.theme.mgt.internal.TenantThemeMgtServiceComponent.activate(TenantThemeMgtServiceComponent.java:53)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>> at
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>> at
>> org

Re: [Dev] org.wso2.carbon.databridge.datareceiver not moved to GitHub

2014-05-06 Thread Kasun Gajasinghe
On Tue, May 6, 2014 at 3:48 PM, Rajeev Sampath  wrote:

> Hi Kasun,
>
> Sent a pull request to wso2-dev [1].
>

Thanks.


> BTW wso2-dev/carbon-commons repo seems outdated.
>
>
I will sync the repo with the main repo, and remove the commit rights to
the main repo. Jenkins Pull Request builder is in place for the
carbon-commons now.


> [1] https://github.com/wso2-dev/carbon-commons/pull/3
>
> Thanks
> Rajeev
>
>
> On Tue, May 6, 2014 at 2:38 PM, Kasun Gajasinghe  wrote:
>
>> Hi Rajeev,
>>
>> Please send this pull request to wso2-dev team repo.
>>
>>  Thanks.
>>
>>
>> On Tue, May 6, 2014 at 2:36 PM, Rajeev Sampath  wrote:
>>
>>> Hi Kasun,
>>>
>>> Added a new pull request [1] to resolve the conflicts. Can you pls merge
>>> this?
>>>
>>> [1] https://github.com/wso2/carbon-commons/pull/5
>>>
>>>
>>> Thanks
>>> Rajeev
>>>
>>>
>>> On Tue, May 6, 2014 at 12:24 PM, Udara Rathnayake wrote:
>>>
 Hi Kasun,

 Can we merge this pull request[1]?

 [1] https://github.com/wso2/carbon-commons/pull/4



 On Tue, May 6, 2014 at 12:15 PM, Udara Rathnayake wrote:

> Hi all,
>
> $subject ?
> I'm unable to find this within both carbon-analytics & carbon-commons
> repos or even within carbon-utils.
>
> Regards,
> UdaraR
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : +94 772207239
> Twitter : http://twitter.com/udarakr
> Blog: http://udarakr.blogspot.com
>
>


 --
 *Udara Rathnayake*
 Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile : +94 772207239
 Twitter : http://twitter.com/udarakr
 Blog: http://udarakr.blogspot.com


>>>
>>>
>>> --
>>> Rajeev Sampath
>>> Senior Software Engineer
>>> WSO2, Inc.; http://www.wso2.com.
>>>
>>> Mobile:
>>> * +94716265766 <%2B94716265766>*
>>>
>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
> Rajeev Sampath
> Senior Software Engineer
> WSO2, Inc.; http://www.wso2.com.
>
> Mobile:
> * +94716265766 <%2B94716265766>*
>



-- 

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


Re: [Dev] Building a Carbon Component from an existing Axis2 service

2014-05-06 Thread Amalka Subasinghe
This will help
https://docs.wso2.org/display/Carbon420/C-App+Deployment+Process



On Tue, May 6, 2014 at 4:10 PM, Supun Sethunga  wrote:

> Hi,
>
> Is there any way of creating a carbon Component using an existing Axis2
> service (which includes both client and server classes) as a library? If
> so, is there any tutorial/article that I can refer to?
>
> The only method available for reference is [1], but it creates the carbon
> component from the scratch.
>
> Reference:
> [1]
> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>
> Thanks,
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> lean | enterprise | middleware
> Mobile : +94 716546324
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Amalka Subasinghe

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


[Dev] Building a Carbon Component from an existing Axis2 service

2014-05-06 Thread Supun Sethunga
Hi,

Is there any way of creating a carbon Component using an existing Axis2
service (which includes both client and server classes) as a library? If
so, is there any tutorial/article that I can refer to?

The only method available for reference is [1], but it creates the carbon
component from the scratch.

Reference:
[1]
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

Thanks,

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


Re: [Dev] [Commits] [Carbon-platform] svn commit r199557 - in carbon/platform/branches/turing/components/load-balancer: lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/e

2014-05-06 Thread Dhanuka Ranasinghe
Hi,

I have done committing, can you please build and let me know.

*Dhanuka Ranasinghe*

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

phone : +94 715381915


On Tue, May 6, 2014 at 1:40 PM, Isuru Udana  wrote:

> Hi Dhanuka,
>
> As discussed offline please commit the fixes to relevant components.
>
> org.wso2.carbon.lb.endpoint - 4.2.1
> org.wso2.carbon.lb.common - 4.2.1 (you need to create a component)
>
> Thanks.
>
>
> On Fri, May 2, 2014 at 12:24 PM, Dhanuka Ranasinghe wrote:
>
>> Hi Isuru,
>>
>> Could you please let me know the exact version that need to merge code
>> fix.
>>
>> Cheers,
>> Dhanuka
>>
>> *Dhanuka Ranasinghe*
>>
>> Senior Software Engineer
>> WSO2 Inc. ; http://wso2.com
>> lean . enterprise . middleware
>>
>> phone : +94 715381915
>>
>>
>> On Fri, May 2, 2014 at 12:17 PM, Dhanuka Ranasinghe wrote:
>>
>>> Hi Isuru,
>>>
>>> Sorry about this, I have reverted.
>>>
>>> Cheers,
>>>
>>> *Dhanuka Ranasinghe*
>>>
>>> Senior Software Engineer
>>> WSO2 Inc. ; http://wso2.com
>>> lean . enterprise . middleware
>>>
>>> phone : +94 715381915
>>>
>>>
>>> On Wed, Apr 30, 2014 at 11:47 AM, Isuru Udana  wrote:
>>>
 Hi Dhanuka,

 These commits were done for the already released components. Please
 revert these commits and commit to the unreleased versions.




 On Fri, Apr 4, 2014 at 2:38 PM,  wrote:

> Author: dhan...@wso2.com
> Date: Fri Apr  4 14:38:03 2014
> New Revision: 199557
> URL: http://wso2.org/svn/browse/wso2?view=rev&revision=199557
>
> Log:
> LB-142
>
> Added:
>
>  
> carbon/platform/branches/turing/components/load-balancer/org.wso2.carbon.lb.common/4.2.0/src/main/java/org/wso2/carbon/lb/common/group/mgt/SessionAwareGroupManagementAgent.java
> Modified:
>
>  
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java
>
>  
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java
>
>  
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/group/mgt/GroupMgtAgentBuilder.java
>
> Modified:
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java
> URL:
> http://wso2.org/svn/browse/wso2/carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java?rev=199557&r1=199556&r2=199557&view=diff
>
> ==
> ---
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java
>  (original)
> +++
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java
>  Fri Apr  4 14:38:03 2014
> @@ -31,6 +31,7 @@
>  import org.wso2.carbon.lb.common.conf.util.Constants;
>  import org.wso2.carbon.lb.common.conf.util.HostContext;
>  import org.wso2.carbon.lb.common.conf.util.TenantDomainContext;
> +import
> org.wso2.carbon.lb.common.group.mgt.SessionAwareGroupManagementAgent;
>  import org.wso2.carbon.lb.endpoint.TenantLoadBalanceMembershipHandler;
>  import org.wso2.carbon.lb.endpoint.util.ConfigHolder;
>
> @@ -174,7 +175,7 @@
>   */
>
>  if (clusteringAgent.getGroupManagementAgent(domain,
> subDomain) == null) {
> -clusteringAgent.addGroupManagementAgent(new
> HazelcastGroupManagementAgent(),
> +clusteringAgent.addGroupManagementAgent(new
> SessionAwareGroupManagementAgent(),
>  domain,
> subDomain,-1);
>
>  if (log.isDebugEnabled()) {
>
> Modified:
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java
> URL:
> http://wso2.org/svn/browse/wso2/carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java?rev=199557&r1=199556&r2=199557&view=diff
>
> ===

Re: [Dev] Global cluster cache invalidation code review Notes

2014-05-06 Thread Amal Gunatilake
Hi Shammi/Hasitha,

There is a version conflict with existing javax.jms bundles when starting
the cache invalidation osgi bundle, which causes the casting problem. Any
thoughts on this matter?

Thank you  & Best regards,

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


On Tue, May 6, 2014 at 1:22 PM, Shazni Nazeer  wrote:

> Hi Amal,
>
> Yes now the cache.xml entries are correctly read. After replacing
> activemq-core to activemq-all the debugging steps go below the
> IniatlContext line, but as you have mentioned when session object is being
> created the following exception is thrown. Therefore, still jms
> initialization fails.
>
> [2014-05-06 13:13:58,409] ERROR
> {org.wso2.carbon.caching.invalidator.jms.JMSGlobalCacheInvalidationImpl} -
> Global cache invalidation: Error jms broker initialization
> java.lang.ClassCastException:
> org.apache.activemq.ActiveMQConnectionFactory cannot be cast to
> javax.jms.TopicConnectionFactory
> at
> org.wso2.carbon.caching.invalidator.jms.JMSGlobalCacheInvalidationImpl.initJMSBroker(JMSGlobalCacheInvalidationImpl.java:112)
> at
> org.wso2.carbon.caching.invalidator.jms.JMSGlobalCacheInvalidationImpl.init(JMSGlobalCacheInvalidationImpl.java:96)
> at
> org.wso2.carbon.caching.invalidator.jms.JMSGlobalCacheInvalidationImpl.invalidateCache(JMSGlobalCacheInvalidationImpl.java:131)
> at
> org.wso2.carbon.registry.core.caching.CachingHandler.removeFromCache(CachingHandler.java:255)
> at
> org.wso2.carbon.registry.core.caching.CachingHandler.clearAncestry(CachingHandler.java:211)
> at
> org.wso2.carbon.registry.core.caching.CachingHandler.clearAncestry(CachingHandler.java:232)
> at
> org.wso2.carbon.registry.core.caching.CachingHandler.clearAncestry(CachingHandler.java:232)
> at
> org.wso2.carbon.registry.core.caching.CachingHandler.clearCache(CachingHandler.java:207)
> at
> org.wso2.carbon.registry.core.caching.CachingHandler.clearCache(CachingHandler.java:91)
> at
> org.wso2.carbon.registry.core.caching.CachingHandler.put(CachingHandler.java:280)
> at
> org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.put(HandlerManager.java:2503)
> at
> org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.put(HandlerLifecycleManager.java:993)
> at
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:697)
> at
> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:508)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:680)
> at
> org.wso2.carbon.theme.mgt.util.ThemeUtil.transferAllThemesToRegistry(ThemeUtil.java:122)
> at
> org.wso2.carbon.theme.mgt.util.ThemeUtil.loadResourceThemes(ThemeUtil.java:175)
> at
> org.wso2.carbon.theme.mgt.internal.TenantThemeMgtServiceComponent.activate(TenantThemeMgtServiceComponent.java:53)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
> at
> org.eclipse.osgi.framework.intern

[Dev] Why the runtime AppServer needs appfactory.xml?

2014-05-06 Thread Amila Maha Arachchi
$Subject.

I see the appfactory.xml and some appfactory jars in dropins  in Stratos
side's App Server.


-- 
*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] org.wso2.carbon.databridge.datareceiver not moved to GitHub

2014-05-06 Thread Rajeev Sampath
Hi Kasun,

Sent a pull request to wso2-dev [1].
BTW wso2-dev/carbon-commons repo seems outdated.

[1] https://github.com/wso2-dev/carbon-commons/pull/3

Thanks
Rajeev


On Tue, May 6, 2014 at 2:38 PM, Kasun Gajasinghe  wrote:

> Hi Rajeev,
>
> Please send this pull request to wso2-dev team repo.
>
> Thanks.
>
>
> On Tue, May 6, 2014 at 2:36 PM, Rajeev Sampath  wrote:
>
>> Hi Kasun,
>>
>> Added a new pull request [1] to resolve the conflicts. Can you pls merge
>> this?
>>
>> [1] https://github.com/wso2/carbon-commons/pull/5
>>
>>
>> Thanks
>> Rajeev
>>
>>
>> On Tue, May 6, 2014 at 12:24 PM, Udara Rathnayake wrote:
>>
>>> Hi Kasun,
>>>
>>> Can we merge this pull request[1]?
>>>
>>> [1] https://github.com/wso2/carbon-commons/pull/4
>>>
>>>
>>>
>>> On Tue, May 6, 2014 at 12:15 PM, Udara Rathnayake wrote:
>>>
 Hi all,

 $subject ?
 I'm unable to find this within both carbon-analytics & carbon-commons
 repos or even within carbon-utils.

 Regards,
 UdaraR
 --
 *Udara Rathnayake*
 Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile : +94 772207239
 Twitter : http://twitter.com/udarakr
 Blog: http://udarakr.blogspot.com


>>>
>>>
>>> --
>>> *Udara Rathnayake*
>>> Software Engineer
>>> WSO2 Inc. : http://wso2.com
>>>
>>> Mobile : +94 772207239
>>> Twitter : http://twitter.com/udarakr
>>> Blog: http://udarakr.blogspot.com
>>>
>>>
>>
>>
>> --
>> Rajeev Sampath
>> Senior Software Engineer
>> WSO2, Inc.; http://www.wso2.com.
>>
>> Mobile:
>> * +94716265766 <%2B94716265766>*
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
Rajeev Sampath
Senior Software Engineer
WSO2, Inc.; http://www.wso2.com.

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


Re: [Dev] Do we required to ship MB 220 with enabling Flow control by default?

2014-05-06 Thread Paul Fremantle
What is the impact of leaving it enabled by default?  Is there some greater
memory use, slow down or other negative?

Paul
On 6 May 2014 06:04, "Asanka Vithanage"  wrote:

> Hi All,
>
> With MB 220 we are going to introduce a new feature to flow control the
> publisher. Currently by default MB pack comes with enabling that feature.
>
> But AFAIU flow control requires only on systems which expose to high
> message loads.for such systems we could enable the Flow control feature as
> required.
>
> So don't it a good idea to disable flow control on default pack and allow
> users to select whether they required flow control?
>
> WDYT?
>
>
>
> --
> Asanka Vithanage
> Senior Software Engineer -QA
> Mobile: +94 0716286708
> Email: asan...@wso2.com
> WSO2 Inc. www.wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Do we required to ship MB 220 with enabling Flow control by default?

2014-05-06 Thread Asanka Vithanage
Hi All,

With MB 220 we are going to introduce a new feature to flow control the
publisher. Currently by default MB pack comes with enabling that feature.

But AFAIU flow control requires only on systems which expose to high
message loads.for such systems we could enable the Flow control feature as
required.

So don't it a good idea to disable flow control on default pack and allow
users to select whether they required flow control?

WDYT?



-- 
Asanka Vithanage
Senior Software Engineer -QA
Mobile: +94 0716286708
Email: asan...@wso2.com
WSO2 Inc. www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Commit to Kernel patch 0007

2014-05-06 Thread Johann Nallathamby
Hi,

Please find patch attached at [1].

[1] https://wso2.org/jira/browse/IDENTITY-2261

-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Senior Software Engineer
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

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


Re: [Dev] About Plugging an External BPEL Workflow sample in API Manager

2014-05-06 Thread Nuwan Dias
Hi Buddhi,

That doc is now obsolete. Needs to be removed. Have a look at [1] for the
newer way of doing this.

[1] - https://docs.wso2.org/display/AM160/Workflow+Extensions

Thanks,
NuwanD.


On Tue, May 6, 2014 at 2:59 PM, Hasintha Indrajee  wrote:

> Hi Buddhima,
>
> Just add the given configuration[1]  inside the  tag.
> Current configuration does not have  tag inside
>  , you have to add it inside the 
> tag in order to setup this sample.
>
> [1]https://docs.wso2.org/display/AM160/Plugging+an+External+BPEL+Workflow
>
>
> On Tue, May 6, 2014 at 2:00 PM, Buddhima Wijeweera wrote:
>
>> Hi,
>>
>> I was trying to connect BPS with API Manager sample. At the 7th point it
>> is mentioned as :
>>
>> 7. To enable user add listener, there are additional configurations to be
>> specified in the /repository/conf/api-manager.xml file. Open the
>> file, navigate to the following section and set the  tag to
>> the value given below. This is the URL of the BPS server.
>>
>>
>>
>>  
>> 
>> true
>>
>>
>> https://localhost:9444/services/
>>
>>
>> admin
>>
>>admin
>>  
>>  
>>
>> But there's no  tag inside  tag and the
>> existing  tag (outside) doesn't contain 
>> tags.
>>
>> I would appreciate if someone can guide me to set up this sample.
>>
>> Thank You!
>>
>> --
>> Buddhima Wijeweera
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>
>> Email: buddh...@wso2.com
>> Blog:   https://buddhimawijeweera.wordpress.com
>> GitHub Profile: https://github.com/Buddhima
>>
>> ___
>> 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
>
>


-- 
Nuwan Dias

Associate Tech Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] About Plugging an External BPEL Workflow sample in API Manager

2014-05-06 Thread Buddhima Wijeweera
Hi,
Okay Thanks! I'll check on that.


On Tue, May 6, 2014 at 2:59 PM, Hasintha Indrajee  wrote:

> Hi Buddhima,
>
> Just add the given configuration[1]  inside the  tag.
> Current configuration does not have  tag inside
>  , you have to add it inside the 
> tag in order to setup this sample.
>
> [1]https://docs.wso2.org/display/AM160/Plugging+an+External+BPEL+Workflow
>
>
> On Tue, May 6, 2014 at 2:00 PM, Buddhima Wijeweera wrote:
>
>> Hi,
>>
>> I was trying to connect BPS with API Manager sample. At the 7th point it
>> is mentioned as :
>>
>> 7. To enable user add listener, there are additional configurations to be
>> specified in the /repository/conf/api-manager.xml file. Open the
>> file, navigate to the following section and set the  tag to
>> the value given below. This is the URL of the BPS server.
>>
>>
>>
>>  
>> 
>> true
>>
>>
>> https://localhost:9444/services/
>>
>>
>> admin
>>
>>admin
>>  
>>  
>>
>> But there's no  tag inside  tag and the
>> existing  tag (outside) doesn't contain 
>> tags.
>>
>> I would appreciate if someone can guide me to set up this sample.
>>
>> Thank You!
>>
>> --
>> Buddhima Wijeweera
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>
>> Email: buddh...@wso2.com
>> Blog:   https://buddhimawijeweera.wordpress.com
>> GitHub Profile: https://github.com/Buddhima
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] About Plugging an External BPEL Workflow sample in API Manager

2014-05-06 Thread Hasintha Indrajee
Hi Buddhima,

Just add the given configuration[1]  inside the  tag.
Current configuration does not have  tag inside
 , you have to add it inside the  tag
in order to setup this sample.

[1]https://docs.wso2.org/display/AM160/Plugging+an+External+BPEL+Workflow


On Tue, May 6, 2014 at 2:00 PM, Buddhima Wijeweera wrote:

> Hi,
>
> I was trying to connect BPS with API Manager sample. At the 7th point it
> is mentioned as :
>
> 7. To enable user add listener, there are additional configurations to be
> specified in the /repository/conf/api-manager.xml file. Open the
> file, navigate to the following section and set the  tag to
> the value given below. This is the URL of the BPS server.
>
>
>
>  
> 
> true
>
>
> https://localhost:9444/services/
>
>
> admin
>
>admin
>  
>  
>
> But there's no  tag inside  tag and the
> existing  tag (outside) doesn't contain 
> tags.
>
> I would appreciate if someone can guide me to set up this sample.
>
> Thank You!
>
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>
> ___
> 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] wso2-commons-vfs is missing in dev repo

2014-05-06 Thread Kasun Indrasiri
$subject missing in https://github.com/wso2-dev


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

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


Re: [Dev] org.wso2.carbon.databridge.datareceiver not moved to GitHub

2014-05-06 Thread Kasun Gajasinghe
Hi Rajeev,

Please send this pull request to wso2-dev team repo.

Thanks.


On Tue, May 6, 2014 at 2:36 PM, Rajeev Sampath  wrote:

> Hi Kasun,
>
> Added a new pull request [1] to resolve the conflicts. Can you pls merge
> this?
>
> [1] https://github.com/wso2/carbon-commons/pull/5
>
>
> Thanks
> Rajeev
>
>
> On Tue, May 6, 2014 at 12:24 PM, Udara Rathnayake  wrote:
>
>> Hi Kasun,
>>
>> Can we merge this pull request[1]?
>>
>> [1] https://github.com/wso2/carbon-commons/pull/4
>>
>>
>>
>> On Tue, May 6, 2014 at 12:15 PM, Udara Rathnayake wrote:
>>
>>> Hi all,
>>>
>>> $subject ?
>>> I'm unable to find this within both carbon-analytics & carbon-commons
>>> repos or even within carbon-utils.
>>>
>>> Regards,
>>> UdaraR
>>> --
>>> *Udara Rathnayake*
>>> Software Engineer
>>> WSO2 Inc. : http://wso2.com
>>>
>>> Mobile : +94 772207239
>>> Twitter : http://twitter.com/udarakr
>>> Blog: http://udarakr.blogspot.com
>>>
>>>
>>
>>
>> --
>> *Udara Rathnayake*
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>>
>> Mobile : +94 772207239
>> Twitter : http://twitter.com/udarakr
>> Blog: http://udarakr.blogspot.com
>>
>>
>
>
> --
> Rajeev Sampath
> Senior Software Engineer
> WSO2, Inc.; http://www.wso2.com.
>
> Mobile:
> * +94716265766 <%2B94716265766>*
>



-- 

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


Re: [Dev] org.wso2.carbon.databridge.datareceiver not moved to GitHub

2014-05-06 Thread Rajeev Sampath
Hi Kasun,

Added a new pull request [1] to resolve the conflicts. Can you pls merge
this?

[1] https://github.com/wso2/carbon-commons/pull/5


Thanks
Rajeev


On Tue, May 6, 2014 at 12:24 PM, Udara Rathnayake  wrote:

> Hi Kasun,
>
> Can we merge this pull request[1]?
>
> [1] https://github.com/wso2/carbon-commons/pull/4
>
>
>
> On Tue, May 6, 2014 at 12:15 PM, Udara Rathnayake  wrote:
>
>> Hi all,
>>
>> $subject ?
>> I'm unable to find this within both carbon-analytics & carbon-commons
>> repos or even within carbon-utils.
>>
>> Regards,
>> UdaraR
>> --
>> *Udara Rathnayake*
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>>
>> Mobile : +94 772207239
>> Twitter : http://twitter.com/udarakr
>> Blog: http://udarakr.blogspot.com
>>
>>
>
>
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : +94 772207239
> Twitter : http://twitter.com/udarakr
> Blog: http://udarakr.blogspot.com
>
>


-- 
Rajeev Sampath
Senior Software Engineer
WSO2, Inc.; http://www.wso2.com.

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


Re: [Dev] Getting a dead page when browsing the registry after applying the kernel patch 0007

2014-05-06 Thread Chanika Geeganage
Hi,

Thanks for the input. By further investigating the issue, the following
factors were found

CC refacotoring was done in org.wso2.carbon.server.admin component (with
r201004) in the patch0007.

Modified: carbon/kernel/branches/4.2.0/
patches
/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
URL: http://wso2.org/svn/browse/wso2/carbon/kernel/branches/4.2.0/patches
/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java?rev=201004&r1=201003&r2=201004&view=diff
==
--- 
carbon/kernel/branches/4.2.0/patches/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
 (original)
+++ 
carbon/kernel/branches/4.2.0/patches/patch0007/core/org.wso2.carbon.server.admin/4.2.0/src/main/java/org/wso2/carbon/server/admin/module/handler/AuthorizationHandler.java
 Thu Apr 24 11:47:49 2014
@@ -28,7 +28,6 @@
 import org.apache.commons.logging.LogFactory;
 import org.wso2.carbon.CarbonConstants;
 import org.wso2.carbon.context.CarbonContext;
-import org.wso2.carbon.context.PrivilegedCarbonContext;
 import org.wso2.carbon.user.core.AuthorizationManager;
 import org.wso2.carbon.user.core.UserRealm;
 import org.wso2.carbon.user.core.UserStoreException;
@@ -107,8 +106,8 @@
 if (httpSession != null) {
 username = (String)
httpSession.getAttribute(ServerConstants.USER_LOGGED_IN);
 UserRealm realm =
-(UserRealm) PrivilegedCarbonContext.
-
 getCurrentContext(httpSession).getUserRealm();
+(UserRealm) CarbonContext.
+
 getThreadLocalCarbonContext().getUserRealm();

 if (realm == null) {
 log.error("The realm is null for username: " +
username + ".");



By removing this, registry browsing works fine. But we can't revert this
change.

In the org.wso2.carbon.registry.resource 4.2.0 component, the CC
refactoring was done in an already released version. ie. the commit 186766
is not in the artifact deployed in nexus [1].

Therefore, as a solution, refactored org.wso2.carbon.registry.resource can
be released as the next version (4.2.1) in chunk-10. WDYT?

[1]
http://maven.wso2.org/nexus/index.html#nexus-search;quick~org.wso2.carbon.registry.resource

Thanks
Chanika


On Tue, May 6, 2014 at 7:42 AM, Shelan Perera  wrote:

> Hi Chanika,
>
> Have you defined any other carbon datasources? Please have a look at [1]
> and it may have some clues.
>
> [1] https://wso2.org/jira/browse/ESBJAVA-2854
>
>
> On Mon, May 5, 2014 at 10:13 PM, Chanika Geeganage wrote:
>
>> Hi,
>>
>> I'm getting a dead page with the following exception when browsing the
>> registry in the DSS 3.2.1 with kernel patch 0007.
>>
>> [2014-05-05 22:04:06,485] ERROR
>> {org.apache.catalina.core.ApplicationDispatcher} -  Servlet.service() for
>> servlet bridgeservlet threw exception
>> java.lang.IllegalArgumentException: [=] is not a hexadecimal digit
>> at
>> org.apache.catalina.util.RequestUtil.convertHexDigit(RequestUtil.java:316)
>> at
>> org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:400)
>> at
>> org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:153)
>> at
>> org.apache.catalina.core.ApplicationHttpRequest.mergeParameters(ApplicationHttpRequest.java:894)
>> at
>> org.apache.catalina.core.ApplicationHttpRequest.parseParameters(ApplicationHttpRequest.java:756)
>> at
>> org.apache.catalina.core.ApplicationHttpRequest.getParameter(ApplicationHttpRequest.java:367)
>> at
>> javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:184)
>> at
>> org.wso2.carbon.ui.CarbonUILoginUtil.getCustomIndexPage(CarbonUILoginUtil.java:153)
>> at
>> org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:190)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>> at
>> org.apache.catalina.cor

Re: [Dev] [GIT]G-Reg 5 startup error due to Identity components.

2014-05-06 Thread Sagara Gunathunga
I get same exception while installing APIM features on AS 5.3.0 SNAPSHOT
version, Suho suggested me to copy following file[1] into conf directory to
get rid of this issue.

@Johan/Ruwan/Suho,

Can you please automate the task so that it will copy this file during the
feature installation   ?

[1] -
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.thrift.authentication/4.2.2/src/main/resources
/thrift-authentication.xml

Thanks !


On Fri, May 2, 2014 at 11:25 AM, Ajith Vitharana  wrote:

> Hi All,
>
> I'm getting following error. The exception doesn't say the file name :) ,
> So we need to open the code and find the file name.
> it is  thrift-authentication.xml, where this file should go and  what is
> the  feature should copy this to distribution ?
>
> [2014-05-02 11:02:34,621] ERROR
> {org.wso2.carbon.identity.thrift.authentication.internal.ThriftAuthenticationServiceComponent}
> -  Error in starting Thrift Authentication Service
> org.wso2.carbon.base.ServerConfigurationException: Error while loading
> Identity Configurations
>  at
> org.wso2.carbon.identity.thrift.authentication.internal.util.ThriftAuthenticationConfigParser.(ThriftAuthenticationConfigParser.java:54)
> at
> org.wso2.carbon.identity.thrift.authentication.internal.util.ThriftAuthenticationConfigParser.getInstance(ThriftAuthenticationConfigParser.java:62)
>  at
> org.wso2.carbon.identity.thrift.authentication.internal.ThriftAuthenticationServiceComponent.startThriftTcpAuthenticatorService(ThriftAuthenticationServiceComponent.java:203)
>  at
> org.wso2.carbon.identity.thrift.authentication.internal.ThriftAuthenticationServiceComponent.startThriftServices(ThriftAuthenticationServiceComponent.java:167)
>  at
> org.wso2.carbon.identity.thrift.authentication.internal.ThriftAuthenticationServiceComponent.activate(ThriftAuthenticationServiceComponent.java:108)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>  at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
>  at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>  at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>  at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>  at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>  at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>  at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>  at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>  at
> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
> at
> org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
>  at
> org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>  at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
>  at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
>

[Dev] JSP error: Only a type can be imported. org.wso2.carbon.order.mgt.order.ui.OrderManagerClient resolves to a package

2014-05-06 Thread Sajini De Silva
Hi,

I implemented a simple carbon component following [1] and when I try to
access the service from the carbon console I get the following error.

ERROR {org.apache.catalina.core.ApplicationDispatcher} -  Servlet.service()
for servlet bridgeservlet threw exception
org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for
JSP

PWC6199: Generated servlet error:
Only a type can be imported.
org.wso2.carbon.order.mgt.order.ui.OrderManagerClient resolves to a package

PWC6197: An error occurred at line: 10 in the jsp file: /order-mgt/index.jsp
PWC6199: Generated servlet error:
OrderManagerClient cannot be resolved to a type

PWC6197: An error occurred at line: 10 in the jsp file: /order-mgt/index.jsp
PWC6199: Generated servlet error:
OrderManagerClient cannot be resolved to a type
--

What I'm trying to import in index.jsp class is

<%@ page import="org.wso2.carbon.order.mgt.order.ui.OrderManagerClient" %>

Which is clearly a class, not a package.

Can somebody please point out what I'm doing wrong here?



[1]
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

Thank you
-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Extensibility of JDBCAuthorizationManager.

2014-05-06 Thread Danushka Fernando
Any Ideas on this?

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


On Fri, May 2, 2014 at 4:02 PM, Danushka Fernando wrote:

> Hi all
> In user management area we have made lot of stuff extensible. We can write
> our own user store managers, tenant managers and authorization managers. So
> most of the time when we write a custom one we extend form an existing one.
>
> For example We implement
> tenant managers extended from JDBCTenantManager
> user store managers extended from ReadOnlyLDAPUserStoreManager /
> ReadWriteLDAPUserStoreManager.
>
> Because what we want to customize might not be the whole class. It could
> be a one operation of the class.
>
> Like that the implementation of Authorization Manager we can extend from
> is JDBCAuthorizationManager. But current implementation
> of JDBCAuthorizationManager is not extensible due to following reasons.
>
>
>1. All the object level variables are private not protected.
>2. Lot of methods of the class are private.
>3. SearchResult class is visible only to the particular package.
>
>
> If we make all necessary private things protected, then some one can
> extend it and write his/her own Authorization Manager. Can we
> update JDBCAuthorizationManager code to make it extensible.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Student Introduction, GSoC-2014 project: "UI Testing Framework for Developer Studio"

2014-05-06 Thread Nila
Hi,

I apologize for the delayed response.

Last few days and on, I'm under severe medication and cornered with my
academic semester's final exams.

Despite of that, I'm really glad and excited regarding my selection. I'm
expecting to learn a lot via delivering my best and looking forward to work
with you.

The exams would be over by May 21st, but I try my best to involve in this
'community bonding' and gain guidance from you.

Thanks in advance.


Regards,
Tharshayene Loganathan
Undergraduate,
Dept. of Computer Science & Engineering,
IIT,Sri Lanka.




On 21 March 2014 23:27, Nila  wrote:

> The updated and corrected proposal has been submitted. The  Google
> Document is attached below.
>
> Pardon me for requesting suggestions on the very last day.
>
> Please provide feedback regarding the proposal which would be very helpful
> for me the future programs.
> Did I got all wrong, I really wonder. :(
>
> This is my first ever GSoC attempt and a feedback really helps.
>
> Thanks in advance.
>
>
>  GSoC Proposal 2014: "UI Testing Framework for Developer 
> Studio"
>
>
>
> Regards,
> Tharshayene Loganathan
> Undergraduate,
> Dept. of Computer Science & Engineering,
> IIT,Sri Lanka.
>
>
>
>
> On 21 March 2014 19:34, Nila  wrote:
>
>> Hi all,
>>
>> I've shared my proposal with you (can comment).
>>
>> Please provide me your valuable suggestions and corrections so I could
>> further improve and submit by tonight.
>>
>> Thanks in advance.
>>
>>  GSoC Proposal 2014: "UI Testing Framework for Developer 
>> Studio"
>>
>>
>>
>> Regards,
>> Tharshayene Loganathan
>> Undergraduate,
>> Dept. of Computer Science & Engineering,
>> IIT,Sri Lanka.
>>
>>
>>
>>
>> On 21 March 2014 11:30, Nila  wrote:
>>
>>> Krishantha,
>>>
>>> I've gone through the Robot Framework but I'm afraid that the
>>> comprehensive widget support for SWT and GMF is less and it's at its
>>> initial stages.
>>>
>>>  As you have mentioned the Robot Framework provides and External Eclipse
>>> Library [1] [2], which is based on the SWTBot and it's seems to be a better
>>> framework in terms of less manual work once setup, compared to using the
>>> SWTBot directly.
>>>
>>> But under the 'Eclipse Library Limitations' section [3] it's been stated
>>> that only the simple and basic SWT widgets are supported for the time being.
>>>
>>> As the ESB plugin requires GMF Editor Testing, still I'm not completely
>>> sure on to what extent the SWTBot itself supports GMF. It seems to be
>>> supporting GEF and few popular blog articles state that via the extended
>>> GEF support it supports GMF as well. Thus it could be a limitation as well
>>> even when the SWTBot itself is used.
>>>
>>> Thus adding an additional wrapper on top of the SWTBot (the Robot
>>> Framework), could be a nightmare when it comes to the major concern, 'the
>>> range of supported widgets'.
>>>
>>> Anyway, I'll be considering and would try to incorporate the Robot
>>> Framework once I get more control and understanding of this project and
>>> thank you for this valuable suggestion.
>>>
>>> Refs:
>>>
>>> [1] http://robotframework.org/#test-libraries
>>>
>>> [2] http://code.google.com/p/robotframework-eclipselibrary/
>>>
>>> [3] http://code.google.com/p/robotframework-eclipselibrary/wiki/Concept
>>>
>>>
>>> Regards,
>>> Tharshayene Loganathan
>>> Undergraduate,
>>> Dept. of Computer Science & Engineering,
>>> IIT,Sri Lanka.
>>>
>>>
>>>
>>>
>>> On 21 March 2014 11:07, Nila  wrote:
>>>
 Thank you Jasintha,

 as far as I understood, the Jiras contain pluggins (zipped code) those
 seems to be testing each plugin set of the Developer Studio and POM files
 are setup which contains Developer Studio plugin dependencies.

 Unfortunately I couldn't get any of them running, yet. But I got hints
 and the basic idea of what am I supposed to do.

 I'll be finishing a draft version of the Proposal around 3.00 pm (UTC +
 5.30) and would share the doc link with you. Please review it and assist me
 via you valuable suggestions.

 Thanks in advance.

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


[Dev] About Plugging an External BPEL Workflow sample in API Manager

2014-05-06 Thread Buddhima Wijeweera
Hi,

I was trying to connect BPS with API Manager sample. At the 7th point it is
mentioned as :

7. To enable user add listener, there are additional configurations to be
specified in the /repository/conf/api-manager.xml file. Open the
file, navigate to the following section and set the  tag to the
value given below. This is the URL of the BPS server.


   
 

true

   
https://localhost:9444/services/

   
admin

   admin
 
 

But there's no  tag inside  tag and the
existing  tag (outside) doesn't contain 
tags.

I would appreciate if someone can guide me to set up this sample.

Thank You!

-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the Git location for components/logging

2014-05-06 Thread Udara Liyanage
Thanks Udara


On Tue, May 6, 2014 at 1:01 PM, Udara Rathnayake  wrote:

> https://github.com/wso2/carbon-utils/tree/master/components/logging
>
>
> On Tue, May 6, 2014 at 12:55 PM, Udara Liyanage  wrote:
>
>>  $subject?
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>>  WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : +94 772207239
> Twitter : http://twitter.com/udarakr
> Blog: http://udarakr.blogspot.com
>
>


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] OSGI Loading order?

2014-05-06 Thread Malaka Silva
Hi Manoj,

thx for the info.

I have checked the solution.

However ServiceBusInitializer component did not get activated after adding
the following

 * @scr.reference name="ntask.component"
 * interface="org.wso2.carbon.ntask.core.service.TaskService"
cardinality="1..1"
 * policy="dynamic" bind="setTaskService" unbind="unsetTaskService

Best Regards,
Malaka


On Tue, May 6, 2014 at 12:52 PM, Manoj Kumara  wrote:

> Hi Malaka,
>
> I think this can be possible using declarative services. By synapse
> component can having 1.1 relation to a service component registered by
> ntask.
>
> Thanks,
> Manoj
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
>
> On Tue, May 6, 2014 at 11:09 AM, Malaka Silva  wrote:
>
>> Hi,
>>
>> Are the components loaded according to the order in the bundles.infofile?
>>
>> If so how can we change this order of activating components?
>>
>> eg: I need the ntask component to be loaded before synapse deployment
>> starts.
>>
>> Any idea?
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 

Best Regards,

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

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

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


Re: [Dev] [Commits] [Carbon-platform] svn commit r199557 - in carbon/platform/branches/turing/components/load-balancer: lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/e

2014-05-06 Thread Isuru Udana
Hi Dhanuka,

As discussed offline please commit the fixes to relevant components.

org.wso2.carbon.lb.endpoint - 4.2.1
org.wso2.carbon.lb.common - 4.2.1 (you need to create a component)

Thanks.

On Fri, May 2, 2014 at 12:24 PM, Dhanuka Ranasinghe wrote:

> Hi Isuru,
>
> Could you please let me know the exact version that need to merge code fix.
>
> Cheers,
> Dhanuka
>
> *Dhanuka Ranasinghe*
>
> Senior Software Engineer
> WSO2 Inc. ; http://wso2.com
> lean . enterprise . middleware
>
> phone : +94 715381915
>
>
> On Fri, May 2, 2014 at 12:17 PM, Dhanuka Ranasinghe wrote:
>
>> Hi Isuru,
>>
>> Sorry about this, I have reverted.
>>
>> Cheers,
>>
>> *Dhanuka Ranasinghe*
>>
>> Senior Software Engineer
>> WSO2 Inc. ; http://wso2.com
>> lean . enterprise . middleware
>>
>> phone : +94 715381915
>>
>>
>> On Wed, Apr 30, 2014 at 11:47 AM, Isuru Udana  wrote:
>>
>>> Hi Dhanuka,
>>>
>>> These commits were done for the already released components. Please
>>> revert these commits and commit to the unreleased versions.
>>>
>>>
>>>
>>>
>>> On Fri, Apr 4, 2014 at 2:38 PM,  wrote:
>>>
 Author: dhan...@wso2.com
 Date: Fri Apr  4 14:38:03 2014
 New Revision: 199557
 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=199557

 Log:
 LB-142

 Added:

  
 carbon/platform/branches/turing/components/load-balancer/org.wso2.carbon.lb.common/4.2.0/src/main/java/org/wso2/carbon/lb/common/group/mgt/SessionAwareGroupManagementAgent.java
 Modified:

  
 carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java

  
 carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java

  
 carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/group/mgt/GroupMgtAgentBuilder.java

 Modified:
 carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java
 URL:
 http://wso2.org/svn/browse/wso2/carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java?rev=199557&r1=199556&r2=199557&view=diff

 ==
 ---
 carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java
  (original)
 +++
 carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java
  Fri Apr  4 14:38:03 2014
 @@ -31,6 +31,7 @@
  import org.wso2.carbon.lb.common.conf.util.Constants;
  import org.wso2.carbon.lb.common.conf.util.HostContext;
  import org.wso2.carbon.lb.common.conf.util.TenantDomainContext;
 +import
 org.wso2.carbon.lb.common.group.mgt.SessionAwareGroupManagementAgent;
  import org.wso2.carbon.lb.endpoint.TenantLoadBalanceMembershipHandler;
  import org.wso2.carbon.lb.endpoint.util.ConfigHolder;

 @@ -174,7 +175,7 @@
   */

  if (clusteringAgent.getGroupManagementAgent(domain, subDomain)
 == null) {
 -clusteringAgent.addGroupManagementAgent(new
 HazelcastGroupManagementAgent(),
 +clusteringAgent.addGroupManagementAgent(new
 SessionAwareGroupManagementAgent(),
  domain,
 subDomain,-1);

  if (log.isDebugEnabled()) {

 Modified:
 carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java
 URL:
 http://wso2.org/svn/browse/wso2/carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java?rev=199557&r1=199556&r2=199557&view=diff

 ==
 ---
 carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java
   (original)
 +++
 carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.end

Re: [Dev] [DEV]Creating column families though a simple toolbox

2014-05-06 Thread Inosh Goonewardena
Hi Udara,

On Tue, May 6, 2014 at 7:16 AM, Udara Rathnayake  wrote:

> Hi all,
>
> I think Bhathiya is correct, I found that
> streamDefinition.getIndexDefinition().getSecondaryIndexData() in LINE 267
> within CassandraConnector returns following.
>

Yeah according to the log message also I have noticed that(there is an
extra space as you can see in below log/).

[2014-05-05 16:55:12,440]  WARN {org.wso2.carbon.databridge.
> persistence.cassandra.datastore.CassandraConnector} -  Secondary Index
> creation is not successful...
> me.prettyprint.hector.api.exceptions.HInvalidRequestException:
> InvalidRequestException(why:Illegal index *name  payload_brand_index*)
>

Gihan, can you please have a look on this? This was working properly when
we tested this, and working properly with kpi-toolbox I have attached here.


>
> [Attribute{name=' payload_brand', type=STRING}]
>
> Probably the space character at the beginning of the name attribute causes
> this issue.
>
> Any idea?
>
> On Mon, May 5, 2014 at 5:16 PM, Inosh Goonewardena  wrote:
>
>> Hi Udara, Did try with a fresh BAM pack? Are you pointing to external
>> Cassandra?
>>
> Yes I'm using a fresh BAM pack with embedded cassandra.
>
>>
>>
>> On Mon, May 5, 2014 at 1:44 PM, Udara Rathnayake  wrote:
>>
>>> I will try to debug
>>> org.wso2.carbon.databridge.persistence.cassandra.datastore.CassandraConnector
>>> and see.
>>>
>>>
>>> On Mon, May 5, 2014 at 5:05 PM, Udara Rathnayake wrote:
>>>
 Hi Inosh,

 I tried the given toolbox, inside a fresh BAM 2.4.1 pack with the
 default sample publisher. I still get the same warning[1].
 I think this behavior has nothing to with my environment?

 [1].

 [2014-05-05 16:52:22,450]  INFO
 {org.wso2.carbon.bam.toolbox.deployer.core.BAMToolBoxDeployer} -  Deploying
 file:/home/udara/wso2/playground/wso2bam-2.4.1/repository/deployment/server/bam-toolbox/KPI_Phone_Retail_Store.tbox
 [2014-05-05 16:52:22,944]  INFO
 {org.wso2.carbon.databridge.core.DataBridge} -  admin connected
 [2014-05-05 16:52:22,950]  INFO
 {org.wso2.carbon.databridge.streamdefn.registry.datastore.RegistryStreamDefinitionStore}
 -  Stream definition added to registry successfully :
 org.wso2.bam.phone.retail.store.kpi:1.0.0
 [2014-05-05 16:52:23,005]  INFO
 {org.wso2.carbon.ntask.core.impl.AbstractQuartzTaskManager} -  Task
 scheduled: [-1234][HIVE_TASK][phone_retail_store_script]
 [2014-05-05 16:52:23,393]  INFO
 {org.wso2.carbon.bam.toolbox.deployer.core.BAMToolBoxDeployer} -  Deployed
 successfully file:
 /home/udara/wso2/playground/wso2bam-2.4.1/repository/deployment/server/bam-toolbox/KPI_Phone_Retail_Store.tbox
 [2014-05-05 16:52:31,154]  INFO
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
 'admin@carbon.super [-1234]' logged in at [2014-05-05
 16:52:31,154+0530]
 [2014-05-05 16:54:28,562]  INFO
 {org.wso2.carbon.databridge.core.DataBridge} -  admin connected
 [2014-05-05 16:54:28,607]  INFO
 {org.wso2.carbon.databridge.persistence.cassandra.datastore.ClusterFactory}
 -  Initializing cluster
 [2014-05-05 16:54:30,593]  INFO
 {org.wso2.carbon.databridge.core.DataBridge} -
 f95ff042-07db-4a28-8035-fc5189edfef6 disconnected
 [2014-05-05 16:55:12,440]  WARN
 {org.wso2.carbon.databridge.persistence.cassandra.datastore.CassandraConnector}
 -  Secondary Index creation is not successful...
 me.prettyprint.hector.api.exceptions.HInvalidRequestException:
 InvalidRequestException(why:Illegal index name  payload_brand_index)

 Regards,
 UdaraR


 On Mon, May 5, 2014 at 4:38 PM, Inosh Goonewardena wrote:

> Hi Udara,
>
> I couldn't try with your toolbox since I was unable to get your sample
> data publisher to work in the first go. Since I am on site I didn't spend
> time on fixing data publisher issue. However, I have tested secondary 
> index
> creation with kpi-definition toolbox we ship with BAM by adding same
> attribute('brand') as secondary index and it is working properly. Please
> find the attached kpi-definition toolbox. Deploy it and publish data by
> using the standard samples. So until I further investigate what is wrong 
> in
> your scenario, please use the working toolbox that I have attached and try
> to make your sample working.
>
>
> On Mon, May 5, 2014 at 11:29 AM, Udara Rathnayake wrote:
>
>> Hi Inosh,
>>
>> Please find the modified kpi-definition sample which I have used to
>> publish data.
>>
>> Regards,
>> UdaraR
>>
>>
>> On Mon, May 5, 2014 at 1:32 PM, Udara Rathnayake wrote:
>>
>>> Hi Inosh,
>>>
>>> I have attached the toolbox, Please note that I have modified
>>> HL7.tbox to suits with the kpi-definition BAM sample[1].
>>> In addition I have introduced 'brand' secondary index and modified
>>> kpi-def

Re: [Dev] What is the Git location for components/logging

2014-05-06 Thread Udara Rathnayake
https://github.com/wso2/carbon-utils/tree/master/components/logging


On Tue, May 6, 2014 at 12:55 PM, Udara Liyanage  wrote:

> $subject?
>
> --
>
> Udara Liyanage
> Software Engineer
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] What is the Git location for components/logging

2014-05-06 Thread Udara Liyanage
$subject?

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] OSGI Loading order?

2014-05-06 Thread Manoj Kumara
Hi Malaka,

I think this can be possible using declarative services. By synapse
component can having 1.1 relation to a service component registered by
ntask.

Thanks,
Manoj


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


On Tue, May 6, 2014 at 11:09 AM, Malaka Silva  wrote:

> Hi,
>
> Are the components loaded according to the order in the bundles.info file?
>
> If so how can we change this order of activating components?
>
> eg: I need the ntask component to be loaded before synapse deployment
> starts.
>
> Any idea?
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Identity Server 5.0.0 Beta Released!

2014-05-06 Thread Darshana Gunawardana
Hi Asanthi,

On Tue, May 6, 2014 at 10:19 AM, Asanthi Kulasinghe wrote:

> Hi,
>
> Is there a P2 repo for this?
>

Not atm, We'll let you know once its hosted.

Thanks,

>
> Regards
> Asanthi
>
>
> On Tue, May 6, 2014 at 5:53 AM, Darshana Gunawardana wrote:
>
>> WSO2 Identity Server 5.0.0 Beta Released!
>>
>>
>>
>>  Date: 6th May 2014
>>
>>
>>  WSO2 Identity Server team is pleased to announce the release of 5.0.0
>> Beta version of WSO2 Identity Server.
>>
>>
>> It can be downloaded from 
>> *https://svn.wso2.org/repos/wso2/scratch/IS-5.0.0/beta/
>> * which is built
>> upon r201958.
>>
>>
>>
>> How to Run
>>
>>1.
>>
>>Extract the downloaded zip
>>2.
>>
>>Go to the bin directory in the extracted folder
>>3.
>>
>>Run the wso2server.sh or wso2server.bat as appropriate
>>4.
>>
>>To access management console, point your browser to the URL
>>https://localhost:9443/carbon
>>5.
>>
>>To access user-portal, point your browser to the URL
>>https://localhost:9443/dashboard/
>>6.
>>
>>Use "admin", "admin" as the username and password to login as an admin
>>
>>
>>
>>  The following is a list of new features, improvements and bug fixes
>> available with this release.
>>
>>
>>  New Features
>>
>>
>>  1. Identity Token transformation and mediation.
>>
>>
>>  WSO2 Identity Server 5.0.0 is capable of transforming and mediating any
>> identity token - between SAML 2.0, OAuth 1.0/2.0, OpenID, OpenID Connect,
>> IWA (Integrated Windows Authentication), OTP based on XMPP & Email and
>> WS-Federation(Passive). This leads to seamless integration between
>> internal applications and cloud applications such as Salesforce, Google
>> Apps and Office 365.
>>
>>
>>  Few example use cases.
>>
>>
>>   - Login to your corporate Salesforce or Google Apps accounts from your
>> Facebook credentials.
>>
>>  - Login to your laptop connected to your corporate Windows domain - you
>> will be automatically logged into your corporate Salesforce and Google Apps
>> accounts.
>>
>>  - Login to corporate Office 365 account - you will be automatically
>> logged into you Google Apps and Salesforce accounts.
>>
>>  - Login to Identity Server user portal - you will be automatically
>> logged into your internal Liferay portals.
>>
>>
>>  2. Multi-option and multi-step authentication.
>>
>>
>>  With WSO2 Identity Server 5.0.0, a given service provider (irrespective
>> of the protocol it supports) can select the login options it wants to
>> present to it users. It can be multi-option as well and multi-step. With
>> multi-option - the user will be presented with a login screen to pick
>> whatever the authentication mechanism it wants (e.g.: Username/password,
>> Facebook, SAML, OpenID Connect). With multi-step - you can enforce
>> multi-factor authentication by picking right authenticators at the right
>> step.
>>
>>
>>  3. Request Path Authenticators.
>>
>>
>>  Enables federated login with credentials attached to the request itself.
>>
>>
>>  4. Ability plugin in custom developed authenticators.
>>
>>
>>  The WSO2 Identity Server 5.0.0 runtime is capable of working with
>> custom developed authenticators.
>>
>>
>>  5. Provisioning Bridge and Just-in-time Provisioning.
>>
>>
>>  WSO2 Identity Server 5.0.0 is capable of transforming inbound
>> provisioning requests based on SOAP and SCIM to SCIM, SPML 2.0,
>> Salesforce, Google Apps, LDAP, Active Directory, JDBC -  provisioning
>>
>> APIs.
>>
>>
>>  Just-in-time provisioning is integrated with Identity Federation. Login
>> from a Federated Identity provider - WSO2 Identity Server is capable of
>> provisioning the corresponding subject to its internal user
>>
>> store and any other provisioning system.
>>
>>
>>  6. Rule based provisioning.
>>
>>
>>  This is an integrated use case with WSO2 ESB. From WSO2 Identity
>> Server, it can provision users to the WSO2 ESB. Using the ESB configuration
>> language (Synapse) you can define rules for outbound provisioning based on
>> the message content on any other parameter.
>>
>>
>>  7. Ability plugin in custom developed provisioning connectors.
>>
>>
>>  The WSO2 Identity Server 5.0.0 runtime is capable of working with
>> custom developed provisioning connectors.
>>
>>
>>  8. User Dashboard
>>
>>
>>  A Jaggery based Dashboard for end users.
>>
>>
>>  9. Remote User Store Management
>>
>>
>>  Manage heterogeneous user stores distributed across different data
>> centers from a single Identity Server node.
>>
>>
>>  10. Custom permissions.
>>
>>
>>  Each external application can define its own set of custom permissions
>> and use it for authorization.
>>
>>
>>  Bug Fixes
>>
>>
>>  Following bug fixes and improvements are available in the current
>> release. IS-5.0.0 Fixed Issues
>> .
>>
>>
>>  Your feedback is mostly welcome. Please report issues at [1] and
>> specify the affected version as 5.0.0 Beta.
>>
>>
>> [1] https

[Dev] APIM 1.7.0 User management features are not up to date with IS 5.0.0

2014-05-06 Thread Nirodha Pramod
Hi,

Please note the subject as both releases are going on the same chunk. There
are user core issues like [1] which are there in APIM but not in IS. Also
observed that the 'org.wso2.carbon.user.mgt.ui_' version is old in APIM.
Please have a look.

[1] https://wso2.org/jira/browse/APIMANAGER-2293

jira created [2]  - https://wso2.org/jira/browse/APIMANAGER-2294

regards,
Nirodha
-- 

*Nirodha Gallage*
Senior Software Engineer, QA.
WSO2 Inc.: http://wso2.com/
Mobile: +94716429078
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev