When I’m using below code getting warning that it’s deprecated Then I used as this was suggested by v3.0. But after that getting bellow error at run time Answer This issue was because my portlet module was using portlet API v2.0 by default and getRenderParameters() is available since v3.0. So, when explicitly I mentioned in component class to use v3.0