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

NPE on sqlline.py start.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 4.4.0
    • None
    • None
    • None

    Description

      After updating to 4.4 sqlline throw exception on the start. It does not look like it affects use afterwards thou.

      ./sqlline.py *********:2181:/hbase
      Setting property: [isolation, TRANSACTION_READ_COMMITTED]
      issuing: !connect jdbc:phoenix:***************:2181:/hbase none none org.apache.phoenix.jdbc.PhoenixDriver
      Connecting to jdbc:phoenix:**************:2181:/hbase
      SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
      SLF4J: Defaulting to no-operation (NOP) logger implementation
      SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
      15/05/19 13:41:46 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      Connected to: Phoenix (version 4.4)
      Driver: PhoenixEmbeddedDriver (version 4.4)
      Autocommit status: true
      Transaction isolation: TRANSACTION_READ_COMMITTED
      Building list of tables and columns for tab-completion (set fastconnect to true to skip)...
      346/346 (100%) Done
      Done
      java.lang.NullPointerException
              at java.util.TreeMap.put(TreeMap.java:563)
              at java.util.TreeSet.add(TreeSet.java:255)
              at java.util.AbstractCollection.addAll(AbstractCollection.java:344)
              at java.util.TreeSet.addAll(TreeSet.java:312)
              at sqlline.SqlCompleter.<init>(SqlCompleter.java:81)
              at sqlline.DatabaseConnection.setCompletions(DatabaseConnection.java:84)
              at sqlline.SqlLine.setCompletions(SqlLine.java:1730)
              at sqlline.Commands.connect(Commands.java:1066)
              at sqlline.Commands.connect(Commands.java:996)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:483)
              at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:36)
              at sqlline.SqlLine.dispatch(SqlLine.java:804)
              at sqlline.SqlLine.initArgs(SqlLine.java:588)
              at sqlline.SqlLine.begin(SqlLine.java:656)
              at sqlline.SqlLine.start(SqlLine.java:398)
              at sqlline.SqlLine.main(SqlLine.java:292)
      sqlline version 1.1.8
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            sergey.b Serhiy Bilousov
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: