Gerrit-K commented on PR #309:
URL: https://github.com/apache/polaris/pull/309#issuecomment-2557391627

   Hey @flyrain and @eric-maynard, sorry to ask, but did this fix work after 
all? 🤔  I don't see any unit/integration tests attached to the PR and when I 
set the attribute in my config (in the Helm chart):
   ```
   polarisServerConfig:
     defaultRealm: something
   ```
   I get an exception on startup:
   ```
   io.dropwizard.configuration.ConfigurationParsingException: 
/app/config/polaris-server.yml has an error:
     * Failed to parse configuration at: defaultRealm; Cannot invoke 
"org.apache.polaris.service.context.RealmContextResolver.setDefaultRealm(String)"
 because "this.realmContextResolver" is null (through reference chain: 
org.apache.polaris.service.dropwizard.config.PolarisApplicationConfig["defaultRealm"])
       at 
io.dropwizard.configuration.ConfigurationParsingException$Builder.build(ConfigurationParsingException.java:277)
       at 
io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:177)
       at 
io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:94)
       at 
io.dropwizard.core.cli.ConfiguredCommand.parseConfiguration(ConfiguredCommand.java:139)
       at 
io.dropwizard.core.cli.ConfiguredCommand.run(ConfiguredCommand.java:85)
       at io.dropwizard.core.cli.Cli.run(Cli.java:78)
       at io.dropwizard.core.Application.run(Application.java:94)
       at 
org.apache.polaris.service.dropwizard.PolarisApplication.main(PolarisApplication.java:153)
   Caused by: com.fasterxml.jackson.databind.JsonMappingException: Cannot 
invoke 
"org.apache.polaris.service.context.RealmContextResolver.setDefaultRealm(String)"
 because "this.realmContextResolver" is null (through reference chain: 
org.apache.polaris.service.dropwizard.config.PolarisApplicationConfig["defaultRealm"])
       at 
com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:402)
       at 
com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:361)
       at 
com.fasterxml.jackson.databind.deser.BeanDeserializerBase.wrapAndThrow(BeanDeserializerBase.java:1964)
       at 
com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:275)
       at 
com.fasterxml.jackson.module.blackbird.deser.SuperSonicBeanDeserializer.deserialize(SuperSonicBeanDeserializer.java:155)
       at 
com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342)
       at 
com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:4893)
       at 
com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3036)
       at 
io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:148)
       ... 6 more
   Caused by: java.lang.NullPointerException: Cannot invoke 
"org.apache.polaris.service.context.RealmContextResolver.setDefaultRealm(String)"
 because "this.realmContextResolver" is null
       at 
org.apache.polaris.service.dropwizard.config.PolarisApplicationConfig.setDefaultRealm(PolarisApplicationConfig.java:312)
       at 
com.fasterxml.jackson.module.blackbird.deser.SettableStringProperty.set(SettableStringProperty.java:56)
       at 
com.fasterxml.jackson.module.blackbird.deser.SettableStringProperty.deserializeAndSet(SettableStringProperty.java:41)
       at 
com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:273)
       ... 11 more
   ```
   Am I missing something in the config? Or is this maybe a regression?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to