title: Getting different Exceptions in Liferay: ClassCastException, IllegalArgueentException, NullPointerException
body: <p>So, I'm pretty new to Liferay and I've been assigned this work that I've been trying to resolve from last couple of days.
  I'm getting all of these ERRORS in logs, although this isn't affecting the portal in anyway it is just being added to the logs and creating a mess in there.
  I'm not able to understand what is the reason of these Exceptions.</p>
  <p>Also there is another error caused:
  Error occurred while parsing URL null : java.net.MalformedURLException.
  I feel this is the root cause of all the above exceptions as I feel the url being returned might be null.
  Can you help me out in this?<a href="https://i.stack.imgur.com/Oopph.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Oopph.png" alt="enter image description here" /></a></p>