Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeRoutingStore Null error with more than one fileStore #35

Open
pajumbo opened this issue Oct 15, 2021 · 0 comments
Open

TypeRoutingStore Null error with more than one fileStore #35

pajumbo opened this issue Oct 15, 2021 · 0 comments

Comments

@pajumbo
Copy link

pajumbo commented Oct 15, 2021

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

@pajumbo pajumbo changed the title TypeRoutingStore Null error TypeRoutingStore Null error with more than one fileStore Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant