Main Content

Magnolia Community Forums: Development: Could not retrieve user with name Exception


  • gzalys
    gzalys
    Full name: Gediminas Zalys
    Posts: 27
    Last post: Nov 23, 2016 7:04:41 AM
    Registered on: Aug 13, 2015
    Could not retrieve user with name Exception
    #1 by gzalys on Nov 4, 2016 4:06:03 AM

    Hello Community!

    I keep on getting this intermittent exception on my system.

    This happens on all of my environments, the funny thing is that even though nobody is using the system i get this exception. (zero users on admin and cms pages)
    Only thing that i noticed is that most commonly it pops up few minutes after system startup. But note that nobody has accessed the the system - the system only booted up and thats it!



    2016-11-04 10:54:27,852 ERROR info.magnolia.cms.security.MgnlUserManager : Could not retrieve user with name:
    javax.jcr.query.InvalidQueryException: Illegal name:
    at org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.getNodeNameQuery(LuceneQueryFactory.java:666)
    at org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.getComparisonQuery(LuceneQueryFactory.java:625)
    at org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.mapConstraintToQueryAndFilter(LuceneQueryFactory.java:400)
    at org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.mapConstraintToQueryAndFilter(LuceneQueryFactory.java:359)
    at org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.execute(LuceneQueryFactory.java:210)
    at org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEngine.java:465)
    at org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEngine.java:126)
    at org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEngine.java:115)
    at org.apache.jackrabbit.core.query.QueryObjectModelImpl$2.perform(QueryObjectModelImpl.java:129)
    at org.apache.jackrabbit.core.query.QueryObjectModelImpl$2.perform(QueryObjectModelImpl.java:124)
    at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
    at org.apache.jackrabbit.core.query.QueryObjectModelImpl.execute(QueryObjectModelImpl.java:123)
    at info.magnolia.cms.security.RepositoryBackedSecurityManager.findPrincipalNodeByQuery(RepositoryBackedSecurityManager.java:305)
    at info.magnolia.cms.security.RepositoryBackedSecurityManager.findPrincipalNode(RepositoryBackedSecurityManager.java:280)
    at info.magnolia.cms.security.MgnlUserManager.findPrincipalNode(MgnlUserManager.java:319)
    at info.magnolia.cms.security.MgnlUserManager$3.exec(MgnlUserManager.java:238)
    at info.magnolia.cms.security.MgnlUserManager$3.exec(MgnlUserManager.java:235)
    at info.magnolia.cms.security.JCRSessionOp.exec(JCRSessionOp.java:68)
    at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:392)
    at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:377)
    at info.magnolia.cms.security.MgnlUserManager.getUser(MgnlUserManager.java:235)
    at info.magnolia.cms.security.DelegatingUserManager$5.delegate(DelegatingUserManager.java:112)
    at info.magnolia.cms.security.DelegatingUserManager$5.delegate(DelegatingUserManager.java:109)
    at info.magnolia.cms.security.DelegatingUserManager.delegateUntilSupportedAndNotNull(DelegatingUserManager.java:190)
    at info.magnolia.cms.security.DelegatingUserManager.getUser(DelegatingUserManager.java:109)
    at info.magnolia.jaas.sp.jcr.JCRAuthenticationModule.initUser(JCRAuthenticationModule.java:136)
    at info.magnolia.jaas.sp.jcr.JCRAuthenticationModule.validateUser(JCRAuthenticationModule.java:108)
    at info.magnolia.jaas.sp.AbstractLoginModule.login(AbstractLoginModule.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
    at info.magnolia.cms.security.SecuritySupportBase.authenticate(SecuritySupportBase.java:61)
    at info.magnolia.cms.security.SecuritySupport$$EnhancerByCGLIB$$186e72c8.authenticate(<generated>)
    at info.magnolia.cms.security.auth.login.LoginHandlerBase.authenticate(LoginHandlerBase.java:46)
    at info.magnolia.cms.security.auth.login.BasicLogin.handle(BasicLogin.java:58)
    at info.magnolia.cms.security.auth.login.LoginFilter.doFilter(LoginFilter.java:71)
    at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:85)
    at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:79)
    at info.magnolia.cms.filters.UnicodeNormalizationFilter.doFilter(UnicodeNormalizationFilter.java:88)
    at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:85)
    at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:79)
    at info.magnolia.cms.filters.CosMultipartRequestFilter.doFilter(CosMultipartRequestFilter.java:87)
    at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:59)
    at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:79)
    at info.magnolia.cms.filters.ContentTypeFilter.doFilter(ContentTypeFilter.java:148)
    at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:85)
    at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:79)
    at info.magnolia.cms.filters.ContextFilter.doFilter(ContextFilter.java:128)
    at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:85)
    at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:79)
    at info.magnolia.cms.filters.CompositeFilter.doFilter(CompositeFilter.java:65)
    at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:85)
    at info.magnolia.cms.filters.SafeDestroyMgnlFilterWrapper.doFilter(SafeDestroyMgnlFilterWrapper.java:107)
    at info.magnolia.cms.filters.MgnlFilterDispatcher.doDispatch(MgnlFilterDispatcher.java:67)
    at info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:108)
    at info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:94)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: org.apache.jackrabbit.spi.commons.conversion.IllegalNameException: empty name
    at org.apache.jackrabbit.spi.commons.conversion.NameParser.parse(NameParser.java:58)
    at org.apache.jackrabbit.spi.commons.conversion.ParsingNameResolver.getQName(ParsingNameResolver.java:64)
    at org.apache.jackrabbit.spi.commons.conversion.CachingNameResolver.getQName(CachingNameResolver.java:76)
    at org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver.getQName(DefaultNamePathResolver.java:74)
    at org.apache.jackrabbit.core.SessionImpl.getQName(SessionImpl.java:638)
    at org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.getNodeNameQuery(LuceneQueryFactory.java:657)
    ... 80 more




    Any suggestions/help is appreciated

    Best,
    Ged

  • tomwespi
    tomwespi
    Full name: Tom Wespi
    Posts: 34
    Last post: Nov 9, 2016 12:15:55 PM
    Re: Could not retrieve user with name Exception
    #2 by tomwespi on Nov 9, 2016 12:15:55 PM

    Hi

    no solution for this problem, but I can confirm that this error occurs in my projects as well.

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/