cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble logging into the web client

a_weed096
Champ in-the-making
Champ in-the-making
Whenever I go to start up alfresco, it tells me that the guest user failed to authenticate. I am a little confused by this since I have had the client up and working very successfully over the last few days. I checked around and it looks like the most common cause of this is not starting alfresco from the same place everytime, however, I make sure to start alfresco from the same place everytime. The error reads as:

org.alfresco.error.AlfrescoRuntimeException: Failed to authenticate as Guest user.
caused by:
java.lang.IllegalArgumentException: nodeRef is a mandatory parameter

When I click on the "Show Details" option, it reads:

org.alfresco.error.AlfrescoRuntimeException: Failed to authenticate as Guest user.
at org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper.java:213)
at org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper.java:109)
at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: nodeRef is a mandatory parameter
at org.alfresco.util.ParameterCheck.mandatory(ParameterCheck.java:48)
at org.alfresco.repo.node.db.DbNodeServiceImpl.exists(DbNodeServiceImpl.java:172)
at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at org.alfresco.repo.transaction.TransactionResourceInterceptor.invoke(TransactionResourceInterceptor.java:138)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy3.exists(Unknown Source)
at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:221)
at $Proxy4.exists(Unknown Source)
at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:241)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:241)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:261)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:261)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy3.exists(Unknown Source)
at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:241)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy3.exists(Unknown Source)
at org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper.java:172)
… 16 more

I am not sure why all of a sudden the guest user can not authenticate. It looks like it has something to do with a missing parameter in a java fill, but I may be way off. Any help would be appreciated and thanks in advance.
10 REPLIES 10

gavinc
Champ in-the-making
Champ in-the-making
This happens if the "Guest Home" space gets deleted or moved.

A fix actually went into the 2.2 branch for this yesterday, if you want to apply it yourself you just need to add a check for null in org.alfresco.web.app.servlet.AuthenticationHelper on line 172 i.e. change it to:

if (guestHomeRef == null || nodeService.exists(guestHomeRef) == false)

a_weed096
Champ in-the-making
Champ in-the-making
I have to admit that I am totally a noobie to all of this. First, I have the community 2.9B. I don't if that makes a difference, but you said the fix was for 2.2. Also, I can not find the file org.alfresco.web.app.servlet.AuthenticationHelper. If this isn't the fix for 2.9B, something that would work would be appreciated (reinstalling doesn't seem to work, but I am going to try it again). If it still is what I need to do, if you could please help me locate the file that would also be appreciated. Thanks in advance.

I was able to get around this though by going to http://localhost:8080/alfresco/faces/jsp/login.jsp? rather than just http://localhost:8080/alfresco.

gavinc
Champ in-the-making
Champ in-the-making
If you have managed to get round it, login as admin, create a new Guest Home space, then go to the Admin Console.

Go to manage system users and edit the details for the Guest User. On the 2nd step choose the space you just created as the home space for the guest user and click OK.

This should hopefully resolve the error next time you access the app as guest.

a_weed096
Champ in-the-making
Champ in-the-making
I have a new problem logging in now. I keep getting an error about 'schema auto update failed'. It goes on to say that a previous update failed as well, which I am assuming is the last auto update from when I tried to log in before. I will admit that I have been trying to make a custom content model and have been messing around in the tomcat/shared/classes/alfresco/extension folder. I don't know if that matters or not, but I tried removing the file I added and that didn't help the situation. As always, any help would be appreciated. Thanks in advance.

gavinc
Champ in-the-making
Champ in-the-making
You'd get this error if a database upgrade script has failed, you shouldn't have got this from attempting a login!

Have you tried using a nightly build? Can you post the source of the schema update failure?

a_weed096
Champ in-the-making
Champ in-the-making
Well the schema doesn't appear to be the problem anymore. I dug up an old post on the boards that suggested I drop the table alf_bootstrap_lock and that solved that problem. I am still getting an error though. I don't know if I have stated it before but I am using Alfresco 2.9B on a Windows 2003 server. I always use to start up alfresco by using a "start alfresco" command from the start menu. When I would click that a CLI window would open and Tomcat would start. This is where I fould the schema error before. Now the error that is appearing in the CLI window is:

"13:05:57,015 UserSmiley Frustratedystem ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usageQuotaProtector' defined in class path resource [alfresco/usage-services-context.xml]: Invocation of init method failed; nexted exception is org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.Generic JDBCExpection: Cannot open connection
Caused by: org.springframwork.transaction.CannotCreateTransactionException:Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
Caused bySmiley Surprisedrg.hibernate.exception.GenericJDBCException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException <SQLStateConverter.java:103>"

and Then it just keep going with at least one hundred lines (when I hit pause it said 57 more lines) of lines similar to the "at" line at the end there.

To answer gavinc's questions, No, I don't think I have used nightly builds, but that is because I am not sure what they are. If they are new builds of alfresco made each night, then no. If they are something else, maybe. As for the other question, I think the problem was the alf_bootstrap_lock because after dropping it, the schema problem went away. Wether or not it went away because this error though is a different question. I just hope I didn't cause this new error by "fixing" the other one. Thanks for any help in advance.

a_weed096
Champ in-the-making
Champ in-the-making
Yea, I am still very stuck with this problem. I can't sign into alfresco at all. Everytime I go to sign in, I keep getting this error and then when I browse to alfresco I get a 404 error. Any help would be appreciated. Thanks in advance.

a_weed096
Champ in-the-making
Champ in-the-making
Yea, I could use any advise anyone wants to offer. I am completely out of ideas. I can't even log in. I posted the error I was receiving a few posts back. Thanks in advance for any help.

a_weed096
Champ in-the-making
Champ in-the-making
Well, I've been told to halt all work on the alfresco project I have been working on because of this issue. I suppose someone else may have an issue like this and need an answer, but I do not.