Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.99.2
    • Fix Version/s: 1.99.3
    • Component/s: None
    • Labels:
      None

      Description

      I've created connection without name and displayed it with TableDisplayer which lead to following NPE:

      sqoop:000> show connection                       
      Exception has occurred during processing command 
      Exception: java.lang.NullPointerException Message: null
      Stack trace:
               at  org.apache.sqoop.client.utils.TableDisplayer (TableDisplayer.java:109)  
               at  org.apache.sqoop.client.utils.TableDisplayer (TableDisplayer.java:49)  
               at  org.apache.sqoop.client.shell.ShowConnectionFunction (ShowConnectionFunction.java:79)  
               at  org.apache.sqoop.client.shell.ShowConnectionFunction (ShowConnectionFunction.java:55)  
               at  org.apache.sqoop.client.shell.SqoopFunction (SqoopFunction.java:46)  
               at  org.apache.sqoop.client.shell.ShowCommand (ShowCommand.java:82)  
               at  org.apache.sqoop.client.shell.SqoopCommand (SqoopCommand.java:127)  
      
      1. bugSQOOP-1040.patch
        0.8 kB
        Jarek Jarcec Cecho

        Issue Links

          Activity

          Hide
          Kathleen Ting added a comment -
          Show
          Kathleen Ting added a comment - Thanks Jarcec for your contribution. The patch is in: https://git-wip-us.apache.org/repos/asf?p=sqoop.git;a=commit;h=c452ffcaacb17d50a558925eb408417894844195
          Hide
          Hudson added a comment -

          Integrated in Sqoop2-hadoop200 #279 (See https://builds.apache.org/job/Sqoop2-hadoop200/279/)
          SQOOP-1040: Sqoop2: NPE in TableDisplayer (Revision c452ffcaacb17d50a558925eb408417894844195)

          Result = FAILURE
          kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=c452ffcaacb17d50a558925eb408417894844195
          Files :

          • client/src/main/java/org/apache/sqoop/client/utils/TableDisplayer.java
          Show
          Hudson added a comment - Integrated in Sqoop2-hadoop200 #279 (See https://builds.apache.org/job/Sqoop2-hadoop200/279/ ) SQOOP-1040 : Sqoop2: NPE in TableDisplayer (Revision c452ffcaacb17d50a558925eb408417894844195) Result = FAILURE kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=c452ffcaacb17d50a558925eb408417894844195 Files : client/src/main/java/org/apache/sqoop/client/utils/TableDisplayer.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop2-hadoop100 #279 (See https://builds.apache.org/job/Sqoop2-hadoop100/279/)
          SQOOP-1040: Sqoop2: NPE in TableDisplayer (Revision c452ffcaacb17d50a558925eb408417894844195)

          Result = FAILURE
          kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=c452ffcaacb17d50a558925eb408417894844195
          Files :

          • client/src/main/java/org/apache/sqoop/client/utils/TableDisplayer.java
          Show
          Hudson added a comment - Integrated in Sqoop2-hadoop100 #279 (See https://builds.apache.org/job/Sqoop2-hadoop100/279/ ) SQOOP-1040 : Sqoop2: NPE in TableDisplayer (Revision c452ffcaacb17d50a558925eb408417894844195) Result = FAILURE kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=c452ffcaacb17d50a558925eb408417894844195 Files : client/src/main/java/org/apache/sqoop/client/utils/TableDisplayer.java

            People

            • Assignee:
              Jarek Jarcec Cecho
              Reporter:
              Jarek Jarcec Cecho
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development