Re: [Dev] java.net.MalformedURLException: no protocol

2014-09-20 Thread Sajith Kariyawasam
Hi Dinithi,

This issue comes because of the square bracket part [final] in your path.
If you move your project to a path like
/home/rajee/Desktop/toodledo/ToodledoESBConnector,
it should work without any issue.  Otherwise you will have to modify
ConfigValidationXMLProcessor.java
class'  getConfigRecommendationsXML method to have file:// as a prefix to
xmlPath.

Thanks,
Sajith

On Sat, Sep 20, 2014 at 10:38 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi Dinithi,

 Error says you have not provided the URL correctly. You have provided just
 a file path /home/something It does not know you are referring to a
 file here. So you have to explicitly says you are referring to a file
 inside computer. Hence you add file://



 Touched, not typed. Erroneous words are a feature, not a typo.

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




-- 
*Sajith Kariyawasam*


*Committer and PMC member, Apache Stratos,WSO2 Inc., http://wso2.com
http://wso2.comAMIE (SL)Mobile: +94772269575*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] java.net.MalformedURLException: no protocol

2014-09-19 Thread Udara Liyanage
Hi Dinithi,

Error says you have not provided the URL correctly. You have provided just
a file path /home/something It does not know you are referring to a
file here. So you have to explicitly says you are referring to a file
inside computer. Hence you add file://



Touched, not typed. Erroneous words are a feature, not a typo.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] java.net.MalformedURLException: no protocol

2014-09-15 Thread Abimaran Kugathasan
Hi Dinithi,

The error says, You haven't add the protocol for associated URL. In your
case, it should
be 
file://home/rajee/Desktop/toodledo[final]/ToodledoESBConnector/target/carbontmp1410772636719/wso2esb-4.8.1/repository/conf/etc/config-validation.xml

On Mon, Sep 15, 2014 at 3:12 PM, Dinithi De Silva dinit...@wso2.com wrote:

 Hi All,

 While doing our integration testing to ESB Connector for ToodleDo, we got
 the following exception.


 [2014-09-15 14:47:51,995]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  java.net.MalformedURLException: no protocol:


 /home/rajee/Desktop/toodledo[final]/ToodledoESBConnector/target/carbontmp1410772636719/wso2esb-4.8.1/repository/conf/etc/config-validation.xml
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 java.net.URL.init(URL.java:567)
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 java.net.URL.init(URL.java:464)
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 java.net.URL.init(URL.java:413)
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
 Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
 [2014-09-15 14:47:51,998]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.wso2.carbon.core.bootup.validator.util.ConfigValidationXMLProcessor.parseConfigValidationXml(ConfigValidationXMLProcessor.java:62)



 [2014-09-15 14:48:06,960]  INFO
 {org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -  Waiting to
 login to Carbon server...
 [2014-09-15 14:48:06,961]  INFO
 {org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -
  Successfully connected to the server on port 9443
 [2014-09-15 14:48:07,813]  INFO
 {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
 (org.apache.axis2.AxisFault) caught when processing request: Connection has
 been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
 Unexpected error: java.security.InvalidAlgorithmParameterException: the
 trustAnchors parameter must be non-empty
 [2014-09-15 14:48:07,813]  INFO
 {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
 (org.apache.axis2.AxisFault) caught when processing request: Connection has
 been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
 Unexpected error: java.security.InvalidAlgorithmParameterException: the
 trustAnchors parameter must be non-empty
 [2014-09-15 14:48:07,814]  INFO
 {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
 [2014-09-15 14:48:07,814]  INFO
 {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request

 What could be the error?
 Can anyone please help to figure out this exception and reason for the
 exception?

 Thank you
 Dinithi De Silva
 Associate Software Engineer

 Mob: +94 716 667 655

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




-- 
Thanks
Abimaran Kugathasan

Software Engineer | WSO2 Inc
Data  APIs Technologies Team
Mobile : +94 77 1708229

http://stackoverflow.com/users/515034
http://lk.linkedin.com/in/abimaran  http://www.lkabimaran.blogspot.com/
https://github.com/abimaran  https://twitter.com/abimaran
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] java.net.MalformedURLException: no protocol

2014-09-15 Thread Dinithi De Silva
Thank you for your response. But I am not clear with your solution. How can
I add the protocol? Do I need to add that to config-validation.xml file?

Thank you
Dinithi De Silva
Associate Software Engineer

Mob: +94 716 667 655

On Mon, Sep 15, 2014 at 4:01 PM, Abimaran Kugathasan abima...@wso2.com
wrote:

 Hi Dinithi,

 The error says, You haven't add the protocol for associated URL. In your
 case, it should
 be 
 file://home/rajee/Desktop/toodledo[final]/ToodledoESBConnector/target/carbontmp1410772636719/wso2esb-4.8.1/repository/conf/etc/config-validation.xml

 On Mon, Sep 15, 2014 at 3:12 PM, Dinithi De Silva dinit...@wso2.com
 wrote:

 Hi All,

 While doing our integration testing to ESB Connector for ToodleDo, we got
 the following exception.


 [2014-09-15 14:47:51,995]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  java.net.MalformedURLException: no protocol:


 /home/rajee/Desktop/toodledo[final]/ToodledoESBConnector/target/carbontmp1410772636719/wso2esb-4.8.1/repository/conf/etc/config-validation.xml
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 java.net.URL.init(URL.java:567)
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 java.net.URL.init(URL.java:464)
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 java.net.URL.init(URL.java:413)
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
 Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
 [2014-09-15 14:47:51,998]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.wso2.carbon.core.bootup.validator.util.ConfigValidationXMLProcessor.parseConfigValidationXml(ConfigValidationXMLProcessor.java:62)



 [2014-09-15 14:48:06,960]  INFO
 {org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -  Waiting to
 login to Carbon server...
 [2014-09-15 14:48:06,961]  INFO
 {org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -
  Successfully connected to the server on port 9443
 [2014-09-15 14:48:07,813]  INFO
 {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
 (org.apache.axis2.AxisFault) caught when processing request: Connection has
 been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
 Unexpected error: java.security.InvalidAlgorithmParameterException: the
 trustAnchors parameter must be non-empty
 [2014-09-15 14:48:07,813]  INFO
 {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
 (org.apache.axis2.AxisFault) caught when processing request: Connection has
 been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
 Unexpected error: java.security.InvalidAlgorithmParameterException: the
 trustAnchors parameter must be non-empty
 [2014-09-15 14:48:07,814]  INFO
 {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
 [2014-09-15 14:48:07,814]  INFO
 {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request

 What could be the error?
 Can anyone please help to figure out this exception and reason for the
 exception?

 Thank you
 Dinithi De Silva
 Associate Software Engineer

 Mob: +94 716 667 655

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




 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 77 1708229

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran



Re: [Dev] java.net.MalformedURLException: no protocol

2014-09-15 Thread Abimaran Kugathasan
Hi, No, file:// should be appended in front of that path.

On Mon, Sep 15, 2014 at 4:29 PM, Dinithi De Silva dinit...@wso2.com wrote:

 Thank you for your response. But I am not clear with your solution. How
 can I add the protocol? Do I need to add that to config-validation.xml file?

 Thank you
 Dinithi De Silva
 Associate Software Engineer

 Mob: +94 716 667 655

 On Mon, Sep 15, 2014 at 4:01 PM, Abimaran Kugathasan abima...@wso2.com
 wrote:

 Hi Dinithi,

 The error says, You haven't add the protocol for associated URL. In your
 case, it should
 be 
 file://home/rajee/Desktop/toodledo[final]/ToodledoESBConnector/target/carbontmp1410772636719/wso2esb-4.8.1/repository/conf/etc/config-validation.xml

 On Mon, Sep 15, 2014 at 3:12 PM, Dinithi De Silva dinit...@wso2.com
 wrote:

 Hi All,

 While doing our integration testing to ESB Connector for ToodleDo, we
 got the following exception.


 [2014-09-15 14:47:51,995]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  java.net.MalformedURLException: no protocol:


 /home/rajee/Desktop/toodledo[final]/ToodledoESBConnector/target/carbontmp1410772636719/wso2esb-4.8.1/repository/conf/etc/config-validation.xml
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 java.net.URL.init(URL.java:567)
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 java.net.URL.init(URL.java:464)
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 java.net.URL.init(URL.java:413)
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
 [2014-09-15 14:47:51,996]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
 Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
 [2014-09-15 14:47:51,997]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
 [2014-09-15 14:47:51,998]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
 org.wso2.carbon.core.bootup.validator.util.ConfigValidationXMLProcessor.parseConfigValidationXml(ConfigValidationXMLProcessor.java:62)



 [2014-09-15 14:48:06,960]  INFO
 {org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -  Waiting to
 login to Carbon server...
 [2014-09-15 14:48:06,961]  INFO
 {org.wso2.carbon.automation.core.utils.ClientConnectionUtil} -
  Successfully connected to the server on port 9443
 [2014-09-15 14:48:07,813]  INFO
 {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
 (org.apache.axis2.AxisFault) caught when processing request: Connection has
 been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
 Unexpected error: java.security.InvalidAlgorithmParameterException: the
 trustAnchors parameter must be non-empty
 [2014-09-15 14:48:07,813]  INFO
 {org.apache.commons.httpclient.HttpMethodDirector} -  I/O exception
 (org.apache.axis2.AxisFault) caught when processing request: Connection has
 been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException:
 Unexpected error: java.security.InvalidAlgorithmParameterException: the
 trustAnchors parameter must be non-empty
 [2014-09-15 14:48:07,814]  INFO
 {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request
 [2014-09-15 14:48:07,814]  INFO
 {org.apache.commons.httpclient.HttpMethodDirector} -  Retrying request

 What could be the error?
 Can anyone please help to figure out this exception and reason for the
 exception?

 Thank you
 Dinithi De Silva
 Associate Software Engineer

 Mob: +94 716 667 655

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




 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 77 1708229