Skip to content

StandardOut goes to StandardError in non-interactive mode #891

Closed
@joanneshen

Description

@joanneshen

This issue seems to be more on the Linux side, Windows 10 system seemed to be fine.

There is java process to kick off .bat file that kicks off Shell, then waits for the process to complete, then checks for standard input and error streams to determine if deployment process (the same applies for load/ingestion) was successful or failed.

Prior to Spring-shell 3.1.3 upgrade (and Spring-boot upgrade) standard out messages were available on getInputStream(). Everything that you see in Shell console (with exception of errors) were available in this stream. All errors, including NOTEs and warnings, were available in error stream (getErrorStream()).

After Spring-shell 3.1.3 upgrade, the input stream returns only the following:
“Welcome to XXXXXX ##.# command line client (c) XYZ Corporation
Type 'help' for a list of commands and options, type 'exit' to leave the shell.”

All the other message supposed to be standard out goes to standard error instead.

We are also using build.gradle to do the build of the shell. It is in version 7.4 or 7.5.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions