Re: [Dev] [MB]Error when trying to run the Durable subscriber sample

2015-03-25 Thread Pranavan Theivendram
Hi Mahesh,

You can download the latest pack from the link below.
It is resolved now.

https://wso2.org/jenkins/job/product-mb/

On Thu, Mar 26, 2015 at 10:18 AM, Mahesh Chinthaka mahe...@wso2.com wrote:

 No, just one subscriber.

 On Thu, Mar 26, 2015 at 8:59 AM, Pranavan Theivendram pranav...@wso2.com
 wrote:

 Hi Mahesh,

 Do you have two or more subscribers to the durable topic?

 On Wed, Mar 25, 2015 at 11:23 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi Megala,

 Can you explain how did you get this one sorted out ??
 Im also getting the same error im using MB2.2.0

 Others, any idea on resolving this ??

 On Mon, Feb 9, 2015 at 11:17 AM, Megala Uthayakumar meg...@wso2.com
 wrote:

 Hi all,
 Thanks for the help. The issue has been resolved now.

 On Mon, Feb 9, 2015 at 11:11 AM, Pamod Sylvester pa...@wso2.com
 wrote:

 Hi Megala,

 For the log trace it seems like two subscribers with the same id are
 attempting to subscribe.

 Thanks,
 Pamod

 On Mon, Feb 9, 2015 at 11:08 AM, Shiva Balachandran sh...@wso2.com
 wrote:

 Hi All,

 I think the issue must have popped up after the new fixes.

 Looping Pamod in.

 Thank you.

 Regards,

 Shiva Balachandran

 On Mon, Feb 9, 2015 at 10:11 AM, Pranavan Theivendram 
 pranav...@wso2.com wrote:

 Hi Megala,

 Please use 2.5 version snapshot. For me it is working.

 On Sat, Feb 7, 2015 at 5:43 PM, Megala Uthayakumar meg...@wso2.com
 wrote:

 Hi,

 Thanks for the info. But I am using the MB 3.0.

 On Fri, Feb 6, 2015 at 6:12 PM, Shiva Balachandran sh...@wso2.com
 wrote:

 Hi Megala,

 What is the version of MB you are currently using? This was issue
 was experienced in 2.0.1 and was fixed in the later version, refer to 
 [1].

 [1] -
 http://stackoverflow.com/questions/16107685/wso2-messagebrokerthrowing-org-wso2-andes-amqtimeoutexception-error-when-creati

 Thank you.

 Regards,
 Shiva Balachandran

 On Fri, Feb 6, 2015 at 3:28 PM, Megala Uthayakumar 
 meg...@wso2.com wrote:


 Hi all,

 When I try to run the Durable subscriber sample in the MB I got
 the following error.

 [











 *java] javax.jms.JMSException: Error registering consumer:
 org.wso2.andes.AMQSecurityException: Cannot subscribe to queue
 carbon:mySub1234567 as it already has an existing exclusive consumer 
 [error
 code 403: access refused] [java] at
 org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2089) 
 [java]
 at 
 org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2032)
 [java] at
 org.wso2.andes.client.AMQConnectionDelegate_8_0.executeRetrySupport(AMQConnectionDelegate_8_0.java:315)
 [java] at
 org.wso2.andes.client.AMQConnection.executeRetrySupport(AMQConnection.java:620)
 [java] at
 org.wso2.andes.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102)
 [java] at
 org.wso2.andes.client.AMQSession.createConsumerImpl(AMQSession.java:2030)
 [java] at
 org.wso2.andes.client.AMQSession.createConsumer(AMQSession.java:1028)
 [java] at
 org.wso2.andes.client.AMQSession.createDurableSubscriber(AMQSession.java:1182)
 [java] at
 org.wso2.andes.client.AMQSession.createDurableSubscriber(AMQSession.java:1077)
 [java] at
 org.wso2.andes.client.AMQTopicSessionAdaptor.createDurableSubscriber(AMQTopicSessionAdaptor.java:73)
 [java] at org.sample.jms.DurableTopicSubscriber.subscribe(Unknown
 Source) [java] at org.sample.jms.Main.main(Unknown Source)*

 Same exception is thrown  when trying to run the integration test
 for the durable subscribers. What may be the possible reason for 
 this?

 Thanks

 Megala Uthayakumar
 *Software Engineering Intern *| *WSO2 Lanka*
 Mobile : +94 779 967 122
 Tel  : +94 112 733 667
 E-mail :  meg...@wso2.com

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




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/




 --
 Megala Uthayakumar
 *Software Engineering Intern *| *WSO2 Lanka*
 Mobile : +94 779 967 122
 Tel  : +94 112 733 667
 E-mail :  meg...@wso2.com

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




 --

 *Regards,*

 *T.Pranavan*

 *Software Engineering intern, WSO2*
 *Mobile - +94775136836 %2B94775136836*

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




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/




 --
 *Pamod Sylvester *
  *Senior Software Engineer *
 Integration Technologies Team, WSO2 Inc.; http://wso2.com
 email: pa...@wso2.com cell: +94 77 7779495




 --
 Megala Uthayakumar
 *Software Engineering Intern *| *WSO2 Lanka*
 Mobile : +94 779 967 122
 Tel  : +94 112 733 667
 E-mail :  meg...@wso2.com

Re: [Dev] [MB]Error when trying to run the Durable subscriber sample

2015-03-25 Thread Pranavan Theivendram
Hi Mahesh,

Do you have two or more subscribers to the durable topic?

On Wed, Mar 25, 2015 at 11:23 AM, Mahesh Chinthaka mahe...@wso2.com wrote:

 Hi Megala,

 Can you explain how did you get this one sorted out ??
 Im also getting the same error im using MB2.2.0

 Others, any idea on resolving this ??

 On Mon, Feb 9, 2015 at 11:17 AM, Megala Uthayakumar meg...@wso2.com
 wrote:

 Hi all,
 Thanks for the help. The issue has been resolved now.

 On Mon, Feb 9, 2015 at 11:11 AM, Pamod Sylvester pa...@wso2.com wrote:

 Hi Megala,

 For the log trace it seems like two subscribers with the same id are
 attempting to subscribe.

 Thanks,
 Pamod

 On Mon, Feb 9, 2015 at 11:08 AM, Shiva Balachandran sh...@wso2.com
 wrote:

 Hi All,

 I think the issue must have popped up after the new fixes.

 Looping Pamod in.

 Thank you.

 Regards,

 Shiva Balachandran

 On Mon, Feb 9, 2015 at 10:11 AM, Pranavan Theivendram 
 pranav...@wso2.com wrote:

 Hi Megala,

 Please use 2.5 version snapshot. For me it is working.

 On Sat, Feb 7, 2015 at 5:43 PM, Megala Uthayakumar meg...@wso2.com
 wrote:

 Hi,

 Thanks for the info. But I am using the MB 3.0.

 On Fri, Feb 6, 2015 at 6:12 PM, Shiva Balachandran sh...@wso2.com
 wrote:

 Hi Megala,

 What is the version of MB you are currently using? This was issue
 was experienced in 2.0.1 and was fixed in the later version, refer to 
 [1].

 [1] -
 http://stackoverflow.com/questions/16107685/wso2-messagebrokerthrowing-org-wso2-andes-amqtimeoutexception-error-when-creati

 Thank you.

 Regards,
 Shiva Balachandran

 On Fri, Feb 6, 2015 at 3:28 PM, Megala Uthayakumar meg...@wso2.com
 wrote:


 Hi all,

 When I try to run the Durable subscriber sample in the MB I got the
 following error.

 [











 *java] javax.jms.JMSException: Error registering consumer:
 org.wso2.andes.AMQSecurityException: Cannot subscribe to queue
 carbon:mySub1234567 as it already has an existing exclusive consumer 
 [error
 code 403: access refused] [java] at
 org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2089) 
 [java]
 at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2032)
 [java] at
 org.wso2.andes.client.AMQConnectionDelegate_8_0.executeRetrySupport(AMQConnectionDelegate_8_0.java:315)
 [java] at
 org.wso2.andes.client.AMQConnection.executeRetrySupport(AMQConnection.java:620)
 [java] at
 org.wso2.andes.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102)
 [java] at
 org.wso2.andes.client.AMQSession.createConsumerImpl(AMQSession.java:2030)
 [java] at
 org.wso2.andes.client.AMQSession.createConsumer(AMQSession.java:1028)
 [java] at
 org.wso2.andes.client.AMQSession.createDurableSubscriber(AMQSession.java:1182)
 [java] at
 org.wso2.andes.client.AMQSession.createDurableSubscriber(AMQSession.java:1077)
 [java] at
 org.wso2.andes.client.AMQTopicSessionAdaptor.createDurableSubscriber(AMQTopicSessionAdaptor.java:73)
 [java] at org.sample.jms.DurableTopicSubscriber.subscribe(Unknown
 Source) [java] at org.sample.jms.Main.main(Unknown Source)*

 Same exception is thrown  when trying to run the integration test
 for the durable subscribers. What may be the possible reason for this?

 Thanks

 Megala Uthayakumar
 *Software Engineering Intern *| *WSO2 Lanka*
 Mobile : +94 779 967 122
 Tel  : +94 112 733 667
 E-mail :  meg...@wso2.com

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




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/




 --
 Megala Uthayakumar
 *Software Engineering Intern *| *WSO2 Lanka*
 Mobile : +94 779 967 122
 Tel  : +94 112 733 667
 E-mail :  meg...@wso2.com

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




 --

 *Regards,*

 *T.Pranavan*

 *Software Engineering intern, WSO2*
 *Mobile - +94775136836 %2B94775136836*

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




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/




 --
 *Pamod Sylvester *
  *Senior Software Engineer *
 Integration Technologies Team, WSO2 Inc.; http://wso2.com
 email: pa...@wso2.com cell: +94 77 7779495




 --
 Megala Uthayakumar
 *Software Engineering Intern *| *WSO2 Lanka*
 Mobile : +94 779 967 122
 Tel  : +94 112 733 667
 E-mail :  meg...@wso2.com

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




 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

Re: [Dev] [MB][Error] Server start up exception

2015-03-20 Thread Pranavan Theivendram
)*
* at java.util.concurrent.FutureTask.run(FutureTask.java:262)*
* 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:745)*
*Caused by: org.wso2.carbon.event.core.exception.EventBrokerException:
Cannot access the registry *
* at
org.wso2.carbon.event.core.internal.subscription.registry.RegistrySubscriptionManager.getAllSubscriptions(RegistrySubscriptionManager.java:291)*
* at
org.wso2.carbon.event.core.internal.CarbonEventBroker.loadExistingSubscriptions(CarbonEventBroker.java:78)*
* ... 103 more*
*Caused by:
org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
Resource does not exist at path /_system/governance/event/topicIndex*
* at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:532)*
* at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get(CacheBackedRegistry.java:172)*
* at
org.wso2.carbon.registry.core.session.UserRegistry.getInternal(UserRegistry.java:613)*
* at
org.wso2.carbon.registry.core.session.UserRegistry.access$400(UserRegistry.java:60)*
* at
org.wso2.carbon.registry.core.session.UserRegistry$5.run(UserRegistry.java:596)*
* at
org.wso2.carbon.registry.core.session.UserRegistry$5.run(UserRegistry.java:593)*
* at java.security.AccessController.doPrivileged(Native Method)*
* at
org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:593)*
* at
org.wso2.carbon.event.core.internal.subscription.registry.RegistrySubscriptionManager.getAllSubscriptions(RegistrySubscriptionManager.java:266)*
* ... 104 more*


On Fri, Mar 20, 2015 at 4:42 PM, Hemika Kodikara hem...@wso2.com wrote:

 Hi Pranavan,

 Will you be able to attach the wso2carbon.log file ?

 Regards,
 Hemika

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Fri, Mar 20, 2015 at 4:38 PM, Pranavan Theivendram pranav...@wso2.com
 wrote:

 [Looping in Hemika]

 On Fri, Mar 20, 2015 at 3:27 PM, Pranavan Theivendram pranav...@wso2.com
  wrote:

 Hi All,

 I am getting the following exception when I am starting a particular MB
 node in the cluster. But the server is started.


 *{org.wso2.carbon.event.core.internal.builder.EventBrokerHandler} -  Can
 not create the event broker
 {org.wso2.carbon.event.core.internal.builder.EventBrokerHandler}*
 *org.wso2.carbon.event.core.exception.EventBrokerConfigurationException:
 Cannot get the subscriptions *


 Can anyone please help me in his issue?

 --

 *Regards,*

 *T.Pranavan*

 *Software Engineering intern, WSO2*
 *Mobile - +94775136836 %2B94775136836*




 --

 *Regards,*

 *T.Pranavan*

 *Software Engineering intern, WSO2*
 *Mobile - +94775136836 %2B94775136836*





-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB][Error] Server start up exception

2015-03-20 Thread Pranavan Theivendram
[Looping in Hemika]

On Fri, Mar 20, 2015 at 3:27 PM, Pranavan Theivendram pranav...@wso2.com
wrote:

 Hi All,

 I am getting the following exception when I am starting a particular MB
 node in the cluster. But the server is started.


 *{org.wso2.carbon.event.core.internal.builder.EventBrokerHandler} -  Can
 not create the event broker
 {org.wso2.carbon.event.core.internal.builder.EventBrokerHandler}*
 *org.wso2.carbon.event.core.exception.EventBrokerConfigurationException:
 Cannot get the subscriptions *


 Can anyone please help me in his issue?

 --

 *Regards,*

 *T.Pranavan*

 *Software Engineering intern, WSO2*
 *Mobile - +94775136836 %2B94775136836*




-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MB][Error] Server start up exception

2015-03-20 Thread Pranavan Theivendram
Hi All,

I am getting the following exception when I am starting a particular MB
node in the cluster. But the server is started.


*{org.wso2.carbon.event.core.internal.builder.EventBrokerHandler} -  Can
not create the event broker
{org.wso2.carbon.event.core.internal.builder.EventBrokerHandler}*
*org.wso2.carbon.event.core.exception.EventBrokerConfigurationException:
Cannot get the subscriptions *


Can anyone please help me in his issue?

-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MB] Java Broker Start Up failure

2015-03-18 Thread Pranavan Theivendram
Hi All,

I am getting the following error when I am starting the java broker. Can
anyone help me in this issue.





















*Exception during startup:
org.apache.qpid.server.configuration.IllegalConfigurationException: No
phase upgrader for version
3.0org.apache.qpid.server.configuration.IllegalConfigurationException: No
phase upgrader for version 3.0at
org.apache.qpid.server.store.GenericStoreUpgrader.buildUpgraderChain(GenericStoreUpgrader.java:133)
at
org.apache.qpid.server.store.GenericStoreUpgrader.performUpgrade(GenericStoreUpgrader.java:94)
at
org.apache.qpid.server.store.GenericStoreUpgrader.access$100(GenericStoreUpgrader.java:34)
at
org.apache.qpid.server.store.GenericStoreUpgrader$1.end(GenericStoreUpgrader.java:78)
at
org.apache.qpid.server.store.JsonFileConfigStore.visitConfiguredObjectRecords(JsonFileConfigStore.java:158)
at
org.apache.qpid.server.store.GenericStoreUpgrader.upgrade(GenericStoreUpgrader.java:82)
at
org.apache.qpid.server.store.BrokerStoreUpgraderAndRecoverer.upgrade(BrokerStoreUpgraderAndRecoverer.java:498)
at
org.apache.qpid.server.store.BrokerStoreUpgraderAndRecoverer.perform(BrokerStoreUpgraderAndRecoverer.java:479)
at
org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:80)
at org.apache.qpid.server.Broker.startupImpl(Broker.java:153)at
org.apache.qpid.server.Broker.access$000(Broker.java:51)at
org.apache.qpid.server.Broker$1.run(Broker.java:112)at
java.security.AccessController.doPrivileged(Native Method)at
javax.security.auth.Subject.doAs(Subject.java:415)at
org.apache.qpid.server.Broker.startup(Broker.java:107)at
org.apache.qpid.server.Main.startBroker(Main.java:458)at
org.apache.qpid.server.Main.execute(Main.java:314)at
org.apache.qpid.server.Main.init(Main.java:147)at
org.apache.qpid.server.Main.main(Main.java:138)*


-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-17 Thread Pranavan Theivendram
Congratz Hemika

On Tue, Mar 17, 2015 at 1:45 PM, Anuja Herath an...@wso2.com wrote:

 Congrats Hemika!!!

 On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Hemika,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 regards,

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

 E: ram...@wso2.com


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




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




-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB][ERROR] MalformedSecuirtyException

2015-02-20 Thread Pranavan Theivendram
Hi Lakshman,

Please check

ERROR
[org.wso2.mb.integration.common.utils.backend.MBSecurityManagerBaseTest] -
MalformedURLException
java.net.MalformedURLException: unknown protocol: amqp
at java.net.URL.init(URL.java:590)
at java.net.URL.init(URL.java:480)
at java.net.URL.init(URL.java:429)
at
org.wso2.mb.integration.tests.amqp.functional.SSLSendReceiveSecurityEnabledTestCase.performCheckConnection(SSLSendReceiveSecurityEnabledTestCase.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
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:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.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:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
java.net.MalformedURLException: unknown protocol: amqp


On Thu, Feb 19, 2015 at 1:42 PM, Pranavan Theivendram pranav...@wso2.com
wrote:

 Hi Lakshman,

 Thanks for the prompt reply. I have resolved it.

 On Thu, Feb 19, 2015 at 11:31 AM, Lakshman Udayakantha lakshm...@wso2.com
  wrote:

 Hi Pravanan,

 Can you post the stack-trace?

 Thanks

 On Thu, Feb 19, 2015 at 11:26 AM, Pranavan Theivendram 
 pranav...@wso2.com wrote:

 Hi All,

 I am getting MalformedSecuirtyException while I am running the following
 code segment . Can anyone please help in this issue?

 String sslConnectionURL = 
 amqp://admin:admin@carbon/carbon?brokerlist='tcp://localhost:8672?ssl='true'
  +
 ssl_cert_alias='RootCA'trust_store=' + trustStorePath + 
 'trust_store_password=' +
 trustStorePassword
 + 'key_store=' + keyStorePath + 'key_store_password=' + 
 keyStorePassword + '';

 try {
 SSLContext sc = SSLContext.getInstance(SSL);
 sc.init(null, trustAllCerts, new java.security.SecureRandom());
 HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
 } catch (GeneralSecurityException e) {
 log.error(= GeneralSecurityException 
 );
 }
 // Now you can access an https URL without having the certificate in the 
 truststore
 try {
 URL url = new URL(sslConnectionURL);
 } catch (MalformedURLException e) {
 log.error(= MalformedURLException 
 );
 }

 --

 *Regards,*

 *T.Pranavan*

 *Software Engineering intern, WSO2*
 *Mobile - +94775136836 %2B94775136836*

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




 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0711241005*




 --

 *Regards,*

 *T.Pranavan*

 *Software Engineering intern, WSO2*
 *Mobile - +94775136836 %2B94775136836*




-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB][ERROR] MalformedSecuirtyException

2015-02-20 Thread Pranavan Theivendram
I have fixed.
The problem is because URL does not support amqp.

On Fri, Feb 20, 2015 at 2:05 PM, Pranavan Theivendram pranav...@wso2.com
wrote:

 Hi Lakshman,

 Please check

 ERROR
 [org.wso2.mb.integration.common.utils.backend.MBSecurityManagerBaseTest] -
 MalformedURLException
 java.net.MalformedURLException: unknown protocol: amqp
 at java.net.URL.init(URL.java:590)
 at java.net.URL.init(URL.java:480)
 at java.net.URL.init(URL.java:429)
 at
 org.wso2.mb.integration.tests.amqp.functional.SSLSendReceiveSecurityEnabledTestCase.performCheckConnection(SSLSendReceiveSecurityEnabledTestCase.java:127)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at
 org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
 at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
 at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
 at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
 at
 org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
 at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
 at org.testng.TestRunner.privateRun(TestRunner.java:767)
 at org.testng.TestRunner.run(TestRunner.java:617)
 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:1224)
 at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
 at org.testng.TestNG.run(TestNG.java:1057)
 at
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
 at
 org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
 at
 org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at
 org.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:115)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
 java.net.MalformedURLException: unknown protocol: amqp


 On Thu, Feb 19, 2015 at 1:42 PM, Pranavan Theivendram pranav...@wso2.com
 wrote:

 Hi Lakshman,

 Thanks for the prompt reply. I have resolved it.

 On Thu, Feb 19, 2015 at 11:31 AM, Lakshman Udayakantha 
 lakshm...@wso2.com wrote:

 Hi Pravanan,

 Can you post the stack-trace?

 Thanks

 On Thu, Feb 19, 2015 at 11:26 AM, Pranavan Theivendram 
 pranav...@wso2.com wrote:

 Hi All,

 I am getting MalformedSecuirtyException while I am running the
 following code segment . Can anyone please help in this issue?

 String sslConnectionURL = 
 amqp://admin:admin@carbon/carbon?brokerlist='tcp://localhost:8672?ssl='true'
  +
 ssl_cert_alias='RootCA'trust_store=' + trustStorePath + 
 'trust_store_password=' +
 trustStorePassword
 + 'key_store=' + keyStorePath + 'key_store_password=' + 
 keyStorePassword + '';

 try {
 SSLContext sc = SSLContext.getInstance(SSL);
 sc.init(null, trustAllCerts, new java.security.SecureRandom());
 HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
 } catch (GeneralSecurityException e) {
 log.error(= GeneralSecurityException 
 );
 }
 // Now you can access an https URL without having the certificate in the 
 truststore
 try {
 URL url = new URL(sslConnectionURL);
 } catch (MalformedURLException e) {
 log.error(= MalformedURLException 
 );
 }

 --

 *Regards,*

 *T.Pranavan*

 *Software Engineering intern, WSO2*
 *Mobile - +94775136836 %2B94775136836*

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




 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0711241005*




 --

 *Regards,*

 *T.Pranavan*

 *Software Engineering intern, WSO2*
 *Mobile - +94775136836 %2B94775136836*




 --

 *Regards,*

 *T.Pranavan*

 *Software Engineering

[Dev] [MB][ERROR] MalformedSecuirtyException

2015-02-18 Thread Pranavan Theivendram
Hi All,

I am getting MalformedSecuirtyException while I am running the following
code segment . Can anyone please help in this issue?

String sslConnectionURL =
amqp://admin:admin@carbon/carbon?brokerlist='tcp://localhost:8672?ssl='true'
+
ssl_cert_alias='RootCA'trust_store=' + trustStorePath +
'trust_store_password=' +
trustStorePassword
+ 'key_store=' + keyStorePath + 'key_store_password=' +
keyStorePassword + '';

try {
SSLContext sc = SSLContext.getInstance(SSL);
sc.init(null, trustAllCerts, new java.security.SecureRandom());
HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
} catch (GeneralSecurityException e) {
log.error(= GeneralSecurityException
);
}
// Now you can access an https URL without having the certificate in
the truststore
try {
URL url = new URL(sslConnectionURL);
} catch (MalformedURLException e) {
log.error(= MalformedURLException );
}

-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MB] MB Durable test cases are fixed.

2015-02-10 Thread Pranavan Theivendram
Hi,

Please review the pull request.

1. https://github.com/wso2/product-mb/pull/22

-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB]Error when trying to run the Durable subscriber sample

2015-02-08 Thread Pranavan Theivendram
Hi Megala,

Please use 2.5 version snapshot. For me it is working.

On Sat, Feb 7, 2015 at 5:43 PM, Megala Uthayakumar meg...@wso2.com wrote:

 Hi,

 Thanks for the info. But I am using the MB 3.0.

 On Fri, Feb 6, 2015 at 6:12 PM, Shiva Balachandran sh...@wso2.com wrote:

 Hi Megala,

 What is the version of MB you are currently using? This was issue was
 experienced in 2.0.1 and was fixed in the later version, refer to [1].

 [1] -
 http://stackoverflow.com/questions/16107685/wso2-messagebrokerthrowing-org-wso2-andes-amqtimeoutexception-error-when-creati

 Thank you.

 Regards,
 Shiva Balachandran

 On Fri, Feb 6, 2015 at 3:28 PM, Megala Uthayakumar meg...@wso2.com
 wrote:


 Hi all,

 When I try to run the Durable subscriber sample in the MB I got the
 following error.

 [











 *java] javax.jms.JMSException: Error registering consumer:
 org.wso2.andes.AMQSecurityException: Cannot subscribe to queue
 carbon:mySub1234567 as it already has an existing exclusive consumer [error
 code 403: access refused] [java] at
 org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2089) [java]
 at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2032)
 [java] at
 org.wso2.andes.client.AMQConnectionDelegate_8_0.executeRetrySupport(AMQConnectionDelegate_8_0.java:315)
 [java] at
 org.wso2.andes.client.AMQConnection.executeRetrySupport(AMQConnection.java:620)
 [java] at
 org.wso2.andes.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102)
 [java] at
 org.wso2.andes.client.AMQSession.createConsumerImpl(AMQSession.java:2030)
 [java] at
 org.wso2.andes.client.AMQSession.createConsumer(AMQSession.java:1028)
 [java] at
 org.wso2.andes.client.AMQSession.createDurableSubscriber(AMQSession.java:1182)
 [java] at
 org.wso2.andes.client.AMQSession.createDurableSubscriber(AMQSession.java:1077)
 [java] at
 org.wso2.andes.client.AMQTopicSessionAdaptor.createDurableSubscriber(AMQTopicSessionAdaptor.java:73)
 [java] at org.sample.jms.DurableTopicSubscriber.subscribe(Unknown
 Source) [java] at org.sample.jms.Main.main(Unknown Source)*

 Same exception is thrown  when trying to run the integration test for
 the durable subscribers. What may be the possible reason for this?

 Thanks

 Megala Uthayakumar
 *Software Engineering Intern *| *WSO2 Lanka*
 Mobile : +94 779 967 122
 Tel  : +94 112 733 667
 E-mail :  meg...@wso2.com

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




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/




 --
 Megala Uthayakumar
 *Software Engineering Intern *| *WSO2 Lanka*
 Mobile : +94 779 967 122
 Tel  : +94 112 733 667
 E-mail :  meg...@wso2.com

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




-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MB] TestSuit is requiring a property file inside product MB folder which does not exist

2015-02-05 Thread Pranavan Theivendram
Hi All,

I am getting the following log in the terminal when I am running the
testsuit.

*[org.wso2.carbon.automation.extensions.servers.utils.InputStreamHandler] -
java.lang.RuntimeException: exception while processing properties file
[/home/pranavan/Desktop/Team/Product]: java.io.FileNotFoundException:
/home/pranavan/Desktop/Team/Product (No such file or directory)*

Please help me in this issue. Thanks in advance.
-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Akalanka Darshana Pagoda Arachchi

2015-01-05 Thread Pranavan Theivendram
Congratz Akalanka :)

On Mon, Jan 5, 2015 at 2:34 PM, Lasitha Wattaladeniya lasit...@wso2.com
wrote:

 Congratulations Akalanka :)

 On Mon, Jan 5, 2015 at 2:32 PM, Ramith Jayasinghe ram...@wso2.com wrote:

 Hi Akalanka,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 regards
 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com



 ___
 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




-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev