11-30-2020 04:48 AM
Hello,
i am working with the APS Trial Version 1.11 and face an issue when using the Publish to Alfresco Task. I already connected my Alfresco Community Edition Repository with Alfresco Process Services in the Identity Management App and set the admin account up. The connection is established, I can see my Alfresco Sites in the destination dialog, but when I select one site it does not load the folders in the next step. It is in a loop and the three loading dots are displayed.
What do I need to change, so that also my folders in the sites are visible? Otherwise I can not use this task.
Thank you very much.
02-23-2021 03:33 PM
Update: I was able to solve the problem. For me, the Publish to Alfresco Task only works when connected to Alfresco Content Services. When connecting with Alfresco Community Edition the folders are not displayed. As per my understanding the Publish to Alfresco Task is not supported by the Community Edition.
01-04-2021 02:11 AM
error or exception stack trace would be helpful, could you please upload it? also send error in your js console if any
01-21-2021 04:20 PM
Hi Abbas,
I use Alfresco Process Services Trial Version 1.11.1 and Alfresco Community Edition 6.2.0 with the docker installation in a debian virtual machine.
These logs were printed after trying to set the destination folder in APS:
08:56:44 [http-nio-8080-exec-3] ERROR com.activiti.service.runtime.integration.alfresco.AlfrescoOnPremService - UNEXPECTED Error while getting content in site com.activiti.alfrescoconnector.exception.AlfrescoConnectorException: UNEXPECTED Error while getting content in site at com.activiti.alfrescoconnector.service.AlfrescoContentService.getContentInSite(AlfrescoContentService.java:133) at com.activiti.service.runtime.integration.alfresco.AlfrescoOnPremService.getContentInSite(AlfrescoOnPremService.java:279) at com.activiti.rest.runtime.integration.AlfrescoOnPremResource.getContentInSite(AlfrescoOnPremResource.java:89) at com.activiti.rest.runtime.integration.AlfrescoOnPremResource$$FastClassBySpringCGLIB$$94b7eb10.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:736) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java:48) at com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java:34) at com.ryantenney.metrics.spring.AbstractMetricMethodInterceptor.invoke(AbstractMetricMethodInterceptor.java:59) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671) at com.activiti.rest.runtime.integration.AlfrescoOnPremResource$$EnhancerBySpringCGLIB$$afd12f39.getContentInSite(<generated>) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:854) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:765) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861) at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:104) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.activiti.security.authentication.filters.ActivitiEngineAuthenticatedUserFilter.doFilterInternal(ActivitiEngineAuthenticatedUserFilter.java:37) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:150) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at com.activiti.security.CustomStatelessCSRFFilter.doFilterInternal(CustomStatelessCSRFFilter.java:68) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:609) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1623) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Moved Permanently at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:487) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:613) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getObjectInternal(AbstractAtomPubService.java:836) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getObjectByPath(ObjectServiceImpl.java:627) at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:447) at com.activiti.alfrescoconnector.service.AlfrescoContentService.getContentInSite(AlfrescoContentService.java:120) ... 117 common frames omitted 08:56:53 [activiti-app-rest-Executor-1] INFO com.activiti.service.runtime.ScriptFileLibraryCacheImpl - Script file cache statistics: CacheStats{hitCount=0, missCount=18, loadSuccessCount=0, loadExceptionCount=18, totalLoadTime=15910227, evictionCount=0} 08:56:53 [activiti-app-rest-Executor-2] INFO com.activiti.service.runtime.FormStoreServiceImpl - Form cache statistics: CacheStats{hitCount=75, missCount=5, loadSuccessCount=5, loadExceptionCount=0, totalLoadTime=2251487, evictionCount=0} 08:56:53 [activiti-app-rest-Executor-1] INFO com.activiti.service.runtime.ScriptFileControllerCacheImpl - Script file cache statistics: CacheStats{hitCount=0, missCount=18, loadSuccessCount=0, loadExceptionCount=18, totalLoadTime=10312845, evictionCount=0} 08:56:53 [activiti-app-rest-Executor-1] INFO com.activiti.service.idm.GroupHierarchyCacheImpl - Group cache statistics: CacheStats{hitCount=1360, missCount=18, loadSuccessCount=18, loadExceptionCount=0, totalLoadTime=17975556, evictionCount=15} 08:56:53 [activiti-app-rest-Executor-1] INFO com.activiti.service.idm.GroupHierarchyCacheImpl - The size of this cache is determined by the 'cache.groups.max.size' and 'cache.groups.max.age' property. 08:56:53 [activiti-app-rest-Executor-1] INFO com.activiti.service.idm.UserCacheImpl - User cache statistics: CacheStats{hitCount=10907, missCount=4, loadSuccessCount=4, loadExceptionCount=0, totalLoadTime=52393936, evictionCount=5} 08:56:53 [activiti-app-rest-Executor-1] INFO com.activiti.service.idm.UserCacheImpl - The size of this cache is determined by the 'cache.users.max.size' and 'cache.users.max.age' property. 08:56:53 [activiti-app-rest-Executor-1] INFO com.activiti.service.idm.PersistentTokenServiceImpl - Token cache statistics: CacheStats{hitCount=10387, missCount=330, loadSuccessCount=316, loadExceptionCount=3, totalLoadTime=157274116, evictionCount=312} 08:56:53 [activiti-app-rest-Executor-1] INFO com.activiti.service.idm.PersistentTokenServiceImpl - The size of this cache is determined by the 'cache.login-tokens.max.size' and 'cache.login-tokens.max.age' property. 08:56:53 [activiti-app-rest-Executor-1] INFO com.activiti.service.runtime.integration.alfresco.AlfrescoOnPremiseTicketService - Alfresco ticket cache statistics: CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0} 08:56:53 [activiti-app-rest-Executor-1] INFO com.activiti.service.runtime.integration.alfresco.AlfrescoOnPremiseTicketService - The size of this cache is determined by the 'cache.alfresco-tickets.max.size' and 'cache.alfresco-tickets.max.age' property. 08:56:53 [activiti-app-rest-Executor-2] INFO com.activiti.service.runtime.FormStoreServiceImpl - The size of this cache is determined by the 'cache.forms.max.size' property
In the browser console I got this error, but I do not know if it is of any help:
After searching the internet I found a similiar issue from Alfresco Process Services 1.8.1:
https://issues.alfresco.com/jira/browse/MNT-19450
The Community Edition is installed in German. But after trying out the proposed workaround I noticed that the parent folder is already named "Sites" in the UI (see attached screenshot). So I am not sure if that is the problem.
01-22-2021 03:16 PM
Hi Abbas,
I have an additional remark. When my Alfresco Share is accessed from an OS where English is set as OS language, then Share will be also automatically displayed in English. Therefore I think it is unlikely, that the problem occures because of the language difference, as the whole Repository is displayed in English.
02-23-2021 03:33 PM
Update: I was able to solve the problem. For me, the Publish to Alfresco Task only works when connected to Alfresco Content Services. When connecting with Alfresco Community Edition the folders are not displayed. As per my understanding the Publish to Alfresco Task is not supported by the Community Edition.
02-24-2021 05:05 AM
Hi @shmalik
Great that you resolved your issue & thanks for the update - really useful for other users.
Cheers,
Explore our Alfresco products with the links below. Use labels to filter content by product module.