Re: [Dev] ESB Integration test failure [org.wso2.carbon.esb.proxyservice.test.passThroughProxy]

2013-09-02 Thread Nuwan Wimalasekara
Hi Nalin
Problem is that another test class deploy a StockQuoteProxy and it failed
to undeploy proxy service properly. after test is executed. to solve the
issue, first find all the test classes which use proxy service named
StockQuoteProxy.
then check AfterClass method for any possibility to avoid service
undeployment. may be undeployment is not called or may be it skipped due to
failure at above step.

Thanks,
Nuwanw



On Mon, Sep 2, 2013 at 11:18 PM, Nalin Chandraratne na...@wso2.com wrote:

 Hi,

 When the passThroughProxy integration tests were run, 2 tests got skipped
 at the BeforeClass level. Following is the error.

 FAILED CONFIGURATION: @BeforeClass setEnvironment
 org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminProxyAdminException:
 ProxyServiceAdminProxyAdminException
 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.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub.addProxy(ProxyServiceAdminStub.java:1297)
 at
 org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient.addProxyService(ProxyServiceAdminClient.java:145)
 

 When the esb log is observed, following exception was found before
 skipping the tests.

 TID: [0] [ESB] [2013-09-02 22:20:54,334]  INFO
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
 'testuser2@carbon.super [-1234]' logged in at [2013-09-02
 22:20:54,334+0530]
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
 TID: [0] [ESB] [2013-09-02 22:20:54,990] ERROR
 {org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin} -  A service named
 StockQuoteProxy already exists
 {org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin}
 org.wso2.carbon.proxyadmin.ProxyAdminException: A service named
 StockQuoteProxy already exists
 at
 org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin.handleException(ProxyServiceAdmin.java:978)
 at
 org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin.addProxyService(ProxyServiceAdmin.java:233)
 at
 org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin.addProxy(ProxyServiceAdmin.java:685)
 ...

 When I try to debug the skipping test case (by putting a debug pointer
 inside @BeforeClass setEnvironment() method ), the test cases executed
 fine. I observed that the esb configuration to be submitted by the test
 class had a proxy service StockQuoteProxy and the esb running at that
 time already had a proxy service by that name. However the whole
 configuration got changed successfully in debugging mode.

 At the same time when the test cases were run individually with the
 following testng.xml configuration, they got passed successfully.

 test name=ProxyService-Test preserve-order=true verbose=2
 classes
 class
 name=org.wso2.carbon.esb.proxyservice.test.passThroughProxy.EditPassThroughProxyServiceTestCase/
 class
 name=org.wso2.carbon.esb.proxyservice.test.passThroughProxy.ProxyServiceEnablingHTTPSTestCase/
 class
 name=org.wso2.carbon.esb.proxyservice.test.passThroughProxy.ProxyServiceEndPointThroughURLTestCase/
 class
 name=org.wso2.carbon.esb.proxyservice.test.passThroughProxy.ProxyServiceEnablingHTTPTestCase/
 class
 name=org.wso2.carbon.esb.proxyservice.test.passThroughProxy.WSDLOptionsPickedFromRegistryTestCase/
 class
 name=org.wso2.carbon.esb.proxyservice.test.passThroughProxy.WSDLOptionsSpecifiedSourceUrlTestCase/
 class
 name=org.wso2.carbon.esb.proxyservice.test.passThroughProxy.ProxyServiceWithCustomServiceURITestCase/
 class
 name=org.wso2.carbon.esb.proxyservice.test.passThroughProxy.PassThroughProxyServiceTestCase/
 class
 name=org.wso2.carbon.esb.proxyservice.test.passThroughProxy.WSDLOptionsSpecifiedInlineTestCase/
 class
 name=org.wso2.carbon.esb.proxyservice.test.passThroughProxy.PickEndPointFromRegistryTestCase/
 /classes
 /test



 What would be the reason for skipping test cases when the testng.xml is
 like below ?


 test name=ProxyService-Test preserve-order=true verbose=2
 packages
 package
 name=org.wso2.carbon.esb.proxyservice.test.passThroughProxy/
 /packages
 /test


 surefire reports in both scenarios are attached below.




 --
 Nalin Chamara
 Software Engineer
 na...@wso2.com
 +94715614756




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

Re: [Dev] ESB Integration test failure [org.wso2.carbon.esb.proxyservice.test.passThroughProxy]

2013-09-02 Thread Nalin Chandraratne
Hi Nuwan,

As I mentioned above, while debugging, I did notice that a previously
deployed stockQuoteService was not undeployed when trying to update a new
synapse configuration which had the same service in it. However, after
calling loadEsbConfigurationFromClasspath (path) method, new configuration
got applied successfully (can observe in the carbon log) and no issue
occurred. None of the after class methods got skipped either.

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


Re: [Dev] ESB: Integration test failure

2013-06-04 Thread Ravi Undupitiya
Hi Lahiru,


I'm not seeing this error on the latest build. Which pack did you use to
run this? It's possible this was fixed recently as there were some issues
resolved related to XSLT Transformation.



Thanks,
Ravi


On Fri, May 31, 2013 at 2:54 PM, Lahiru Sandaruwan lahi...@wso2.com wrote:

 Hi,

 $subject for 1 out of 7 tests in XSLT tests.

 Results :

 Failed tests:
 xsltTransformationFromUrl(org.wso2.carbon.mediator.tests.xslt.XsltTransformationFromUrlTestCase):
 Unable to perform XSLT transformation using : Value {name ='null', keyValue
 ='transform.xslt'} against source XPath : s11:Body/child::*[position()=1] |
 s12:Body/child::*[position()=1]

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


 Attached the surefire report.

 Thanks.

 --
 --
 Lahiru Sandaruwan
 Software Engineer,
 Platform Technologies,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 email: lahi...@wso2.com cell: (+94) 773 325 954
 blog: http://lahiruwrites.blogspot.com/
 twitter: http://twitter.com/lahirus
 linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146




-- 
*Ravi Undupitiya*
Software Engineer; WSO2 Inc.; http://wso2.com
*
*
*E-mail: r...@wso2.com
**M: **+94 772 930 712*
*
*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB: Integration test failure

2013-06-04 Thread Lahiru Sandaruwan
Hi Ravi,

I found that all the tests are moved to one module called 'tests'. In that
this issue is not there. I was checking the old module called
mediator-test.
So we can consider this is fixed.

Thanks.


On Tue, Jun 4, 2013 at 6:01 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi Lahiru,


 I'm not seeing this error on the latest build. Which pack did you use to
 run this? It's possible this was fixed recently as there were some issues
 resolved related to XSLT Transformation.



 Thanks,
 Ravi


 On Fri, May 31, 2013 at 2:54 PM, Lahiru Sandaruwan lahi...@wso2.comwrote:

 Hi,

 $subject for 1 out of 7 tests in XSLT tests.

 Results :

 Failed tests:
 xsltTransformationFromUrl(org.wso2.carbon.mediator.tests.xslt.XsltTransformationFromUrlTestCase):
 Unable to perform XSLT transformation using : Value {name ='null', keyValue
 ='transform.xslt'} against source XPath : s11:Body/child::*[position()=1] |
 s12:Body/child::*[position()=1]

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


 Attached the surefire report.

 Thanks.

 --
 --
 Lahiru Sandaruwan
 Software Engineer,
 Platform Technologies,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 email: lahi...@wso2.com cell: (+94) 773 325 954
 blog: http://lahiruwrites.blogspot.com/
 twitter: http://twitter.com/lahirus
 linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146




 --
 *Ravi Undupitiya*
 Software Engineer; WSO2 Inc.; http://wso2.com
 *
 *
 *E-mail: r...@wso2.com
 **M: **+94 772 930 712*
 *
 *Lean . Enterprise . Middleware




-- 
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahi...@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB: Integration test failure

2013-06-04 Thread Krishantha Samaraweera
Need to get rid of old test modules.

@Lahiru - Are you checking ESB 4.7.0 ?

Thanks,
Krishantha.

On Tue, Jun 4, 2013 at 6:36 PM, Lahiru Sandaruwan lahi...@wso2.com wrote:

 Hi Ravi,

 I found that all the tests are moved to one module called 'tests'. In that
 this issue is not there. I was checking the old module called
 mediator-test.
 So we can consider this is fixed.

 Thanks.


 On Tue, Jun 4, 2013 at 6:01 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi Lahiru,


 I'm not seeing this error on the latest build. Which pack did you use to
 run this? It's possible this was fixed recently as there were some issues
 resolved related to XSLT Transformation.



 Thanks,
 Ravi


 On Fri, May 31, 2013 at 2:54 PM, Lahiru Sandaruwan lahi...@wso2.comwrote:

 Hi,

 $subject for 1 out of 7 tests in XSLT tests.

 Results :

 Failed tests:
 xsltTransformationFromUrl(org.wso2.carbon.mediator.tests.xslt.XsltTransformationFromUrlTestCase):
 Unable to perform XSLT transformation using : Value {name ='null', keyValue
 ='transform.xslt'} against source XPath : s11:Body/child::*[position()=1] |
 s12:Body/child::*[position()=1]

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


 Attached the surefire report.

 Thanks.

 --
 --
 Lahiru Sandaruwan
 Software Engineer,
 Platform Technologies,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 email: lahi...@wso2.com cell: (+94) 773 325 954
 blog: http://lahiruwrites.blogspot.com/
 twitter: http://twitter.com/lahirus
 linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146




 --
 *Ravi Undupitiya*
 Software Engineer; WSO2 Inc.; http://wso2.com
 *
 *
 *E-mail: r...@wso2.com
 **M: **+94 772 930 712*
 *
 *Lean . Enterprise . Middleware




 --
 --
 Lahiru Sandaruwan
 Software Engineer,
 Platform Technologies,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 email: lahi...@wso2.com cell: (+94) 773 325 954
 blog: http://lahiruwrites.blogspot.com/
 twitter: http://twitter.com/lahirus
 linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146


 ___
 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] ESB: Integration test failure

2013-06-04 Thread Lahiru Sandaruwan
On Tue, Jun 4, 2013 at 7:15 PM, Krishantha Samaraweera
krishan...@wso2.comwrote:

 Need to get rid of old test modules.

 @Lahiru - Are you checking ESB 4.7.0 ?


No, Support branch, ESB 4.6.0

thanks.


 Thanks,
 Krishantha.

 On Tue, Jun 4, 2013 at 6:36 PM, Lahiru Sandaruwan lahi...@wso2.comwrote:

 Hi Ravi,

 I found that all the tests are moved to one module called 'tests'. In
 that this issue is not there. I was checking the old module called
 mediator-test.
 So we can consider this is fixed.

 Thanks.


 On Tue, Jun 4, 2013 at 6:01 PM, Ravi Undupitiya r...@wso2.com wrote:

 Hi Lahiru,


 I'm not seeing this error on the latest build. Which pack did you use to
 run this? It's possible this was fixed recently as there were some issues
 resolved related to XSLT Transformation.



 Thanks,
 Ravi


 On Fri, May 31, 2013 at 2:54 PM, Lahiru Sandaruwan lahi...@wso2.comwrote:

 Hi,

 $subject for 1 out of 7 tests in XSLT tests.

 Results :

 Failed tests:
 xsltTransformationFromUrl(org.wso2.carbon.mediator.tests.xslt.XsltTransformationFromUrlTestCase):
 Unable to perform XSLT transformation using : Value {name ='null', keyValue
 ='transform.xslt'} against source XPath : s11:Body/child::*[position()=1] |
 s12:Body/child::*[position()=1]

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


 Attached the surefire report.

 Thanks.

 --
 --
 Lahiru Sandaruwan
 Software Engineer,
 Platform Technologies,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 email: lahi...@wso2.com cell: (+94) 773 325 954
 blog: http://lahiruwrites.blogspot.com/
 twitter: http://twitter.com/lahirus
 linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146




 --
 *Ravi Undupitiya*
 Software Engineer; WSO2 Inc.; http://wso2.com
 *
 *
 *E-mail: r...@wso2.com
 **M: **+94 772 930 712*
 *
 *Lean . Enterprise . Middleware




 --
 --
 Lahiru Sandaruwan
 Software Engineer,
 Platform Technologies,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 email: lahi...@wso2.com cell: (+94) 773 325 954
 blog: http://lahiruwrites.blogspot.com/
 twitter: http://twitter.com/lahirus
 linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146


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





-- 
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahi...@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev