Acosix / alfresco-simple-content-stores : TypeRoutingStore Null error with custom types

cancel
Showing results for 
Search instead for 
Did you mean: 
pajumbo
Active Member II

Acosix / alfresco-simple-content-stores : TypeRoutingStore Null error with custom types

hi

I'v got a problem with the implementation of the TypeRoutingStore for the add-on : Acosix / alfresco-simple-content-stores (GitHub - Acosix/alfresco-simple-content-stores: Addon to provide a set of common content store imple...)

Using this configuration,

simpleContentStores.customStores=myCustomFileStore,archiveFileStore,myTypeRoutingStore,defaultTenantFileContentStore
simpleContentStores.rootStore=myCustomFileStore

simpleContentStores.customStore.myCustomFileStore.type=standardFileStore
simpleContentStores.customStore.myCustomFileStore.value.rootAbsolutePath=/usr/local/tomcat/alf_data_1/
simpleContentStores.customStore.myCustomFileStore.value.deleteEmptyDirs=true
simpleContentStores.customStore.myCustomFileStore.value.fixedLimit=104857600

simpleContentStores.customStore.archiveFileStore.type=standardFileStore
simpleContentStores.customStore.archiveFileStore.value.rootAbsolutePath=/usr/local/tomcat/alf_data_2/
simpleContentStores.customStore.archiveFileStore.value.deleteEmptyDirs=true
simpleContentStores.customStore.archiveFileStore.value.fixedLimit=104857600

simpleContentStores.customStore.myTypeRoutingStore.type=typeRoutingStore
simpleContentStores.customStore.myTypeRoutingStore.ref.fallbackStore=defaultTenantFileContentStore
simpleContentStores.customStore.myTypeRoutingStore.map.storeByTypeName.ref.ts\:tipo1=archiveFileStore

I had the following error:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myTypeRoutingStore': Invocation of init method failed; nested exception is java.lang.IllegalStateException: null cannot be resolved to a qualified name at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788) ........... Caused by: java.lang.IllegalStateException: null cannot be resolved to a qualified name

 

I'v created the type, using the Alfresco Share, before the restart with this configuration ts:tipo1 and the folder in the docker container for both the content stores.

 

the ts:tipo1 extend another custom type installed with AMP file

the standardFileStore "myCustomFileStore" alone goes fine.

thank you
Alessandro