Re: [Dev] Build failures on 4.3.0 kernel projects

2014-02-05 Thread Sagara Gunathunga
On Wed, Feb 5, 2014 at 9:31 AM, Sagara Gunathunga sag...@wso2.com wrote:




 On Wed, Feb 5, 2014 at 12:41 AM, Senaka Fernando sen...@wso2.com wrote:

 Hi Sagara,

 Not sure whether there is an infinite loop or not, since I didn't try,
 but the registry unit tests run the same set of tests 8 times or so,
 changing the registry.xml file in each run. If you didn't wait long enough,
 please try and see whether it finishes after 8 runs (you can figure out the
 number by looking into the pom.xml) or so.


  I don't have an idea about performance level of VM we used but at least i
 observed 4 times and spend around 2 hours, will trigger another and wait.


I just completed carbon4-kernel build without any test failures but it took
3.45 H so we need to improve VM performance. Now only Axiom failures
remains to fix.

Thanks !




 Thanks !




 Thanks,
 Senaka.


 On Tue, Feb 4, 2014 at 7:50 PM, Sagara Gunathunga sag...@wso2.comwrote:

 Hi Eranda/Geeth/Vanji/Chamath,

 This evening I started to run Jenkins builds with tests and found number
 of test failures in few projects. Before we move into platform level
 projects we need to fix these issues and make sure kernel and its
 dependencies are stable.  Please on hold platform level restructuring and
 attend to fix above issues. ( run with clean repo to detect these issues)


 1.)  Axiom  - There are two modules having test failures

  a.)
 http://46.137.215.27:8080/jenkins/job/wso2-axiom/11/org.apache.ws.commons.axiom$axiom-tests/testReport/junit/org.apache.axiom.attachments/PartOnFileTest/testHeaderGetSet/

  b.)
 http://46.137.215.27:8080/jenkins/job/wso2-axiom/11/org.apache.ws.commons.axiom$axiom-osgi-run/console




 2.) WSS4J -  15 failures ( Sounds like a config or JDK issue ? )

 http://46.137.215.27:8080/jenkins/job/wso2-wss4j/lastBuild/testReport/


 3.) carbon4-kernel -

 Like in an infinite  loop Maven keep running *org.wso2.carbon.registry.core
 *test cases without go forward.  So far I noticed running 4 times same
 set of registry test cases.

   http://46.137.215.27:8080/jenkins/job/carbon4-kernel/6/consoleFull



 Thanks !
 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com




 --


 *[image: http://wso2.com] http://wso2.com Senaka Fernando*
 Senior Technical Lead; WSO2 Inc.; http://wso2.com



 * Member; Apache Software Foundation; http://apache.org
 http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1
 408 754 7388 %2B1%20408%20754%207388; ext: 51736*;


 *M: +94 77 322 1818 %2B94%2077%20322%201818 Linked-In:
 http://linkedin.com/in/senakafernando
 http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware




 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com




-- 
Sagara Gunathunga

Senior Technical Lead; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Kernel patch to improve performance of readOnlyUserstoreManager Implementation.

2014-02-05 Thread Manjula Rathnayake
Hi all,

$Subject is done using existing cache together with few more improvements.
Please commit this to resolve issue[1].
[1]. https://wso2.org/jira/browse/CARBON-14651

thank you.

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


Re: [Dev] Build failures on 4.3.0 kernel projects

2014-02-05 Thread Eranda Sooriyabandara
Hi Sagara,


On Wed, Feb 5, 2014 at 1:46 PM, Sagara Gunathunga sag...@wso2.com wrote:




 On Wed, Feb 5, 2014 at 9:31 AM, Sagara Gunathunga sag...@wso2.com wrote:




 On Wed, Feb 5, 2014 at 12:41 AM, Senaka Fernando sen...@wso2.com wrote:

 Hi Sagara,

 Not sure whether there is an infinite loop or not, since I didn't try,
 but the registry unit tests run the same set of tests 8 times or so,
 changing the registry.xml file in each run. If you didn't wait long enough,
 please try and see whether it finishes after 8 runs (you can figure out the
 number by looking into the pom.xml) or so.


  I don't have an idea about performance level of VM we used but at least
 i observed 4 times and spend around 2 hours, will trigger another and wait.


 I just completed carbon4-kernel build without any test failures but it
 took 3.45 H so we need to improve VM performance. Now only Axiom failures
 remains to fix.


This is due to the registry tests which takes sometime to complete.

thanks
Eranda




 Thanks !




 Thanks !




 Thanks,
 Senaka.


 On Tue, Feb 4, 2014 at 7:50 PM, Sagara Gunathunga sag...@wso2.comwrote:

 Hi Eranda/Geeth/Vanji/Chamath,

 This evening I started to run Jenkins builds with tests and found
 number of test failures in few projects. Before we move into platform level
 projects we need to fix these issues and make sure kernel and its
 dependencies are stable.  Please on hold platform level restructuring and
 attend to fix above issues. ( run with clean repo to detect these issues)


 1.)  Axiom  - There are two modules having test failures

  a.)
 http://46.137.215.27:8080/jenkins/job/wso2-axiom/11/org.apache.ws.commons.axiom$axiom-tests/testReport/junit/org.apache.axiom.attachments/PartOnFileTest/testHeaderGetSet/

  b.)
 http://46.137.215.27:8080/jenkins/job/wso2-axiom/11/org.apache.ws.commons.axiom$axiom-osgi-run/console




 2.) WSS4J -  15 failures ( Sounds like a config or JDK issue ? )

 http://46.137.215.27:8080/jenkins/job/wso2-wss4j/lastBuild/testReport/


 3.) carbon4-kernel -

 Like in an infinite  loop Maven keep running *org.wso2.carbon.registry.core
 *test cases without go forward.  So far I noticed running 4 times same
 set of registry test cases.

   http://46.137.215.27:8080/jenkins/job/carbon4-kernel/6/consoleFull



 Thanks !
 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com




 --


 *[image: http://wso2.com] http://wso2.com Senaka Fernando*
 Senior Technical Lead; WSO2 Inc.; http://wso2.com



 * Member; Apache Software Foundation; http://apache.org
 http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1
 408 754 7388 %2B1%20408%20754%207388; ext: 51736*;


 *M: +94 77 322 1818 %2B94%2077%20322%201818 Linked-In:
 http://linkedin.com/in/senakafernando
 http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware




 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com




 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com




-- 

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

E-mail: eranda AT wso2.com
Mobile: +94 716 472 816
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Kernel patch to improve performance of readOnlyUserstoreManager Implementation.

2014-02-05 Thread Manoj Kumara
Hi Manjula,

Applied to patch0006 with 196246.

Thanks,
Manoj


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


On Wed, Feb 5, 2014 at 1:49 PM, Manjula Rathnayake manju...@wso2.comwrote:

 Hi all,

 $Subject is done using existing cache together with few more improvements.
 Please commit this to resolve issue[1].
 [1]. https://wso2.org/jira/browse/CARBON-14651

 thank you.

 --
 Manjula Rathnayaka
 Software Engineer
 WSO2, Inc.
 Mobile:+94 77 743 1987

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


Re: [Dev] Kernel patch to improve performance of readOnlyUserstoreManager Implementation.

2014-02-05 Thread Manjula Rathnayake
Thanks Manoj.


On Wed, Feb 5, 2014 at 2:04 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Manjula,

 Applied to patch0006 with 196246.

 Thanks,
 Manoj


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


 On Wed, Feb 5, 2014 at 1:49 PM, Manjula Rathnayake manju...@wso2.comwrote:

 Hi all,

 $Subject is done using existing cache together with few more
 improvements. Please commit this to resolve issue[1].
 [1]. https://wso2.org/jira/browse/CARBON-14651

 thank you.

 --
 Manjula Rathnayaka
 Software Engineer
 WSO2, Inc.
 Mobile:+94 77 743 1987





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


Re: [Dev] Embedded ldap server for test automation framework

2014-02-05 Thread Selvaratnam Uthaiyashankar
What does this mean? We are embedding ApacheDS?

On Wednesday, February 5, 2014, Dimuthu De Lanerolle dimut...@wso2.com
wrote:

 We are going to implement the $Subject. Will update the progress later.

 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.comjavascript:_e(%7B%7D,'cvml','dimut...@wso2.com');




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

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


Re: [Dev] NPE in OAuth custom handler's validation code

2014-02-05 Thread Pradeep Fernando
NPE, is a bug. dont you think ? :)


On Wed, Feb 5, 2014 at 11:25 AM, Bhathiya Jayasekara bhath...@wso2.comwrote:

 Hi all,

 I was able to get this solved with ESB 4.8.1. The problem was, the
 OAuth2TokenValidationService URL in my handler configurations was wrong.
 Thanks Johann for helping me to figure this out.

 Thanks,
 Bhathiya


 On Tue, Feb 4, 2014 at 1:28 AM, Bhathiya Jayasekara bhath...@wso2.comwrote:

 Hi IS team,

 I was using custom OAuth handler given in here [1]. But when I send a
 request with access token, it gives a NPE [2] in *stub.validate(dto) *
 line of the handler code. What could be the reason for this? Appreciate
 some help to identify the reason.

 [1] http://docs.wso2.org/display/ESB480/Securing+REST+APIs

 [2]

 [2014-02-04 00:57:07,187] ERROR - AxisServlet
 java.lang.NullPointerException
 at org.apache.synapse.rest.RESTUtils.getFullRequestPath(RESTUtils.java:80)
 at org.apache.synapse.rest.API.canProcess(API.java:175)
  at
 org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:72)
 at
 org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)
  at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
 at
 org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
  at
 org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
 at
 org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
  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.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
  at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
  at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
  at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
  at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
  at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:662)

 Thanks,

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

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




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

 *Phone: +94715478185 %2B94715478185*
 

[Dev] Unified carbon component versions

2014-02-05 Thread Eranda Sooriyabandara
Hi All,
As I am working on the carbon git migration I happen to see that there are
some components which versions are differ from the platform version. Eg.
event-processing components have their own 1.0.x version. Is there any
reason for using these versions? Can we change them to carbon platform
version here on?

thanks
Eranda

-- 

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

E-mail: eranda AT wso2.com
Mobile: +94 716 472 816
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unified carbon component versions

2014-02-05 Thread Sagara Gunathunga
On Thu, Feb 6, 2014 at 12:06 AM, Eranda Sooriyabandara era...@wso2.comwrote:

 Hi All,
 As I am working on the carbon git migration I happen to see that there are
 some components which versions are differ from the platform version. Eg.
 event-processing components have their own 1.0.x version. Is there any
 reason for using these versions? Can we change them to carbon platform
 version here on?


First let's decide whether we really need to maintains these codes or
whether we can continue with already released versions. If we need to
maintain then  +1 to use platform version numbers, in fact according to the
new structure we can't have several components versions within one code
repository. All sub-modules should inherit their versions from parent POM
file.

Thanks !


 thanks
 Eranda

 --

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

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







-- 
Sagara Gunathunga

Senior Technical Lead; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] NPE in OAuth custom handler's validation code

2014-02-05 Thread Bhathiya Jayasekara
Yeah that's a bug. That needs to be fixed.

IS team, please note. :)


On Wed, Feb 5, 2014 at 11:57 PM, Pradeep Fernando prad...@wso2.com wrote:

 NPE, is a bug. dont you think ? :)


 On Wed, Feb 5, 2014 at 11:25 AM, Bhathiya Jayasekara bhath...@wso2.comwrote:

 Hi all,

 I was able to get this solved with ESB 4.8.1. The problem was, the
 OAuth2TokenValidationService URL in my handler configurations was wrong.
 Thanks Johann for helping me to figure this out.

 Thanks,
 Bhathiya


 On Tue, Feb 4, 2014 at 1:28 AM, Bhathiya Jayasekara bhath...@wso2.comwrote:

 Hi IS team,

 I was using custom OAuth handler given in here [1]. But when I send a
 request with access token, it gives a NPE [2] in *stub.validate(dto) *
 line of the handler code. What could be the reason for this? Appreciate
 some help to identify the reason.

 [1] http://docs.wso2.org/display/ESB480/Securing+REST+APIs

 [2]

 [2014-02-04 00:57:07,187] ERROR - AxisServlet
 java.lang.NullPointerException
 at
 org.apache.synapse.rest.RESTUtils.getFullRequestPath(RESTUtils.java:80)
 at org.apache.synapse.rest.API.canProcess(API.java:175)
  at
 org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:72)
 at
 org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)
  at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
 at
 org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
  at
 org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
 at
 org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
  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.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
  at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
  at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
  at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
  at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
  at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:662)

 Thanks,

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

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

Re: [Dev] NPE in OAuth custom handler's validation code

2014-02-05 Thread Isuru Perera
On Thu, Feb 6, 2014 at 12:21 AM, Bhathiya Jayasekara bhath...@wso2.comwrote:

 Yeah that's a bug. That needs to be fixed.

 IS team, please note. :)

I think you should create a JIRA: https://wso2.org/jira/browse/IDENTITY



 On Wed, Feb 5, 2014 at 11:57 PM, Pradeep Fernando prad...@wso2.comwrote:

 NPE, is a bug. dont you think ? :)


  On Wed, Feb 5, 2014 at 11:25 AM, Bhathiya Jayasekara 
 bhath...@wso2.comwrote:

 Hi all,

 I was able to get this solved with ESB 4.8.1. The problem was, the
 OAuth2TokenValidationService URL in my handler configurations was wrong.
 Thanks Johann for helping me to figure this out.

 Thanks,
 Bhathiya


 On Tue, Feb 4, 2014 at 1:28 AM, Bhathiya Jayasekara 
 bhath...@wso2.comwrote:

 Hi IS team,

 I was using custom OAuth handler given in here [1]. But when I send a
 request with access token, it gives a NPE [2] in *stub.validate(dto) *
 line of the handler code. What could be the reason for this?
 Appreciate some help to identify the reason.

 [1] http://docs.wso2.org/display/ESB480/Securing+REST+APIs

 [2]

 [2014-02-04 00:57:07,187] ERROR - AxisServlet
 java.lang.NullPointerException
 at
 org.apache.synapse.rest.RESTUtils.getFullRequestPath(RESTUtils.java:80)
 at org.apache.synapse.rest.API.canProcess(API.java:175)
  at
 org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:72)
 at
 org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)
  at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
 at
 org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
  at
 org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
 at
 org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
  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.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
  at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
  at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
  at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
  at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
  at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:662)

 Thanks,

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

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 

Re: [Dev] NPE in OAuth custom handler's validation code

2014-02-05 Thread Bhathiya Jayasekara
Talked with Johann about this. And it seems not a bug in IS side. The error
in my URL was that the port I gave was of ESB (not IS, which it should be
of). But since ESB doesn't have a OAuth2TokenValidationService, it gives a
NPE somehow. So the bug is ESB side. But I'm wondering, in which level?
carbon?

Thanks,
Bhathiya


On Thu, Feb 6, 2014 at 12:21 AM, Bhathiya Jayasekara bhath...@wso2.comwrote:

 Yeah that's a bug. That needs to be fixed.

 IS team, please note. :)


 On Wed, Feb 5, 2014 at 11:57 PM, Pradeep Fernando prad...@wso2.comwrote:

 NPE, is a bug. dont you think ? :)


  On Wed, Feb 5, 2014 at 11:25 AM, Bhathiya Jayasekara 
 bhath...@wso2.comwrote:

 Hi all,

 I was able to get this solved with ESB 4.8.1. The problem was, the
 OAuth2TokenValidationService URL in my handler configurations was wrong.
 Thanks Johann for helping me to figure this out.

 Thanks,
 Bhathiya


 On Tue, Feb 4, 2014 at 1:28 AM, Bhathiya Jayasekara 
 bhath...@wso2.comwrote:

 Hi IS team,

 I was using custom OAuth handler given in here [1]. But when I send a
 request with access token, it gives a NPE [2] in *stub.validate(dto) *
 line of the handler code. What could be the reason for this?
 Appreciate some help to identify the reason.

 [1] http://docs.wso2.org/display/ESB480/Securing+REST+APIs

 [2]

 [2014-02-04 00:57:07,187] ERROR - AxisServlet
 java.lang.NullPointerException
 at
 org.apache.synapse.rest.RESTUtils.getFullRequestPath(RESTUtils.java:80)
 at org.apache.synapse.rest.API.canProcess(API.java:175)
  at
 org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:72)
 at
 org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)
  at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
 at
 org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
  at
 org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
 at
 org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
  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.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
  at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
  at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
  at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
  at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
  at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at 

[Dev] Using sso-idp-config.xml in IS 4.6.0

2014-02-05 Thread Manuranga Perera
according to a mail thread [1] in architecture IS 4.6.0 should have the
capability to add sso idPs using sso-idp-config.xml. but it seems like that
feature is not in there.

is it possible to get it working ?
OR
please suggest a way to configure idPs (without using UI).



[1] [Architecture] Alternative to using sso-idp-config.xml
http://wso2-oxygen-tank.10903.n7.nabble.com/Alternative-to-using-sso-idp-config-xml-td86326.html
-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using sso-idp-config.xml in IS 4.6.0

2014-02-05 Thread Pushpalanka Jayawardhana
Hi Manu,

You can do this by having org.wso2.stratos.identity.saml2.sso.mgt.jar in
dropins and ss-idp-config.xml in repository/conf. At server start you will
see the SPs getting registered.


On Thu, Feb 6, 2014 at 1:39 AM, Manuranga Perera m...@wso2.com wrote:

 according to a mail thread [1] in architecture IS 4.6.0 should have the
 capability to add sso idPs using sso-idp-config.xml. but it seems like that
 feature is not in there.

 is it possible to get it working ?
 OR
 please suggest a way to configure idPs (without using UI).



 [1] [Architecture] Alternative to using sso-idp-config.xml
 http://wso2-oxygen-tank.10903.n7.nabble.com/Alternative-to-using-sso-idp-config-xml-td86326.html
 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com



Thanks,
-- 

Pushpalanka Jayawardhana

Software Engineer

WSO2 Lanka (pvt) Ltd
[image: 
Facebook]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.facebook.com%2Fpushpalanka
[image:
Twitter]http://s.wisestamp.com/links?url=http%3A%2F%2Ftwitter.com%2FPushpalanka
[image:
LinkedIn]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D75175642%26trk%3Dtab_pro
[image:
Blogger]http://s.wisestamp.com/links?url=http%3A%2F%2Fpushpalankajaya.blogspot.com%2F
[image:
SlideShare]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.slideshare.net%2FPushpalanka
Mobile: +94779716248
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using sso-idp-config.xml in IS 4.6.0

2014-02-05 Thread Manuranga Perera
org.wso2.stratos.identity.saml2.sso.mgt.jar has not been released for 4.2.0
AFAIK, that's why I asked. coping 4.0.0 jar works, it doesn't look like the
correct solution.


On Wed, Feb 5, 2014 at 12:41 PM, Pushpalanka Jayawardhana la...@wso2.comwrote:

 Hi Manu,

 You can do this by having org.wso2.stratos.identity.saml2.sso.mgt.jar in
 dropins and ss-idp-config.xml in repository/conf. At server start you will
 see the SPs getting registered.


 On Thu, Feb 6, 2014 at 1:39 AM, Manuranga Perera m...@wso2.com wrote:

 according to a mail thread [1] in architecture IS 4.6.0 should have the
 capability to add sso idPs using sso-idp-config.xml. but it seems like that
 feature is not in there.

 is it possible to get it working ?
 OR
 please suggest a way to configure idPs (without using UI).



 [1] [Architecture] Alternative to using sso-idp-config.xml
 http://wso2-oxygen-tank.10903.n7.nabble.com/Alternative-to-using-sso-idp-config-xml-td86326.html
 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com



 Thanks,
 --

 Pushpalanka Jayawardhana

 Software Engineer

 WSO2 Lanka (pvt) Ltd
 [image: 
 Facebook]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.facebook.com%2Fpushpalanka
  [image:
 Twitter]http://s.wisestamp.com/links?url=http%3A%2F%2Ftwitter.com%2FPushpalanka
  [image:
 LinkedIn]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D75175642%26trk%3Dtab_pro
  [image:
 Blogger]http://s.wisestamp.com/links?url=http%3A%2F%2Fpushpalankajaya.blogspot.com%2F
  [image:
 SlideShare]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.slideshare.net%2FPushpalanka
 Mobile: +94779716248




-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] NPE in OAuth custom handler's validation code

2014-02-05 Thread Johann Nallathamby
Basically it is how the stub handles the error when we try to invoke a
service through a wrong port which is open but does not have the service.
Guess that is how it is generated.


On Thu, Feb 6, 2014 at 12:36 AM, Bhathiya Jayasekara bhath...@wso2.comwrote:

 Talked with Johann about this. And it seems not a bug in IS side. The
 error in my URL was that the port I gave was of ESB (not IS, which it
 should be of). But since ESB doesn't have a OAuth2TokenValidationService,
 it gives a NPE somehow. So the bug is ESB side. But I'm wondering, in which
 level? carbon?

 Thanks,
 Bhathiya


 On Thu, Feb 6, 2014 at 12:21 AM, Bhathiya Jayasekara bhath...@wso2.comwrote:

 Yeah that's a bug. That needs to be fixed.

 IS team, please note. :)


 On Wed, Feb 5, 2014 at 11:57 PM, Pradeep Fernando prad...@wso2.comwrote:

 NPE, is a bug. dont you think ? :)


  On Wed, Feb 5, 2014 at 11:25 AM, Bhathiya Jayasekara bhath...@wso2.com
  wrote:

 Hi all,

 I was able to get this solved with ESB 4.8.1. The problem was, the
 OAuth2TokenValidationService URL in my handler configurations was wrong.
 Thanks Johann for helping me to figure this out.

 Thanks,
 Bhathiya


 On Tue, Feb 4, 2014 at 1:28 AM, Bhathiya Jayasekara 
 bhath...@wso2.comwrote:

 Hi IS team,

 I was using custom OAuth handler given in here [1]. But when I send a
 request with access token, it gives a NPE [2] in *stub.validate(dto) *
 line of the handler code. What could be the reason for this?
 Appreciate some help to identify the reason.

 [1] http://docs.wso2.org/display/ESB480/Securing+REST+APIs

 [2]

 [2014-02-04 00:57:07,187] ERROR - AxisServlet
 java.lang.NullPointerException
 at
 org.apache.synapse.rest.RESTUtils.getFullRequestPath(RESTUtils.java:80)
 at org.apache.synapse.rest.API.canProcess(API.java:175)
  at
 org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:72)
 at
 org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)
  at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
 at
 org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
  at
 org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
 at
 org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
  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.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
  at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
  at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
  at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
  at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
  at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 

Re: [Dev] Unified carbon component versions

2014-02-05 Thread Sriskandarajah Suhothayan
event-processing components were newly written thats why they have 1.0.x.
Since in the new git repo we have to have one version +1 for platform
version

Suho
On Feb 6, 2014 12:14 AM, Sagara Gunathunga sag...@wso2.com wrote:




 On Thu, Feb 6, 2014 at 12:06 AM, Eranda Sooriyabandara era...@wso2.comwrote:

 Hi All,
 As I am working on the carbon git migration I happen to see that there
 are some components which versions are differ from the platform version.
 Eg. event-processing components have their own 1.0.x version. Is there any
 reason for using these versions? Can we change them to carbon platform
 version here on?


 First let's decide whether we really need to maintains these codes or
 whether we can continue with already released versions. If we need to
 maintain then  +1 to use platform version numbers, in fact according to the
 new structure we can't have several components versions within one code
 repository. All sub-modules should inherit their versions from parent POM
 file.

 Thanks !


 thanks
 Eranda

 --

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

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







 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com


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


Re: [Dev] Embedded ldap server for test automation framework

2014-02-05 Thread Dimuthu De Lanerolle
Hi Shankar,

Yes. We have seen some test scenarios use external LDAP servers. Therefore
we are working on embedding ApacheDS with the test framework.

Regards


On Wed, Feb 5, 2014 at 8:22 PM, Selvaratnam Uthaiyashankar shan...@wso2.com
 wrote:

 What does this mean? We are embedding ApacheDS?


 On Wednesday, February 5, 2014, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 We are going to implement the $Subject. Will update the progress later.

 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



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

 Phone: +94 714897591




-- 
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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using sso-idp-config.xml in IS 4.6.0

2014-02-05 Thread Lasantha Fernando
Hi Manu,

org.wso2.stratos.identity.saml2.sso.mgt.jar has been released. The relevant
version for turing is 2.2.0. You can find it in [1] and also it is
available in the p2-repo. I think you can install it from p2 as well
without any issue.

The pom for the component has the group as org.wso.carbon, which groups it
to the wrong folder structure in nexus AFAIK.

[1]
http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.stratos.identity.saml2.sso.mgt/

Thanks,
Lasantha


On 6 February 2014 03:05, Manuranga Perera m...@wso2.com wrote:

 org.wso2.stratos.identity.saml2.sso.mgt.jar has not been released for
 4.2.0 AFAIK, that's why I asked. coping 4.0.0 jar works, it doesn't look
 like the correct solution.


 On Wed, Feb 5, 2014 at 12:41 PM, Pushpalanka Jayawardhana 
 la...@wso2.comwrote:

 Hi Manu,

 You can do this by having org.wso2.stratos.identity.saml2.sso.mgt.jar in
 dropins and ss-idp-config.xml in repository/conf. At server start you will
 see the SPs getting registered.


 On Thu, Feb 6, 2014 at 1:39 AM, Manuranga Perera m...@wso2.com wrote:

 according to a mail thread [1] in architecture IS 4.6.0 should have the
 capability to add sso idPs using sso-idp-config.xml. but it seems like that
 feature is not in there.

 is it possible to get it working ?
 OR
 please suggest a way to configure idPs (without using UI).



 [1] [Architecture] Alternative to using sso-idp-config.xml
 http://wso2-oxygen-tank.10903.n7.nabble.com/Alternative-to-using-sso-idp-config-xml-td86326.html
 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com



 Thanks,
 --

 Pushpalanka Jayawardhana

 Software Engineer

 WSO2 Lanka (pvt) Ltd
 [image: 
 Facebook]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.facebook.com%2Fpushpalanka
  [image:
 Twitter]http://s.wisestamp.com/links?url=http%3A%2F%2Ftwitter.com%2FPushpalanka
  [image:
 LinkedIn]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D75175642%26trk%3Dtab_pro
  [image:
 Blogger]http://s.wisestamp.com/links?url=http%3A%2F%2Fpushpalankajaya.blogspot.com%2F
  [image:
 SlideShare]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.slideshare.net%2FPushpalanka
 Mobile: +94779716248




 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com

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




-- 
*Lasantha Fernando*
Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BAM] Getting EventConversionException when sending data to BAM

2014-02-05 Thread Chamila Wijayarathna
Hi all,
I have following stream definition in my publisher.

String HTTPD_LOG_STREAM = log_analyzer.call_records_test;

*streamId = dataPublisher.defineStream({ +*
*  'name':' + HTTPD_LOG_STREAM + ', +*
*  'version':' + VERSION + ', +*
*  'nickName': 'Call record', +*
*  'description': 'Sample ', +*
*  'metaData':[ +*
*  {'name':'clientType','type':'STRING'} +*
*  ], +*
*  'payloadData':[ +*
*
 {'name':'callingPartyNumber','type':'STRING'}, +*
*
 {'name':'CalledPartyNumber','type':'STRING'}, +*
*  {'name':'duration','type':'LONG'}, +*
*  {'name':'timestamp','type':'STRING'} +*
*  ] +*
*});*

I'm trying to send following data to BAM using above mentioned stream in
followng manner.

 *Object[] meta = new Object[]{*
* external*
* };*

* Object[] payload = new Object[]{*
*  07,*
*  071717171,*
*  500,*
*  2014*

* };*
*Event event = new Event(streamId, System.currentTimeMillis(),
meta, null,*
*payload);*
*System.out.println(event);*
*dataPublisher.publish(event);*

When I run my publisher matching stream definition is created in
META_KS.STREAM_DEFINITION and column family with stream name is created in
EVENT_KS.

*KEY: STREAM_DEFINITION
VALUE: 
{streamId:log_analyzer.call_records_test:1.0.0,name:log_analyzer.call_records_test,version:1.0.0,nickName:Httpd_Log_Stream,description:Sample
of Httpd 
logs,metaData:[{name:clientType,type:STRING}],payloadData:[{name:callingPartyNumber,type:STRING},{name:CalledPartyNumber,type:STRING},{name:duration,type:LONG},{name:timestamp,type:STRING}]}*


When I send events to BAM using above code, I'm getting following
exeption in BAM Console.


*ERROR {org.wso2.carbon.databridge.core.internal.queue.QueueWorker} -
Wrongly formatted event sent for carbon.super
org.wso2.carbon.databridge.core.exception.EventConversionException:
Error when converting log_analyzer.call_records_test:1.0.0 of event
bundle with events 1
at 
org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:126)
at 
org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.toEventList(ThriftEventConverter.java:88)
at 
org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:72)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.rangeCheck(ArrayList.java:604)
at java.util.ArrayList.get(ArrayList.java:382)
at 
org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.toObjectArray(ThriftEventConverter.java:53)
at 
org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:116)
... 8 more
*


But I don't see any mismatch between receiving stream and events I'm
sending. How can I solve this problem?

Thank You.
-- 
*Chamila Wijayarathna*
Engineering Intern,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BAM] Getting EventConversionException when sending data to BAM

2014-02-05 Thread Sinthuja Ragendran
Hi chamila,



On Thu, Feb 6, 2014 at 10:57 AM, Chamila Wijayarathna cham...@wso2.comwrote:

 Hi all,
 I have following stream definition in my publisher.

 String HTTPD_LOG_STREAM = log_analyzer.call_records_test;

 *streamId = dataPublisher.defineStream({ +*
 *  'name':' + HTTPD_LOG_STREAM + ', +*
 *  'version':' + VERSION + ', +*
 *  'nickName': 'Call record', +*
 *  'description': 'Sample ', +*
 *  'metaData':[ +*
 *  {'name':'clientType','type':'STRING'} +*
 *  ], +*
 *  'payloadData':[ +*
 *
  {'name':'callingPartyNumber','type':'STRING'}, +*
 *
  {'name':'CalledPartyNumber','type':'STRING'}, +*
 *  {'name':'duration','type':'LONG'}, +*
 *  {'name':'timestamp','type':'STRING'} +*
 *  ] +*
 *});*

 I'm trying to send following data to BAM using above mentioned stream in
 followng manner.

  *Object[] meta = new Object[]{*
 * external*
 * };*

 * Object[] payload = new Object[]{*
 *  07 07,*
 *  071717171,*
 *  500,*


According to the stream definition, this value should be a LONG value, but
you are passing as string. Try to change it as 500, without double
quotation.


Thanks,
Sinthuja.

 *  2014*

 * };*
 *Event event = new Event(streamId, System.currentTimeMillis(),
 meta, null,*
 *payload);*
 *System.out.println(event);*
 *dataPublisher.publish(event);*

 When I run my publisher matching stream definition is created in
 META_KS.STREAM_DEFINITION and column family with stream name is created in
 EVENT_KS.

 *KEY: STREAM_DEFINITION
 VALUE: 
 {streamId:log_analyzer.call_records_test:1.0.0,name:log_analyzer.call_records_test,version:1.0.0,nickName:Httpd_Log_Stream,description:Sample
  of Httpd 
 logs,metaData:[{name:clientType,type:STRING}],payloadData:[{name:callingPartyNumber,type:STRING},{name:CalledPartyNumber,type:STRING},{name:duration,type:LONG},{name:timestamp,type:STRING}]}*


 When I send events to BAM using above code, I'm getting following exeption in 
 BAM Console.


 *ERROR {org.wso2.carbon.databridge.core.internal.queue.QueueWorker} -  
 Wrongly formatted event sent for carbon.super
 org.wso2.carbon.databridge.core.exception.EventConversionException: Error 
 when converting log_analyzer.call_records_test:1.0.0 of event bundle with 
 events 1
   at 
 org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:126)
   at 
 org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.toEventList(ThriftEventConverter.java:88)
   at 
 org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:72)
   at 
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:724)
 Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
   at java.util.ArrayList.rangeCheck(ArrayList.java:604)
   at java.util.ArrayList.get(ArrayList.java:382)
   at 
 org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.toObjectArray(ThriftEventConverter.java:53)
   at 
 org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:116)
   ... 8 more
 *


 But I don't see any mismatch between receiving stream and events I'm
 sending. How can I solve this problem?

 Thank You.
 --
 *Chamila Wijayarathna*
 Engineering Intern,
 WSO2 Inc.


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




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

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


Re: [Dev] [BAM] Getting EventConversionException when sending data to BAM

2014-02-05 Thread Chamila Wijayarathna
Hi,
I tried it that way also, but it gave me the same error. It works when I
change the stream definition to

*streamId = dataPublisher.defineStream({ +*
*  'name':' + HTTPD_LOG_STREAM + ', +*
*  'version':' + VERSION + ', +*
*  'nickName': 'Call record', +*
*  'description': 'Sample ', +*
*  'metaData':[ +*
*  {'name':'clientType','type':'STRING'} +*
*  ], +*
*  'payloadData':[ +*
*
 {'name':'callingPartyNumber','type':'STRING'}, +*
*
 {'name':'CalledPartyNumber','type':'STRING'}, +*
*  {'name':'duration','type':'STRING'}, +*
*  {'name':'timestamp','type':'STRING'} +*
*  ] +*
*});*

*Thank You.*


On Thu, Feb 6, 2014 at 11:04 AM, Sinthuja Ragendran sinth...@wso2.comwrote:

 Hi chamila,



 On Thu, Feb 6, 2014 at 10:57 AM, Chamila Wijayarathna cham...@wso2.comwrote:

 Hi all,
 I have following stream definition in my publisher.

 String HTTPD_LOG_STREAM = log_analyzer.call_records_test;

 *streamId = dataPublisher.defineStream({ +*
 *  'name':' + HTTPD_LOG_STREAM + ', +*
 *  'version':' + VERSION + ', +*
 *  'nickName': 'Call record', +*
 *  'description': 'Sample ', +*
 *  'metaData':[ +*
 *  {'name':'clientType','type':'STRING'} +*
 *  ], +*
 *  'payloadData':[ +*
 *
  {'name':'callingPartyNumber','type':'STRING'}, +*
 *
  {'name':'CalledPartyNumber','type':'STRING'}, +*
 *  {'name':'duration','type':'LONG'}, +*
 *  {'name':'timestamp','type':'STRING'} +*
 *  ] +*
 *});*

 I'm trying to send following data to BAM using above mentioned stream in
 followng manner.

  *Object[] meta = new Object[]{*
 * external*
 * };*

 * Object[] payload = new Object[]{*
 *  07 07,*
 *  071717171,*
 *  500,*


 According to the stream definition, this value should be a LONG value, but
 you are passing as string. Try to change it as 500, without double
 quotation.


 Thanks,
 Sinthuja.

 *  2014*

 * };*
 *Event event = new Event(streamId, System.currentTimeMillis(),
 meta, null,*
 *payload);*
 *System.out.println(event);*
 *dataPublisher.publish(event);*

 When I run my publisher matching stream definition is created in
 META_KS.STREAM_DEFINITION and column family with stream name is created in
 EVENT_KS.

 *KEY: STREAM_DEFINITION
 VALUE: 
 {streamId:log_analyzer.call_records_test:1.0.0,name:log_analyzer.call_records_test,version:1.0.0,nickName:Httpd_Log_Stream,description:Sample
  of Httpd 
 logs,metaData:[{name:clientType,type:STRING}],payloadData:[{name:callingPartyNumber,type:STRING},{name:CalledPartyNumber,type:STRING},{name:duration,type:LONG},{name:timestamp,type:STRING}]}*


 When I send events to BAM using above code, I'm getting following exeption 
 in BAM Console.


 *ERROR {org.wso2.carbon.databridge.core.internal.queue.QueueWorker} -  
 Wrongly formatted event sent for carbon.super
 org.wso2.carbon.databridge.core.exception.EventConversionException: Error 
 when converting log_analyzer.call_records_test:1.0.0 of event bundle with 
 events 1
  at 
 org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:126)
  at 
 org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.toEventList(ThriftEventConverter.java:88)
  at 
 org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:72)
  at 
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
  at java.util.concurrent.FutureTask.run(FutureTask.java:166)
  at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:724)
 Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
  at java.util.ArrayList.rangeCheck(ArrayList.java:604)
  at java.util.ArrayList.get(ArrayList.java:382)
  at 
 org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.toObjectArray(ThriftEventConverter.java:53)
  at 
 org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:116)
  ... 8 more
 *


 But I don't see any mismatch between receiving 

Re: [Dev] We will also need to move Carbon 4.x kernel to GitHub

2014-02-05 Thread Krishantha Samaraweera
Hi,

On Mon, Jan 27, 2014 at 9:18 AM, Eranda Sooriyabandara era...@wso2.comwrote:

 Hi all,
 I merged and moved the kernel code to github in [1]. Now it is building
 and passing tests 24/1/0 where verifyAdminServiceSecurityTest class:
 org.wso2.carbon.integration.tests test is failing and I am currently
 looking in to it. Another concern is that we need to have an orbit location
 for 4.3.0 (or we can directly put them in the nexus) but there is already
 existing an orbit repo in github. Since no one is using that orbit I think
 we should remove it and put the new orbit bundles there. WDYT?



VerifyAdminServiceSecurityTestCase is fixed now..

Thanks,
Krishantha.


 thanks
 Eranda

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

 org.apache.axis2.AxisFault: Exception occurred while trying to invoke service 
 method verifyAdminServices
   at 
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
   at 
 org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOutOnlyOperationClient.handleResponse(RobustOutOnlyAxisOperation.java:91)
   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.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:474)
   at 
 org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:455)
   at 
 org.wso2.carbon.integration.framework.SecurityVerificationTest.verifyAdminServiceSecurity(SecurityVerificationTest.java:59)
   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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
   at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
   at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842)
   at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166)
   at 
 org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
   at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
   at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
   at org.testng.TestRunner.privateRun(TestRunner.java:757)
   at org.testng.TestRunner.run(TestRunner.java:608)
   at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
   at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
   at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
   at org.testng.SuiteRunner.run(SuiteRunner.java:240)
   at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
   at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
   at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
   at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
   at org.testng.TestNG.run(TestNG.java:999)
   at 
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:76)
   at 
 org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:161)
   at 
 org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:101)
   at 
 org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:115)
   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.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
   at 
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
   at 
 org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
   at 
 org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
   at 
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)




 On Mon, Jan 20, 2014 at 7:30 PM, Afkham Azeez az...@wso2.com wrote:

 $subject

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

Re: [Dev] Using sso-idp-config.xml in IS 4.6.0

2014-02-05 Thread Pradeep Fernando
Hi manu,
May be im bit off the topic..
its a stratos component. I now that stratos is not there anymore, it should
go under identity components. Ishara did some improvements to it recently.
@Johan : shall we make it a identity component.

--Pradeep


On Thu, Feb 6, 2014 at 10:56 AM, Lasantha Fernando lasan...@wso2.comwrote:

 Hi Manu,

 org.wso2.stratos.identity.saml2.sso.mgt.jar has been released. The
 relevant version for turing is 2.2.0. You can find it in [1] and also it is
 available in the p2-repo. I think you can install it from p2 as well
 without any issue.

 The pom for the component has the group as org.wso.carbon, which groups it
 to the wrong folder structure in nexus AFAIK.

 [1]
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.stratos.identity.saml2.sso.mgt/

 Thanks,
 Lasantha


 On 6 February 2014 03:05, Manuranga Perera m...@wso2.com wrote:

 org.wso2.stratos.identity.saml2.sso.mgt.jar has not been released for
 4.2.0 AFAIK, that's why I asked. coping 4.0.0 jar works, it doesn’t look
 like the correct solution.


 On Wed, Feb 5, 2014 at 12:41 PM, Pushpalanka Jayawardhana la...@wso2.com
  wrote:

 Hi Manu,

 You can do this by having org.wso2.stratos.identity.saml2.sso.mgt.jar
 in dropins and ss-idp-config.xml in repository/conf. At server start you
 will see the SPs getting registered.


 On Thu, Feb 6, 2014 at 1:39 AM, Manuranga Perera m...@wso2.com wrote:

 according to a mail thread [1] in architecture IS 4.6.0 should have the
 capability to add sso idPs using sso-idp-config.xml. but it seems like that
 feature is not in there.

 is it possible to get it working ?
 OR
 please suggest a way to configure idPs (without using UI).



 [1] [Architecture] Alternative to using sso-idp-config.xml
 http://wso2-oxygen-tank.10903.n7.nabble.com/Alternative-to-using-sso-idp-config-xml-td86326.html
 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com



 Thanks,
 --

 Pushpalanka Jayawardhana

 Software Engineer

 WSO2 Lanka (pvt) Ltd
 [image: 
 Facebook]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.facebook.com%2Fpushpalanka
  [image:
 Twitter]http://s.wisestamp.com/links?url=http%3A%2F%2Ftwitter.com%2FPushpalanka
  [image:
 LinkedIn]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D75175642%26trk%3Dtab_pro
  [image:
 Blogger]http://s.wisestamp.com/links?url=http%3A%2F%2Fpushpalankajaya.blogspot.com%2F
  [image:
 SlideShare]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.slideshare.net%2FPushpalanka
 Mobile: +94779716248




 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com

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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Using sso-idp-config.xml in IS 4.6.0

2014-02-05 Thread Johann Nallathamby
+1. We've already planned to do this.


On Thu, Feb 6, 2014 at 12:07 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi manu,
 May be im bit off the topic..
 its a stratos component. I now that stratos is not there anymore, it
 should go under identity components. Ishara did some improvements to it
 recently.
 @Johan : shall we make it a identity component.

 --Pradeep


 On Thu, Feb 6, 2014 at 10:56 AM, Lasantha Fernando lasan...@wso2.comwrote:

 Hi Manu,

 org.wso2.stratos.identity.saml2.sso.mgt.jar has been released. The
 relevant version for turing is 2.2.0. You can find it in [1] and also it is
 available in the p2-repo. I think you can install it from p2 as well
 without any issue.

 The pom for the component has the group as org.wso.carbon, which groups
 it to the wrong folder structure in nexus AFAIK.

 [1]
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.stratos.identity.saml2.sso.mgt/

 Thanks,
 Lasantha


 On 6 February 2014 03:05, Manuranga Perera m...@wso2.com wrote:

  org.wso2.stratos.identity.saml2.sso.mgt.jar has not been released for
 4.2.0 AFAIK, that's why I asked. coping 4.0.0 jar works, it doesn't look
 like the correct solution.


 On Wed, Feb 5, 2014 at 12:41 PM, Pushpalanka Jayawardhana 
 la...@wso2.com wrote:

 Hi Manu,

 You can do this by having org.wso2.stratos.identity.saml2.sso.mgt.jar
 in dropins and ss-idp-config.xml in repository/conf. At server start you
 will see the SPs getting registered.


 On Thu, Feb 6, 2014 at 1:39 AM, Manuranga Perera m...@wso2.com wrote:

 according to a mail thread [1] in architecture IS 4.6.0 should have
 the capability to add sso idPs using sso-idp-config.xml. but it seems like
 that feature is not in there.

 is it possible to get it working ?
 OR
 please suggest a way to configure idPs (without using UI).



 [1] [Architecture] Alternative to using sso-idp-config.xml
 http://wso2-oxygen-tank.10903.n7.nabble.com/Alternative-to-using-sso-idp-config-xml-td86326.html
 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com



 Thanks,
 --

 Pushpalanka Jayawardhana

 Software Engineer

 WSO2 Lanka (pvt) Ltd
 [image: 
 Facebook]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.facebook.com%2Fpushpalanka
  [image:
 Twitter]http://s.wisestamp.com/links?url=http%3A%2F%2Ftwitter.com%2FPushpalanka
  [image:
 LinkedIn]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D75175642%26trk%3Dtab_pro
  [image:
 Blogger]http://s.wisestamp.com/links?url=http%3A%2F%2Fpushpalankajaya.blogspot.com%2F
  [image:
 SlideShare]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.slideshare.net%2FPushpalanka
 Mobile: +94779716248




 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com

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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551

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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

 blog: http://pradeepfernando.blogspot.com
 m: +94776603662




-- 
Thanks  Regards,

*Johann Dilantha Nallathamby*
Senior Software Engineer
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