Skip to content

Docker UCE-web container sometimes doesn't recognize defined CLI arguments #105

@TheBv

Description

@TheBv

Sometimes when building the web portal running it causes the following error:

2025-08-21 14:46:34 Exception in thread "main" org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -cf
2025-08-21 14:46:34     at org.apache.commons.cli.DefaultParser.handleUnknownToken(DefaultParser.java:561)
2025-08-21 14:46:34     at org.apache.commons.cli.DefaultParser.handleShortAndLongOption(DefaultParser.java:469)
2025-08-21 14:46:34     at org.apache.commons.cli.DefaultParser.handleToken(DefaultParser.java:542)
2025-08-21 14:46:34     at org.apache.commons.cli.DefaultParser.parse(DefaultParser.java:712)
2025-08-21 14:46:34     at org.apache.commons.cli.DefaultParser.parse(DefaultParser.java:679)
2025-08-21 14:46:34     at org.apache.commons.cli.DefaultParser.parse(DefaultParser.java:660)
2025-08-21 14:46:34     at org.texttechnologylab.App.main(App.java:55)

This occurs even though the -cf parameter is clearly defined.
Rebuilding the image sometimes fixes this.
One oddity that I've noticed is that I believe the stacktrace is incomplete.
Shouldn't we also have a line with the parseCommandLine method? E.g:

                                       at org.texttechnologylab.App.parseCommandLine(App.Java:215)

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