AbsaOSS/commons

IllegalAccessError when calling `SubsetConfigurationOps.getParentKey`

Closed this issue · 0 comments

wajda commented

In some environments (e.g. Databricks) the above invocation throws an error:

IllegalAccessError: tried to access method org.apache.commons.configuration.SubsetConfiguration.getParentKey(Ljava/lang/String;)Ljava/lang/String; from class org.apache.commons.configuration.SubsetConfigurationMethods$SubsetConfigurationOps$
	at org.apache.commons.configuration.SubsetConfigurationMethods$SubsetConfigurationOps$.$anonfun$getParentKey$1(SubsetConfigurationMethods.scala:26)
	at za.co.absa.commons.config.ConfigurationImplicits$ConfigurationRequiredWrapper$.getFullPropName$extension(ConfigurationImplicits.scala:123)
	at za.co.absa.commons.config.ConfigurationImplicits$ConfigurationRequiredWrapper$$anonfun$getRequired$extension$2.applyOrElse(ConfigurationImplicits.scala:115)
	at za.co.absa.commons.config.ConfigurationImplicits$ConfigurationRequiredWrapper$$anonfun$getRequired$extension$2.applyOrElse(ConfigurationImplicits.scala:112)
	at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38)
	at scala.util.Failure.recover(Try.scala:234)
	at za.co.absa.commons.config.ConfigurationImplicits$ConfigurationRequiredWrapper$.getRequired$extension(ConfigurationImplicits.scala:112)
	at za.co.absa.commons.config.ConfigurationImplicits$ConfigurationRequiredWrapper$.$anonfun$getRequiredString$3(ConfigurationImplicits.scala:44)
	at za.co.absa.spline.harvester.dispatcher.httpdispatcher.HttpLineageDispatcherConfig.<init>(HttpLineageDispatcherConfig.scala:37)
	at ...