Expand my Community achievements bar.

SOLVED

Authentication Failed after Migrating to AEM 6 SP2

Avatar

Level 1

Hi All,

After Migrating from CQ 5.5 to AEM and as well as CRX2 to CRX3 ; i am unable to authenticate via Webconsole and as well as in CRX as well.

Getting below 500 error message in the screen as :

Current state = FLUSHED, new state = CODING_END

java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END at java.nio.charset.CharsetEncoder.throwIllegalStateException(Unknown Source) at java.nio.charset.CharsetEncoder.encode(Unknown Source) at sun.nio.cs.StreamEncoder.flushLeftoverChar(Unknown Source) at sun.nio.cs.StreamEncoder.implClose(Unknown Source) at sun.nio.cs.StreamEncoder.close(Unknown Source) at java.io.OutputStreamWriter.close(Unknown Source) at java.io.PrintWriter.close(Unknown Source) at org.apache.sling.scripting.jsp.jasper.compiler.ServletWriter.close(ServletWriter.java:49) at org.apache.sling.scripting.jsp.jasper.compiler.Compiler.compile(Compiler.java:335) at org.apache.sling.scripting.jsp.jasper.compiler.Compiler.compile(Compiler.java:290) at org.apache.sling.scripting.jsp.jasper.compiler.Compiler.compile(Compiler.java:277) at org.apache.sling.scripting.jsp.jasper.JspCompilationContext.compile(JspCompilationContext.java:501) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.prepareServlet(JspServletWrapper.java:427) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:486) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:265) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:87) at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:465) at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:361) at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:171) at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:463) at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:511) at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64) at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:147) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:308) at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:141) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:284) at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:49) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64) at com.adobe.granite.requests.logging.impl.RequestLoggerImpl.doFilter(RequestLoggerImpl.java:137) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:305) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.bcbsm.cq.security.RequestFilter.doFilter(RequestFilter.java:103) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:64) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java:220) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:76) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java:74) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:89) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java:77) at com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java:56) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:128) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServletStarterFilter.java:135) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.engine.impl.SlingRequestProcessorImpl.doProcessRequest(SlingRequestProcessorImpl.java:153) at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:205) at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:339) at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:300) at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:93) at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:50) at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

Validated all bundles as well not sure how to fix this issue; also raise day care ticket but no luck so far.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Chaitanya96 wrote...

Hi,

After migrating i am unable to authenticate basically. Only able to login in Felix console and  CRX but not in web console. getting error message as below and mentioned above as well.

27.04.2015 11:00:00.024 *INFO* [pool-9-thread-1] com.day.cq.wcm.webservicesupport.impl.statistics.ServicesStatisticsJob Updating cloud services usage statistics...
27.04.2015 11:00:30.023 *INFO* [pool-9-thread-1] com.adobe.granite.taskmanagement.impl.jcr.TaskArchiveService archiving tasks at: 'Mon Apr 27 11:00:30 EDT 2015'
27.04.2015 11:02:28.044 *ERROR* [10.65.136.112 [1430146948038] GET /libs/cq/core/content/welcome.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END
        at java.nio.charset.CharsetEncoder.throwIllegalStateException(Unknown Source)

 

For fixing that I already placed SP2 zip file under /install folder as well.

 

Kindly let me know if any fix for this?

 

Thanks

 


It is file level permission issue. Verify your mounting point.

View solution in original post

3 Replies

Avatar

Former Community Member

Hi 

 

I updated recently from AEm 6.0 to AEM6.0 SP2. Looks fine for me . Everything is working fine.

But please explain what is that you changed from CRX2 to CRX3?  what you did actually for this step?

Avatar

Level 1

Hi,

After migrating i am unable to authenticate basically. Only able to login in Felix console and  CRX but not in web console. getting error message as below and mentioned above as well.

27.04.2015 11:00:00.024 *INFO* [pool-9-thread-1] com.day.cq.wcm.webservicesupport.impl.statistics.ServicesStatisticsJob Updating cloud services usage statistics...
27.04.2015 11:00:30.023 *INFO* [pool-9-thread-1] com.adobe.granite.taskmanagement.impl.jcr.TaskArchiveService archiving tasks at: 'Mon Apr 27 11:00:30 EDT 2015'
27.04.2015 11:02:28.044 *ERROR* [10.65.136.112 [1430146948038] GET /libs/cq/core/content/welcome.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END
        at java.nio.charset.CharsetEncoder.throwIllegalStateException(Unknown Source)

 

For fixing that I already placed SP2 zip file under /install folder as well.

 

Kindly let me know if any fix for this?

 

Thanks

Avatar

Correct answer by
Level 10

Chaitanya96 wrote...

Hi,

After migrating i am unable to authenticate basically. Only able to login in Felix console and  CRX but not in web console. getting error message as below and mentioned above as well.

27.04.2015 11:00:00.024 *INFO* [pool-9-thread-1] com.day.cq.wcm.webservicesupport.impl.statistics.ServicesStatisticsJob Updating cloud services usage statistics...
27.04.2015 11:00:30.023 *INFO* [pool-9-thread-1] com.adobe.granite.taskmanagement.impl.jcr.TaskArchiveService archiving tasks at: 'Mon Apr 27 11:00:30 EDT 2015'
27.04.2015 11:02:28.044 *ERROR* [10.65.136.112 [1430146948038] GET /libs/cq/core/content/welcome.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END
        at java.nio.charset.CharsetEncoder.throwIllegalStateException(Unknown Source)

 

For fixing that I already placed SP2 zip file under /install folder as well.

 

Kindly let me know if any fix for this?

 

Thanks

 


It is file level permission issue. Verify your mounting point.