Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

NullPointerException at ConfigurationPropertiesNativeConfigurationProcessor #1240

Closed

Description

@sueleyman-dmr

Hi, does someone know what this error means explicitly? Do I have problem, when building the Image with "gradle bootBuildImage" in dependecy injection?

edit: it's a Kotlin project, by the way.

`java.lang.NullPointerException
        at org.springframework.boot.context.properties.ConfigurationPropertiesNativeConfigurationProcessor$TypeProcessor.handleValueObjectProperties(ConfigurationPropertiesNativeConfigurationProcessor.java:123)
        at org.springframework.boot.context.properties.ConfigurationPropertiesNativeConfigurationProcessor$TypeProcessor.process(ConfigurationPropertiesNativeConfigurationProcessor.java:103)
        at org.springframework.boot.context.properties.ConfigurationPropertiesNativeConfigurationProcessor$TypeProcessor.handleValueObjectProperties(ConfigurationPropertiesNativeConfigurationProcessor.java:127)
        at org.springframework.boot.context.properties.ConfigurationPropertiesNativeConfigurationProcessor$TypeProcessor.process(ConfigurationPropertiesNativeConfigurationProcessor.java:103)
        at org.springframework.boot.context.properties.ConfigurationPropertiesNativeConfigurationProcessor.processConfigurationProperties(ConfigurationPropertiesNativeConfigurationProcessor.java:67)
        at org.springframework.boot.context.properties.ConfigurationPropertiesNativeConfigurationProcessor.process(ConfigurationPropertiesNativeConfigurationProcessor.java:61)
        at org.springframework.aot.context.bootstrap.generator.infrastructure.nativex.NativeConfigurationRegistrar.lambda$processBeanFactory$0(NativeConfigurationRegistrar.java:55)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
        at org.springframework.aot.context.bootstrap.generator.infrastructure.nativex.NativeConfigurationRegistrar.processBeanFactory(NativeConfigurationRegistrar.java:55)
        at org.springframework.aot.context.bootstrap.generator.ApplicationContextAotProcessor.generateBootstrapMethod(ApplicationContextAotProcessor.java:104)
        at org.springframework.aot.context.bootstrap.generator.ApplicationContextAotProcessor.process(ApplicationContextAotProcessor.java:91)
        at org.springframework.aot.build.ContextBootstrapContributor.contribute(ContextBootstrapContributor.java:80)
        at org.springframework.aot.build.BootstrapCodeGenerator.generate(BootstrapCodeGenerator.java:90)
        at org.springframework.aot.build.BootstrapCodeGenerator.generate(BootstrapCodeGenerator.java:68)
        at org.springframework.aot.build.GenerateBootstrapCommand.call(GenerateBootstrapCommand.java:103)
        at org.springframework.aot.build.GenerateBootstrapCommand.call(GenerateBootstrapCommand.java:42)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
        at picocli.CommandLine.access$1300(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
        at picocli.CommandLine.execute(CommandLine.java:2078)
        at org.springframework.aot.build.GenerateBootstrapCommand.main(GenerateBootstrapCommand.java:108)

> Task :generateAot FAILED

FAILURE: Build failed with an exception.

Activity

  1. added
    status: waiting-for-triage
    on Nov 9, 2021
  2. added
    type: bug
    and removed
    status: waiting-for-triage
    on Nov 9, 2021
  3. added this to the 0.11.0-RC1 milestone on Nov 9, 2021
  4. snicoll commented on Nov 9, 2021

    @snicoll
    Contributor

    Thanks for the report, that looks like a bug in the way a constructor that can't be found is handled.

  5. sueleyman-dmr commented on Nov 9, 2021

    @sueleyman-dmr
    Author

    It's a Kotlin project, by the way.

  6. snicoll commented on Nov 9, 2021

    @snicoll
    Contributor

    Can you share it by any chance?

  7. self-assigned this
    on Nov 9, 2021
  8. snicoll commented on Nov 9, 2021

    @snicoll
    Contributor

    @sueleyman-dmr I've pushed a fix but I am still interested to understand why the constructor of your @ConstructorBinding type wasn't found.

  9. sueleyman-dmr commented on Nov 9, 2021

    @sueleyman-dmr
    Author

    @sueleyman-dmr I've pushed a fix but I am still interested to understand why the constructor of your @ConstructorBinding type wasn't found.

    @snicoll Sorry, it's not possible for me to share any code.

  10. added a commit that references this issue on Feb 17, 2024
    4f26fde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions