cancel
Showing results for 
Search instead for 
Did you mean: 

Error Alfresco 7

pvilloaula
Champ in-the-making
Champ in-the-making

Hola,

Tenemos instalado Alfresco 7, al inicial el Tomcat9 todo va bien e incluso carga el share, hemos creado sites y usuarios y subido documentos.

Pero cuando vamos a la consola de administracion para subir la licencia

 http://localhost:8080/alfresco/s/enterprise/admin/admin-systemsummary

nos dan un error.

Pego a continuacion el error que aparece por pantalla

Estado HTTP 500 – Internal Server Error


Tipo Informe de Excepción

Descripción El servidor encontró un error interno que hizo que no pudiera rellenar este requerimiento.

excepción

java.lang.UnsupportedOperationException
	java.base/java.util.AbstractList.add(AbstractList.java:153)
	java.base/java.util.AbstractList.add(AbstractList.java:111)
	org.springframework.extensions.webscripts.servlet.CSRFFilter$GenerateTokenAction.run(CSRFFilter.java:844)
	org.springframework.extensions.webscripts.servlet.CSRFFilter.doFilter(CSRFFilter.java:351)
	org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)
	org.alfresco.web.app.servlet.ClearSecurityContextFilter.doFilter(ClearSecurityContextFilter.java:53)

nota La traza completa de la causa de este error se encuentra en los archivos de registro del servidor.


Y este el que aparece en los ficheros de log:

24-Jan-2022 17:00:38.369 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [103559] milliseconds
2022-01-24 17:00:39,311 INFO [management.subsystems.ChildApplicationContextFactory] [https-jsse-nio-8443-exec-7] Starting 'Search' subsystem, ID: [Search, managed, solr6]
2022-01-24 17:00:40,462 INFO [management.subsystems.ChildApplicationContextFactory] [https-jsse-nio-8443-exec-7] Startup of 'Search' subsystem, ID: [Search, managed, solr6] complete
Jan 24, 2022 5:00:57 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() para servlet [apiServlet] lanz≤ excepci≤n
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.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.alfresco.web.app.servlet.ClearSecurityContextFilter.doFilter(ClearSecurityContextFilter.java:53)
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.http11.Http11Processor.service(Http11Processor.java:382)
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:1732)
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:834)

Jan 24, 2022 5:02:15 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() para servlet [apiServlet] lanz≤ excepci≤n
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.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.alfresco.web.app.servlet.ClearSecurityContextFilter.doFilter(ClearSecurityContextFilter.java:53)
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.http11.Http11Processor.service(Http11Processor.java:382)
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:1732)
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:834)

Jan 24, 2022 5:07:24 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() para servlet [apiServlet] lanz≤ excepci≤n
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.springframew

Muchas gracias de antemano

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

¿Qué configuración habéis aplicado para CSRF en repositorio?

Puedes deshabilitar esa protección añadiendo la siguiente propiedad a alfresco-global.properties

csrf.filter.enabled=false

o bien añadir una configuración específica para tu entorno.

Hyland Developer Evangelist

No tenemos una configuracion espedifica para CSRF.

Añadiendo esa linea hemos solventado el problema.

Muchas gracias