NullPointerException when piping output of metadatagen to somewhere else
Basics
Logistics
Basics
Logistics
Description
When piping the output of metadatagen.sh (from plugin), a NullPointerException is thrown:
# ./bin/metadatagen.sh | cat
Exception in thread "main" java.lang.NullPointerException
at net.shibboleth.idp.plugin.metadatagen.impl.MetadataGenCLI.setupWriter(MetadataGenCLI.java:504)
at net.shibboleth.idp.plugin.metadatagen.impl.MetadataGenCLI.doRun(MetadataGenCLI.java:527)
at net.shibboleth.idp.plugin.metadatagen.impl.MetadataGenCLI.doRun(MetadataGenCLI.java:77)
at net.shibboleth.ext.spring.cli.AbstractCommandLine.run(AbstractCommandLine.java:202)
at net.shibboleth.idp.plugin.metadatagen.impl.MetadataGenCLI.runMain(MetadataGenCLI.java:549)
at net.shibboleth.idp.plugin.metadatagen.impl.MetadataGenCLI.main(MetadataGenCLI.java:557)
When piping the output of metadatagen.sh (from plugin), a NullPointerException is thrown:
# ./bin/metadatagen.sh | cat Exception in thread "main" java.lang.NullPointerException at net.shibboleth.idp.plugin.metadatagen.impl.MetadataGenCLI.setupWriter(MetadataGenCLI.java:504) at net.shibboleth.idp.plugin.metadatagen.impl.MetadataGenCLI.doRun(MetadataGenCLI.java:527) at net.shibboleth.idp.plugin.metadatagen.impl.MetadataGenCLI.doRun(MetadataGenCLI.java:77) at net.shibboleth.ext.spring.cli.AbstractCommandLine.run(AbstractCommandLine.java:202) at net.shibboleth.idp.plugin.metadatagen.impl.MetadataGenCLI.runMain(MetadataGenCLI.java:549) at net.shibboleth.idp.plugin.metadatagen.impl.MetadataGenCLI.main(MetadataGenCLI.java:557)
Without piping, the command executes correctly.