Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Benjamin Seyinbour
No Role exists with the key {companyId=10112, name=true}
1 de Agosto de 2009 13:04
Resposta

Benjamin Seyinbour

Ranking: New Member

Mensagens: 9

Data de entrada: 3 de Junho de 2009

Mensagens recentes

No Role exists with the key {companyId=10112, name=true}

My development environment:
Linux
Java 1.6.x
Liferay-5.2.3/JBoss-5.1.0.GA
ICEFaces-1.8.1

I am trying to “Add Application” i.e. Portlet to Liferay but keep getting the following error:

1No Role exists with the key {companyId=10112, name=true}

I have looked in the Liferay “role_” table and for the life of me, I don't know where “true” comes from, because it is not there. Consequently, my portlet is not rendered. As a workaround, I could fill a row with “true” in the name column of the “role_” table but I don't think it is a good idea.

Help and thanks in advance.

Here is the rest of the stacktrace
  12009-08-01 20:17:22,798 INFO  [STDOUT] (http-127.0.0.1-8080-7) 20:17:22,758 ERROR [PortletRequestImpl:456]
  2com.liferay.portal.NoSuchRoleException: No Role exists with the key {companyId=10112, name=true}
  3    at com.liferay.portal.service.persistence.RolePersistenceImpl.findByC_N(RolePersistenceImpl.java:701)
  4    at com.liferay.portal.service.impl.RoleLocalServiceImpl.hasUserRole(RoleLocalServiceImpl.java:318)
  5    at sun.reflect.GeneratedMethodAccessor612.invoke(Unknown Source)
  6    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  7    at java.lang.reflect.Method.invoke(Method.java:597)
  8    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
  9    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
 10    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
 11    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
 12    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 13    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
 14    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 15    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
 16    at $Proxy401.hasUserRole(Unknown Source)
 17    at com.liferay.portal.service.RoleLocalServiceUtil.hasUserRole(RoleLocalServiceUtil.java:215)
 18    at com.liferay.portlet.PortletRequestImpl.isUserInRole(PortletRequestImpl.java:451)
 19    at com.liferay.portlet.PortletServletRequest.isUserInRole(PortletServletRequest.java:417)
 20    at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.inRole(SessionDispatcher.java:152)
 21    at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.access$300(SessionDispatcher.java:29)
 22    at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$2.isUserInRole(SessionDispatcher.java:98)
 23    at com.icesoft.faces.context.BridgeExternalContext.isUserInRole(BridgeExternalContext.java:215)
 24    at com.icesoft.faces.component.ext.taglib.Util.isRenderedOnUserRole(Util.java:112)
 25    at com.icesoft.faces.component.ext.HtmlPanelGrid.isRendered(HtmlPanelGrid.java:136)
 26    at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:505)
 27    at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
 28    at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
 29    at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
 30    at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:481)
 31    at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
 32    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
 33    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
 34    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
 35    at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19)
 36    at com.icesoft.faces.context.View$2$1.respond(View.java:48)
 37    at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:201)
 38    at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
 39    at com.icesoft.faces.context.View$2.serve(View.java:76)
 40    at com.icesoft.faces.context.View.servePage(View.java:139)
 41    at com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:55)
 42    at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
 43    at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
 44    at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
 45    at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
 46    at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
 47    at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
 48    at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
 49    at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
 50    at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
 51    at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
 52    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 53    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 54    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 55    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
 56    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
 57    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
 58    at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:307)
 59    at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:122)
 60    at com.icesoft.faces.webapp.http.portlet.MainPortlet.doInclude(MainPortlet.java:122)
 61    at com.icesoft.faces.webapp.http.portlet.MainPortlet.doView(MainPortlet.java:55)
 62    at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
 63    at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
 64    at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:126)
 65    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:69)
 66    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:100)
 67    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 68    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 69    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 70    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
 71    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
 72    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
 73    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:618)
 74    at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:700)
 75    at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:419)
 76    at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1467)
 77    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 78    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 79    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
 80    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
 81    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
 82    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 83    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 84    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 85    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
 86    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
 87    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
 88    at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:2884)
 89    at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:897)
 90    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:170)
 91    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:103)
 92    at com.liferay.portlet.layoutconfiguration.util.Runti
 932009-08-01 20:17:22,814 INFO  [STDOUT] (http-127.0.0.1-8080-7) mePortletUtil.processTemplate(RuntimePortletUtil.java:281)
 94    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:190)
 95    at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:831)
 96    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 97    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 98    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
 99    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
100    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
101    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
102    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
103    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
104    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
105    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
106    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
107    at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:294)
108    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:471)
109    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:195)
110    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
111    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
112    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:157)
113    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
114    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
115    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
116    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:608)
117    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:846)
118    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
119    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
120    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
121    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
122    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
123    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
124    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
125    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:143)
126    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
127    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
128    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
129    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
130    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:142)
131    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
132    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
133    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
134    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
135    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
136    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
137    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
138    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
139    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:140)
140    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
141    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
142    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
143    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
144    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:282)
145    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
146    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
147    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
148    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
149    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
150    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
151    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
152    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
153    at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:425)
154    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
155    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
156    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
157    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
158    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:257)
159    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
160    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
161    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
162    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
163    at com.liferay.portal.servlet.filters.sso.opensso.OpenSSOFilter.processFilter(OpenSSOFilter.java:73)
164    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
165    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
166    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
167    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
168    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:193)
169    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
170    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
171    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
172    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
173    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:271)
174    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
175    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
176    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
177    at com.liferay.portal.servlet.filters.threadlocalcache.ThreadLocalCacheFilter.processFilter(ThreadLocalCacheFilter.java:55)
178    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
179    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
180    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
181    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
182    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
183    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
184    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
185    at org.tuckey.web.filters.urlrewrite.UrlRewrite
1862009-08-01 20:17:22,819 INFO  [STDOUT] (http-127.0.0.1-8080-7) Filter.doFilter(UrlRewriteFilter.java:738)
187    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
188    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
189    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
190    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
191    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
192    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
193    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
194    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
195    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
196    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
197    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
198    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
199    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
200    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
201    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
202    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
203    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
204    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
205    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
206    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
207    at java.lang.Thread.run(Thread.java:619)
Masroor Khan
RE: No Role exists with the key {companyId=10112, name=true}
3 de Agosto de 2009 21:34
Resposta

Masroor Khan

Ranking: Regular Member

Mensagens: 119

Data de entrada: 9 de Setembro de 2008

Mensagens recentes

go to controlPanel >>ServerAdministration>>

and click the execute button in front of (Reindex all search indexes.).

..............
Balachandar P
RE: No Role exists with the key {companyId=10112, name=administrator}
21 de Maio de 2010 00:16
Resposta

Balachandar P

Ranking: New Member

Mensagens: 1

Data de entrada: 21 de Maio de 2010

Mensagens recentes

Hi,

I am getting this exception

05:36:21,247 ERROR [PortletRequestImpl:456]
com.liferay.portal.NoSuchRoleException: No Role exists with the key {companyId=10112, name=administrator}
at com.liferay.portal.service.persistence.RolePersistenceImpl.findByC_N(RolePersistenceImpl.java:701)
at com.liferay.portal.service.impl.RoleLocalServiceImpl.hasUserRole(RoleLocalServiceImpl.java:318)
at sun.reflect.GeneratedMethodAccessor259.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


Can anyone tel me to solve this problem

-Bala
Juan Fernández
RE: No Role exists with the key {companyId=10112, name=administrator}
21 de Maio de 2010 00:56
Resposta

Juan Fernández

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1262

Data de entrada: 2 de Outubro de 2008

Mensagens recentes

Hi Balachandar:
do as the previous post say:

go to controlPanel >>ServerAdministration>>

and click the execute button in front of (Reindex all search indexes.).


Greetings
Yoshi Yoshi
RE: No Role exists with the key {companyId=10112, name=true}
23 de Julho de 2010 01:59
Resposta

Yoshi Yoshi

Ranking: New Member

Mensagens: 1

Data de entrada: 23 de Julho de 2010

Mensagens recentes

Thanks a lot, it's solve my problem.
Sylvain ARNAUD
RE: No Role exists with the key {companyId=10112, name=true}
2 de Dezembro de 2010 06:59
Resposta

Sylvain ARNAUD

Ranking: New Member

Mensagens: 9

Data de entrada: 5 de Janeiro de 2010

Mensagens recentes

We encountered the same problem.

I saw the procedure to fix it by reindexing content.
But does anyone know why we have to reindex ?

In other words, can anyone explain what may have caused the problem?

Thank you,
Sylvain ARNAUD
Ranga Rao Bobbili
RE: No Role exists with the key {companyId=10112, name=true}
8 de Dezembro de 2010 02:03
Resposta

Ranga Rao Bobbili

Ranking: Regular Member

Mensagens: 152

Data de entrada: 20 de Julho de 2007

Mensagens recentes

Hi Sylvain ARNAUD,

Just verify your portlet-ext.xml if you are using extentsion environment.
I resolved my issue i.e problem with my portlet-ext.xml(by mistake i added some junk data in portlet-ext.xml).

Regards,
Ranga Rao
Satish Bhor
RE: No Role exists with the key {companyId=10112, name=true}
7 de Março de 2012 07:48
Resposta

Satish Bhor

Ranking: New Member

Mensagens: 17

Data de entrada: 20 de Dezembro de 2011

Mensagens recentes

I have facing the same problem but for the role "power-user" which exisits in my liferay-portlet.xml, i have tried all the solutions mentioned in this thread but it does not solve my problem. I am getting this problem in liferay 6.1.0, while all works fine with the same portlet in liferay6.0.6
Satish Bhor
RE: No Role exists with the key {companyId=10112, name=true}
8 de Março de 2012 04:48
Resposta

Satish Bhor

Ranking: New Member

Mensagens: 17

Data de entrada: 20 de Dezembro de 2011

Mensagens recentes

I no more have this problem now, i did a fresh setup all over again and this problem was gone, i belive there were some changes in the portlet.xml where i added a new role, not sure if it was that problem because the role that it was showing me in my error was power-user... Strange!!
mARK aNDREWS
RE: No Role exists with the key {companyId=10112, name=administrator}
4 de Setembro de 2012 02:42
Resposta

mARK aNDREWS

Ranking: New Member

Mensagens: 4

Data de entrada: 15 de Dezembro de 2010

Mensagens recentes

Have started having this same issue: Caused by: com.liferay.portal.NoSuchRoleException: No Role exists with the key {companyId=0, name=Administrator}

Only problem is that I can't see the Administration section, for some reason this isn't loading on the control panel screen, anyone else had this?

We're using@

Solaris
Sparc VM
Weblogic App server (2 server cluster)
Oracle 11g Database
Liferay 6SP1, enterprise
Priyanka Dhingra
RE: No Role exists with the key {companyId=10112, name=true}
4 de Setembro de 2012 03:02
Resposta

Priyanka Dhingra

Ranking: Liferay Master

Mensagens: 501

Data de entrada: 19 de Dezembro de 2011

Mensagens recentes

Hi mARK aNDREWS

are you logging in with the test test credentials
Because it should be shown for the admin user thats what your error also is indicating

that you are not associated to the administrator role.
mARK aNDREWS
RE: No Role exists with the key {companyId=10112, name=true}
4 de Setembro de 2012 04:18
Resposta

mARK aNDREWS

Ranking: New Member

Mensagens: 4

Data de entrada: 15 de Dezembro de 2010

Mensagens recentes

No, this is an admin account that was created a long time ago. This has never been an issue in the past, it has only just come to light. I'm wondering if it's a problem with the amount of resource (cpu, memory) that the server has!

This is our systest environment and does seem to be getting slower and slower, We are getting new hardware over the next couple of weeks, but still, if this is the case then I would like to see some kind of errors pertaining to this.

mARK