Re: [Dev] Issue with starting up WSO2 Carbon 4.3.0 - Waiting for required OSGiAxis2Service

2015-02-19 Thread Jagath Sisirakumara Ariyarathne
Adding more..

This issue occurs only when the registry is used in the module. Otherwise
it works fine.

Thanks.

On Thu, Feb 19, 2015 at 1:30 PM, Jagath Sisirakumara Ariyarathne 
jaga...@wso2.com wrote:

 Hi,

 I followed [1] to develop a carbon component and [2] to use registry in
 it. After that, when the carbon starts, it gives the below message
 continuously and does not start up. Here, orderprocessingbackend is the
 module which uses the registry.

 [2015-02-19 12:52:14,851]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
 delayed due to the following unsatisfied items:
 [2015-02-19 12:52:14,852]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 OSGiAxis2Service: orderprocessingbackend-1.0.8
 [2015-02-19 12:53:14,850]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
 delayed due to the following unsatisfied items:
 [2015-02-19 12:53:14,851]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 OSGiAxis2Service: orderprocessingbackend-1.0.8


 I used WSO2 Carbon 4.3.0 and added below dependency to the pom file.

 dependency
 groupIdorg.wso2.carbon/groupId
 artifactIdorg.wso2.carbon.registry.core/artifactId
 version4.3.0/version
 /dependency

 What would be the issue here?


 [1] -
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
 [2] -
 http://wso2.com/library/articles/2012/03/carbon-context-its-usages-wso2-products/

 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048




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


Re: [Dev] Please merge pull request

2015-02-19 Thread Dilshan Edirisuriya
Hi Pulasthi,

Is this in nexus now?

Regards,

Dilshan

On Wed, Feb 18, 2015 at 5:11 PM, Dilshan Edirisuriya dils...@wso2.com
wrote:

 Hi Pulasthi,

 Looks ok. Thank you.

 Regards,

 Dilshan

 On Wed, Feb 18, 2015 at 2:43 PM, Pulasthi Mahawithana pulast...@wso2.com
 wrote:

 Hi Kishanthan,

 Tested and found no issues with IS.

 @Dilshan, Can you confirm with CDM?

 On Wed, Feb 18, 2015 at 10:03 AM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Also have you done a final test on these orbits (after all the changes)
 with the product?

 On Wed, Feb 18, 2015 at 9:38 AM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Kishanthan,

 I had missed that one, Corrected now.

 On Wed, Feb 18, 2015 at 9:33 AM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 So DynamicImport-Package * is needed for bcpkix-jdk15on?

 On Wed, Feb 18, 2015 at 12:00 AM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Kishanthan,

 Resolved the new comments and removed the dynamic imports. The
 previous comments had been resolved, but some are still visible since 
 they
 had no new changes to the commented line.

 On Tue, Feb 17, 2015 at 7:53 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 I still see dynamic imports in these orbits. If it is not needed you
 need to remove them. Also some comments that were added are not resolved
 yet.

 On Tue, Feb 17, 2015 at 6:12 PM, Dilshan Edirisuriya 
 dils...@wso2.com wrote:

 Hi Kishanthan/Maheshika,

 Can you please look into this since we have a dependencies to these
 orbit bundles as well for our next milestone which is due this week.

 Regards,

 Dilshan

 On Tue, Feb 17, 2015 at 12:21 PM, Dilshan Edirisuriya 
 dils...@wso2.com wrote:

 As far as I can remember this does not need it. So we can remove
 it.

 Regards,

 Dilshan

 On Tue, Feb 17, 2015 at 12:16 PM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi,

 On Mon, Feb 16, 2015 at 7:50 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 I added some comments/concerns. Can you look into them?


 Corrected them. Thanks for pointing out.

 @ Dilshan,
 Removed dynamic imports from the initial versions of jscep and
 bcpkix, since I could not find any need for that in their sources. 
 Please
 comment if that is still needed.


 On Mon, Feb 16, 2015 at 12:27 PM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Sameera,

 Please review and merge [1]. It has updates to following

 1. Commons-IO - 2.4.0.wso2v1 - Required by JSCEP
 2. JSCEP - 2.0.2.wso2v2 - Updated with commons-io 2.4
 3. BCPKIX - 1.49.0.wso2v2 - Fix for signature validation issue
 (similar to what was done to bcprov)


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

 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




 --
 Dilshan Edirisuriya
 Senior Software Engineer - WSO2
 Mob: + 94 777878905
 http://wso2.com/
 https://www.linkedin.com/profile/view?id=50486426




 --
 Dilshan Edirisuriya
 Senior Software Engineer - WSO2
 Mob: + 94 777878905
 http://wso2.com/
 https://www.linkedin.com/profile/view?id=50486426




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: 

Re: [Dev] Issue with starting up WSO2 Carbon 4.3.0 - Waiting for required OSGiAxis2Service

2015-02-19 Thread Lasitha Wattaladeniya
Hi jagath,

check whether u have included the correct *registry* package imports in
maven osgi bundle plugin config. May be that's why orderprocessorbackend is
not resolving.

eg:  plugins plugin groupIdorg.apache.felix/groupId artifactId
maven-bundle-plugin/artifactId version1.4.0/version extensions
true/extensions configuration instructions Bundle-SymbolicName
${project.artifactId}/Bundle-SymbolicName Bundle-Name
${project.artifactId}/Bundle-Name Export-Package
/Export-Package Import-Package

org.wso2.carbon.registry.core.* /Import-Package Carbon-Component
UIBundle/Carbon-Component /instructions /configuration /plugin /
plugins




On Thu, Feb 19, 2015 at 2:11 PM, Danushka Fernando danush...@wso2.com
wrote:

 This is because of some unreolved osgi dependency. Can you start the
 server with -DosgiConsole option and check the issue in osgi console.

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

 On Thu, Feb 19, 2015 at 1:47 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Adding more..

 This issue occurs only when the registry is used in the module. Otherwise
 it works fine.

 Thanks.

 On Thu, Feb 19, 2015 at 1:30 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Hi,

 I followed [1] to develop a carbon component and [2] to use registry in
 it. After that, when the carbon starts, it gives the below message
 continuously and does not start up. Here, orderprocessingbackend is the
 module which uses the registry.

 [2015-02-19 12:52:14,851]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
 delayed due to the following unsatisfied items:
 [2015-02-19 12:52:14,852]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 OSGiAxis2Service: orderprocessingbackend-1.0.8
 [2015-02-19 12:53:14,850]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
 delayed due to the following unsatisfied items:
 [2015-02-19 12:53:14,851]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 OSGiAxis2Service: orderprocessingbackend-1.0.8


 I used WSO2 Carbon 4.3.0 and added below dependency to the pom file.

 dependency
 groupIdorg.wso2.carbon/groupId
 artifactIdorg.wso2.carbon.registry.core/artifactId
 version4.3.0/version
 /dependency

 What would be the issue here?


 [1] -
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
 [2] -
 http://wso2.com/library/articles/2012/03/carbon-context-its-usages-wso2-products/

 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048




 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048


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



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




-- 
Lasitha Wattaladeniya
Software Engineer
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

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


[Dev] Upgrading the disruptor version in orbit to 3.3.0

2015-02-19 Thread Ramith Jayasinghe
HI Krishantha,
We would like to do $subject
PR is at: https://github.com/wso2/orbit/pull/64
could you review and merge?

-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][G-REG] no output from Issue Tracker Sample

2015-02-19 Thread Vinod Kavinda
hi,
Thanks for the response.

I did sign out and sign in, even tried restarting the server. No luck!

Regards,
Kavinda

On Thu, Feb 19, 2015 at 2:11 PM, Sithumini Senevirathne sithumi...@wso2.com
 wrote:

 Hi Kavinda,

 After creating the registry extension file you have to sign out and sign
 in again to see the Issue and  Backlog items in metadata section. I
 think you have miss that and this is clearly point out in the document :) .

 Thanks,
 Sithumini

 On Thu, Feb 19, 2015 at 1:53 PM, Kavinda vi...@wso2.com wrote:

 hi,
 I'm following the issue tracker sample[1] from G-REG. I created the
 registry extension file as instructed in [1].
 But there is no Issue and Backlog items in metadata section in
 dashboard. There are no any errors in the console either.

 Am I missing something?

 [1] - https://docs.wso2.com/display/Governance460/Issue+Tracker+Sample
 --
 Vinod Kavinda
 *Software Engineer*
 *WSO2, Inc http://www.wso2.com.*
 Mobile : +94 (0) 712 415544
 vi...@wso2.com

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




 --
 --
 Sithumini Senevirathne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: sithumi...@wso2.com,   mobile: +94 756977999




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


[Dev] [G-REG] Transition UI Sample Problem

2015-02-19 Thread Anuja Herath
Hi,

I followed all steps in G-Reg Transition UI sample [1] without any error.
But, I am unable to find the place where changes were affected at last.

[1] https://docs.wso2.com/display/Governance460/Transition+UI+Sample

-- 
Anuja Herath
*Software Engineer*
*WSO2, Inc.*
Mobile : +94 (0)71 429 8861
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][G-REG] no output from Issue Tracker Sample

2015-02-19 Thread Kavinda
hi,
I'm following the issue tracker sample[1] from G-REG. I created the
registry extension file as instructed in [1].
But there is no Issue and Backlog items in metadata section in
dashboard. There are no any errors in the console either.

Am I missing something?

[1] - https://docs.wso2.com/display/Governance460/Issue+Tracker+Sample
-- 
Vinod Kavinda
*Software Engineer*
*WSO2, Inc http://www.wso2.com.*
Mobile : +94 (0) 712 415544
vi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][G-REG] no output from Issue Tracker Sample

2015-02-19 Thread Sithumini Senevirathne
Hi Kavinda,

This is bit strange because for make sure I just did the same with G-Reg
4.6.0 and mine works perfect. Did you browse and see whether the file is
added to the registry? and make sure you copied the content fully.

Thanks,
Sithumini

On Thu, Feb 19, 2015 at 2:23 PM, Vinod Kavinda vi...@wso2.com wrote:

 hi,
 Thanks for the response.

 I did sign out and sign in, even tried restarting the server. No luck!

 Regards,
 Kavinda

 On Thu, Feb 19, 2015 at 2:11 PM, Sithumini Senevirathne 
 sithumi...@wso2.com wrote:

 Hi Kavinda,

 After creating the registry extension file you have to sign out and sign
 in again to see the Issue and  Backlog items in metadata section. I
 think you have miss that and this is clearly point out in the document :) .

 Thanks,
 Sithumini

 On Thu, Feb 19, 2015 at 1:53 PM, Kavinda vi...@wso2.com wrote:

 hi,
 I'm following the issue tracker sample[1] from G-REG. I created the
 registry extension file as instructed in [1].
 But there is no Issue and Backlog items in metadata section in
 dashboard. There are no any errors in the console either.

 Am I missing something?

 [1] - https://docs.wso2.com/display/Governance460/Issue+Tracker+Sample
 --
 Vinod Kavinda
 *Software Engineer*
 *WSO2, Inc http://www.wso2.com.*
 Mobile : +94 (0) 712 415544
 vi...@wso2.com

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




 --
 --
 Sithumini Senevirathne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: sithumi...@wso2.com,   mobile: +94 756977999




 --
 Vinod Kavinda
 *Software Engineer*
 *WSO2, Inc http://www.wso2.com.*
 Mobile : +94 (0) 712 415544
 vi...@wso2.com

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




-- 
-- 
Sithumini Senevirathne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: sithumi...@wso2.com,   mobile: +94 756977999
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Issue with starting up WSO2 Carbon 4.3.0 - Waiting for required OSGiAxis2Service

2015-02-19 Thread Jagath Sisirakumara Ariyarathne
Hi,

I followed [1] to develop a carbon component and [2] to use registry in it.
After that, when the carbon starts, it gives the below message continuously
and does not start up. Here, orderprocessingbackend is the module which
uses the registry.

[2015-02-19 12:52:14,851]  WARN
{org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
delayed due to the following unsatisfied items:
[2015-02-19 12:52:14,852]  WARN
{org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
OSGiAxis2Service: orderprocessingbackend-1.0.8
[2015-02-19 12:53:14,850]  WARN
{org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
delayed due to the following unsatisfied items:
[2015-02-19 12:53:14,851]  WARN
{org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
OSGiAxis2Service: orderprocessingbackend-1.0.8


I used WSO2 Carbon 4.3.0 and added below dependency to the pom file.

dependency
groupIdorg.wso2.carbon/groupId
artifactIdorg.wso2.carbon.registry.core/artifactId
version4.3.0/version
/dependency

What would be the issue here?


[1] -
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
[2] -
http://wso2.com/library/articles/2012/03/carbon-context-its-usages-wso2-products/

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


Re: [Dev] Issue with starting up WSO2 Carbon 4.3.0 - Waiting for required OSGiAxis2Service

2015-02-19 Thread Danushka Fernando
This is because of some unreolved osgi dependency. Can you start the server
with -DosgiConsole option and check the issue in osgi console.

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

On Thu, Feb 19, 2015 at 1:47 PM, Jagath Sisirakumara Ariyarathne 
jaga...@wso2.com wrote:

 Adding more..

 This issue occurs only when the registry is used in the module. Otherwise
 it works fine.

 Thanks.

 On Thu, Feb 19, 2015 at 1:30 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Hi,

 I followed [1] to develop a carbon component and [2] to use registry in
 it. After that, when the carbon starts, it gives the below message
 continuously and does not start up. Here, orderprocessingbackend is the
 module which uses the registry.

 [2015-02-19 12:52:14,851]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
 delayed due to the following unsatisfied items:
 [2015-02-19 12:52:14,852]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 OSGiAxis2Service: orderprocessingbackend-1.0.8
 [2015-02-19 12:53:14,850]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
 delayed due to the following unsatisfied items:
 [2015-02-19 12:53:14,851]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 OSGiAxis2Service: orderprocessingbackend-1.0.8


 I used WSO2 Carbon 4.3.0 and added below dependency to the pom file.

 dependency
 groupIdorg.wso2.carbon/groupId
 artifactIdorg.wso2.carbon.registry.core/artifactId
 version4.3.0/version
 /dependency

 What would be the issue here?


 [1] -
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
 [2] -
 http://wso2.com/library/articles/2012/03/carbon-context-its-usages-wso2-products/

 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048




 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048


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


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


Re: [Dev] [DEV][G-REG] no output from Issue Tracker Sample

2015-02-19 Thread Sithumini Senevirathne
Hi Kavinda,

After creating the registry extension file you have to sign out and sign in
again to see the Issue and  Backlog items in metadata section. I think
you have miss that and this is clearly point out in the document :) .

Thanks,
Sithumini

On Thu, Feb 19, 2015 at 1:53 PM, Kavinda vi...@wso2.com wrote:

 hi,
 I'm following the issue tracker sample[1] from G-REG. I created the
 registry extension file as instructed in [1].
 But there is no Issue and Backlog items in metadata section in
 dashboard. There are no any errors in the console either.

 Am I missing something?

 [1] - https://docs.wso2.com/display/Governance460/Issue+Tracker+Sample
 --
 Vinod Kavinda
 *Software Engineer*
 *WSO2, Inc http://www.wso2.com.*
 Mobile : +94 (0) 712 415544
 vi...@wso2.com

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




-- 
-- 
Sithumini Senevirathne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: sithumi...@wso2.com,   mobile: +94 756977999
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][G-REG] no output from Issue Tracker Sample

2015-02-19 Thread Vinod Kavinda
Hi,
It did work after deleting the existing one and adding the registry
extension file again.

I did two changes this time,
  1.There is a issue when copying from sample web page by double clicking
on the content. Some unwanted
  characters get added, so this time I copied it without using that
option.
   2.I navigated to the exact folder through tree view of the dashboard and
added the file, without giving full path in the name as instructed in
sample doc.

One of them should be the issue.

Added these info hoping it will help someone fallen into the same problem.

On Thu, Feb 19, 2015 at 2:23 PM, Vinod Kavinda vi...@wso2.com wrote:

 hi,
 Thanks for the response.

 I did sign out and sign in, even tried restarting the server. No luck!

 Regards,
 Kavinda

 On Thu, Feb 19, 2015 at 2:11 PM, Sithumini Senevirathne 
 sithumi...@wso2.com wrote:

 Hi Kavinda,

 After creating the registry extension file you have to sign out and sign
 in again to see the Issue and  Backlog items in metadata section. I
 think you have miss that and this is clearly point out in the document :) .

 Thanks,
 Sithumini

 On Thu, Feb 19, 2015 at 1:53 PM, Kavinda vi...@wso2.com wrote:

 hi,
 I'm following the issue tracker sample[1] from G-REG. I created the
 registry extension file as instructed in [1].
 But there is no Issue and Backlog items in metadata section in
 dashboard. There are no any errors in the console either.

 Am I missing something?

 [1] - https://docs.wso2.com/display/Governance460/Issue+Tracker+Sample
 --
 Vinod Kavinda
 *Software Engineer*
 *WSO2, Inc http://www.wso2.com.*
 Mobile : +94 (0) 712 415544
 vi...@wso2.com

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




 --
 --
 Sithumini Senevirathne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: sithumi...@wso2.com,   mobile: +94 756977999




 --
 Vinod Kavinda
 *Software Engineer*
 *WSO2, Inc http://www.wso2.com.*
 Mobile : +94 (0) 712 415544
 vi...@wso2.com




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


Re: [Dev] [Status update] Platform automation test - Cross products Single Sign-on with SAML 2.0 Auto test

2015-02-19 Thread Nuwan Wimalasekara
Yes. We can aggregate multiple coverage reports and create a one report.
But the problem is that We have to instrument the JAR file before starting
the Distributed setup. I guess, Since this is platform test, Platform is
already up and running. if so We have to instrument the JAR inside the
server first before starting the servers.

Thanks,
Nuwanw

On Wed, Feb 18, 2015 at 4:37 AM, Krishantha Samaraweera krishan...@wso2.com
 wrote:

 Hi Nuwan,

 On Wed, Feb 18, 2015 at 5:49 PM, Nuwan Dias nuw...@wso2.com wrote:

 Nice work.

 @Krishantha I have a question regarding getting code coverage for these.
 Since these are platform scenarios and don't execute at build time, is
 there a way we can find out the exact code coverage of all the test
 scenarios?


 We can merge the two reports and generate aggregated coverage report.
 This was already done for products like ESB with multiple test modules.

 However, in a distributed APIM setup merging reports will be bit difficult
 which we need to improve in future.

 For the time being we can merge the reports and generate coverage manually.

 Thanks,
 Krishantha.


 Currently the only comprehensive coverage comes from the tests that run
 at build time and we don't actually know the coverage as a whole (which
 includes the UI and platform scenarios).

 Thanks,
 NuwanD.

 On Wed, Feb 18, 2015 at 5:20 PM, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 We have completed writing the above cross products (APIM  IS)  test
 case scenario and the test case covers the following sequence.

 1. Publisher SSO login  verifications
 2. Creating a sample API
 3. Change API state from created to published  verify the API details
 4. Verify avoidance of repeat authentication for APIM /store  related
 verifications


 Regards



 On Tue, Feb 17, 2015 at 11:27 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 [adding dev]

 Thanks,
 Krishantha.

 On Tue, Feb 17, 2015 at 11:11 PM, Dimuthu De Lanerolle 
 dimut...@wso2.com wrote:

 Hi Krishantha,

 test scenario for [1]

 APIM wso2is-5.0.0
 IS wso2am-1.9.0

 [1] https://docs.wso2.com/display/AM180/Configuring+Single+Sign-on


 Basic cross products test scenario contains the following steps.

 1. Invoke a http client call to publisher login.
 2. Verify http response status codes and whether the SAML based SSO
 authentication was successful / unsuccessful ( Verify Login page / API 
 Index page details.)
 3. Verify avoidance of repeat authentication for APIM /store.

 Following steps  were automated to-date.

 1. HTTP call for /publisher
 2. Invocation calls for samlsso endpoint
 3. calls on commonauth endpoints
 4. jaggery_acs jag related re-directions
 5. /publisher login  index page verifications

 I am currently working on automating the APIM .. /store related steps.


 Regards

 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com





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




 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com




 --
 Nuwan Dias

 Associate Tech Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729




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




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

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


Re: [Dev] [DEV][G-REG] no output from Issue Tracker Sample

2015-02-19 Thread Sithumini Senevirathne
Hi,

Thanks for adding these info. Please find inline comments.


 I did two changes this time,
   1.There is a issue when copying from sample web page by double clicking
 on the content. Some unwanted
   characters get added, so this time I copied it without using that
 option.


This is the issue with unwanted characters file content have changed.


2.I navigated to the exact folder through tree view of the dashboard
 and added the file, without giving full path in the name as instructed in
 sample doc.


This is not an issue as you can create a registry extension file giving the
full path in the name as instructed in the doc.


Thanks,
Sithumini


 One of them should be the issue.

 Added these info hoping it will help someone fallen into the same problem.


 On Thu, Feb 19, 2015 at 2:23 PM, Vinod Kavinda vi...@wso2.com wrote:

 hi,
 Thanks for the response.

 I did sign out and sign in, even tried restarting the server. No luck!

 Regards,
 Kavinda

 On Thu, Feb 19, 2015 at 2:11 PM, Sithumini Senevirathne 
 sithumi...@wso2.com wrote:

 Hi Kavinda,

 After creating the registry extension file you have to sign out and sign
 in again to see the Issue and  Backlog items in metadata section. I
 think you have miss that and this is clearly point out in the document :) .

 Thanks,
 Sithumini

 On Thu, Feb 19, 2015 at 1:53 PM, Kavinda vi...@wso2.com wrote:

 hi,
 I'm following the issue tracker sample[1] from G-REG. I created the
 registry extension file as instructed in [1].
 But there is no Issue and Backlog items in metadata section in
 dashboard. There are no any errors in the console either.

 Am I missing something?

 [1] - https://docs.wso2.com/display/Governance460/Issue+Tracker+Sample
 --
 Vinod Kavinda
 *Software Engineer*
 *WSO2, Inc http://www.wso2.com.*
 Mobile : +94 (0) 712 415544
 vi...@wso2.com

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




 --
 --
 Sithumini Senevirathne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: sithumi...@wso2.com,   mobile: +94 756977999




 --
 Vinod Kavinda
 *Software Engineer*
 *WSO2, Inc http://www.wso2.com.*
 Mobile : +94 (0) 712 415544
 vi...@wso2.com




 --
 Vinod Kavinda
 *Software Engineer*
 *WSO2, Inc http://www.wso2.com.*
 Mobile : +94 (0) 712 415544
 vi...@wso2.com




-- 
-- 
Sithumini Senevirathne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: sithumi...@wso2.com,   mobile: +94 756977999
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Exception when trying to insert data through the created carbon component

2015-02-19 Thread Tharindu Edirisinghe
Hi Thusitha,

Can you please share your code so we can look more into this. Meanwhile you
can look into [1] as well.

[1]
https://svn.wso2.com/wso2/interns/2013/tharindue/2.%20Axis2/Order%20Processing%20System/

On Thu, Feb 19, 2015 at 3:15 PM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi,

 I'm trying to create a Carbon component based on the [1]. I was able to
 get the list of orders successfully. But when I'm trying to add a new
 Order, I'm getting an Exception
 Here is the stack-trace.


 org.apache.axis2.AxisFault: org.wso2.training.carbon.order.mgt.data.Item
 at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.training.carbon.order.mgt.stub.OrderManagerStub.addOrder(OrderManagerStub.java:736)
 at
 org.wso2.training.carbon.order.mgt.ui.OrderManagerClient.addOrder(OrderManagerClient.java:67)
 at
 org.apache.jsp.order_002dmgt.index_jsp._jspService(org.apache.jsp.order_002dmgt.index_jsp:100)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(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.doInclude(ApplicationDispatcher.java:605)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
 at
 org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
 at
 org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
 at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
 at
 org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
 at
 org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
 at
 org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
 at
 org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
 at
 org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(org.apache.jsp.admin.layout.template_jsp:603)
 at
 org.apache.jsp.admin.layout.template_jsp._jspService(org.apache.jsp.admin.layout.template_jsp:335)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
 at 

Re: [Dev] [G-REG] Transition UI Sample Problem

2015-02-19 Thread Sithumini Senevirathne
Hi Anuja,

Did you add the created Transition UI to one of the lifecycle
configuration? Step 6 in the sample doc. If you have done that you can see
the changes by adding that lifecycle to any registry resource and promote
it. You can find the lifecycle section at the right side of the registry
management console.

Thanks,
Sithumnin

On Thu, Feb 19, 2015 at 2:59 PM, Anuja Herath an...@wso2.com wrote:

 Hi,

 I followed all steps in G-Reg Transition UI sample [1] without any error.
 But, I am unable to find the place where changes were affected at last.

 [1] https://docs.wso2.com/display/Governance460/Transition+UI+Sample

 --
 Anuja Herath
 *Software Engineer*
 *WSO2, Inc.*
 Mobile : +94 (0)71 429 8861

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




-- 
-- 
Sithumini Senevirathne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: sithumi...@wso2.com,   mobile: +94 756977999
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager New integration module structure for framework version 4.3.1.

2015-02-19 Thread Uvindra Dias Jayasinha
Since APIM 1.9.0 was on svn earlier we were using the automation framework
4.2.7. But now since 1.9.0 has moved to git(but we are still using Carbon
4.2.0) do we need to change anything? We are still using version 4.2.7 of
TAF.

On 19 February 2015 at 10:27, Dharshana Warusavitharana dharsha...@wso2.com
 wrote:

 Hi All,

 Please find status of the platform scenario automation of APIM platform
 based scenarios on [1].
 We have currently coverup initial scenarios with IS and BAM integration.

 [1].
 https://docs.google.com/a/wso2.com/spreadsheets/d/10iTMvum6PpuFBMKuBG1oM7miYphv5fmhTCVxMGZG8g8/edit#gid=0

 Thank you,
 Dharshana.


 On Fri, Jan 23, 2015 at 9:32 AM, Dharshana Warusavitharana 
 dharsha...@wso2.com wrote:

 Ye Nuwan we already discussed this too. We will break submodules when we
 are moving with scenarios. This is initial phase.

 Thank You,
 Dharshana

 On Fri, Jan 23, 2015 at 6:32 AM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Hi Dharshana,
 It would be grate if we can create a sub modules under tests-integration
 and test-ui-integration rather than putting the test classes inside the
 root module(tests-integration) from this moment, There might be an
 requirement having multi test module inside tests-integration. In ESB, we
 have multi test module. In future , It will required for API manager too.


 Thanks,
 Nuwanw

 On Thu, Jan 22, 2015 at 4:45 AM, Dharshana Warusavitharana 
 dharsha...@wso2.com wrote:

 Hi All,

 Test framework 4.3.1 has being introduced to the APIM integration test
 module under following structure.

 Moving forward automation team would implement tests based on the test
 structure 4.3.1.

 integration
 ├
 ├── pom.xml
 ├── tests-common
 │   ├── admin-clients
 │   ├── integration-test-utils
 │   └── ui-pages
 ├── tests-integration
 │   ├── pom.xml
 │   └── src
 │   └── test
 │   ├── java
 │   │   └── org
 │   │   └── wso2
 │   │   └── am
 │   │   └── integration
 │   │   └── tests
 │   │   ├── server
 │   │   │   └── mgt
 │   │   │   ├──
 ApiMgtServerStartupTestCase.java
 │   │   │   └──
 OSGIServerBundleStatusTestCase.java
 │   │   └── workflow
 │   └── resources
 ├── tests-platform
 │   ├── pom.xml
 │   └── resources
 ├── tests-ui-integration
 │   ├── pom.xml

 Please note the APIM will move to 1.9.0 release with the SVN so we need
 o stick to the repository noted in [1].


 [1].
 http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/apimgt/1.9.0/

 --

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

 lean . enterprise . middleware

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




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

 phone: +94 71 668 4620






 --

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

 lean . enterprise . middleware




 --

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

 lean . enterprise . middleware

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




-- 
Regards,
Uvindra

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


Re: [Dev] Please review and merge

2015-02-19 Thread Manoj Kumara
Hi Prasad,

Merged the pull request.

Regards,
Manoj


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

On Thu, Feb 19, 2015 at 5:01 PM, Prasad Tissera pras...@wso2.com wrote:

 $subject please. [1]. Thanks.

 [1]. https://wso2.org/jira/browse/CARBON-15174

 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444

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


Re: [Dev] [Carbon] Exception when trying to insert data through the created carbon component

2015-02-19 Thread Thusitha Thilina Dayaratne
Hi Tharindu,

Thanks for your quick response. Here is my code relate to adding a new
Order.

// This is the backend actual method which is responsible for adding the
 order
 public int addOrder(Item order){
 orders.put(orderID++, order);
 return orders.size();
 }



 //OrderManger client method which calls the stub
 public int addOrder(Item order) throws Exception {
 try {
 return stub.addOrder(order);
 }catch (RemoteException e){
 String msg = Cannot add the item. Backend service may be
 unavailable;
 throw new Exception(msg, e);
 }
 return -1;
 }



 //jsp
 Item newItem = new Item();
 newItem.setItemNo(itemCode);
 newItem.setItemName(itemName);
 newItem.setItemPrice(itemPrice);
 int addedItem = client.addOrder(newItem);


Thanks

On Thu, Feb 19, 2015 at 3:31 PM, Tharindu Edirisinghe tharin...@wso2.com
wrote:

 Hi Thusitha,

 Can you please share your code so we can look more into this. Meanwhile
 you can look into [1] as well.

 [1]
 https://svn.wso2.com/wso2/interns/2013/tharindue/2.%20Axis2/Order%20Processing%20System/

 On Thu, Feb 19, 2015 at 3:15 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi,

 I'm trying to create a Carbon component based on the [1]. I was able to
 get the list of orders successfully. But when I'm trying to add a new
 Order, I'm getting an Exception
 Here is the stack-trace.


 org.apache.axis2.AxisFault: org.wso2.training.carbon.order.mgt.data.Item
 at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.training.carbon.order.mgt.stub.OrderManagerStub.addOrder(OrderManagerStub.java:736)
 at
 org.wso2.training.carbon.order.mgt.ui.OrderManagerClient.addOrder(OrderManagerClient.java:67)
 at
 org.apache.jsp.order_002dmgt.index_jsp._jspService(org.apache.jsp.order_002dmgt.index_jsp:100)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(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.doInclude(ApplicationDispatcher.java:605)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
 at
 org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
 at
 org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
 at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
 at
 org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
 at
 

Re: [Dev] Enable streaming in service and operational level - AS 5.1.0 not working

2015-02-19 Thread Suhan Dharmasuriya
Hi,

Since addEmployee is not having a response hence the HTTP 500 response with
a fault message.
Streaming works only for data services which has a result in return.

By following [1] I was able to reproduce HTTP 200 response with a soap
fault for employeesByNumber operation.
Due to the default streaming behaviour of data services requests, which has
a result
will respond with HTTP 200 and a fault message.

When creating a data service/using existing sample data service, the
streaming has been turned ON by default.

Due to this HTTP 200 + soap response, ESB 4.8.0 is unable to hit the fault
sequence in an in sequence of a proxy configuration.
Using FORCE_ERROR_ON_SOAP_FAULT property was ineffective even after the fix
applied [4].

As a workaround we can configure setup to hit the fault sequence with HTTP
500 response + fault message.

As per [1] to get an HTTP 500 response you have to disable this streaming
behaviour in both service level and operation level.

Here is how to do it.

First go to Home  Manage  Services  List
Select the data service to edit.

Now we have to disable streaming at service+operations level.

Edit Data Service (XML Edit)
i. Include disableStreaming=true property to the data element [2],
which will disable streaming at service level.
ii. Include disableStreaming=true property to the operation being
used/other operations planning to use [2],
which will disable streaming at operation level.
iii. Save/Update the configuration.

This disableStreaming=true property is defined to retain backward
compatibility
since from the beginning default streaming was always enabled and this
property was introduced later [3].

We can perform the above said configuration from UI.

I have tested this scenario by AS 5.1.0 DSS samples and ESB 4.8.0 +
patch0315 and
was able to recreate the scenario and successfully test the workaround
solution.

[1]
https://docs.wso2.com/display/DSS301/FAQ#FAQ-WhyisHTTPstatuscode200OKreturnedfordataservicerequests
?
[2] Attachment: RDBMSSample.dbs
[3]
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-DSS-disableStreaming-td96022.html
[4] https://wso2.org/jira/browse/ESBJAVA-3386

Thanks,
Suhan

On Wed, Feb 18, 2015 at 5:54 PM, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi,

 I have deployed data services samples on AS 5.1.0 as per [1].
 Even though documentation article [1] is for AS 5.2.0, I found data
 services samples in
 AS-5.1.0 HOME/samples/dataServiceSamples location and I deployed the
 said samples.

 In my scenario I'm trying to get a soap fault from a particular data
 service (which is in AS 5.1.0)
 and feed it to the in sequence of a proxy which is in ESB 4.8.0.
 I have selected the samples/RDBMSSample sample's addEmployee operation for
 my testing.

 By using FORCE_ERROR_ON_SOAP_FAULT property as per [2], I was able to hit
 the fault
 sequence coming from data service at AS 5.1.0.
 To use this property successfully I have to use this fix in issue [3] also.

 Here the response I got was [8] HTTP 500 with fault sequence which I
 expected.

 Now I have to get the HTTP 200 with a fault sequence as [5] and to
 test the behaviour of ESB 4.8.0's fault sequence capturing capability with
 FORCE_ERROR_ON_SOAP_FAULT property with HTTP 200 response [5].

 I have tried using [6], [4] disableStreaming=false (also tried to enable
 streaming tick box from UI) at both service and operation level and the
 result was the
 same (HTTP 500) response.
 Regardless of true/false value for the field I'm getting HTTP 500 with
 soap fault.

 My /samples/dataServiceSamples/dbs/rdbms/RDBMSSample.dbs file is attached
 herewith [7].

 Am I missing any configuration?

 [1] https://docs.wso2.com/display/AS520/Data+Services+Samples
 [2] https://docs.wso2.com/display/ESB481/Generic+Properties
 [3] https://wso2.org/jira/browse/ESBJAVA-3386
 [4]
 https://docs.wso2.com/display/DSS310/Creating+Using+Various+Data+Sources#CreatingUsingVariousDataSources-Enablestreaming
 [5]
 https://docs.wso2.com/display/DSS301/FAQ#FAQ-WhyisHTTPstatuscode200OKreturnedfordataservicerequests
 ?
 [6]
 http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-DSS-disableStreaming-td96022.html
 [7] Attachment: [RDBMSSample.dbs]
 [8]
 [2015-02-18 17:21:03,086] DEBUG - wire  HTTP/1.1 500 Internal Server
 Error[\r][\n]
 [2015-02-18 17:21:03,087] DEBUG - wire  Set-Cookie:
 JSESSIONID=0237C1E4DE9BF80352E1CB6C63D9B01B; Path=/; HttpOnly[\r][\n]
 [2015-02-18 17:21:03,088] DEBUG - wire  Content-Type:
 text/xml;charset=UTF-8[\r][\n]
 [2015-02-18 17:21:03,088] DEBUG - wire  Transfer-Encoding:
 chunked[\r][\n]
 [2015-02-18 17:21:03,088] DEBUG - wire  Date: Wed, 18 Feb 2015 11:51:03
 GMT[\r][\n]
 [2015-02-18 17:21:03,088] DEBUG - wire  Connection: close[\r][\n]
 [2015-02-18 17:21:03,088] DEBUG - wire  Server: WSO2 Carbon
 Server[\r][\n]
 [2015-02-18 17:21:03,089] DEBUG - wire  [\r][\n]
 [2015-02-18 17:21:03,089] DEBUG - wire  5da[\r][\n]
 [2015-02-18 17:21:03,089] DEBUG - wire  ?xml version='1.0'
 encoding='UTF-8'?soapenv:Envelope 

[Dev] [Carbon] Exception when trying to insert data through the created carbon component

2015-02-19 Thread Thusitha Thilina Dayaratne
Hi,

I'm trying to create a Carbon component based on the [1]. I was able to get
the list of orders successfully. But when I'm trying to add a new Order,
I'm getting an Exception
Here is the stack-trace.


 org.apache.axis2.AxisFault: org.wso2.training.carbon.order.mgt.data.Item
 at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.training.carbon.order.mgt.stub.OrderManagerStub.addOrder(OrderManagerStub.java:736)
 at
 org.wso2.training.carbon.order.mgt.ui.OrderManagerClient.addOrder(OrderManagerClient.java:67)
 at
 org.apache.jsp.order_002dmgt.index_jsp._jspService(org.apache.jsp.order_002dmgt.index_jsp:100)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(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.doInclude(ApplicationDispatcher.java:605)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
 at
 org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
 at
 org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
 at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
 at
 org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
 at
 org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
 at
 org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
 at
 org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
 at
 org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(org.apache.jsp.admin.layout.template_jsp:603)
 at
 org.apache.jsp.admin.layout.template_jsp._jspService(org.apache.jsp.admin.layout.template_jsp:335)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 

Re: [Dev] [Carbon] Exception when trying to insert data through the created carbon component

2015-02-19 Thread Amal Gunatilake
Hi Thusitha,

Mainly this type of errors come when the client side call doesn't comply
with the backend service.
There can be many reasons but most of the time I suspect you may have
updated the backend service and the wsdl in the stub has been not updated
to comply with it.
I would suggest to use SoapUI and make sure the backend service is running
properly and try adding item from SoapUI. If it works then update the wsdl
in stub and try executing the code from the web interface.

Regards,
Amal.

On Thu, Feb 19, 2015 at 3:15 PM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi,

 I'm trying to create a Carbon component based on the [1]. I was able to
 get the list of orders successfully. But when I'm trying to add a new
 Order, I'm getting an Exception
 Here is the stack-trace.


 org.apache.axis2.AxisFault: org.wso2.training.carbon.order.mgt.data.Item
 at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.training.carbon.order.mgt.stub.OrderManagerStub.addOrder(OrderManagerStub.java:736)
 at
 org.wso2.training.carbon.order.mgt.ui.OrderManagerClient.addOrder(OrderManagerClient.java:67)
 at
 org.apache.jsp.order_002dmgt.index_jsp._jspService(org.apache.jsp.order_002dmgt.index_jsp:100)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(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.doInclude(ApplicationDispatcher.java:605)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
 at
 org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
 at
 org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
 at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
 at
 org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
 at
 org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
 at
 org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
 at
 org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
 at
 org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(org.apache.jsp.admin.layout.template_jsp:603)
 at
 org.apache.jsp.admin.layout.template_jsp._jspService(org.apache.jsp.admin.layout.template_jsp:335)
 at 

Re: [Dev] Please merge pull request

2015-02-19 Thread Maheshika Goonetilleke
done.

On Thu, Feb 19, 2015 at 3:27 PM, Kishanthan Thangarajah kishant...@wso2.com
 wrote:

 Maheshika, please release these orbits.

 On Thu, Feb 19, 2015 at 2:02 PM, Dilshan Edirisuriya dils...@wso2.com
 wrote:

 Hi Pulasthi,

 Is this in nexus now?

 Regards,

 Dilshan

 On Wed, Feb 18, 2015 at 5:11 PM, Dilshan Edirisuriya dils...@wso2.com
 wrote:

 Hi Pulasthi,

 Looks ok. Thank you.

 Regards,

 Dilshan

 On Wed, Feb 18, 2015 at 2:43 PM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Kishanthan,

 Tested and found no issues with IS.

 @Dilshan, Can you confirm with CDM?

 On Wed, Feb 18, 2015 at 10:03 AM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Also have you done a final test on these orbits (after all the
 changes) with the product?

 On Wed, Feb 18, 2015 at 9:38 AM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Kishanthan,

 I had missed that one, Corrected now.

 On Wed, Feb 18, 2015 at 9:33 AM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 So DynamicImport-Package * is needed for bcpkix-jdk15on?

 On Wed, Feb 18, 2015 at 12:00 AM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Kishanthan,

 Resolved the new comments and removed the dynamic imports. The
 previous comments had been resolved, but some are still visible since 
 they
 had no new changes to the commented line.

 On Tue, Feb 17, 2015 at 7:53 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 I still see dynamic imports in these orbits. If it is not needed
 you need to remove them. Also some comments that were added are not
 resolved yet.

 On Tue, Feb 17, 2015 at 6:12 PM, Dilshan Edirisuriya 
 dils...@wso2.com wrote:

 Hi Kishanthan/Maheshika,

 Can you please look into this since we have a dependencies to
 these orbit bundles as well for our next milestone which is due this 
 week.

 Regards,

 Dilshan

 On Tue, Feb 17, 2015 at 12:21 PM, Dilshan Edirisuriya 
 dils...@wso2.com wrote:

 As far as I can remember this does not need it. So we can remove
 it.

 Regards,

 Dilshan

 On Tue, Feb 17, 2015 at 12:16 PM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi,

 On Mon, Feb 16, 2015 at 7:50 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 I added some comments/concerns. Can you look into them?


 Corrected them. Thanks for pointing out.

 @ Dilshan,
 Removed dynamic imports from the initial versions of jscep and
 bcpkix, since I could not find any need for that in their sources. 
 Please
 comment if that is still needed.


 On Mon, Feb 16, 2015 at 12:27 PM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Sameera,

 Please review and merge [1]. It has updates to following

 1. Commons-IO - 2.4.0.wso2v1 - Required by JSCEP
 2. JSCEP - 2.0.2.wso2v2 - Updated with commons-io 2.4
 3. BCPKIX - 1.49.0.wso2v2 - Fix for signature validation
 issue (similar to what was done to bcprov)


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

 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




 --
 Dilshan Edirisuriya
 Senior Software Engineer - WSO2
 Mob: + 94 777878905
 http://wso2.com/
 https://www.linkedin.com/profile/view?id=50486426




 --
 Dilshan Edirisuriya
 Senior Software Engineer - WSO2
 Mob: + 94 777878905
 http://wso2.com/
 https://www.linkedin.com/profile/view?id=50486426




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 

Re: [Dev] Upgrading the disruptor version in orbit to 3.3.0

2015-02-19 Thread Maheshika Goonetilleke
Hi All

Done.

On Thu, Feb 19, 2015 at 3:32 PM, Kishanthan Thangarajah kishant...@wso2.com
 wrote:

 Maheshika, please release this orbit.

 On Thu, Feb 19, 2015 at 2:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 FYI.
 sent to wrong person.!

 -- Forwarded message --
 From: Ramith Jayasinghe ram...@wso2.com
 Date: Thu, Feb 19, 2015 at 2:19 PM
 Subject: Upgrading the disruptor version in orbit to 3.3.0
 To: WSO2 Developers' List dev@wso2.org
 Cc: Krishantha Samaraweera krishan...@wso2.com


 HI Krishantha,
 We would like to do $subject
 PR is at: https://github.com/wso2/orbit/pull/64
 could you review and merge?

 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan*




-- 

Thanks  Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com mahesh...@wso2.com*
*mobile : +94 773 596707*
*www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Handling Throwable in catch block

2015-02-19 Thread Gayan Gunawardana
Hi,

In user core [1] JDBCUserStoreManager,  persistUser user method contains
catching Throwable. In general catching Throwable is not a good practice
because there may be some run time Errors like OutOfMemoryError which are
not be able to handle. Is there any particular reason to catch Throwable?

[1]
https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/jdbc/JDBCUserStoreManager.java
-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BAM] Customising JSON response received through REST API calls to BAM

2015-02-19 Thread Gimantha Bandara
Hi Thusitha,

Analytics REST APIs dont support custom formatting for responses.


On Thu, Feb 12, 2015 at 5:19 PM, Thusitha Kalugamage thusi...@wso2.com
wrote:

 Hi All,

 I need to work on multiple types of JSON strings derived from BAM's
 response.
 currently it will return something like this sample.

 {
 id: 00.00
 tenantId: -
 tableName: testTable
 timestamp: 1420216491791
 values: {
 payload_itemNo: 0001,
 payload_itemName: testname,
 payload_price: 3000,
 payload_timestamp: 1420216491791,
 payload_qty: 1
 Version: 1.0.0
 }
 }

 But I want to have transformed strings like these - depending on the use
 case,

 {
 itemNo: 0001,
 itemName: testname,
 price: 3000,
 timestamp: 1420216491791,
 qty: 1
 }

 and

 {
 type: FeatureCollection,
 features: [
 {
 geometry: {
 type: Point,
 coordinates: [
 0,
 0
 ]
 },
 type: Feature,
 properties: {
 layer: location,
 popupContent: pop 1,
 intensity: 10,
 pointColor: #33,
 pointOpacity: 0.6,
 itemNo: 0001,
 itemName: testname,
 price: 3000,
 timestamp: 1420216491791,
 qty: 1
 },
 id: 1
 }
 ]
 }

 Is there a way to achieve this at the BAM's end? (I'm
 using wso2bam-3.0.0-SNAPSHOT)

 Can't we send a template of which we want our response to be formatted as?
 Transforming JSON multiple times is a overheard to clients end, any
 suggestions on this?

 Thanks Heaps!
 Regards,

 --
 Thusitha Kalugamage
 *Software Engineer*
 Mobile : +94 (0) 774 074370
 Tel   : +94 (0) 112 145 345
 thusi...@wso2.com




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


Re: [Dev] Please merge pull request

2015-02-19 Thread Kishanthan Thangarajah
Maheshika, please release these orbits.

On Thu, Feb 19, 2015 at 2:02 PM, Dilshan Edirisuriya dils...@wso2.com
wrote:

 Hi Pulasthi,

 Is this in nexus now?

 Regards,

 Dilshan

 On Wed, Feb 18, 2015 at 5:11 PM, Dilshan Edirisuriya dils...@wso2.com
 wrote:

 Hi Pulasthi,

 Looks ok. Thank you.

 Regards,

 Dilshan

 On Wed, Feb 18, 2015 at 2:43 PM, Pulasthi Mahawithana pulast...@wso2.com
  wrote:

 Hi Kishanthan,

 Tested and found no issues with IS.

 @Dilshan, Can you confirm with CDM?

 On Wed, Feb 18, 2015 at 10:03 AM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Also have you done a final test on these orbits (after all the changes)
 with the product?

 On Wed, Feb 18, 2015 at 9:38 AM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Kishanthan,

 I had missed that one, Corrected now.

 On Wed, Feb 18, 2015 at 9:33 AM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 So DynamicImport-Package * is needed for bcpkix-jdk15on?

 On Wed, Feb 18, 2015 at 12:00 AM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Kishanthan,

 Resolved the new comments and removed the dynamic imports. The
 previous comments had been resolved, but some are still visible since 
 they
 had no new changes to the commented line.

 On Tue, Feb 17, 2015 at 7:53 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 I still see dynamic imports in these orbits. If it is not needed
 you need to remove them. Also some comments that were added are not
 resolved yet.

 On Tue, Feb 17, 2015 at 6:12 PM, Dilshan Edirisuriya 
 dils...@wso2.com wrote:

 Hi Kishanthan/Maheshika,

 Can you please look into this since we have a dependencies to
 these orbit bundles as well for our next milestone which is due this 
 week.

 Regards,

 Dilshan

 On Tue, Feb 17, 2015 at 12:21 PM, Dilshan Edirisuriya 
 dils...@wso2.com wrote:

 As far as I can remember this does not need it. So we can remove
 it.

 Regards,

 Dilshan

 On Tue, Feb 17, 2015 at 12:16 PM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi,

 On Mon, Feb 16, 2015 at 7:50 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 I added some comments/concerns. Can you look into them?


 Corrected them. Thanks for pointing out.

 @ Dilshan,
 Removed dynamic imports from the initial versions of jscep and
 bcpkix, since I could not find any need for that in their sources. 
 Please
 comment if that is still needed.


 On Mon, Feb 16, 2015 at 12:27 PM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Sameera,

 Please review and merge [1]. It has updates to following

 1. Commons-IO - 2.4.0.wso2v1 - Required by JSCEP
 2. JSCEP - 2.0.2.wso2v2 - Updated with commons-io 2.4
 3. BCPKIX - 1.49.0.wso2v2 - Fix for signature validation issue
 (similar to what was done to bcprov)


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

 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




 --
 Dilshan Edirisuriya
 Senior Software Engineer - WSO2
 Mob: + 94 777878905
 http://wso2.com/
 https://www.linkedin.com/profile/view?id=50486426




 --
 Dilshan Edirisuriya
 Senior Software Engineer - WSO2
 Mob: + 94 777878905
 http://wso2.com/
 https://www.linkedin.com/profile/view?id=50486426




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*

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

2015-02-19 Thread Dimuthu De Lanerolle
Kishanthan , the initial effort was only to migrate  tests classes inside
the 'tests' module to 'tests-integration' module. However now,  we have
gone through the integration module and sub modules and done the changes
you have mentioned. You can now merge the updated pull request.

Regards

On Wed, Feb 18, 2015 at 1:20 PM, Kishanthan Thangarajah kishant...@wso2.com
 wrote:

 DimuthuD, I still see submodule dependencies having version defined even
 though they are defined in the parent pom Eg:
 distribution/integration/test-common/integration-test-utils/pom.xml.

 Also when adding new dependencies to dependencyManagement section, check
 whether they are already added. If yes, we will end up having duplicated
 dependencies.



 On Fri, Feb 13, 2015 at 4:26 PM, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 Hi Krishantha / Kishanthan,

 The pull request is updated accordingly.

 Regards

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

 Hi Dimuthu,

 Can you fix all the problems and send a pull again.

 Thanks,
 Krishantha.

 On Tue, Feb 10, 2015 at 10:18 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Hi DimuthuD,

 While trying to merge this, I found some pom level issues with the
 integration module that should be fixed.

 1. We need to remove the dependencyManagement section in
 distribution/integration/pom.xml and move all those dependencies to the
 root pom at carbon4-kernel/parent/pom.xml
 2. Submodule pom's should not have versions defined/hard-coded for any
 dependencies, instead they should be defined at root parent pom. The same
 applied for maven build plugins sections as-well.

 So shall we also fix the above with this effort?

 On Fri, Jan 23, 2015 at 7:39 PM, Dimuthu De Lanerolle 
 dimut...@wso2.com wrote:

 Hi Kishanthan,

 Yes,  we have the updated PR [1] which is compatible with the master
 branch to-date. Pls merge.

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

 Regards

 On Thu, Jan 22, 2015 at 11:09 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Great. Thanks Dimuthu and Krishantha. So we just have to remove the
 old framework from code base right? Also can we get the updated PR on 
 this
 migration sent to master branch, if not already done?

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

 Hi Dimuthu,

 Thanks for attending to this.

 We need to remove the old test framework in kernel and test suite.

 Thanks,
 Krishantha.

 On Wed, Jan 21, 2015 at 8:24 PM, Dimuthu De Lanerolle 
 dimut...@wso2.com wrote:

 This is completed.  Please find the test result for carbon-kernel4
 tests-integration module.

 Test results
 SuitePassedFailedSkippedtestng.xml*Total**24**0**0*
 carbon-server-startup http://carbon-server-startup/index.html2400
 Link http://carbon-server-startup/testng.xml.html


 Regards


 On Tue, Jan 20, 2015 at 3:07 PM, Dimuthu De Lanerolle 
 dimut...@wso2.com wrote:

 I have started migrating carbon4-kernel tests inside [1] tests
 module to tests-integration module which is going to be compatible 
 with
 new TAF 4.3.1 framework. Will update progress soon.

 [1]
 https://github.com/buddhics/carbon4-kernel/tree/master/distribution/integration


 Regards

 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email :
 dimut...@wso2.com




 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email :
 dimut...@wso2.com




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




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com





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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




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




 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com




 --
 *Kishanthan Thangarajah*
 Senior Software Engineer,
 Platform Technologies Team,
 

Re: [Dev] [G-REG] Transition UI Sample Problem

2015-02-19 Thread Anuja Herath
Hi Sithumini,

I have completed all steps. What is the result going to be after clicking
Promote button?
I don't see any different from how it worked before applying transition ui.

On Thu, Feb 19, 2015 at 3:57 PM, Sithumini Senevirathne sithumi...@wso2.com
 wrote:

 Hi Anuja,

 Did you add the created Transition UI to one of the lifecycle
 configuration? Step 6 in the sample doc. If you have done that you can see
 the changes by adding that lifecycle to any registry resource and promote
 it. You can find the lifecycle section at the right side of the registry
 management console.

 Thanks,
 Sithumnin

 On Thu, Feb 19, 2015 at 2:59 PM, Anuja Herath an...@wso2.com wrote:

 Hi,

 I followed all steps in G-Reg Transition UI sample [1] without any error.
 But, I am unable to find the place where changes were affected at last.

 [1] https://docs.wso2.com/display/Governance460/Transition+UI+Sample

 --
 Anuja Herath
 *Software Engineer*
 *WSO2, Inc.*
 Mobile : +94 (0)71 429 8861

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




 --
 --
 Sithumini Senevirathne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: sithumi...@wso2.com,   mobile: +94 756977999




-- 
Anuja Herath
*Software Engineer*
*WSO2, Inc.*
Mobile : +94 (0)71 429 8861
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Upgrading the disruptor version in orbit to 3.3.0

2015-02-19 Thread Kishanthan Thangarajah
Maheshika, please release this orbit.

On Thu, Feb 19, 2015 at 2:41 PM, Ramith Jayasinghe ram...@wso2.com wrote:

 FYI.
 sent to wrong person.!

 -- Forwarded message --
 From: Ramith Jayasinghe ram...@wso2.com
 Date: Thu, Feb 19, 2015 at 2:19 PM
 Subject: Upgrading the disruptor version in orbit to 3.3.0
 To: WSO2 Developers' List dev@wso2.org
 Cc: Krishantha Samaraweera krishan...@wso2.com


 HI Krishantha,
 We would like to do $subject
 PR is at: https://github.com/wso2/orbit/pull/64
 could you review and merge?

 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




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

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


Re: [Dev] [Carbon] Exception when trying to insert data through the created carbon component

2015-02-19 Thread Thusitha Thilina Dayaratne
Hi Amal, Gayashan,

Thanks for your responses. I will try out your suggestions and see if I
will be able to get it solve.


Regards
/Thusitha

On Thu, Feb 19, 2015 at 3:42 PM, Gayashan Amarasinghe gayas...@wso2.com
wrote:

 Hi Thusitha,

 Here you are calling the service via client who calls the service stub. In
 that case the item pojo you are trying to insert should be the same object
 as the one in the WSDL contract. Can you check if it's the same object?

 Thanks.
 /Gayashan

 On Thu, Feb 19, 2015 at 9:45 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi,

 I'm trying to create a Carbon component based on the [1]. I was able to
 get the list of orders successfully. But when I'm trying to add a new
 Order, I'm getting an Exception
 Here is the stack-trace.


 org.apache.axis2.AxisFault: org.wso2.training.carbon.order.mgt.data.Item
 at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.training.carbon.order.mgt.stub.OrderManagerStub.addOrder(OrderManagerStub.java:736)
 at
 org.wso2.training.carbon.order.mgt.ui.OrderManagerClient.addOrder(OrderManagerClient.java:67)
 at
 org.apache.jsp.order_002dmgt.index_jsp._jspService(org.apache.jsp.order_002dmgt.index_jsp:100)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(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.doInclude(ApplicationDispatcher.java:605)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
 at
 org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
 at
 org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
 at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
 at
 org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
 at
 org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
 at
 org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
 at
 org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
 at
 org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(org.apache.jsp.admin.layout.template_jsp:603)
 at
 org.apache.jsp.admin.layout.template_jsp._jspService(org.apache.jsp.admin.layout.template_jsp:335)
 at 

Re: [Dev] [Carbon] Exception when trying to insert data through the created carbon component

2015-02-19 Thread Gayashan Amarasinghe
Hi Thusitha,

Here you are calling the service via client who calls the service stub. In
that case the item pojo you are trying to insert should be the same object
as the one in the WSDL contract. Can you check if it's the same object?

Thanks.
/Gayashan

On Thu, Feb 19, 2015 at 9:45 AM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi,

 I'm trying to create a Carbon component based on the [1]. I was able to
 get the list of orders successfully. But when I'm trying to add a new
 Order, I'm getting an Exception
 Here is the stack-trace.


 org.apache.axis2.AxisFault: org.wso2.training.carbon.order.mgt.data.Item
 at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.training.carbon.order.mgt.stub.OrderManagerStub.addOrder(OrderManagerStub.java:736)
 at
 org.wso2.training.carbon.order.mgt.ui.OrderManagerClient.addOrder(OrderManagerClient.java:67)
 at
 org.apache.jsp.order_002dmgt.index_jsp._jspService(org.apache.jsp.order_002dmgt.index_jsp:100)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(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.doInclude(ApplicationDispatcher.java:605)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
 at
 org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
 at
 org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
 at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
 at
 org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
 at
 org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
 at
 org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
 at
 org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
 at
 org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
 at
 org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
 at
 org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(org.apache.jsp.admin.layout.template_jsp:603)
 at
 org.apache.jsp.admin.layout.template_jsp._jspService(org.apache.jsp.admin.layout.template_jsp:335)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
 

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

2015-02-19 Thread Akila Nimantha [IT/EKO/LOITS]
Hi all,

I'm trying to create a proxy service where the endpoint URL uses HTTPS and uses 
a ip address instead of a fqdn. I've done the following steps

imported the certificate to /repository/resources/security/client-truststore.jks

set the parameter parameter name=HostnameVerifierAllowAll/parameter
in PassThroughHttpSender,PassThroughHttpSSLSender

but getting the following error message. what should I do to overcome this 
problem.

TID: [0] [ESB] [2015-02-19 15:11:24,203] ERROR 
{org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin} -  Error trying to add 
the proxy service to the ESB configuration : dd :: Error reading from wsdl URI 
{org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin}
org.apache.synapse.SynapseException: Error reading from wsdl URI
at 
org.apache.synapse.core.axis2.ProxyService.handleException(ProxyService.java:856)
at 
org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:330)
at 
org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin.addProxyService(ProxyServiceAdmin.java:237)
at 
org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin.addProxy(ProxyServiceAdmin.java:656)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at 
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at 
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at 
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
at 
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
at 
org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
at 
org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at 
org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub.addProxy(ProxyServiceAdminStub.java:1272)
at 
org.wso2.carbon.proxyadmin.ui.client.ProxyServiceAdminClient.addProxy(ProxyServiceAdminClient.java:102)
at 
org.apache.jsp.proxyservices.template_005fpass_002dthrough_jsp._jspService(org.apache.jsp.proxyservices.template_005fpass_002dthrough_jsp:226)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
at 
org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at 
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
at 
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(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 

Re: [Dev] Issue with starting up WSO2 Carbon 4.3.0 - Waiting for required OSGiAxis2Service

2015-02-19 Thread Jagath Sisirakumara Ariyarathne
Hi Danushka, Lasitha,

Thanks for the information.

 I will check the exact error in osgi console.

Thanks.

On Thu, Feb 19, 2015 at 2:35 PM, Lasitha Wattaladeniya lasit...@wso2.com
wrote:

 Hi jagath,

 check whether u have included the correct *registry* package imports in
 maven osgi bundle plugin config. May be that's why orderprocessorbackend is
 not resolving.

 eg:  plugins plugin groupIdorg.apache.felix/groupId artifactId
 maven-bundle-plugin/artifactId version1.4.0/version extensions
 true/extensions configuration instructions Bundle-SymbolicName
 ${project.artifactId}/Bundle-SymbolicName Bundle-Name
 ${project.artifactId}/Bundle-Name Export-Package
 /Export-Package Import-Package

 org.wso2.carbon.registry.core.* /Import-Package Carbon-Component
 UIBundle/Carbon-Component /instructions /configuration /plugin /
 plugins




 On Thu, Feb 19, 2015 at 2:11 PM, Danushka Fernando danush...@wso2.com
 wrote:

 This is because of some unreolved osgi dependency. Can you start the
 server with -DosgiConsole option and check the issue in osgi console.

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

 On Thu, Feb 19, 2015 at 1:47 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Adding more..

 This issue occurs only when the registry is used in the module.
 Otherwise it works fine.

 Thanks.

 On Thu, Feb 19, 2015 at 1:30 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Hi,

 I followed [1] to develop a carbon component and [2] to use registry in
 it. After that, when the carbon starts, it gives the below message
 continuously and does not start up. Here, orderprocessingbackend is the
 module which uses the registry.

 [2015-02-19 12:52:14,851]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
 delayed due to the following unsatisfied items:
 [2015-02-19 12:52:14,852]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 OSGiAxis2Service: orderprocessingbackend-1.0.8
 [2015-02-19 12:53:14,850]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
 delayed due to the following unsatisfied items:
 [2015-02-19 12:53:14,851]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 OSGiAxis2Service: orderprocessingbackend-1.0.8


 I used WSO2 Carbon 4.3.0 and added below dependency to the pom file.

 dependency
 groupIdorg.wso2.carbon/groupId
 artifactIdorg.wso2.carbon.registry.core/artifactId
 version4.3.0/version
 /dependency

 What would be the issue here?


 [1] -
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
 [2] -
 http://wso2.com/library/articles/2012/03/carbon-context-its-usages-wso2-products/

 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048




 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048


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



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




 --
 Lasitha Wattaladeniya
 Software Engineer
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94719397528
 Blog : techreadme.blogspot.com




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


Re: [Dev] Error while trying to install DSS feature 3.2.1 to ESB 4.8.1

2015-02-19 Thread Madusanka Premaratne
Hi Sajith,
This usually happens when you have these features already installed in the
product. You can go back and remove the already installed features.(not the
feature groups, but you can un-tick only the feature from the tree)
In your case you have to remove New Datasource Management UI Feature, Data
Service Hosting Feature, Data Service Hosting UI Feature etc..

Or else you can try with the provinstall osgi command. This will ignore
the already installed features and install only the new ones.
Eg : provinstall org.wso2.carbon.patch.feature.group

Hope this[1] will help you to do more things with the osgi console.
[1] - https://wiki.eclipse.org/Equinox/p2/Console_Users_Guide

Thanks,

On Wed, Feb 18, 2015 at 6:45 PM, Sajith Ravindra saji...@wso2.com wrote:

 Hi all,

 Following error is shown when trying to do the $subjuect from
 http://dist.wso2.org/p2/carbon/releases/turing/.

 Your original install request has been modified.
 org.wso2.carbon.ndatasource.feature.group-4.2.0 is already installed, so an
 update will be performed instead.
 org.wso2.carbon.ndatasource.ui.feature.group-4.2.0 is already installed, so
 an update will be performed instead. Cannot complete the install because of
 a conflicting dependency. Software being installed: Data Service Hosting
 Feature 4.2.4 (org.wso2.carbon.dataservices.feature.group 4.2.4) Software
 being installed: WSO2 Carbon - New Datasource Management UI Feature 4.2.2
 (org.wso2.carbon.ndatasource.ui.feature.group 4.2.2) Only one of the
 following can be installed at once: WSO2 Carbon - New Datasource Management
 UI Feature 4.2.3 (org.wso2.carbon.ndatasource.ui.feature.jar 4.2.3) WSO2
 Carbon - New Datasource Management UI Feature 4.2.2
 (org.wso2.carbon.ndatasource.ui.feature.jar 4.2.2) Cannot satisfy
 dependency: From: Data Service Hosting Feature 4.2.4
 (org.wso2.carbon.dataservices.feature.group 4.2.4) To:
 org.wso2.carbon.dataservices.ui.feature.group [4.2.4] Cannot satisfy
 dependency: From: Data Service Hosting UI Feature 4.2.4
 (org.wso2.carbon.dataservices.ui.feature.group 4.2.4) To:
 org.wso2.carbon.ndatasource.ui.feature.group [4.2.3,4.3.0) Cannot satisfy
 dependency: From: WSO2 Carbon - New Datasource Management UI Feature 4.2.2
 (org.wso2.carbon.ndatasource.ui.feature.group 4.2.2) To:
 org.wso2.carbon.ndatasource.ui.feature.jar [4.2.2] Cannot satisfy
 dependency: From: WSO2 Carbon - New Datasource Management UI Feature 4.2.3
 (org.wso2.carbon.ndatasource.ui.feature.group 4.2.3) To:
 org.wso2.carbon.ndatasource.ui.feature.jar [4.2.3]

 But, I had a backed up  repo of truing branch and when I tried installing
 the same feature from the backed up feature and it worked.

 Any advice on the cause of this?

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

 mobile: +94 77 2273550
 blog: http://sajithr.blogspot.com/
 http://lk.linkedin.com/pub/shani-ranasinghe/34/111/ab

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




-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] https://www.facebook.com/rmmpremaratne [image: Twitter]
https://twitter.com/rmmpremaratne [image: Google Plus]
https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub [image:
Linkedin] http://lk.linkedin.com/in/madusanka/ [image: Instagram]
http://instagram.com/madusankapremaratne [image: Skype]
http://@rmmpremaratne
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Pulasthi Mahawithana

2015-02-19 Thread Madusanka Premaratne
Congrats Pulasthi..!!

On Wed, Feb 18, 2015 at 5:55 PM, Damith Wickramasinghe dami...@wso2.com
wrote:

 Congratz Pulasthi...!

 On Wed, Feb 18, 2015 at 5:16 PM, Isuru Ranawaka isu...@wso2.com wrote:

 Congrats Pulasthi  !!

 On Wed, Feb 18, 2015 at 10:56 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Congrats Pulasthi  !! :)

 On Wed, Feb 18, 2015 at 10:54 AM, Harsha Kumara hars...@wso2.com
 wrote:

 Congratulations Pulasthi!

 On Wed, Feb 18, 2015 at 10:38 AM, Lasitha Wattaladeniya 
 lasit...@wso2.com wrote:

 Congratulations pulasthi !!

 On Wed, Feb 18, 2015 at 10:13 AM, Anuja Herath an...@wso2.com wrote:

 Congratulations Pulasthi...!!!

 On Fri, Feb 13, 2015 at 10:58 PM, Gayan Gunawardana ga...@wso2.com
 wrote:

 Congratulations Pulasthi ..!

 On Fri, Feb 13, 2015 at 4:16 PM, Vijitha Ekanayake 
 vijit...@wso2.com wrote:

 Congratulations Pulasthi !!!

 On Fri, Feb 13, 2015 at 3:36 PM, Thanuja Jayasinghe 
 than...@wso2.com wrote:

 Congratz pulasthi

 On Fri, Feb 13, 2015 at 3:13 PM, Dakshika Jayathilaka 
 daksh...@wso2.com wrote:

 Congratulations Pulasthi!

 *Dakshika Jayathilaka*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911

 On Fri, Feb 13, 2015 at 3:03 PM, Prasanna Dangalla 
 prasa...@wso2.com wrote:

 Congratulations Pulasthi!


 On Fri, Feb 13, 2015 at 2:03 PM, Kasun De Silva kas...@wso2.com
  wrote:

 Congratz Pulasthi!!!

 *Kasun de Silva*
 Software Engineer | *WSO2 Inc.*; http://wso2.com
 lean.enterprise.middleware

 email   : kas...@wso2.com
 mobile : +94 77 794 4260


 On Fri, Feb 13, 2015 at 1:54 PM, Supun Sethunga 
 sup...@wso2.com wrote:

 Congratz Pulasthi !

 On Fri, Feb 13, 2015 at 1:09 PM, Darshana Gunawardana 
 darsh...@wso2.com wrote:

 Congratulations Pulasthi..!!

 On Fri, Feb 13, 2015 at 12:37 PM, Buddhima Wijeweera 
 buddh...@wso2.com wrote:

 Congratulations Pulasthi !!!

 On Fri, Feb 13, 2015 at 12:30 PM, Kalpa Welivitigoda 
 kal...@wso2.com wrote:

 Congratulations Pulasthi !

 On Fri, Feb 13, 2015 at 12:29 PM, Milinda Perera 
 milin...@wso2.com wrote:

 Congratulations Pulasthi ... :)

 On Fri, Feb 13, 2015 at 12:27 PM, Firzhan Naqash 
 firz...@wso2.com wrote:

 Congratulations Pulasthi

 Regards,
 Firzhan

 On Fri, Feb 13, 2015 at 12:23 PM, Jerad Rutnam 
 je...@wso2.com wrote:

 Congratulations Pulasthi! :)

 On Fri, Feb 13, 2015 at 12:19 PM, Johann Nallathamby 
 joh...@wso2.com wrote:

 Hi All,

 It's my pleasure to announce Pulasthi Mahawithana as a
 WSO2 Committer. Pulasthi has been a valuable
 contributor for WSO2 Identity Server product, and in 
 recognition of his
 contribution to WSO2, he has been voted as a
 WSO2 Committer.

 Pulasthi, congratulations and keep up the good work!

 Thanks  Regards.

 --
 Thanks  Regards,

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

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com
 http://nallaa.wordpress.com*

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




 --
 *Jerad Rutnam*
 *Software Engineer*

 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 77 959 1609 | E : je...@wso2.com | W :
 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




 --
 Milinda Perera
 Software Engineer;
 WSO2 Inc. http://wso2.com ,
 Mobile: (+94) 714 115 032


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




 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

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




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

 Mobile: +94 71 427 9966
 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




 --
 Regards,


 *Darshana Gunawardana*Software Engineer
 WSO2 Inc.; http://wso2.com

 *E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859*Lean . Enterprise .
 Middleware

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




 --
 *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] Please merge pull request

2015-02-19 Thread Dilshan Edirisuriya
Thanks Maheshika.

On Thu, Feb 19, 2015 at 3:47 PM, Maheshika Goonetilleke mahesh...@wso2.com
wrote:

 done.

 On Thu, Feb 19, 2015 at 3:27 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Maheshika, please release these orbits.

 On Thu, Feb 19, 2015 at 2:02 PM, Dilshan Edirisuriya dils...@wso2.com
 wrote:

 Hi Pulasthi,

 Is this in nexus now?

 Regards,

 Dilshan

 On Wed, Feb 18, 2015 at 5:11 PM, Dilshan Edirisuriya dils...@wso2.com
 wrote:

 Hi Pulasthi,

 Looks ok. Thank you.

 Regards,

 Dilshan

 On Wed, Feb 18, 2015 at 2:43 PM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Kishanthan,

 Tested and found no issues with IS.

 @Dilshan, Can you confirm with CDM?

 On Wed, Feb 18, 2015 at 10:03 AM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Also have you done a final test on these orbits (after all the
 changes) with the product?

 On Wed, Feb 18, 2015 at 9:38 AM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Kishanthan,

 I had missed that one, Corrected now.

 On Wed, Feb 18, 2015 at 9:33 AM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 So DynamicImport-Package * is needed for bcpkix-jdk15on?

 On Wed, Feb 18, 2015 at 12:00 AM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Kishanthan,

 Resolved the new comments and removed the dynamic imports. The
 previous comments had been resolved, but some are still visible since 
 they
 had no new changes to the commented line.

 On Tue, Feb 17, 2015 at 7:53 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 I still see dynamic imports in these orbits. If it is not needed
 you need to remove them. Also some comments that were added are not
 resolved yet.

 On Tue, Feb 17, 2015 at 6:12 PM, Dilshan Edirisuriya 
 dils...@wso2.com wrote:

 Hi Kishanthan/Maheshika,

 Can you please look into this since we have a dependencies to
 these orbit bundles as well for our next milestone which is due 
 this week.

 Regards,

 Dilshan

 On Tue, Feb 17, 2015 at 12:21 PM, Dilshan Edirisuriya 
 dils...@wso2.com wrote:

 As far as I can remember this does not need it. So we can
 remove it.

 Regards,

 Dilshan

 On Tue, Feb 17, 2015 at 12:16 PM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi,

 On Mon, Feb 16, 2015 at 7:50 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 I added some comments/concerns. Can you look into them?


 Corrected them. Thanks for pointing out.

 @ Dilshan,
 Removed dynamic imports from the initial versions of jscep and
 bcpkix, since I could not find any need for that in their 
 sources. Please
 comment if that is still needed.


 On Mon, Feb 16, 2015 at 12:27 PM, Pulasthi Mahawithana 
 pulast...@wso2.com wrote:

 Hi Sameera,

 Please review and merge [1]. It has updates to following

 1. Commons-IO - 2.4.0.wso2v1 - Required by JSCEP
 2. JSCEP - 2.0.2.wso2v2 - Updated with commons-io 2.4
 3. BCPKIX - 1.49.0.wso2v2 - Fix for signature validation
 issue (similar to what was done to bcprov)


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

 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




 --
 Dilshan Edirisuriya
 Senior Software Engineer - WSO2
 Mob: + 94 777878905
 http://wso2.com/
 https://www.linkedin.com/profile/view?id=50486426




 --
 Dilshan Edirisuriya
 Senior Software Engineer - WSO2
 Mob: + 94 777878905
 http://wso2.com/
 https://www.linkedin.com/profile/view?id=50486426




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




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

Re: [Dev] Upgrading the disruptor version in orbit to 3.3.0

2015-02-19 Thread Ramith Jayasinghe
do we have this uploaded to nexus? to me it looks like not.

On Thu, Feb 19, 2015 at 4:28 PM, Maheshika Goonetilleke mahesh...@wso2.com
wrote:

 Hi All

 Done.

 On Thu, Feb 19, 2015 at 3:32 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Maheshika, please release this orbit.

 On Thu, Feb 19, 2015 at 2:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 FYI.
 sent to wrong person.!

 -- Forwarded message --
 From: Ramith Jayasinghe ram...@wso2.com
 Date: Thu, Feb 19, 2015 at 2:19 PM
 Subject: Upgrading the disruptor version in orbit to 3.3.0
 To: WSO2 Developers' List dev@wso2.org
 Cc: Krishantha Samaraweera krishan...@wso2.com


 HI Krishantha,
 We would like to do $subject
 PR is at: https://github.com/wso2/orbit/pull/64
 could you review and merge?

 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan*




 --

 Thanks  Best Regards,

 Maheshika Goonetilleke
 Engineering Process Coordinator

 *WSO2 Inc*
 *email   : mahesh...@wso2.com mahesh...@wso2.com*
 *mobile : +94 773 596707 %2B94%20773%20596707*
 *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware







-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-02-19 Thread Rajeevan Vimalanathan
Hi,

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

[1] https://github.com/wso2/developer-studio/pull/42
[2] https://wso2.org/jira/browse/TOOLS-2674

Thanks,
Rajeevan

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

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


Re: [Dev] Issue with starting up WSO2 Carbon 4.3.0 - Waiting for required OSGiAxis2Service

2015-02-19 Thread Jagath Sisirakumara Ariyarathne
Hi,

Issue was with incorrect package path of Export-Package
in maven-bundle-plugin configuration and now it's working fine.

Thanks for the support.

On Thu, Feb 19, 2015 at 4:49 PM, Jagath Sisirakumara Ariyarathne 
jaga...@wso2.com wrote:

 Hi Danushka, Lasitha,

 Thanks for the information.

  I will check the exact error in osgi console.

 Thanks.

 On Thu, Feb 19, 2015 at 2:35 PM, Lasitha Wattaladeniya lasit...@wso2.com
 wrote:

 Hi jagath,

 check whether u have included the correct *registry* package imports in
 maven osgi bundle plugin config. May be that's why orderprocessorbackend is
 not resolving.

 eg:  plugins plugin groupIdorg.apache.felix/groupId artifactId
 maven-bundle-plugin/artifactId version1.4.0/version extensions
 true/extensions configuration instructions Bundle-SymbolicName
 ${project.artifactId}/Bundle-SymbolicName Bundle-Name
 ${project.artifactId}/Bundle-Name Export-Package
 /Export-Package Import-Package

 org.wso2.carbon.registry.core.* /Import-Package Carbon-Component
 UIBundle/Carbon-Component /instructions /configuration /plugin
 /plugins




 On Thu, Feb 19, 2015 at 2:11 PM, Danushka Fernando danush...@wso2.com
 wrote:

 This is because of some unreolved osgi dependency. Can you start the
 server with -DosgiConsole option and check the issue in osgi console.

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

 On Thu, Feb 19, 2015 at 1:47 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Adding more..

 This issue occurs only when the registry is used in the module.
 Otherwise it works fine.

 Thanks.

 On Thu, Feb 19, 2015 at 1:30 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Hi,

 I followed [1] to develop a carbon component and [2] to use registry
 in it. After that, when the carbon starts, it gives the below message
 continuously and does not start up. Here, orderprocessingbackend is the
 module which uses the registry.

 [2015-02-19 12:52:14,851]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization 
 is
 delayed due to the following unsatisfied items:
 [2015-02-19 12:52:14,852]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 OSGiAxis2Service: orderprocessingbackend-1.0.8
 [2015-02-19 12:53:14,850]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization 
 is
 delayed due to the following unsatisfied items:
 [2015-02-19 12:53:14,851]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 OSGiAxis2Service: orderprocessingbackend-1.0.8


 I used WSO2 Carbon 4.3.0 and added below dependency to the pom file.

 dependency
 groupIdorg.wso2.carbon/groupId
 artifactIdorg.wso2.carbon.registry.core/artifactId
 version4.3.0/version
 /dependency

 What would be the issue here?


 [1] -
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
 [2] -
 http://wso2.com/library/articles/2012/03/carbon-context-its-usages-wso2-products/

 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048




 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048


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



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




 --
 Lasitha Wattaladeniya
 Software Engineer
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94719397528
 Blog : techreadme.blogspot.com




 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048




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


Re: [Dev] Handling Throwable in catch block

2015-02-19 Thread Johann Nallathamby
I can't see any particular reason. +1 to fix it.

On Thu, Feb 19, 2015 at 4:28 PM, Gayan Gunawardana ga...@wso2.com wrote:

 Hi,

 In user core [1] JDBCUserStoreManager,  persistUser user method contains
 catching Throwable. In general catching Throwable is not a good practice
 because there may be some run time Errors like OutOfMemoryError which are
 not be able to handle. Is there any particular reason to catch Throwable?

 [1]
 https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/jdbc/JDBCUserStoreManager.java
 --
 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933




-- 
Thanks  Regards,

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

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


Re: [Dev] SS 1.5.0 Release Testing Status

2015-02-19 Thread Chaminda Jayawardena
Hi All,

We have completed with the release testing of *wso2ss1.5.0. *

Please find the test plan at [1] and reported issue in jira are here;[2]

[1].
https://docs.google.com/a/wso2.com/spreadsheets/d/1htdRqnWWjr6xa_1fUznSSX0e9R5EZwk-mklHgZvNkpQ/edit?usp=sharing
[2].
https://wso2.org/jira/issues/?filter=-4jql=project%20%3D%20SS%20AND%20issuetype%20%3D%20Bug%20ORDER%20BY%20createdDate%20DESC



On Tue, Feb 17, 2015 at 10:33 AM, Chaminda Jayawardena chami...@wso2.com
wrote:

 Hi All,

 Please find that below is the current status of the *SS 1.5.0 release
 testing*.

 Test results are here:
 https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0Aj1RxSLVRSX3dER3ckRJblM0WlRlT3FkTWZBVDFJRkEusp=sharing

 *Issue counts and status.*

 *Open Issues:* *1*
 *Postponed Issues:* *6*(Fixed Version: 2.0.0)
 *Fixed/To be verified:* *4*(fixes to be verified in next pack)

 Please respond on any concern of the above.

 On Sat, Feb 14, 2015 at 1:34 AM, Jaminda Batuwangala jami...@wso2.com
 wrote:

 Hi Shankar,

 There is a carbon patch release expected end of the week and if this is
 completed then we have no issue and can complete the release on Monday. If
 the carbon team is unable to get this completed, yes lets release with
 4.3.0 with a known issue and plan a patch release soon after.

 Regards,
 Jaminda

 On Fri, Feb 13, 2015 at 7:16 PM, Selvaratnam Uthaiyashankar 
 shan...@wso2.com wrote:

 Hi Jaminda,

 Please go ahead with releasing SS with Carbon 4.3.0. We can release a
 patch release later if needed.

 On Fri, Feb 13, 2015 at 1:02 AM, Jaminda Batuwangala jami...@wso2.com
 wrote:

 Thanks Kishanthan for the update. Will schedule SS release to be after
 Carbon 4.3.1. So will re-schedule for next week.

 Thanks,
 Jaminda

 On Thu, Feb 12, 2015 at 8:01 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 I'm working on formalising the process. This would take some time as
 we need to test the new approach. Will try to deliver this by end of this
 week.

 On Thu, Feb 12, 2015 at 4:01 PM, Jaminda Batuwangala jami...@wso2.com
  wrote:

 Hi Sameera/Kishanthan

 Are we in a position to conclude the support patching process and get
 the patch this week?
 We are bit stuck on the release and greatly appreciate your efforts
 on this.

 Regards,
 Jaminda


 On Wed, Feb 11, 2015 at 5:26 PM, Aparna Karunarathna apa...@wso2.com
  wrote:

 Hi All,

 SS is scheduled to released on this Friday(13th Feb), but QA team
 has observed secondary user creation issue in SS and reported under 
 carbon
 jira[1]. This might be a kernel patch to fix this issue.

 As per the discussion had with Sameera  carbon team, first they has
 to test the carbon 4.3 patching process and then to fix it.

 [1] https://wso2.org/jira/browse/CARBON-15142

 Regards,
 Aparna

 On Tue, Feb 10, 2015 at 11:55 PM, Chaminda Jayawardena 
 chami...@wso2.com wrote:

 Hi All,

 Please find the update on SS 1.5.0 release testing.

 We have covered the following high-level areas so far.

 1. RSS Manager
-Postgresql
-MySql
-MSSQL
-H2
 2. Cassandra Keyspaces
 3. Hadoop File System - Pending

 Test case document, find here [1]

 Below types and count of issues on [2] are in open status;
 Highest - 2
 High -10

 [1].
 https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0Aj1RxSLVRSX3dER3ckRJblM0WlRlT3FkTWZBVDFJRkEusp=sharing
 [2]. https://wso2.org/jira/issues/?jql=project%20%3D%20SS

 --
 Thanks  Regards

 *Chaminda Jayawardena*
 Senior Software Engineer - QA
 WSO2 Inc. - http://wso2.com
 +94-77-7725234

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




 --
 *Regards,*
 *Aparna Karunarathna.*


 *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533
 0714002533*




 --
 Jaminda Batuwangala,
 Director of Engineering; WSO2, Inc.;  http://wso2.com/
 email: jami...@wso2.com sanj...@wso2.com; cell: +94 77 308 2174
 Lean . Enterprise . Middleware




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 Jaminda Batuwangala,
 Director of Engineering; WSO2, Inc.;  http://wso2.com/
 email: jami...@wso2.com sanj...@wso2.com; cell: +94 77 308 2174
 Lean . Enterprise . Middleware




 --
 S.Uthaiyashankar
 VP Engineering
 WSO2 Inc.
 http://wso2.com/ - lean . enterprise . middleware

 Phone: +94 714897591




 --
 Jaminda Batuwangala,
 Director of Engineering; WSO2, Inc.;  http://wso2.com/
 email: jami...@wso2.com sanj...@wso2.com; cell: +94 77 308 2174
 Lean . Enterprise . Middleware




 --
 Thanks  Regards

 *Chaminda Jayawardena*
 Senior Software Engineer - QA
 WSO2 Inc. - http://wso2.com
 +94-77-7725234




-- 
Thanks  Regards

*Chaminda Jayawardena*
Senior Software Engineer - QA
WSO2 Inc. - http://wso2.com
+94-77-7725234

[Dev] [DSS] XSLT transformation not working

2015-02-19 Thread Anuruddha Premalal
Hi,

I'm Trying to remove duplicates from a data service result[1] using
XSLT[2]. This XSLT works when used with an online tool however it doesn't
work when this is applied in DSS [3] . Any idea on what's wrong here?.


[1] CustomersCollection xmlns=http://ws.wso2.org/dataservice;
   Customers
  Customer
 CustomerNameTom B. Erichsen/CustomerName
 Address111 Metropoliton avaenue/Address
 CityCharlotte/City
 PostalCode4006/PostalCode
 CountryUS/Country
  /Customer
  Customer
 CustomerNameTom B. Erichsen/CustomerName
 Address111 Metropoliton avaenue/Address
 CityCharlotte/City
 PostalCode4006/PostalCode
 CountryUS/Country
  /Customer
   /Customers
/CustomersCollection


[2] xsl:stylesheet version=2.0  xmlns:xsl=
http://www.w3.org/1999/XSL/Transform;
 xsl:output  method=xml omit-xml-declaration=yes indent=yes/
 xsl:template match=/*
 CustomersCollection xmlns=http://ws.wso2.org/dataservice/avid;
 xsl:for-each-group select=//*:Customers/*:Customer
group-by=//*:City
 xsl:sequence select=./
   /xsl:for-each-group
 /CustomersCollection
 /xsl:template
/xsl:stylesheet

[3] data name=SimpleAvidFederation_2 serviceNamespace=
http://ws.wso2.org/dataservice/avid;
   config id=mysql_ds
  property
name=org.wso2.ws.dataservice.drivercom.mysql.jdbc.Driver/property
  property
name=org.wso2.ws.dataservice.protocoljdbc:mysql://localhost:3306/aviddb_1/property
  property name=org.wso2.ws.dataservice.userroot/property
  property name=org.wso2.ws.dataservice.passwordroot/property
   /config
   config id=default
  property name=carbon_datasource_nameavid_postgres_2/property
   /config
   operation name=find_customer_purchases
  call-query href=federate_find_query
 with-param name=CustomerId query-param=CustomerId/
  /call-query
   /operation
   query id=federate_find_query useConfig=default
  sqlSELECT CustomerName, Address, City, PostalCode, Country FROM
Customers WHERE CustomerId = ? /sql
  param name=CustomerId ordinal=1 paramType=SCALAR
sqlType=STRING type=IN/
  result defaultNamespace=http://ws.wso2.org/dataservice/avid;
element=CustomersCollection rowName=Customers
xsltPath=./samples/xslt/transform_2.xslt
 call-query href=select_customer_by_id_1
with-param name=CustomerId query-param=CustomerId/
 /call-query
 call-query href=select_customer_by_id_2
with-param name=CustomerId query-param=CustomerId/
 /call-query
  /result
   /query
   query id=select_customer_by_id_1 useConfig=default
  sqlSELECT CustomerName, Address, City, PostalCode, Country FROM
Customers WHERE CustomerId = ? /sql
  param name=CustomerId ordinal=1 paramType=SCALAR
sqlType=STRING type=IN/
  result rowName=Customer
 element column=CustomerName name=CustomerName
xsdType=xs:string/
 element column=Address name=Address xsdType=xs:string/
 element column=City name=City xsdType=xs:string/
 element column=PostalCode name=PostalCode
xsdType=xs:string/
 element column=Country name=Country xsdType=xs:string/
  /result
   /query
   query id=select_customer_by_id_2 useConfig=mysql_ds
  sqlSELECT CustomerName, Address, City, PostalCode, Country FROM
Customers WHERE CustomerId = ? /sql
  param name=CustomerId ordinal=1 paramType=SCALAR
sqlType=STRING type=IN/
  result rowName=Customer
 element column=CustomerName name=CustomerName
xsdType=xs:string/
 element column=Address name=Address xsdType=xs:string/
 element column=City name=City xsdType=xs:string/
 element column=PostalCode name=PostalCode
xsdType=xs:string/
 element column=Country name=Country xsdType=xs:string/
  /result
   /query
   resource method=GET path=Purchases/{CustomerId}
  call-query href=federate_find_query
 with-param name=CustomerId query-param=CustomerId/
  /call-query
   /resource
/data

Regards,
-- 
*Anuruddha Premalal*
Software Eng. | WSO2 Inc.
Mobile : +94710461070
Web site : www.regilandvalley.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Exception when trying to insert data through the created carbon component

2015-02-19 Thread Amal Gunatilake
Hi Thusitha,

First of all Axis2 supports JavaBeans and therefore you need to adhere to
JavaBeans standards when using it. Please have a look at JavaBeans
Conventions in [1]
http://en.wikipedia.org/wiki/JavaBeans#JavaBean_conventions. There it
states The class must have a public default constructor
http://en.wikipedia.org/wiki/Default_constructor (with no arguments).
This allows easy instantiation within editing and activation frameworks.

I hope this answers your both questions. :)

[1] http://en.wikipedia.org/wiki/JavaBeans#JavaBean_conventions

Thank you,
Amal.

On Fri, Feb 20, 2015 at 1:54 AM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi,

 I tried to invoke the add method using the SoapUI. But I got a Soap fault.
 In my Item class constructor is in *public Item(int id, String name,
 float price)* I didn't had a default no arg constructor in the class.
 When I put the default constructor to the item class everything works fine.

 I have few points that I like to get clarify

 *1. *When I didn't had the default constructor and trying to create an
 Item from the jsp with custom constructor as Item item2 = new Item(12, Custom
 Item, 125.30);
 I got following compilation error.


 *PWC6199: Generated servlet error:**The constructor Item(int, String,
 double) is undefined*


  But I'm able to create Item instance as Item item2 = new Item(); and
 then set the values using setters.
  Is this the expected outcome when generating the stub from WSDL2Java ?

 *2. *Should we always specify the default no args constructor, if we
 overload the constructor?

 Best Regards
 /Thusitha


 On Thu, Feb 19, 2015 at 4:52 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Amal, Gayashan,

 Thanks for your responses. I will try out your suggestions and see if I
 will be able to get it solve.


 Regards
 /Thusitha

 On Thu, Feb 19, 2015 at 3:42 PM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Hi Thusitha,

 Here you are calling the service via client who calls the service stub.
 In that case the item pojo you are trying to insert should be the same
 object as the one in the WSDL contract. Can you check if it's the same
 object?

 Thanks.
 /Gayashan

 On Thu, Feb 19, 2015 at 9:45 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi,

 I'm trying to create a Carbon component based on the [1]. I was able to
 get the list of orders successfully. But when I'm trying to add a new
 Order, I'm getting an Exception
 Here is the stack-trace.


 org.apache.axis2.AxisFault:
 org.wso2.training.carbon.order.mgt.data.Item
 at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.training.carbon.order.mgt.stub.OrderManagerStub.addOrder(OrderManagerStub.java:736)
 at
 org.wso2.training.carbon.order.mgt.ui.OrderManagerClient.addOrder(OrderManagerClient.java:67)
 at
 org.apache.jsp.order_002dmgt.index_jsp._jspService(org.apache.jsp.order_002dmgt.index_jsp:100)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(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.doInclude(ApplicationDispatcher.java:605)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
 

Re: [Dev] [Stratos] CloudControllerServiceCartridgeNotFoundExceptionException when adding the application

2015-02-19 Thread Udara Liyanage
Hi Mari,

Issue still exist in other IaaSes such as Openstack. Need to fix them too.

On Wed, Feb 18, 2015 at 3:55 PM, Mariangela Hills mariang...@wso2.com
wrote:

 This has been fixed in [1]. Thanks, for reporting!

 [1] https://issues.apache.org/jira/browse/STRATOS-1198

 Regards,
 Mariangela




 *--*
 Mariangela Hills
 Senior Technical Writer

 *WSO2, Inc.*lean.enterprise.middleware.
 m: +94 773 500185
 w: http://wso2.com
 http://wso2.com/events/

 On Wed, Feb 18, 2015 at 2:34 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi Mari,

 There was an mistake in the doc mentioned. It should deploy php cartridge
 instead of tomcat.

 On Wed, Feb 18, 2015 at 2:33 PM, Sajith Abeywardhana saji...@wso2.com
 wrote:

 Hi Udara,

 Yes, Application refers to php cartilage, but stratos do have only
 tomcat cartilage. I suggest your team to correct the document. In 4th
 number curl command should execute the php.json file instead of tomcat.json
 as you pointed out.


 *Sajith Abeywardhana* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka.
 Mobile: +94772260485
 Email: saji...@wso2.com mahe...@wso2.com | Web: www.wso2.com

 On Wed, Feb 18, 2015 at 2:12 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 It seems the cartridge you refereed in your application is not added.
 Can you share your artefacts.

 On Wed, Feb 18, 2015 at 1:59 PM, Sajith Abeywardhana saji...@wso2.com
 wrote:

 Hi All,

 I'm trying to deploy an application in PaaS 4.1.0 as for this
 documentation [1]. When I execute the 5th number curl command I got the
 below exception.

 [1] -
 https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Single+Cartridge+on+Mock+IaaS


 [2015-02-18 13:40:15,296]  INFO
 {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
  Adding application: [application-id] single-cartridge-app
 [2015-02-18 13:40:15,361]  INFO
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
  'admin@carbon.super [-1234]' logged in at [2015-02-18
 13:40:15,361+0530]
 [2015-02-18 13:40:15,391]  INFO
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
  'admin@carbon.super [-1234]' logged in at [2015-02-18
 13:40:15,391+0530]
 [2015-02-18 13:40:15,405]  INFO
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
  'admin@carbon.super [-1234]' logged in at [2015-02-18
 13:40:15,405+0530]
 [2015-02-18 13:40:15,432]  INFO
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
  'admin@carbon.super [-1234]' logged in at [2015-02-18
 13:40:15,432+0530]
 [2015-02-18 13:40:15,461]  INFO
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
  'admin@carbon.super [-1234]' logged in at [2015-02-18
 13:40:15,461+0530]
 [2015-02-18 13:40:16,097] ERROR
 {org.apache.stratos.autoscaler.client.CloudControllerClient} -
  CloudControllerServiceCartridgeNotFoundExceptionException
 org.apache.stratos.cloud.controller.stub.CloudControllerServiceCartridgeNotFoundExceptionException:
 CloudControllerServiceCartridgeNotFoundExceptionException
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 at java.lang.Class.newInstance0(Class.java:357)
 at java.lang.Class.newInstance(Class.java:310)
 at
 org.apache.stratos.cloud.controller.stub.CloudControllerServiceStub.getCartridgeInfo(CloudControllerServiceStub.java:4171)
 at
 org.apache.stratos.autoscaler.client.CloudControllerClient.getCartrdgeInformation(CloudControllerClient.java:316)
 at
 org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.getCartridge(DefaultApplicationParser.java:887)
 at
 org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.createClusterDataMap(DefaultApplicationParser.java:461)
 at
 org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.parseLeafLevelSubscriptions(DefaultApplicationParser.java:340)
 at
 org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.buildCompositeAppStructure(DefaultApplicationParser.java:299)
 at
 org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.parse(DefaultApplicationParser.java:104)
 at
 org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl.addApplication(AutoscalerServiceImpl.java:202)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
 at
 

Re: [Dev] [Status update] Platform automation test - Cross products Single Sign-on with SAML 2.0 Auto test

2015-02-19 Thread Krishantha Samaraweera
On Fri, Feb 20, 2015 at 12:03 PM, Dharshana Warusavitharana 
dharsha...@wso2.com wrote:

 I think its not practical to get code coverage in platform tests. Since
 there is always be an option to be all servers remote.


We can do this, If proper deployment automation in place. Its a matter of
instrumenting all packs and collecting coverage dump files back after test
execution.

Thanks,
Krishantha.


 Thank you,
 Dharshana.

 On Fri, Feb 20, 2015 at 1:21 AM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Yes. We can aggregate multiple coverage reports and create a one report.
 But the problem is that We have to instrument the JAR file before starting
 the Distributed setup. I guess, Since this is platform test, Platform is
 already up and running. if so We have to instrument the JAR inside the
 server first before starting the servers.

 Thanks,
 Nuwanw

 On Wed, Feb 18, 2015 at 4:37 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Nuwan,

 On Wed, Feb 18, 2015 at 5:49 PM, Nuwan Dias nuw...@wso2.com wrote:

 Nice work.

 @Krishantha I have a question regarding getting code coverage for
 these. Since these are platform scenarios and don't execute at build time,
 is there a way we can find out the exact code coverage of all the test
 scenarios?


 We can merge the two reports and generate aggregated coverage report.
 This was already done for products like ESB with multiple test modules.

 However, in a distributed APIM setup merging reports will be bit
 difficult which we need to improve in future.

 For the time being we can merge the reports and generate coverage
 manually.

 Thanks,
 Krishantha.


 Currently the only comprehensive coverage comes from the tests that run
 at build time and we don't actually know the coverage as a whole (which
 includes the UI and platform scenarios).

 Thanks,
 NuwanD.

 On Wed, Feb 18, 2015 at 5:20 PM, Dimuthu De Lanerolle 
 dimut...@wso2.com wrote:

 We have completed writing the above cross products (APIM  IS)  test
 case scenario and the test case covers the following sequence.

 1. Publisher SSO login  verifications
 2. Creating a sample API
 3. Change API state from created to published  verify the API details
 4. Verify avoidance of repeat authentication for APIM /store  related
 verifications


 Regards



 On Tue, Feb 17, 2015 at 11:27 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 [adding dev]

 Thanks,
 Krishantha.

 On Tue, Feb 17, 2015 at 11:11 PM, Dimuthu De Lanerolle 
 dimut...@wso2.com wrote:

 Hi Krishantha,

 test scenario for [1]

 APIM wso2is-5.0.0
 IS wso2am-1.9.0

 [1] https://docs.wso2.com/display/AM180/Configuring+Single+Sign-on


 Basic cross products test scenario contains the following steps.

 1. Invoke a http client call to publisher login.
 2. Verify http response status codes and whether the SAML based SSO
 authentication was successful / unsuccessful ( Verify Login page / API 
 Index page details.)
 3. Verify avoidance of repeat authentication for APIM /store.

 Following steps  were automated to-date.

 1. HTTP call for /publisher
 2. Invocation calls for samlsso endpoint
 3. calls on commonauth endpoints
 4. jaggery_acs jag related re-directions
 5. /publisher login  index page verifications

 I am currently working on automating the APIM .. /store related
 steps.


 Regards

 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email :
 dimut...@wso2.com




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




 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com





 --
 Nuwan Dias

 Associate Tech Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729




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




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

 phone: +94 71 668 4620




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




 --

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

 lean . enterprise . middleware




-- 
Krishantha Samaraweera

Re: [Dev] [CEP] Error in running Geo Spacial Data Analysis-GeoIsWithin sample

2015-02-19 Thread Awanthika Senarath
Hi Bhashinee,

verify whether you have the jts jar in the jars you copied to libs and if
you already do try [1]. That answer is not marked though.. Also you can
read through [2]

[1]
http://stackoverflow.com/questions/16770576/solr-4-spatial-class-not-found-com-vividsolutions-jts-geom-geometry

[2] https://www.drupal.org/node/2038133


regards
Awanthika


On Fri, Feb 20, 2015 at 11:44 AM, Bhashinee Nirmali bhashin...@gmail.com
wrote:

 Hi All,

 I am trying to run the Geo Spacial Data Analysis using WSO2 CEP[1]
 GeoIsWithin sample. I have done the following.

 1. Downloaded the siddhi extention from the repo[2]
 2. Built the GeoIsWithin extention using mvn install and built the
 geo-within-1.0-SNAPSHOT.jar
 3. Copied the jar file to the \repository\components\lib
 4. Added the fully qualified class name to the siddhi.extension file
 located at \repository\conf\siddhi
 5. Started the WSO2 CEP server
 6. Created the relevant input/output streams and added the following query
 as an execution plan.

 from
 dataIn[geo:iswithin(meta_longitude,meta_latitude,{'type':'Polygon','coordinates':[[[79.8564863204956,6.947045831920686],[79.85642194747923,6.946747629898817],[79.8564863204956,6.947045831920686]]]})==true]#transform.geo:subscribeExecutionPlan()
 select meta_phoneID , meta_latitude, meta_longitude,meta_speed
 insert into dataOut;

 But when I validate the query expression, it doesn't get added and
 following error[3] could be seen in the terminal.

 Can anyone please tell me where am I doing wrong?

 Thank you.

 Bhashinee Nirmali
 Faculty of Information Technology
 University of Moratuwa.


 [1]
 http://wso2.com/library/articles/2015/01/article-geo-spatial-data-analysis-using-wso2-complex-event-processor-0/
 [2] https://github.com/wso2-gpl/siddhi/tree/master/siddhi-extensions/geo
 [3]

 [2015-02-20 11:22:04,748] ERROR - {RPCMessageReceiver}
  com/vividsolutions/jts/geom/Geometry
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
 at
 org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
 at
 org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
 at
 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
 at
 org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
 at
 org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
 at
 org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.carbon.event.processor.stub.EventProcessorAdminServiceStub.validateSiddhiQueries(EventProcessorAdminServiceStub.java:830)
 at
 org.apache.jsp.eventprocessor.validate_005fsiddhi_005fqueries_005fajaxprocessor_jsp._jspService(validate_005fsiddhi_005fqueries_005fajaxprocessor_jsp.ja
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at
 org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 

Re: [Dev] [CEP] Error in running Geo Spacial Data Analysis-GeoIsWithin sample

2015-02-19 Thread Bhashinee Nirmali
Hi,

I tried to build the geo-proximity-operation. But got the following error
[1].


Thank you.

[1]

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model
for
org.wso2.cep:geo-proximity:bundle:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for
org.apache.felix:maven-bundle-plugi
n is missing. @ line 76, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support
buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO]

[INFO] Building Siddhi Extension - Geo Proximity operation 0.0.1-SNAPSHOT
[INFO]

[WARNING] The POM for org.geotools:gt-shapefile:jar:12-SNAPSHOT is missing,
no d
ependency information available
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 2.717 s
[INFO] Finished at: 2015-02-20T12:13:44-08:00
[INFO] Final Memory: 9M/111M
[INFO]

[ERROR] Failed to execute goal on project geo-proximity: Could not resolve
depen
dencies for project org.wso2.cep:geo-proximity:bundle:0.0.1-SNAPSHOT:
Failure to
 find org.geotools:gt-shapefile:jar:12-SNAPSHOT in
http://dist.wso2.org/maven2 w
as cached in the local repository, resolution will not be reattempted until
the
update interval of wso2-maven2-repository 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
swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException


On Thu, Feb 19, 2015 at 10:43 PM, Rajeev Sampath raje...@wso2.com wrote:

 This extension is built as an osgi bundle. So place it in
 repository/components/dropins (remove it from lib and also the existing
 osgi copy which is added by cep from dropins)
 Also if the extension jar doesn't include the relevant dependencies for 
 com.vividsolutions.jts.geom.*
 etc you'll have to copy those libs separately to lib directory.

 Thanks
 Rajeev

 On Fri, Feb 20, 2015 at 11:44 AM, Bhashinee Nirmali bhashin...@gmail.com
 wrote:

 Hi All,

 I am trying to run the Geo Spacial Data Analysis using WSO2 CEP[1]
 GeoIsWithin sample. I have done the following.

 1. Downloaded the siddhi extention from the repo[2]
 2. Built the GeoIsWithin extention using mvn install and built the
 geo-within-1.0-SNAPSHOT.jar
 3. Copied the jar file to the \repository\components\lib
 4. Added the fully qualified class name to the siddhi.extension file
 located at \repository\conf\siddhi
 5. Started the WSO2 CEP server
 6. Created the relevant input/output streams and added the following
 query as an execution plan.

 from
 dataIn[geo:iswithin(meta_longitude,meta_latitude,{'type':'Polygon','coordinates':[[[79.8564863204956,6.947045831920686],[79.85642194747923,6.946747629898817],[79.8564863204956,6.947045831920686]]]})==true]#transform.geo:subscribeExecutionPlan()
 select meta_phoneID , meta_latitude, meta_longitude,meta_speed
 insert into dataOut;

 But when I validate the query expression, it doesn't get added and
 following error[3] could be seen in the terminal.

 Can anyone please tell me where am I doing wrong?

 Thank you.

 Bhashinee Nirmali
 Faculty of Information Technology
 University of Moratuwa.


 [1]
 http://wso2.com/library/articles/2015/01/article-geo-spatial-data-analysis-using-wso2-complex-event-processor-0/
 [2] https://github.com/wso2-gpl/siddhi/tree/master/siddhi-extensions/geo
 [3]

 [2015-02-20 11:22:04,748] ERROR - {RPCMessageReceiver}
  com/vividsolutions/jts/geom/Geometry
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
 at
 org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
 at
 org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
 at
 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
 at 

Re: [Dev] Create data service inside ESB integration test

2015-02-19 Thread Vijitha Ekanayake
Hi Kishantha,

I'll try with your suggestions and give an update.

Thanks.

On Fri, Feb 20, 2015 at 12:32 PM, Krishantha Samaraweera 
krishan...@wso2.com wrote:

 Hi Vijitha,

 You can refer DSS integration tests to get an idea of creating data
 service [1].

 For feature installation please refer below code snippet. You need to
 define feature repo URL in automation.properties and refer it. And try to
 avoid hard coding feature version numbers. You might be able to use
 FeatureManagementAdminServiceClient to get the latest version of a
 feature.

 private static String featureRepoName = carbon 4.1.3 repo;
 private static String hl7Vesrion = 4.1.3;
 private static String hl7FeatureID = org.wso2.carbon.transports.hl7;


 @BeforeClass(alwaysRun = true)
 public void init() throws Exception {
 super.init();
 String featureRepoLocation = //need to read though
 automation.properties file.
 serverConfigurationManager = new
 ServerConfigurationManager(esbServer.getBackEndUrl());
 serverConfigurationManager.applyConfiguration(new
 File(getESBResourceLocation() + File.separator + hl7Transport +
 File.separator + axis2.xml));
 featureClient = new
 FeatureManagementAdminServiceClient(esbServer.getSessionCookie(),
 esbServer.getBackEndUrl());
 featureClient.addRepository(featureRepoLocation, featureRepoName);
 featureClient.installFeature(hl7FeatureID, hl7Vesrion);
 serverConfigurationManager.restartGracefully();
 super.init();
 }

 Thanks,
 Krishantha.

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/dss/3.2.2/modules/integration/tests/src/test/java/org/wso2/carbon/dss/samples/test/

 On Wed, Feb 18, 2015 at 6:17 PM, Vijitha Ekanayake vijit...@wso2.com
 wrote:

 Hi Krishantha,

 Following are the steps that involves with the use.

 1. Install data services server feature in ESB.
 2. Create a new data service
 3. Invoke the created data service from callout mediator with local
 transport inside a RestAPI

 For the moment I've created a mock service which is similar to stockquote
 service and invoked using callout mediator with local transport to automate
 the local transport scenario with callout mediator.

 *Following is the RestAPI configuration used invoke data service.*

 ?xml version=1.0 encoding=UTF-8?
 api xmlns=http://ws.apache.org/ns/synapse;
  name=ProvaRestApiDecodifica
  context=/wso001/services/provarest
resource methods=GET url-mapping=/deploymentstatus
   inSequence
  property name=NO_ENTITY_BODY scope=axis2 action=remove/
  log level=full
 property name=step
 value=API_internal_readDeploymentStatusList BEGIN/
  /log
  property name=FORCE_ERROR_ON_SOAP_FAULT
value=true
scope=default
type=STRING/
  payloadFactory media-type=xml
 format
org:readDeploymentStatusList xmlns:org=
 http://org.csi.yucca/
 /format
 args/
  /payloadFactory
  log level=full
 property name=step
   value=API_internal_readDeploymentStatusList
 CALLOUT/
 property name=BODY expression=$body/child::*/
  /log
 * callout serviceURL=local:///services/MyDataService/*
 *  action=readDeploymentStatusList*
 *source
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/
 http://schemas.xmlsoap.org/soap/envelope/*
 *xmlns:org=http://org.csi.yucca
 http://org.csi.yucca*
 *xpath=$body/child::*/*
 *target
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/
 http://schemas.xmlsoap.org/soap/envelope/*
 *xmlns:org=http://org.csi.yucca
 http://org.csi.yucca*
 *xpath=$body/child::*/*
 * /callout*
  log level=full
 property name=step
 value=API_internal_readDeploymentStatusList DOPO CALLOUT/
  /log
  loopback description=end/
   /inSequence
   outSequence
  property name=messageType
value=application/json
scope=axis2
type=STRING/
  log level=full
 property name=step
 value=API_internal_readDeploymentStatusList END/
  /log
  send/
   /outSequence
   faultSequence
  log level=full
 property name=STEP
   value=ERROR
 $/
  /log
  property name=messageType
value=application/json
scope=axis2
type=STRING/
  property name=NO_ENTITY_BODY scope=axis2 action=remove/
  property name=HTTP_SC value=500 scope=axis2
 type=STRING/
  payloadFactory media-type=json
 format{   error_code: YuccaInternaApiException,
 

Re: [Dev] Error when building the Student-Manager Carbon Component

2015-02-19 Thread Jagath Sisirakumara Ariyarathne
Hi,

Also check whether the correct jar file is available in below configured
path.

pathelement
location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
/

Thanks.

On Fri, Feb 20, 2015 at 12:47 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 Could you try adding wsdl4j as a dependency and check.

 [1] http://grepcode.com/search/?query=javax/wsdl

 On Fri, Feb 20, 2015 at 12:33 PM, Shenavi de Mel shen...@wso2.com wrote:

 Hi Team,

 I am currently following the tutorial [1] on building a carbon component,
 After creating the stub components and building, the build is successful
 but it generates the error below. Is there anything to be done to resolve
 this error?
 I have also attached the pom file of the stub module and the WSDL file
 for your reference.


 [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @
 org.wso2.carbon.student.mgt.stub ---
 [INFO] Executing tasks
  [java] Exception in thread main java.lang.NoClassDefFoundError:
 javax/wsdl/WSDLException
  [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
  [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
  [java] Caused by: java.lang.ClassNotFoundException:
 javax.wsdl.WSDLException
  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  [java] at java.security.AccessController.doPrivileged(Native Method)
  [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  [java] at
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  [java] ... 2 more
  [java] Java Result: 1
 [INFO] Executed tasks

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

 Thanks  Best Regards
 *Shenavi de Mel*
 Software Engineer
 WSO2 Inc: http://wso2.com
 email: shen...@wso2.com
 mobile:+94771244470


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




 --

 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




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


Re: [Dev] Handling Throwable in catch block

2015-02-19 Thread Udara Liyanage
+1 for fixing, catching Throwable is not a good practice unless it is
highly needed

On Thu, Feb 19, 2015 at 6:07 PM, Johann Nallathamby joh...@wso2.com wrote:

 I can't see any particular reason. +1 to fix it.

 On Thu, Feb 19, 2015 at 4:28 PM, Gayan Gunawardana ga...@wso2.com wrote:

 Hi,

 In user core [1] JDBCUserStoreManager,  persistUser user method contains
 catching Throwable. In general catching Throwable is not a good practice
 because there may be some run time Errors like OutOfMemoryError which
 are not be able to handle. Is there any particular reason to catch
 Throwable?

 [1]
 https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/jdbc/JDBCUserStoreManager.java
 --
 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933




 --
 Thanks  Regards,

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

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*

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




-- 

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] Error when building the Student-Manager Carbon Component

2015-02-19 Thread Udara Liyanage
Hi,

Could you try adding wsdl4j as a dependency and check.

[1] http://grepcode.com/search/?query=javax/wsdl

On Fri, Feb 20, 2015 at 12:33 PM, Shenavi de Mel shen...@wso2.com wrote:

 Hi Team,

 I am currently following the tutorial [1] on building a carbon component,
 After creating the stub components and building, the build is successful
 but it generates the error below. Is there anything to be done to resolve
 this error?
 I have also attached the pom file of the stub module and the WSDL file for
 your reference.


 [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @
 org.wso2.carbon.student.mgt.stub ---
 [INFO] Executing tasks
  [java] Exception in thread main java.lang.NoClassDefFoundError:
 javax/wsdl/WSDLException
  [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
  [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
  [java] Caused by: java.lang.ClassNotFoundException:
 javax.wsdl.WSDLException
  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  [java] at java.security.AccessController.doPrivileged(Native Method)
  [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  [java] at
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  [java] ... 2 more
  [java] Java Result: 1
 [INFO] Executed tasks

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

 Thanks  Best Regards
 *Shenavi de Mel*
 Software Engineer
 WSO2 Inc: http://wso2.com
 email: shen...@wso2.com
 mobile:+94771244470


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




-- 

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] [CEP] Error in running Geo Spacial Data Analysis-GeoIsWithin sample

2015-02-19 Thread Rajeev Sampath
This extension is built as an osgi bundle. So place it in
repository/components/dropins (remove it from lib and also the existing
osgi copy which is added by cep from dropins)
Also if the extension jar doesn't include the relevant dependencies
for com.vividsolutions.jts.geom.*
etc you'll have to copy those libs separately to lib directory.

Thanks
Rajeev

On Fri, Feb 20, 2015 at 11:44 AM, Bhashinee Nirmali bhashin...@gmail.com
wrote:

 Hi All,

 I am trying to run the Geo Spacial Data Analysis using WSO2 CEP[1]
 GeoIsWithin sample. I have done the following.

 1. Downloaded the siddhi extention from the repo[2]
 2. Built the GeoIsWithin extention using mvn install and built the
 geo-within-1.0-SNAPSHOT.jar
 3. Copied the jar file to the \repository\components\lib
 4. Added the fully qualified class name to the siddhi.extension file
 located at \repository\conf\siddhi
 5. Started the WSO2 CEP server
 6. Created the relevant input/output streams and added the following query
 as an execution plan.

 from
 dataIn[geo:iswithin(meta_longitude,meta_latitude,{'type':'Polygon','coordinates':[[[79.8564863204956,6.947045831920686],[79.85642194747923,6.946747629898817],[79.8564863204956,6.947045831920686]]]})==true]#transform.geo:subscribeExecutionPlan()
 select meta_phoneID , meta_latitude, meta_longitude,meta_speed
 insert into dataOut;

 But when I validate the query expression, it doesn't get added and
 following error[3] could be seen in the terminal.

 Can anyone please tell me where am I doing wrong?

 Thank you.

 Bhashinee Nirmali
 Faculty of Information Technology
 University of Moratuwa.


 [1]
 http://wso2.com/library/articles/2015/01/article-geo-spatial-data-analysis-using-wso2-complex-event-processor-0/
 [2] https://github.com/wso2-gpl/siddhi/tree/master/siddhi-extensions/geo
 [3]

 [2015-02-20 11:22:04,748] ERROR - {RPCMessageReceiver}
  com/vividsolutions/jts/geom/Geometry
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
 at
 org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
 at
 org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
 at
 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
 at
 org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
 at
 org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
 at
 org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.carbon.event.processor.stub.EventProcessorAdminServiceStub.validateSiddhiQueries(EventProcessorAdminServiceStub.java:830)
 at
 org.apache.jsp.eventprocessor.validate_005fsiddhi_005fqueries_005fajaxprocessor_jsp._jspService(validate_005fsiddhi_005fqueries_005fajaxprocessor_jsp.ja
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at
 org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 

Re: [Dev] Create data service inside ESB integration test

2015-02-19 Thread Krishantha Samaraweera
Hi Vijitha,

You can refer DSS integration tests to get an idea of creating data service
[1].

For feature installation please refer below code snippet. You need to
define feature repo URL in automation.properties and refer it. And try to
avoid hard coding feature version numbers. You might be able to use
FeatureManagementAdminServiceClient to get the latest version of a feature.

private static String featureRepoName = carbon 4.1.3 repo;
private static String hl7Vesrion = 4.1.3;
private static String hl7FeatureID = org.wso2.carbon.transports.hl7;


@BeforeClass(alwaysRun = true)
public void init() throws Exception {
super.init();
String featureRepoLocation = //need to read though
automation.properties file.
serverConfigurationManager = new
ServerConfigurationManager(esbServer.getBackEndUrl());
serverConfigurationManager.applyConfiguration(new
File(getESBResourceLocation() + File.separator + hl7Transport +
File.separator + axis2.xml));
featureClient = new
FeatureManagementAdminServiceClient(esbServer.getSessionCookie(),
esbServer.getBackEndUrl());
featureClient.addRepository(featureRepoLocation, featureRepoName);
featureClient.installFeature(hl7FeatureID, hl7Vesrion);
serverConfigurationManager.restartGracefully();
super.init();
}

Thanks,
Krishantha.

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/dss/3.2.2/modules/integration/tests/src/test/java/org/wso2/carbon/dss/samples/test/

On Wed, Feb 18, 2015 at 6:17 PM, Vijitha Ekanayake vijit...@wso2.com
wrote:

 Hi Krishantha,

 Following are the steps that involves with the use.

 1. Install data services server feature in ESB.
 2. Create a new data service
 3. Invoke the created data service from callout mediator with local
 transport inside a RestAPI

 For the moment I've created a mock service which is similar to stockquote
 service and invoked using callout mediator with local transport to automate
 the local transport scenario with callout mediator.

 *Following is the RestAPI configuration used invoke data service.*

 ?xml version=1.0 encoding=UTF-8?
 api xmlns=http://ws.apache.org/ns/synapse;
  name=ProvaRestApiDecodifica
  context=/wso001/services/provarest
resource methods=GET url-mapping=/deploymentstatus
   inSequence
  property name=NO_ENTITY_BODY scope=axis2 action=remove/
  log level=full
 property name=step
 value=API_internal_readDeploymentStatusList BEGIN/
  /log
  property name=FORCE_ERROR_ON_SOAP_FAULT
value=true
scope=default
type=STRING/
  payloadFactory media-type=xml
 format
org:readDeploymentStatusList xmlns:org=
 http://org.csi.yucca/
 /format
 args/
  /payloadFactory
  log level=full
 property name=step
   value=API_internal_readDeploymentStatusList
 CALLOUT/
 property name=BODY expression=$body/child::*/
  /log
 * callout serviceURL=local:///services/MyDataService/*
 *  action=readDeploymentStatusList*
 *source
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/
 http://schemas.xmlsoap.org/soap/envelope/*
 *xmlns:org=http://org.csi.yucca
 http://org.csi.yucca*
 *xpath=$body/child::*/*
 *target
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/
 http://schemas.xmlsoap.org/soap/envelope/*
 *xmlns:org=http://org.csi.yucca
 http://org.csi.yucca*
 *xpath=$body/child::*/*
 * /callout*
  log level=full
 property name=step
 value=API_internal_readDeploymentStatusList DOPO CALLOUT/
  /log
  loopback description=end/
   /inSequence
   outSequence
  property name=messageType
value=application/json
scope=axis2
type=STRING/
  log level=full
 property name=step
 value=API_internal_readDeploymentStatusList END/
  /log
  send/
   /outSequence
   faultSequence
  log level=full
 property name=STEP
   value=ERROR $/
  /log
  property name=messageType
value=application/json
scope=axis2
type=STRING/
  property name=NO_ENTITY_BODY scope=axis2 action=remove/
  property name=HTTP_SC value=500 scope=axis2 type=STRING/
  payloadFactory media-type=json
 format{   error_code: YuccaInternaApiException,
 error_message: $1,   error_detail:   }/format
 args
arg evaluator=xml
 expression=get-property('ERROR_MESSAGE')/
 /args
  /payloadFactory
  log 

Re: [Dev] [Status update] Platform automation test - Cross products Single Sign-on with SAML 2.0 Auto test

2015-02-19 Thread Krishantha Samaraweera
Hi DimuthuD,

On Wed, Feb 18, 2015 at 5:20 PM, Dimuthu De Lanerolle dimut...@wso2.com
wrote:

 We have completed writing the above cross products (APIM  IS)  test case
 scenario and the test case covers the following sequence.

 1. Publisher SSO login  verifications
 2. Creating a sample API
 3. Change API state from created to published  verify the API details
 4. Verify avoidance of repeat authentication for APIM /store  related
 verifications


 Did you cover the same scenario for tenant mode ?

Thanks,
Krishantha.



 Regards



 On Tue, Feb 17, 2015 at 11:27 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 [adding dev]

 Thanks,
 Krishantha.

 On Tue, Feb 17, 2015 at 11:11 PM, Dimuthu De Lanerolle dimut...@wso2.com
  wrote:

 Hi Krishantha,

 test scenario for [1]

 APIM wso2is-5.0.0
 IS wso2am-1.9.0

 [1] https://docs.wso2.com/display/AM180/Configuring+Single+Sign-on


 Basic cross products test scenario contains the following steps.

 1. Invoke a http client call to publisher login.
 2. Verify http response status codes and whether the SAML based SSO
 authentication was successful / unsuccessful ( Verify Login page / API 
 Index page details.)
 3. Verify avoidance of repeat authentication for APIM /store.

 Following steps  were automated to-date.

 1. HTTP call for /publisher
 2. Invocation calls for samlsso endpoint
 3. calls on commonauth endpoints
 4. jaggery_acs jag related re-directions
 5. /publisher login  index page verifications

 I am currently working on automating the APIM .. /store related steps.


 Regards

 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com




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




 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com




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


[Dev] [Announce] WSO2 Storage Server (WSO2 SS) 1.5.0 Released!

2015-02-19 Thread Bhathiya Jayasekara
WSO2 Storage Server (WSO2 SS) 1.5.0 Released!WSO2 Storage Server (WSO2 SS)
team is pleased to announce the release of its version 1.5.0.WSO2 Storage
Server conveniently delivers multi-tenant structured and unstructured data
storage provisioning capabilities to development projects. Development
teams can rapidly provision and access secure and scalable relational,
NoSQL Columnar, and Hadoop Distributed File System (HDFS) repositories
using a consistent management process. The WSO2 Storage Server management
console allows teams to create databases, add users, and provision access
based on the web application’s database policies. It is distributed under
the Apache Software License v2.0
http://www.apache.org/licenses/LICENSE-2.0.html. WSO2 SS 1.5.0 is
developed on top of the revolutionary WSO2 Carbon platform
http://wso2.com/products/carbon/ (Middleware a' la carte), an OSGi based
framework that provides seamless modularity to your SOA via
componentization. This release also contains many new features and a range
of optional components (add-ons) that can be installed to customize the
behavior of the SS. Further, any existing features of the SS which are not
required to your environment can be easily removed using the underlying
provisioning framework of Carbon. In brief, WSO2 SS can be fully customized
and tailored to meet your exact Storage and SOA needs.You can download this
distribution from here
https://svn.wso2.org/repos/wso2/scratch/ss-dev/ss-150/GA/wso2ss-1.5.0.zip
and give it a try.How to Run


* 1. Extract the downloaded zip2. Go to the bin directory in the extracted
folder3. Run the wso2server.sh or wso2server.bat as appropriate4. Point
your browser to the URL https://localhost:9443/carbon
https://localhost:9443/carbon5. Use admin, admin as the username and
password to login as an admin6. If you need to start the OSGi console with
the server use the property -DosgiConsole when starting the server. The
INSTALL.txt file found on the installation directory will give you a
comprehensive set of options and properties that can be passed into the
startup script*Feature Catalog of WSO2 Storage Server 1.5.0


* - Relational Storage Service- Relational Database Explorer- Database
snapshot capability- Multi-tenant Column Store Service based on Apache
Cassandra- Cassandra Explorer- Cassandra Cluster monitor- Multiple
environment support for RDBMS and Cassandra- Multi-tenant Hadoop
Distribution File System Service- HDFS explorer*The bug fixes,
improvements, new features and tasks added to this particular release are
as follows.Bug Fixes


* - [SS-84 https://wso2.org/jira/browse/SS-84] - Breadcrumb issue in
Cassandra Explorer- [SS-136 https://wso2.org/jira/browse/SS-136] - JDBC
URL of databases created in storage server is malformed.- [SS-171
https://wso2.org/jira/browse/SS-171] - Wrong JDBC driver name and jdbc
URL is populated when connecting to Database Console- [SS-238
https://wso2.org/jira/browse/SS-238] - Database Console Save  Remove
button either be disabled or should work- [SS-283
https://wso2.org/jira/browse/SS-283] - Notify the user properly when the
database server not available- [SS-284
https://wso2.org/jira/browse/SS-284] - User WARN popup content need to be
changed on Attach database user page- [SS-306
https://wso2.org/jira/browse/SS-306] - Getting WARN
{org.wso2.carbon.hdfs.mgt.HDFSAdminComponentManager} - Kinit Failed at new
tenant login- [SS-311 https://wso2.org/jira/browse/SS-311] - Error:
java.sql.SQLException: PooledConnection has already been closed- [SS-323
https://wso2.org/jira/browse/SS-323] - attachUser operation soap request
should not generate with edit user privileges entries- [SS-324
https://wso2.org/jira/browse/SS-324] - [HDFS] When user paginate to a
particular page number it's not highlighted- [SS-327
https://wso2.org/jira/browse/SS-327] - Thrift Error: when cassandra
cluster monitoring is enabled- [SS-355
https://wso2.org/jira/browse/SS-355] - Getting a NoClassDefinition
exception- [SS-368 https://wso2.org/jira/browse/SS-368] - Cannot login to
the management console- [SS-369 https://wso2.org/jira/browse/SS-369] -
for a secondary user store user to gain access to the Cassandra explorer,
the user has to enter the domain name- [SS-384
https://wso2.org/jira/browse/SS-384] - Navigate to Cassandra Keyspace
throwing exception and a dead page- [SS-398
https://wso2.org/jira/browse/SS-398] - Cassandra-Thrift should be exposed
as an independant OSGi bundle- [SS-403
https://wso2.org/jira/browse/SS-403] - If the BAM tenants credentials are
given within the output adaptor of CEP an error is thrown- [SS-416
https://wso2.org/jira/browse/SS-416] - Error when trying to access
cassandra explorer- [SS-418 https://wso2.org/jira/browse/SS-418] -
Navigate to Cassandra Keyspaces List throwing exception when primary
datasource point to open LDAP- [SS-419
https://wso2.org/jira/browse/SS-419] - Give a way to find out whether an
user is attached to more than one database- [SS-423

Re: [Dev] API Manager New integration module structure for framework version 4.3.1.

2015-02-19 Thread Dharshana Warusavitharana
The module migrated to git with integration-tests are with updated
dependencies. Please refer that. I notices some modules were moved there
without fixing during the git migration.

Please refer the fixed module for correct dependencies and fixed tests.

Thank you,
Dharshana.

On Thu, Feb 19, 2015 at 5:16 PM, Uvindra Dias Jayasinha uvin...@wso2.com
wrote:

 Since APIM 1.9.0 was on svn earlier we were using the automation framework
 4.2.7. But now since 1.9.0 has moved to git(but we are still using Carbon
 4.2.0) do we need to change anything? We are still using version 4.2.7 of
 TAF.

 On 19 February 2015 at 10:27, Dharshana Warusavitharana 
 dharsha...@wso2.com wrote:

 Hi All,

 Please find status of the platform scenario automation of APIM platform
 based scenarios on [1].
 We have currently coverup initial scenarios with IS and BAM integration.

 [1].
 https://docs.google.com/a/wso2.com/spreadsheets/d/10iTMvum6PpuFBMKuBG1oM7miYphv5fmhTCVxMGZG8g8/edit#gid=0

 Thank you,
 Dharshana.


 On Fri, Jan 23, 2015 at 9:32 AM, Dharshana Warusavitharana 
 dharsha...@wso2.com wrote:

 Ye Nuwan we already discussed this too. We will break submodules when we
 are moving with scenarios. This is initial phase.

 Thank You,
 Dharshana

 On Fri, Jan 23, 2015 at 6:32 AM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Hi Dharshana,
 It would be grate if we can create a sub modules under
 tests-integration and test-ui-integration rather than putting the test
 classes inside the root module(tests-integration) from this moment, There
 might be an requirement having multi test module inside tests-integration.
 In ESB, we have multi test module. In future , It will required for API
 manager too.


 Thanks,
 Nuwanw

 On Thu, Jan 22, 2015 at 4:45 AM, Dharshana Warusavitharana 
 dharsha...@wso2.com wrote:

 Hi All,

 Test framework 4.3.1 has being introduced to the APIM integration test
 module under following structure.

 Moving forward automation team would implement tests based on the test
 structure 4.3.1.

 integration
 ├
 ├── pom.xml
 ├── tests-common
 │   ├── admin-clients
 │   ├── integration-test-utils
 │   └── ui-pages
 ├── tests-integration
 │   ├── pom.xml
 │   └── src
 │   └── test
 │   ├── java
 │   │   └── org
 │   │   └── wso2
 │   │   └── am
 │   │   └── integration
 │   │   └── tests
 │   │   ├── server
 │   │   │   └── mgt
 │   │   │   ├──
 ApiMgtServerStartupTestCase.java
 │   │   │   └──
 OSGIServerBundleStatusTestCase.java
 │   │   └── workflow
 │   └── resources
 ├── tests-platform
 │   ├── pom.xml
 │   └── resources
 ├── tests-ui-integration
 │   ├── pom.xml

 Please note the APIM will move to 1.9.0 release with the SVN so we
 need o stick to the repository noted in [1].


 [1].
 http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/apimgt/1.9.0/

 --

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

 lean . enterprise . middleware

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




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

 phone: +94 71 668 4620






 --

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

 lean . enterprise . middleware




 --

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

 lean . enterprise . middleware

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




 --
 Regards,
 Uvindra

 Mobile: 33962




-- 

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

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


Re: [Dev] [G-REG] Transition UI Sample Problem

2015-02-19 Thread Sithumini Senevirathne
Hi Anuja,

If you did all the steps correctly when click the promote button you should
see a separate UI section with version and Resource name right below the
lifecycle section. Its better if you go through the jsp file you added then
you can get an idea of the result easily.

This sample demonstrate the registry lifecycle configuration element, UI.
With this we can associate a user interface with a particular event during
a given transition.
Did you get any errors when trying to promote?

[1]
https://docs.wso2.com/display/Governance460/Lifecycle+Configuration+Elements#LifecycleConfigurationElements-ui
Thanks,
Sithumini

On Thu, Feb 19, 2015 at 5:28 PM, Anuja Herath an...@wso2.com wrote:

 Hi Sithumini,

 I have completed all steps. What is the result going to be after clicking
 Promote button?
 I don't see any different from how it worked before applying transition ui.

 On Thu, Feb 19, 2015 at 3:57 PM, Sithumini Senevirathne 
 sithumi...@wso2.com wrote:

 Hi Anuja,

 Did you add the created Transition UI to one of the lifecycle
 configuration? Step 6 in the sample doc. If you have done that you can see
 the changes by adding that lifecycle to any registry resource and promote
 it. You can find the lifecycle section at the right side of the registry
 management console.

 Thanks,
 Sithumnin

 On Thu, Feb 19, 2015 at 2:59 PM, Anuja Herath an...@wso2.com wrote:

 Hi,

 I followed all steps in G-Reg Transition UI sample [1] without any
 error. But, I am unable to find the place where changes were affected at
 last.

 [1] https://docs.wso2.com/display/Governance460/Transition+UI+Sample

 --
 Anuja Herath
 *Software Engineer*
 *WSO2, Inc.*
 Mobile : +94 (0)71 429 8861

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




 --
 --
 Sithumini Senevirathne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: sithumi...@wso2.com,   mobile: +94 756977999




 --
 Anuja Herath
 *Software Engineer*
 *WSO2, Inc.*
 Mobile : +94 (0)71 429 8861




-- 
-- 
Sithumini Senevirathne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: sithumi...@wso2.com,   mobile: +94 756977999
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Upgrading the disruptor version in orbit to 3.3.0

2015-02-19 Thread Maheshika Goonetilleke
Hi Ramith

Please re-check as this has already been deployed.

[image: Inline image 1]

On Thu, Feb 19, 2015 at 6:48 PM, Ramith Jayasinghe ram...@wso2.com wrote:

 do we have this uploaded to nexus? to me it looks like not.

 On Thu, Feb 19, 2015 at 4:28 PM, Maheshika Goonetilleke 
 mahesh...@wso2.com wrote:

 Hi All

 Done.

 On Thu, Feb 19, 2015 at 3:32 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Maheshika, please release this orbit.

 On Thu, Feb 19, 2015 at 2:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 FYI.
 sent to wrong person.!

 -- Forwarded message --
 From: Ramith Jayasinghe ram...@wso2.com
 Date: Thu, Feb 19, 2015 at 2:19 PM
 Subject: Upgrading the disruptor version in orbit to 3.3.0
 To: WSO2 Developers' List dev@wso2.org
 Cc: Krishantha Samaraweera krishan...@wso2.com


 HI Krishantha,
 We would like to do $subject
 PR is at: https://github.com/wso2/orbit/pull/64
 could you review and merge?

 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --

 Thanks  Best Regards,

 Maheshika Goonetilleke
 Engineering Process Coordinator

 *WSO2 Inc*
 *email   : mahesh...@wso2.com mahesh...@wso2.com*
 *mobile : +94 773 596707 %2B94%20773%20596707*
 *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware







 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




-- 

Thanks  Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com mahesh...@wso2.com*
*mobile : +94 773 596707*
*www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Upgrading the disruptor version in orbit to 3.3.0

2015-02-19 Thread Ramith Jayasinghe
thanks!

On Thu, Feb 19, 2015 at 7:37 PM, Maheshika Goonetilleke mahesh...@wso2.com
wrote:

 Hi Ramith

 Please re-check as this has already been deployed.

 [image: Inline image 1]

 On Thu, Feb 19, 2015 at 6:48 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 do we have this uploaded to nexus? to me it looks like not.

 On Thu, Feb 19, 2015 at 4:28 PM, Maheshika Goonetilleke 
 mahesh...@wso2.com wrote:

 Hi All

 Done.

 On Thu, Feb 19, 2015 at 3:32 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Maheshika, please release this orbit.

 On Thu, Feb 19, 2015 at 2:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 FYI.
 sent to wrong person.!

 -- Forwarded message --
 From: Ramith Jayasinghe ram...@wso2.com
 Date: Thu, Feb 19, 2015 at 2:19 PM
 Subject: Upgrading the disruptor version in orbit to 3.3.0
 To: WSO2 Developers' List dev@wso2.org
 Cc: Krishantha Samaraweera krishan...@wso2.com


 HI Krishantha,
 We would like to do $subject
 PR is at: https://github.com/wso2/orbit/pull/64
 could you review and merge?

 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --

 Thanks  Best Regards,

 Maheshika Goonetilleke
 Engineering Process Coordinator

 *WSO2 Inc*
 *email   : mahesh...@wso2.com mahesh...@wso2.com*
 *mobile : +94 773 596707 %2B94%20773%20596707*
 *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware







 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




 --

 Thanks  Best Regards,

 Maheshika Goonetilleke
 Engineering Process Coordinator

 *WSO2 Inc*
 *email   : mahesh...@wso2.com mahesh...@wso2.com*
 *mobile : +94 773 596707 %2B94%20773%20596707*
 *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware







-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Exception when trying to insert data through the created carbon component

2015-02-19 Thread Thusitha Thilina Dayaratne
Hi,

I tried to invoke the add method using the SoapUI. But I got a Soap fault.
In my Item class constructor is in *public Item(int id, String name, float
price)* I didn't had a default no arg constructor in the class. When I put
the default constructor to the item class everything works fine.

I have few points that I like to get clarify

*1. *When I didn't had the default constructor and trying to create an Item
from the jsp with custom constructor as Item item2 = new Item(12, Custom
Item, 125.30);
I got following compilation error.


 *PWC6199: Generated servlet error:**The constructor Item(int, String,
 double) is undefined*


 But I'm able to create Item instance as Item item2 = new Item(); and then
set the values using setters.
 Is this the expected outcome when generating the stub from WSDL2Java ?

*2. *Should we always specify the default no args constructor, if we
overload the constructor?

Best Regards
/Thusitha


On Thu, Feb 19, 2015 at 4:52 PM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi Amal, Gayashan,

 Thanks for your responses. I will try out your suggestions and see if I
 will be able to get it solve.


 Regards
 /Thusitha

 On Thu, Feb 19, 2015 at 3:42 PM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Hi Thusitha,

 Here you are calling the service via client who calls the service stub.
 In that case the item pojo you are trying to insert should be the same
 object as the one in the WSDL contract. Can you check if it's the same
 object?

 Thanks.
 /Gayashan

 On Thu, Feb 19, 2015 at 9:45 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi,

 I'm trying to create a Carbon component based on the [1]. I was able to
 get the list of orders successfully. But when I'm trying to add a new
 Order, I'm getting an Exception
 Here is the stack-trace.


 org.apache.axis2.AxisFault: org.wso2.training.carbon.order.mgt.data.Item
 at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.training.carbon.order.mgt.stub.OrderManagerStub.addOrder(OrderManagerStub.java:736)
 at
 org.wso2.training.carbon.order.mgt.ui.OrderManagerClient.addOrder(OrderManagerClient.java:67)
 at
 org.apache.jsp.order_002dmgt.index_jsp._jspService(org.apache.jsp.order_002dmgt.index_jsp:100)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(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.doInclude(ApplicationDispatcher.java:605)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
 at
 org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
 at
 org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
 at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 

Re: [Dev] [G-REG] Transition UI Sample Problem

2015-02-19 Thread Sithumini Senevirathne
Hi Anuja,

I think you have added the Transition UI to service lifecycle
configuration. JSP file added in this sample is what's used in the default
ServiceLifeCycle configuration. If you go through the last part of the
sample doc its highlighted there. Its better if you add the Transition UI
to Samplelifecycle then you can see the changes.

Thanks,
Sithumini

On Thu, Feb 19, 2015 at 8:01 PM, Sithumini Senevirathne sithumi...@wso2.com
 wrote:

 Hi Anuja,

 If you did all the steps correctly when click the promote button you
 should see a separate UI section with version and Resource name right below
 the lifecycle section. Its better if you go through the jsp file you added
 then you can get an idea of the result easily.

 This sample demonstrate the registry lifecycle configuration element, UI.
 With this we can associate a user interface with a particular event
 during a given transition.
 Did you get any errors when trying to promote?

 [1]
 https://docs.wso2.com/display/Governance460/Lifecycle+Configuration+Elements#LifecycleConfigurationElements-ui
 Thanks,
 Sithumini

 On Thu, Feb 19, 2015 at 5:28 PM, Anuja Herath an...@wso2.com wrote:

 Hi Sithumini,

 I have completed all steps. What is the result going to be after clicking
 Promote button?
 I don't see any different from how it worked before applying transition
 ui.

 On Thu, Feb 19, 2015 at 3:57 PM, Sithumini Senevirathne 
 sithumi...@wso2.com wrote:

 Hi Anuja,

 Did you add the created Transition UI to one of the lifecycle
 configuration? Step 6 in the sample doc. If you have done that you can see
 the changes by adding that lifecycle to any registry resource and promote
 it. You can find the lifecycle section at the right side of the registry
 management console.

 Thanks,
 Sithumnin

 On Thu, Feb 19, 2015 at 2:59 PM, Anuja Herath an...@wso2.com wrote:

 Hi,

 I followed all steps in G-Reg Transition UI sample [1] without any
 error. But, I am unable to find the place where changes were affected at
 last.

 [1] https://docs.wso2.com/display/Governance460/Transition+UI+Sample

 --
 Anuja Herath
 *Software Engineer*
 *WSO2, Inc.*
 Mobile : +94 (0)71 429 8861

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




 --
 --
 Sithumini Senevirathne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: sithumi...@wso2.com,   mobile: +94 756977999




 --
 Anuja Herath
 *Software Engineer*
 *WSO2, Inc.*
 Mobile : +94 (0)71 429 8861




 --
 --
 Sithumini Senevirathne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: sithumi...@wso2.com,   mobile: +94 756977999




-- 
-- 
Sithumini Senevirathne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: sithumi...@wso2.com,   mobile: +94 756977999
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Carbon Component Implementation : Exception in generating service stub

2015-02-19 Thread Indunil Upeksha Rathnayake
Hi Chathura,
Thanks for your response. I have checked with both options(using direct
path of the local repository and using the maven user configurations as you
have mentioned), but the offline build was not successful.

Thank You

Best Regards
-- 
Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc
Emailindu...@wso2.com
Mobile  +94713695179


On Mon, Feb 16, 2015 at 4:08 PM, Chathura Priyankara chathu...@wso2.com
wrote:

 Hi Indunil,

 You have to set paths for axiom-1.2.11.wso2v4.jar,
 axis2-client-1.6.1.wso2v10.jar and  axis2-1.6.1.wso2v10.jar from your local
 maven repository like follows :

 pathelement
 location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/
 pathelement
 location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar
 /
 pathelement
 location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
 /

 Thanks!
 Best Regards,


 On Sat, Feb 14, 2015 at 10:47 AM, Indunil Upeksha Rathnayake 
 indu...@wso2.com wrote:

 Hi,

 Thanks for the quick response. Now it's built successfully. But before
 adding these repositories, the jar files (axiom-1.2.11.wso2v4.jar,
 axis2-client-1.6.1.wso2v10.jar, axis2-1.6.1.wso2v10.jar) were there in the
 local repository .m2 folder (I believe that those has been added previously
 from another project build). As per my knowledge, in offline build, maven
 has to use the resources that are available locally. But I'm getting the
 same error, when working in the offline mode by using “mvn clean install
 -o” command. Can anyone please explain the reason behind this?

 Thank You

 Regards
 --
 Indunil Upeksha Rathnayake
 Software Engineer | WSO2 Inc

 Emailindu...@wso2.com
 Mobile  +94713695179

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




 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com

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