Expand my Community achievements bar.

HTTP ERROR 500 Server Error while login to crx/de

Avatar

Level 4

Hi,
We've been dealing with this issue a lot recently. According to Adobe, the code could be corrupting the instance. However, we have had no problems with the same code being deployed in multiple instances for nearly 5 months. I cleared all cookies and opened an incognito window.

The login-token appears as follows:

login-token:- be6456b0-144b-42fc-a21a-b44a7fd0bf63%3a%3acrx.default

Any assistance on this high is greatly appreciated!!

 

I have attached the error message below for your reference.

 

URI: /crx/de
STATUS: 500
MESSAGE: Server Error
SERVLET: org.apache.felix.http.base.internal.dispatch.DispatcherServlet-3a3f0585
CAUSED BY: java.lang.IllegalArgumentException: Invalid token ''
Caused by:
java.lang.IllegalArgumentException: Invalid token ''
at org.apache.jackrabbit.api.security.authentication.token.TokenCredentials.<init>(TokenCredentials.java:45)
at com.day.crx.security.token.impl.TokenAuthenticationHandler.createCredentials(TokenAuthenticationHandler.java:797)
at com.day.crx.security.token.impl.TokenAuthenticationHandler.extractCredentials(TokenAuthenticationHandler.java:553)
at org.apache.sling.auth.core.impl.AuthenticationHandlerHolder.doExtractCredentials(AuthenticationHandlerHolder.java:76)
at org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder.extractCredentials(AbstractAuthenticationHandlerHolder.java:60)
at org.apache.sling.auth.core.impl.SlingAuthenticator.getAuthenticationInfo(SlingAuthenticator.java:779)
at org.apache.sling.auth.core.impl.SlingAuthenticator.doHandleSecurity(SlingAuthenticator.java:518)
at org.apache.sling.auth.core.impl.SlingAuthenticator.handleSecurity(SlingAuthenticator.java:495)
at com.day.crx.delite.impl.AuthHttpContext.handleSecurity(AuthHttpContext.java:71)
at org.apache.felix.http.base.internal.service.ServletContextImpl.handleSecurity(ServletContextImpl.java:406)
at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:58)
at org.apache.felix.http.base.internal.dispatch.Dispatcher$1.doFilter(Dispatcher.java:146)
at org.apache.felix.http.base.internal.whiteboard.WhiteboardManager$2.doFilter(WhiteboardManager.java:1002)
at com.adobe.granite.auth.oauth.impl.OAuthCallbackFilter.doFilter(OAuthCallbackFilter.java:69)

6 Replies

Avatar

Community Advisor

Hi @kbitra1998 

Can you please check if there is any bundle is in Installed state?

Regards,
Santosh

Avatar

Level 4

@SantoshSai ,

 

Thanks for the quick response. But I am unable login to the system/console as well.

 

same error is throwing:-

URI: /system/console.
STATUS: 500
MESSAGE: Server Error
SERVLET: org.apache.felix.http.base.internal.dispatch.DispatcherServlet-3a3f0585
CAUSED BY: java.lang.IllegalArgumentException: Invalid token ''

Avatar

Level 4

Thank you for the reference; nevertheless, the reference links are unhelpful.

Avatar

Community Advisor

The token format, does not seems correct to me.

I think something is manipulating the token, it could be a backend code or front end.

 

Can you try login and check the ajax call response from login page?



Arun Patidar

Avatar

Level 4

Hi @kbitra1998 
Try to Update config file at crx-quickstart\launchpad\config\org\apache\felix\jaas\Configuration\factory

 

saurabh_kumar_02_0-1654234178282.png

In past i was facing same issue. This resolved my Issue

 

Regards

Saurabh