I think I found the issue is ,
1) When i am using $processor.processPortlet
Ans : I used $processor.processPortlet("71_INSTANCE_MAIN") to embed portlet in layout .tpl file
but it can not read this.
I dig the code and found that it seems to be problem in Liferay Code
TemplateProcessor.java class
In this class,processPortlet method seems to be using wrong portlet id @ 175 line number. (See below code)
1
2public String processPortlet(String portletId) throws Exception {
3 try {
4 _request.setAttribute(
5 WebKeys.RENDER_PORTLET_RESOURCE, Boolean.TRUE);
6
7 return RuntimePortletUtil.processPortlet(
8 _servletContext, _request, _response, null, null, [b]_portletId[/b],
9 null, false);
10 }
11 finally {
12 _request.removeAttribute(WebKeys.RENDER_PORTLET_RESOURCE);
13 }
14 }
2) When i am using $theme.runtime
Its rendering the code outside of layout and trying to find out the solution