New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE error when piping queries via stdin to ksql #1327

mbrancato opened this Issue May 21, 2018 · 2 comments


None yet
3 participants
Copy link

mbrancato commented May 21, 2018

Since there is no current way to run an interactive query against ksql-server when using the --queries-file option, to achieve a ksql-server with a listener and load queries, I was trying to read queries via stdin.

This results in a forever running display of java.lang.NullPointerException.

ksql@ksql:/$ echo "SHOW STREAMS;" | ksql
mkdir: cannot create directory ‘/usr/logs’: Permission denied
May 21, 2018 2:06:31 PM org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
KSQL, Copyright 2017 Confluent Inc.

CLI v5.0.0-SNAPSHOT, Server v5.0.0-SNAPSHOT located at http://localhost:8088

Having trouble? Type 'help' (case-insensitive) for a rundown of how things work!

 Stream Name | Kafka Topic | Format
 EVENTS  | events      | JSON
ksql> java.lang.NullPointerException
ksql> java.lang.NullPointerException
ksql> java.lang.NullPointerException

This is related to #849 as I believe loading via stdin is a workaround to that issue in some cases, including mine.


This comment has been minimized.

Copy link

Jeronimo-GL commented Aug 28, 2018

I found the same issue on 5.0.0-1.

The problem happens regardless of the headless mode. How can I pass a script with queries to define streams for example?.

@rmoff rmoff changed the title Exception when loading queries via ksql CLI NPE error when piping queries via stdin to ksql Sep 13, 2018


This comment has been minimized.

Copy link

rmoff commented Sep 13, 2018

@Jeronimo-GL you can use --queries-file if you don't mind headless mode. That works fine in 5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment