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