cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with the admin user in alfresco 5.0

udayakumar_p
Confirmed Champ
Confirmed Champ

Looks like the admin user is corrupted. When i checked the DB, there is no admin user, when i tried searching the admin user using alfresco REST API it throws error as below. If the admin user does not exist in DB then why this error is thrown.

"url": "\/alfresco\/service\/api\/people\/admin",
    "userName": "admin",
    "enabled": {
    "status" :
  {
    "code" : 500,
    "name" : "Internal Error",
    "description" : "An error inside the HTTP server which prevented it from fulfilling the request."
  },  
 
  "message" : "03090134 Wrapped Exception (with status template): 03093919 Error during processing of the template 'Method \"public boolean org.alfresco.repo.template.People.isAccountEnabled(org.alfresco.repo.template.TemplateNode)\" threw an exception when invoked on org.alfresco.repo.template.People object \"org.alfresco.repo.template.People@3aeaafc5\". See cause exception.\n\nThe failing instruction (print stack trace for 2 more):\n==> ${people.isAccountEnabled(person)?str...  [in template \"org\/alfresco\/repository\/person\/person.lib.ftl\" in macro \"personJSONinner\" at line 6, column 20]'. Please contact your system administrator.",  
  "exception" : "org.springframework.extensions.webscripts.WebScriptException - 03090134 Wrapped Exception (with status template): 03093919 Error during processing of the template 'Method \"public boolean org.alfresco.repo.template.People.isAccountEnabled(org.alfresco.repo.template.TemplateNode)\" threw an exception when invoked on org.alfresco.repo.template.People object \"org.alfresco.repo.template.People@3aeaafc5\". See cause exception.\n\nThe failing instruction (print stack trace for 2 more):\n==> ${people.isAccountEnabled(person)?str...  [in template \"org\/alfresco\/repository\/person\/person.lib.ftl\" in macro \"personJSONinner\" at line 6, column 20]'. Please contact your system administrator.",
 
  "callstack" :
  [
        ""      ,"java.lang.IllegalArgumentException: Cannot pass null or empty values to constructor"
      ,"net.sf.acegisecurity.providers.dao.User.<init>(User.java:133)"
      ,"org.alfresco.repo.security.authentication.RepositoryAuthenticationDao$1SearchUserNameCallback.execute(RepositoryAuthenticationDao.java:263)"
      ,"org.alfresco.repo.security.authentication.RepositoryAuthenticationDao$1SearchUserNameCallback.execute(RepositoryAuthenticationDao.java:215)"
      ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)"
      ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:345)"
      ,"org.alfresco.repo.security.authentication.RepositoryAuthenticationDao.getUserEntryOrNullImpl(RepositoryAuthenticationDao.java:281)"
      ,"org.alfresco.repo.security.authentication.RepositoryAuthenticationDao.getUserEntryOrNull(RepositoryAuthenticationDao.java:200)"
      ,"org.alfresco.repo.security.authentication.RepositoryAuthenticationDao.getUserOrNull(RepositoryAuthenticationDao.java:186)"
      ,"org.alfresco.repo.security.authentication.RepositoryAuthenticationDao.userExists(RepositoryAuthenticationDao.java:385)"
      ,"org.alfresco.repo.security.authentication.MutableAuthenticationServiceImpl.authenticationExists(MutableAuthenticationServiceImpl.java:122)"
      ,"org.alfresco.repo.security.authentication.MutableAuthenticationServiceImpl.isAuthenticationMutable(MutableAuthenticationServiceImpl.java:131)"
      ,"org.alfresco.repo.security.authentication.AbstractChainingAuthenticationService.isAuthenticationMutable(AbstractChainingAuthenticationService.java:137)"
      ,"org.alfresco.repo.security.authentication.AbstractChainingAuthenticationService.getAuthenticationEnabled(AbstractChainingAuthenticationService.java:157)"
      ,"sun.reflect.GeneratedMethodAccessor1115.invoke(Unknown Source)"
      ,"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)"
      ,"java.lang.reflect.Method.invoke(Method.java:606)"
      ,"org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)"
      ,"net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)"
      ,"org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)"
     
      ,"freemarker.template.TemplateModelException: Method \"public boolean org.alfresco.repo.template.People.isAccountEnabled(org.alfresco.repo.template.TemplateNode)\" threw an exception when invoked on org.alfresco.repo.template.People object \"org.alfresco.repo.template.People@3aeaafc5\". See cause exception.\n\nThe failing instruction (print stack trace for 2 more):\n==> ${people.isAccountEnabled(person)?str...  [in template \"org\/alfresco\/repository\/person\/person.lib.ftl\" in macro \"personJSONinner\" at line 6, column 20]"
      ,"freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:135)"
      ,"org.alfresco.service.cmr.repository.TemplateException: 03093919 Error during processing of the template 'Method \"public boolean org.alfresco.repo.template.People.isAccountEnabled(org.alfresco.repo.template.TemplateNode)\" threw an exception when invoked on org.alfresco.repo.template.People object \"org.alfresco.repo.template.People@3aeaafc5\". See cause exception.\n\nThe failing instruction (print stack trace for 2 more):\n==> ${people.isAccountEnabled(person)?str...  [in template \"org\/alfresco\/repository\/person\/person.lib.ftl\" in macro \"personJSONinner\" at line 6, column 20]'. Please contact your system administrator."
      ,"org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:227)"
      ,"org.springframework.extensions.webscripts.WebScriptException: 03090134 Wrapped Exception (with status template): 03093919 Error during processing of the template 'Method \"public boolean org.alfresco.repo.template.People.isAccountEnabled(org.alfresco.repo.template.TemplateNode)\" threw an exception when invoked on org.alfresco.repo.template.People object \"org.alfresco.repo.template.People@3aeaafc5\". See cause exception.\n\nThe failing instruction (print stack trace for 2 more):\n==> ${people.isAccountEnabled(person)?str...  [in template \"org\/alfresco\/repository\/person\/person.lib.ftl\" in macro \"personJSONinner\" at line 6, column 20]'. Please contact your system administrator."
      ,"org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1126)"
 
  ],
 
  "server" : "Enterprise v5.0.2 (.5 r118129-b98) schema 8,033",

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

It looks like your "admin" user lost "cm:name" property, so it cannot be loaded:

alfresco-repository/RepositoryAuthenticationDao.java at 5e247e50b48eeda597eefada2cc990b1797e3689 · A... 

Hyland Developer Evangelist

Thanks for the response. How to fix this issue?