Acosix / alfresco-simple-content-stores

Addon to provide a set of common content store implementations and easy-to-use configuration (no Spring config)
Apache License 2.0
43 stars 19 forks source link

TypeRoutingStore Null error with more than one fileStore #35

Open pajumbo opened 2 years ago

pajumbo commented 2 years ago

Hi, thank you for the plug in, very usefull.

I'v got a problem with the implementation of the TypeRoutingStore:

Using the configuration written in the .md 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

The configuration is:

`simpleContentStores.enabled=true

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

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.sm\:tipo1=archiveFileStore`

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

the standardFileStore "myCustomFileStore" alone goes fine.

thank you Alessandro