Skip to content

Dropwizard/HK2 service implementation doesn't bootstrap #565

@snazy

Description

@snazy

Describe the bug

After tentatively fixing #561 + the mentioned example in #562, another startup/bootstrap blocker occurs running bootstrap:

java.lang.NullPointerException: Cannot invoke "org.glassfish.hk2.api.ServiceLocator.getService(java.lang.Class, java.lang.annotation.Annotation[])" because "this.serviceLocator" is null
        at org.apache.polaris.service.dropwizard.config.PolarisApplicationConfig.findService(PolarisApplicationConfig.java:184)
	at org.apache.polaris.service.dropwizard.BootstrapRealmsCommand.run(BootstrapRealmsCommand.java:50)
	at org.apache.polaris.service.dropwizard.BootstrapRealmsCommand.run(BootstrapRealmsCommand.java:37)
	at io.dropwizard.core.cli.ConfiguredCommand.run(ConfiguredCommand.java:98)
	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)

To Reproduce

No response

Actual Behavior

No response

Expected Behavior

No response

Additional context

No response

System information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions