AEM unable to login | Community
Skip to main content
Anwar_Sadat
Level 2
Oct 16, 2015 5:50 AM UTC
Solved

AEM unable to login

Hi Experts,

We are running AEM 6.0 with SP2. After a recent restart of one of our publish instance, we are no longer able to login with admin credentials.

We keep getting the following error in the logs:

 

16.10.2015 13:49:40.262 *WARN* [qtp2074601335-30] org.eclipse.jetty.servlet.ServletHandler /libs/granite/core/content/login.html
java.lang.IllegalArgumentException: Invalid token ''
        at org.apache.jackrabbit.api.security.authentication.token.TokenCredentials.<init>(TokenCredentials.java:42)
        at com.day.crx.security.token.impl.TokenAuthenticationHandler.createCredentials(TokenAuthenticationHandler.java:578)
        at com.day.crx.security.token.impl.TokenAuthenticationHandler.extractCredentials(TokenAuthenticationHandler.java:352)
        at org.apache.sling.auth.core.impl.AuthenticationHandlerHolder.doExtractCredentials(AuthenticationHandlerHolder.java:75)
        at org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder.extractCredentials(AbstractAuthenticationHandlerHolder.java:60)
        at org.apache.sling.auth.core.impl.SlingAuthenticator.getAuthenticationInfo(SlingAuthenticator.java:697)
        at org.apache.sling.auth.core.impl.SlingAuthenticator.doHandleSecurity(SlingAuthenticator.java:452)
        at org.apache.sling.auth.core.impl.SlingAuthenticator.handleSecurity(SlingAuthenticator.java:438)
        at org.apache.sling.engine.impl.SlingHttpContext.handleSecurity(SlingHttpContext.java:121)

 

Any help in this regard is much appreciated !!!

 

Thanks,

Anwar

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
maxbarrass-anchora
maxbarrass-anchoraAccepted solution
New Participant
Jan 9, 2022 9:12 PM UTC

Correct answer to this question is to clear cookies, whatever is marked as "correct" is incorrect.

14 replies

maxbarrass-anchora
maxbarrass-anchoraAccepted solution
New Participant
Jan 9, 2022 9:12 PM UTC

Correct answer to this question is to clear cookies, whatever is marked as "correct" is incorrect.

Translate
New Participant
Dec 6, 2017 8:44 PM UTC

This is help full. Thank you

Translate
smacdonald2008
Level 10
Dec 4, 2017 7:35 PM UTC

Thank you for posting your fix!

Translate
New Participant
Dec 4, 2017 7:27 PM UTC

Hi.

I know it is old, but someone could have the same problem as I did today.

We have this project in AEM 6.0 and I had the very same issue.

The problem is when you have a working instance and try to run it using the command line:

java -server -XX:MaxPermSize=256m -Xmx4024M -jar cq56-author-p4502.jar -r author, nosamplecontent

Using the /bin/ ./start should let it start normally.

It worked for me.

Translate
Level 2
Oct 6, 2021 1:49 PM UTC

This saved my day. Thank you!

Translate
Naveen_AEM_dev
Level 4
Mar 9, 2016 3:55 AM UTC

I faced this issue sometime back and resolved it by deleting the cookies which removes the login-token cookie value.

Once this cookie is removed, I tried to login again which set the proper cookie / token value and I was able to login fine!

Translate
Level 2
Mar 7, 2016 12:15 PM UTC

and the OS version is RHEL

Translate
Level 2
Mar 7, 2016 12:14 PM UTC

Hello Samir,

We are on

java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

AEM 6.0 SP1

 

Thanks

Kamal

Translate
__96
Level 4
Mar 7, 2016 12:05 PM UTC

Can you let us know your OS version and Jdk version ? Such issues have been observed with Java version and windows 8. Please check this link

https://docs.adobe.com/docs/en/aem/6-0/deploy/technical-requirements.html#Supported Platforms

Regards,

Samir

Translate
Level 2
Mar 7, 2016 10:42 AM UTC

Hi Anwar, 

I am also facing the same issue. How did you resolved this issue?

Any help will be appreciated.

Regards

Kamal

Translate
Employee
Oct 16, 2015 5:54 PM UTC

Hi Anwar,

are there any exceptions in your error.log during startup? Have all the bundles started in your instance?

Regards,

Opkar

Translate