Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Nisarg Parikh
Cache is not alive exception
September 25, 2012 12:02 AM
Answer

Nisarg Parikh

Rank: Expert

Posts: 252

Join Date: December 30, 2009

Recent Posts

Hi All,

I am using LR 6.1 CE.

I have created one custom portlet with service builder.

I have created one hook which uses the services from my custom portlet. For that I have put *-service.jar file into "/tomact/lib/ext".

Functionality wise its working fine but sometimes its throwing below exception

1
2Caused by: com.liferay.portal.kernel.dao.orm.ORMException: java.lang.IllegalStateException:
3The com.xxx.services.model.impl.xxxImpl Cache is not alive.
4
5Caused by: java.lang.IllegalStateException: The com.xxx.services.model.impl.xxxImpl Cache is not alive.


When this error comes I have to restart the server.

Any idea what is the issue? Any possible reason?

Thanks in advance.

-Nisarg
Alireza Zare
RE: Cache is not alive exception
September 25, 2012 12:08 AM
Answer

Alireza Zare

Rank: Regular Member

Posts: 110

Join Date: September 3, 2010

Recent Posts

I would put the jar from generated service in Liferay Root/WEB-INF/lib. Your service code has dependencies to other libraries.
Harish Kumar
RE: Cache is not alive exception
September 25, 2012 12:22 AM
Answer

Harish Kumar

Rank: Expert

Posts: 327

Join Date: July 31, 2010

Recent Posts

Hi Nisarg

If you are putting your service jar in "/tomact/lib/ext", then make sure you have removed the same jar from your portlet lib folder. This could be a possible cause.

Instead of putting service jar in "/tomact/lib/ext", better you can specify this in liferay-plugin-package.properties file as required-deployment-contexts=\

In your case I would suggest you to bundle hook and porltet in a single war, which would remove the service jar dependency problem,

HTH
Nisarg Parikh
RE: Cache is not alive exception
September 25, 2012 12:26 AM
Answer

Nisarg Parikh

Rank: Expert

Posts: 252

Join Date: December 30, 2009

Recent Posts

Thanks Harish Kumar and Alireza Zare for your answers.

I will try those solutions and let community know.

Thanks once again.

-Nisarg
Alireza Zare
RE: Cache is not alive exception
September 25, 2012 12:31 AM
Answer

Alireza Zare

Rank: Regular Member

Posts: 110

Join Date: September 3, 2010

Recent Posts

You are welcome. I hoop this will work for you.
gary b
RE: Cache is not alive exception
March 29, 2013 3:42 AM
Answer

gary b

Rank: Junior Member

Posts: 60

Join Date: February 2, 2013

Recent Posts

Hi,

Any one find the exact solution for this issue??
I am facing the same problem.

I have created two custom portlets( A and B ) both are using same entity. So I have build the services in portlet A and copied the A.jar in \tomcat\lib\ext and removed it from portlet's lib.

Everything is working fine but whenever I am deploying portlet A and then hit portlet B it will show below error and after restarting the server both portlets works fine without any error.

  1com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: java.lang.IllegalStateException: The com.leo.investor.companySignup.model.impl.CompanyInfoImpl Cache is not alive.
  2    at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:193)
  3    at com.leo.investor.companySignup.service.persistence.CompanyInfoPersistenceImpl.findByCompanyType(CompanyInfoPersistenceImpl.java:607)
  4    at com.leo.investor.companySignup.service.persistence.CompanyInfoPersistenceImpl.findByCompanyType(CompanyInfoPersistenceImpl.java:502)
  5    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  6    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  7    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  8    at java.lang.reflect.Method.invoke(Method.java:597)
  9    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:320)
 10    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
 11    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
 12    at com.liferay.portal.dao.shard.advice.ShardPersistenceAdvice.invoke(ShardPersistenceAdvice.java:52)
 13    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
 14    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
 15    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
 16    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
 17    at $Proxy384.findByCompanyType(Unknown Source)
 18    at com.leo.investor.companySignup.service.persistence.CompanyInfoUtil.findByCompanyType(CompanyInfoUtil.java:203)
 19    at com.leo.investor.companySignup.service.impl.CompanyInfoServiceImpl.findByCompanyType(CompanyInfoServiceImpl.java:42)
 20    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 21    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 22    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 23    at java.lang.reflect.Method.invoke(Method.java:597)
 24    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
 25    at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
 26    at com.liferay.portal.dao.jdbc.aop.DynamicDataSourceTransactionInterceptor.invoke(DynamicDataSourceTransactionInterceptor.java:44)
 27    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 28    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 29    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 30    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 31    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 32    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 33    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 34    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 35    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 36    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 37    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 38    at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
 39    at $Proxy383.findByCompanyType(Unknown Source)
 40    at com.leo.investor.companySignup.service.CompanyInfoServiceUtil.findByCompanyType(CompanyInfoServiceUtil.java:68)
 41    at com.leo.investor.companySignup.service.base.CompanyInfoServiceClpInvoker.invokeMethod(CompanyInfoServiceClpInvoker.java:61)
 42    at com.leo.investor.companySignup.service.base.CompanyInfoServiceBaseImpl.invokeMethod(CompanyInfoServiceBaseImpl.java:268)
 43    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 44    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 45    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 46    at java.lang.reflect.Method.invoke(Method.java:597)
 47    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
 48    at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
 49    at com.liferay.portal.dao.jdbc.aop.DynamicDataSourceTransactionInterceptor.invoke(DynamicDataSourceTransactionInterceptor.java:44)
 50    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 51    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 52    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 53    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 54    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 55    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 56    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 57    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 58    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 59    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 60    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 61    at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
 62    at $Proxy383.invokeMethod(Unknown Source)
 63    at com.leo.investor.companySignup.service.CompanyInfoServiceClp.findByCompanyType(CompanyInfoServiceClp.java:100)
 64    at com.leo.investor.companySignup.service.CompanyInfoServiceUtil.findByCompanyType(CompanyInfoServiceUtil.java:68)
 65    at org.apache.jsp.html.company_002dlist_jsp._jspService(company_002dlist_jsp.java:149)
 66    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 67    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 68    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
 69    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 70    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
 71    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 72    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 73    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 74    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 75    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 76    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 77    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 78    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 79    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 80    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
 81    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
 82    at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:323)
 83    at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:105)
 84    at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:367)
 85    at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:383)
 86    at com.liferay.util.bridges.mvc.MVCPortlet.doView(MVCPortlet.java:145)
 87    at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:218)
 88    at com.liferay.util.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:319)
 89    at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
 90    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
 91    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
 92    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
 93    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 94    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 95    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 96    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 97    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 98    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 99    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
100    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
101    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
102    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
103    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:534)
104    at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:607)
105    at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:359)
106    at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1207)
107    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
108    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
109    at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
110    at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
111    at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
112    at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5158)
113    at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1569)
114    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:165)
115    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:97)
116    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doProcessTemplate(RuntimePortletImpl.java:531)
117    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doDispatch(RuntimePortletImpl.java:394)
118    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:228)
119    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:216)
120    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:113)
121    at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:507)
122    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
123    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
124    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
125    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
126    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
127    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
128    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
129    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
130    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
131    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
132    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
133    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
134    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
135    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
136    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
137    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
138    at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:468)
139    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:735)
140    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
141    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
142    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
143    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
144    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
145    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
146    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
147    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
148    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
149    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
150    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
151    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
152    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
153    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
154    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
155    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
156    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
157    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
158    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
159    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
160    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
161    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
162    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
163    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
164    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
165    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
166    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
167    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
168    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
169    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
170    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
171    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
172    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
173    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
174    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
175    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
176    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
177    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
178    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:335)
179    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
180    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
181    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
182    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
183    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
184    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
185    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
186    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
187    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
188    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
189    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
190    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
191    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
192    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
193    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
194    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
195    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
196    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
197    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
198    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
199    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
200    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
201    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
202    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:246)
203    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
204    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
205    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
206    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
207    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
208    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
209    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
210    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
211    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
212    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
213    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
214    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
215    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
216    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
217    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
218    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
219    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
220    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
221    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
222    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
223    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
224    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
225    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
226    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
227    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
228    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
229    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
230    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
231    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
232    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
233    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
234    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
235    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
236    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
237    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
238    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
239    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
240    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
241    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
242    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
243    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
244    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
245    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
246    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
247    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
248    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
249    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
250    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
251    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
252    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
253    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
254    at java.lang.Thread.run(Thread.java:619)
255Caused by: com.liferay.portal.kernel.dao.orm.ORMException: java.lang.IllegalStateException: The com.leo.investor.companySignup.model.impl.CompanyInfoImpl Cache is not alive.
256    at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:30)
257    at com.liferay.portal.dao.orm.hibernate.QueryImpl.list(QueryImpl.java:98)
258    at com.liferay.portal.dao.orm.hibernate.QueryImpl.list(QueryImpl.java:79)
259    at com.liferay.portal.kernel.dao.orm.QueryUtil.list(QueryUtil.java:169)
260    at com.liferay.portal.kernel.dao.orm.QueryUtil.list(QueryUtil.java:161)
261    at com.leo.investor.companySignup.service.persistence.CompanyInfoPersistenceImpl.findByCompanyType(CompanyInfoPersistenceImpl.java:603)
262    ... 251 more
263Caused by: java.lang.IllegalStateException: The com.leo.investor.companySignup.model.impl.CompanyInfoImpl Cache is not alive.
264    at net.sf.ehcache.Cache.checkStatus(Cache.java:2438)
265    at net.sf.ehcache.Cache.get(Cache.java:1541)
266    at com.liferay.portal.cache.ehcache.ModifiableEhcacheWrapper.get(ModifiableEhcacheWrapper.java:128)
267    at net.sf.ehcache.hibernate.regions.EhcacheTransactionalDataRegion.get(EhcacheTransactionalDataRegion.java:105)
268    at net.sf.ehcache.hibernate.strategy.AbstractReadWriteEhcacheAccessStrategy.putFromLoad(AbstractReadWriteEhcacheAccessStrategy.java:90)
269    at net.sf.ehcache.hibernate.nonstop.NonstopAwareEntityRegionAccessStrategy.putFromLoad(NonstopAwareEntityRegionAccessStrategy.java:180)
270    at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:195)
271    at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:982)
272    at org.hibernate.loader.Loader.doQuery(Loader.java:857)
273    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
274    at org.hibernate.loader.Loader.doList(Loader.java:2542)
275    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
276    at org.hibernate.loader.Loader.list(Loader.java:2271)
277    at org.hibernate.hql.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:940)
278    at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
279    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)
280    at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
281    at com.liferay.portal.dao.orm.hibernate.QueryImpl.list(QueryImpl.java:86)
282    ... 255 more


Can any one help me on this.

Thanks,
Garima
Łukasz Pogorzelski
RE: Cache is not alive exception
June 28, 2013 6:13 AM
Answer

Łukasz Pogorzelski

Rank: New Member

Posts: 6

Join Date: April 12, 2012

Recent Posts

Hi,

Recently I had the same problem. In my case problem was caused by old service implementation which is used by service consumer portlet (Portlet C). When I redeployed service portlet (Portlet S) than cache is set to "SHUTDOWN", and new service implementation instance was created. But Portlet C had reference to old implementation which cache is in shutdown state.

So simple workaround is to invoke ...LocalServiceUtil.clearService() before invoking a method from Portlet C. Right service implementation will fetch.

I'm also write a simple patch which is invoked when portlet is destroyed. If anyone would be interested in let me know.

Łukasz
Dhiraj Sable
RE: Cache is not alive exception
June 28, 2013 6:33 AM
Answer

Dhiraj Sable

Rank: New Member

Posts: 11

Join Date: May 26, 2011

Recent Posts

I was also facing same issues for my portlet so for that i had one solution that just restart the server but it will take some time to restart the server. So if you have any more appropriate way then you can go for that or follow this one emoticon emoticon

Thanks,
~Dhiraj.