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

Polaris not starting up / TaskHandlerConfiguration not JSON-serializable #561

Open
snazy opened this issue Dec 15, 2024 · 5 comments
Open
Labels
bug Something isn't working

Comments

@snazy
Copy link
Member

snazy commented Dec 15, 2024

Describe the bug

Polaris startup fails with

java.lang.IllegalArgumentException: Unable to create an instance of the configuration class: 'org.apache.polaris.service.dropwizard.config.PolarisApplicationConfig'
        at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:125)
        at io.dropwizard.core.cli.ConfiguredCommand.parseConfiguration(ConfiguredCommand.java:141)
        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: java.lang.IllegalArgumentException: No serializer found for class org.apache.polaris.service.config.TaskHandlerConfiguration and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: org.apache.polaris.service.dropwizard.config.PolarisApplicationConfig["taskHandler"])
        at com.fasterxml.jackson.databind.ObjectMapper.valueToTree(ObjectMapper.java:3614)
        at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:120)
        ... 5 more
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.apache.polaris.service.config.TaskHandlerConfiguration and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: org.apache.polaris.service.dropwizard.config.PolarisApplicationConfig["taskHandler"])
        at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77)
        at com.fasterxml.jackson.databind.SerializerProvider.reportBadDefinition(SerializerProvider.java:1328)
        at com.fasterxml.jackson.databind.DatabindContext.reportBadDefinition(DatabindContext.java:414)
        at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:53)
        at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:30)
        at com.fasterxml.jackson.module.blackbird.ser.ObjectPropertyWriter.serializeAsField(ObjectPropertyWriter.java:97)
        at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:770)
        at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:184)
        at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:502)
        at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:341)
        at com.fasterxml.jackson.databind.ObjectMapper.valueToTree(ObjectMapper.java:3609)
        ... 6 more

To Reproduce

./gradlew :polaris-dropwizard-service:runApp --args bootstrap

@snazy snazy added the bug Something isn't working label Dec 15, 2024
@jbonofre
Copy link
Member

It's a duplicated from #542 that gathers binary distribution startup issues.

@snazy
Copy link
Member Author

snazy commented Dec 16, 2024

This is different from #542, right?

@jbonofre
Copy link
Member

Yes and no: #542 is about to gather all related startup issues, including this one.

@snazy
Copy link
Member Author

snazy commented Dec 16, 2024

Still, different technical issues

@jbonofre
Copy link
Member

No problem if you want to reopen, but I kindly ask to update the title to describe the actual issue.

@snazy snazy changed the title Polaris not starting up Polaris not starting up / TaskHandlerConfiguration not JSON-serializable Dec 16, 2024
@snazy snazy reopened this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants