Forums

Home » Liferay Portal » česky a slovensky

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
dong chen
Cant instantiate class
May 16, 2013 8:45 PM
Answer

dong chen

Rank: New Member

Posts: 7

Join Date: May 9, 2013

Recent Posts

Cant instantiate class
My project is running well yesterday, today suddenly appeared this problem, ask for help!
  1
  2com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: com.gti.hkfyg.controller.SurveyListController.
  3    at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:193)
  4    at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:102)
  5    at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409)
  6    at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269)
  7    at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244)
  8    at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116)
  9    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
 10    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
 11    at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
 12    at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
 13    at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
 14    at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
 15    at com.sun.faces.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:162)
 16    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
 17    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
 18    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
 19    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
 20    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
 21    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
 22    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
 23    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
 24    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
 25    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
 26    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
 27    at com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:164)
 28    at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
 29    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
 30    at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
 31    at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
 32    at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:769)
 33    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
 34    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
 35    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
 36    at com.liferay.faces.bridge.lifecycle.LifecycleWrapper.render(LifecycleWrapper.java:45)
 37    at com.liferay.faces.bridge.BridgePhaseResourceImpl.execute(BridgePhaseResourceImpl.java:115)
 38    at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:115)
 39    at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:178)
 40    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:118)
 41    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
 42    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
 43    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 44    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 45    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 46    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 47    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 48    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 49    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 50    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 51    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
 52    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
 53    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
 54    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:531)
 55    at com.liferay.portlet.InvokerPortletImpl.invokeResource(InvokerPortletImpl.java:626)
 56    at com.liferay.portlet.InvokerPortletImpl.serveResource(InvokerPortletImpl.java:436)
 57    at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:1075)
 58    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:719)
 59    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
 60    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 61    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 62    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
 63    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 64    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 65    at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
 66    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
 67    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
 68    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 69    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 70    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 71    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 72    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 73    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 74    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 75    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 76    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 77    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 78    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 79    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 80    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 81    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 82    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 83    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 84    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 85    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 86    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
 87    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
 88    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
 89    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
 90    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 91    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 92    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 93    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 94    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 95    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 96    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 97    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 98    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 99    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
100    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
101    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
102    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
103    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
104    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
105    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
106    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
107    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
108    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
109    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
110    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
111    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
112    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
113    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
114    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
115    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
116    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
117    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:246)
118    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
119    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
120    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
121    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
122    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
123    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
124    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
125    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
126    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
127    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
128    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
129    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
130    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
131    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
132    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
133    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
134    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
135    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
136    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
137    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
138    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
139    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
140    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
141    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
142    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
143    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
144    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
145    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
146    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
147    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
148    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
149    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
150    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
151    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
152    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
153    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
154    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
155    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
156    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
157    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
158    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
159    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
160    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
161    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
162    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
163    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
164    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
165    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
166    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
167    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
168    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
169    at java.lang.Thread.run(Thread.java:619)
170Caused by: java.lang.NullPointerException
171    at com.gti.hkfyg.controller.SurveyListController.getQAList(SurveyListController.java:103)
172    at com.gti.hkfyg.controller.SurveyListController.<init>(SurveyListController.java:88)
173    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
174    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
175    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
176    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
177    at java.lang.Class.newInstance0(Class.java:355)
178    at java.lang.Class.newInstance(Class.java:308)
179    at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:188)
180    ... 166 more
Artur Linhart
RE: Cant instantiate class
May 17, 2013 12:06 AM
Answer

Artur Linhart

Rank: Expert

Posts: 459

Join Date: September 13, 2007

Recent Posts

Look into
SurveyListController.java
what happens on the line
103
;-)
Milan Jaroš
RE: Cant instantiate class
May 17, 2013 1:37 AM
Answer

Milan Jaroš

Rank: Expert

Posts: 269

Join Date: August 18, 2008

Recent Posts

Yep, Artur is right. If you can, post all method here.
dong chen
RE: Cant instantiate class
May 21, 2013 6:59 PM
Answer

dong chen

Rank: New Member

Posts: 7

Join Date: May 9, 2013

Recent Posts

Well,yes.
I have already find a solution, thank you very much.
dong chen
RE: Cant instantiate class
May 21, 2013 7:00 PM
Answer

dong chen

Rank: New Member

Posts: 7

Join Date: May 9, 2013

Recent Posts

You are right.Thanks .
Artur Linhart
RE: Cant instantiate class
May 21, 2013 10:57 PM
Answer

Artur Linhart

Rank: Expert

Posts: 459

Join Date: September 13, 2007

Recent Posts

You are welcome :-)