Skip to content

[Bug]: NPE when trying to get system settings with default config.yaml #3961

Description

@turboFei

What happened?

Image
2025-11-23 16:50:22,118 ERROR [JettyServerThreadPool-91] [org.apache.amoro.server.dashboard.DashboardServer] [] - An error occurred while processing the url:http://localhost:1630/api/ams/v1/settings/system
java.lang.NullPointerException: Cannot invoke "Object.toString()" because the return value of "java.util.Map$Entry.getValue()" is null
        at org.apache.amoro.config.ConfigHelpers.lambda$convertToString$10(ConfigHelpers.java:226) ~[amoro-common-0.9-SNAPSHOT.jar:0.9-SNAPSHOT]
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
        at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
        at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) ~[?:?]
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
        at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
        at org.apache.amoro.config.ConfigHelpers.convertToString(ConfigHelpers.java:231) ~[amoro-common-0.9-SNAPSHOT.jar:0.9-SNAPSHOT]
        at org.apache.amoro.config.ConfigHelpers.lambda$convertToString$9(ConfigHelpers.java:215) ~[amoro-common-0.9-SNAPSHOT.jar:0.9-SNAPSHOT]
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
        at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
        at org.apache.amoro.config.ConfigHelpers.convertToString(ConfigHelpers.java:216) ~[amoro-common-0.9-SNAPSHOT.jar:0.9-SNAPSHOT]
        at org.apache.amoro.config.Configurations.toMap(Configurations.java:565) ~[amoro-common-0.9-SNAPSHOT.jar:0.9-SNAPSHOT]
        at org.apache.amoro.server.dashboard.controller.SettingController.getSystemSetting(SettingController.java:62) ~[amoro-ams-0.9-SNAPSHOT.jar:0.9-SNAPSHOT]

Affects Versions

master

What table formats are you seeing the problem on?

No response

What engines are you seeing the problem on?

No response

How to reproduce

No response

Relevant log output

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions