Monday, October 24, 2011

java.net.MalformedURLException: no protocol:



Problem:
This is one of the Common Exceptions which we come across daily in our lives. I encountered this issue when trying to create a xml out from a xsl template.

Exception i encountered was:
"ERROR | board.common.xml.CBXMLDocument | 999-999-0001: createTransformer: MalformedURLException: Error=java.net.MalformedURLException: no protocol: ; Message=no protocol: [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] []
2011-10-23 17:41:59,564 | ERROR | .cda.render.CBRenderXmlPrinter | 999-999-0001: CBRenderXmlPrinter.getObjectInXMLFormat(): Exception: Error=java.lang.NullPointerException; Message=null [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] []"

Solution:
The error was because i wasnt passing the protocol with the url. I appended the file protocol with the url and it worked fine. Do let me know if you too faced the same issue.
Please let me know if you still encounter this issue, mail me @ rahamat_234@yahoo.com


Similar Exceptions:

- java.net.MalformedURLException: no protocol:
- java.net.MalformedURLException: unknown protocol: ntp
- java.net.MalformedURLException



No comments:

Post a Comment