cancel
Showing results for 
Search instead for 
Did you mean: 

Error 500 after inactivity in share (java.lang.UnsupportedOperationException)

mirak
Champ on-the-rise
Champ on-the-rise

Hi,

I successfully log in using an external SSO (apache2 proxy), leave the Share page open, after about 10-15 minutes I try to refresh the page and error 500 returns. If I disable coockie in browser, everything is fine, but after this error I am not able to access the UI in the same browser (even new page). The "something bad happened" error screen keeps coming back.

To refresh the page, It will load a new cookie JSESSIONID and Alfresco-CSRFToken with the new validity, but I will not get through the error page until I remove them completely.

Wouldn't you know what it can cause?

SEVERE [ajp-nio-127.0.0.1-8009-exec-9] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [Spring Surf Dispatcher Servlet] in context with path [/share] threw exception java.lang.UnsupportedOperationException
at java.base/java.util.AbstractList.add(AbstractList.java:153)
at java.base/java.util.AbstractList.add(AbstractList.java:111)
at org.springframework.extensions.webscripts.servlet.CSRFFilter$GenerateTokenAction.run(CSRFFilter.java:844)
at org.springframework.extensions.webscripts.servlet.CSRFFilter.doFilter(CSRFFilter.java:351)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:566)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:423)
at org.springframework.extensions.webscripts.servlet.BeanProxyFilter.doFilter(BeanProxyFilter.java:80)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.alfresco.web.site.servlet.AIMSFilter.doFilter(AIMSFilter.java:166)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:433)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1722)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:829)
2 REPLIES 2

milanbb55
Champ in-the-making
Champ in-the-making

Hello,

It looks, that I have the same problem with same configuration as you.

1. Pls did you solve this issue, or did you get some new information about this problem?

2.  Btw. My  error is different. I have in share.log only exception message, without stacktrace:

2022-03-17 08:52:50,530 ERROR [org.alfresco.web.site] [http-nio-8080-exec-6] java.lang.UnsupportedOperationException

Pls. from which log file you got that exception?

Thank you.

milanbb55
Champ in-the-making
Champ in-the-making

It looks like this commit fixed source of this problem

https://github.com/Alfresco/surf-webscripts/commit/9af25dea37805fa73ff34628b729ecb604b4d9a1

When 7.2 Community will be ready to download, I will test it, if the problem was resolved.