How to fix No enum constant org.apache.jackrabbit.vault.fs.api.ImportMode.UPDATE_PROPERTIES .error ? | Community
Skip to main content
VeenaVikraman
Community Advisor
Community Advisor
January 23, 2024
Solved

How to fix No enum constant org.apache.jackrabbit.vault.fs.api.ImportMode.UPDATE_PROPERTIES .error ?

  • January 23, 2024
  • 2 replies
  • 3443 views

Hi all

 

   As per https://jackrabbit.apache.org/filevault/filter.html update  filter is deprecated and we need to use update_properties instead. But this doesn't work . When we replacfe this filter, the build fails with an error which says No enum constant org.apache.jackrabbit.vault.fs.api.ImportMode.UPDATE_PROPERTIES .  Does any one know how we can solve this issue ?

 

Thanks

Veena

Best answer by VeenaVikraman

Hi @kautuk_sahni Oh . actually forgot to update here. I did update the pom.xml to get the latest bundles as I mentioned in https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-fix-no-enum-constant-org-apache-jackrabbit-vault-fs-api/m-p/646933/highlight/true#M162221 . But that resulted in a loop of issues. Since it need time and effort to change and resolve all the issues and then make sure the project is not affected, we decided not to make that change and hence we went ahead with "update" mode itself. That meant , any chnage we made via code for /conf wont get deployed and we are now manually packaging it from our local and installing it as a separate package. 

2 replies

arunpatidar
Community Advisor
Community Advisor
January 23, 2024

Hi @veenavikraman 
Could you please check the fileVault bundle (Apache Jackrabbit FileVault Core Bundle(org.apache.jackrabbit.vault) ) version in AEM , for me its 3.4.0 and the link you have shared it is for Version: 3.7.2 

 

I think update_properties is introduced in 3.6.4

https://issues.apache.org/jira/browse/JCRVLT-643 

https://github.com/apache/jackrabbit-filevault/commit/383356c109e0d2a1b4e3478ec389d80937e6292b 

Arun Patidar
VeenaVikraman
Community Advisor
Community Advisor
January 23, 2024

Thanks @arunpatidar 

I am not sure if I am looking at the right values, but this is what I see in my pom.xml. I cannot find org.apache.jackrabbit.vault specifically. 

 

 

VeenaVikraman
Community Advisor
Community Advisor
January 23, 2024

I think , I got this . I updated this version to the latest one , which inturn downloaded the org.apache.jackrabbit.vault latest version of 3.7.2 . But changing this is spiraling into many more issues in the validations. 

 

 

kautuk_sahni
Community Manager
Community Manager
January 30, 2024

@veenavikraman Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
VeenaVikraman
Community Advisor
VeenaVikramanCommunity AdvisorAuthorAccepted solution
Community Advisor
January 31, 2024

Hi @kautuk_sahni Oh . actually forgot to update here. I did update the pom.xml to get the latest bundles as I mentioned in https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-fix-no-enum-constant-org-apache-jackrabbit-vault-fs-api/m-p/646933/highlight/true#M162221 . But that resulted in a loop of issues. Since it need time and effort to change and resolve all the issues and then make sure the project is not affected, we decided not to make that change and hence we went ahead with "update" mode itself. That meant , any chnage we made via code for /conf wont get deployed and we are now manually packaging it from our local and installing it as a separate package. 

Jineet_Vora
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 20, 2025

Hi @veenavikraman@arunpatidar - Wondering if anyone of you guys were able to use the new filter modes like update_properties and merge_properties without this error 'No enum constant org.apache.jackrabbit.vault.fs.api.ImportMode.UPDATE_PROPERTIES'.

Looks like updating the filevault-package-maven-plugin version to latest version 1.4.0 alone doesn't help.

 

I am on AEM 6.5.22 and my 'Apache Jackrabbit FileVault Core Bundle' version is 3.2.8 and updating the Apache Jackrabbit FileVault Core Bundle version doesn't make sense as it should ideally be handled by Adobe in the SP updates.

Any pointers?