Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6661

Sqlline does not work on PowerPC linux

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.2.0, 5.1.3, queryserver-6.0.1
    • core, queryserver
    • None

    Description

      When trying to run phoenix-sqlline.py or phoenix-sqlline-thin.py on Linux PPC,
      we get the following exception:

      Exception in thread "main" com.sun.jna.LastErrorException: [25] Inappropriate ioctl for device
          at com.sun.jna.Native.invokeVoid(Native Method)
          at com.sun.jna.Function.invoke(Function.java:415)
          at com.sun.jna.Function.invoke(Function.java:361)
          at com.sun.jna.Library$Handler.invoke(Library.java:265)
          at com.sun.proxy.$Proxy0.ioctl(Unknown Source)
          at org.jline.terminal.impl.jna.linux.LinuxNativePty.getSize(LinuxNativePty.java:95)
          at org.jline.terminal.impl.AbstractPosixTerminal.getSize(AbstractPosixTerminal.java:60)
          at org.jline.terminal.Terminal.getWidth(Terminal.java:196)
          at sqlline.SqlLine.getConsoleReader(SqlLine.java:594)
          at sqlline.SqlLine.begin(SqlLine.java:511)
          at sqlline.SqlLine.start(SqlLine.java:267)
          at sqlline.SqlLine.main(SqlLine.java:206)

      Upgrading to the latest sqlline 1.12 will result in the sqlline.py starting normally, but it will not accept any keyboard input.

      Replacing the currently used sqlline-*-jar-with-dependencies.jar JAR with the plain sqlline jar, and NOT adding the JNA and JANSI terminal variants and their dependencies fixes the problem.

      Doing that, however, would break or at least seriously degrade sqlline functionality on Windows.

      Attachments

        Activity

          People

            stoty Istvan Toth
            abjain Abhishek Jain
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: