error check portlet