Sqoop
  1. Sqoop
  2. SQOOP-774

Sqoop2: exception is thrown when creating a connection object if connectionString starts with an empty space

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.99.1
    • Fix Version/s: 1.99.1
    • Component/s: sqoop2-client
    • Labels:
      None

      Description

      To reproduce it, do the following:

      sqoop:000> create connection --cid 1
      Creating connection for connector with id 1
      Please fill following values to create new connection object
      Name: blah
      Configuration configuration
      JDBC Driver Class: blah
      JDBC Connection String:  blah <--- an empty space before blah
      Username: blah
      Password: blah
      JDBC Connection Properties: 
      There are currently 0 values in the map:
      entry# 
      
      Security related configuration options
      Max connections: 
      log4j:WARN No appenders could be found for logger (org.apache.sqoop.utils.ClassUtils).
      log4j:WARN Please initialize the log4j system properly.
      log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
      Exception has occurred during processing command 
      Server has returned exception: Exception: java.lang.Throwable Message: VALIDATION_0002:Usage of missing field - Field connectionString is not present in org.apache.sqoop.connector.jdbc.configuration.ConnectionConfiguration
      
      1. bugSQOOP-774.patch
        12 kB
        Jarek Jarcec Cecho

        Issue Links

          Activity

          Hide
          Jarek Jarcec Cecho added a comment -

          I've took a look and I'm increasing priority to blocker as I found out that the problem is in Validation part that seems to be broken.

          Show
          Jarek Jarcec Cecho added a comment - I've took a look and I'm increasing priority to blocker as I found out that the problem is in Validation part that seems to be broken.
          Hide
          Cheolsoo Park added a comment -

          +1. I verified that the issue is fixed. Will commit it soon.

          Show
          Cheolsoo Park added a comment - +1. I verified that the issue is fixed. Will commit it soon.
          Hide
          Cheolsoo Park added a comment -

          Committed to sqoop2. Thanks Jarcec!

          Show
          Cheolsoo Park added a comment - Committed to sqoop2. Thanks Jarcec!
          Hide
          Hudson added a comment -

          Integrated in Sqoop2-hadoop200 #10 (See https://builds.apache.org/job/Sqoop2-hadoop200/10/)
          SQOOP-774: exception is thrown when creating a connection object if (Revision 649178222589b3abe38d96224edc3c5855d4d8e3)

          Result = SUCCESS
          cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=649178222589b3abe38d96224edc3c5855d4d8e3
          Files :

          • common/src/test/java/org/apache/sqoop/json/TestValidationBean.java
          • connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcValidator.java
          • common/src/main/java/org/apache/sqoop/validation/Validation.java
          • common/src/test/java/org/apache/sqoop/model/TestFormUtils.java
          • common/src/main/java/org/apache/sqoop/json/ValidationBean.java
          • common/src/main/java/org/apache/sqoop/model/FormUtils.java
          • common/src/main/java/org/apache/sqoop/validation/ValidationError.java
          Show
          Hudson added a comment - Integrated in Sqoop2-hadoop200 #10 (See https://builds.apache.org/job/Sqoop2-hadoop200/10/ ) SQOOP-774 : exception is thrown when creating a connection object if (Revision 649178222589b3abe38d96224edc3c5855d4d8e3) Result = SUCCESS cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=649178222589b3abe38d96224edc3c5855d4d8e3 Files : common/src/test/java/org/apache/sqoop/json/TestValidationBean.java connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcValidator.java common/src/main/java/org/apache/sqoop/validation/Validation.java common/src/test/java/org/apache/sqoop/model/TestFormUtils.java common/src/main/java/org/apache/sqoop/json/ValidationBean.java common/src/main/java/org/apache/sqoop/model/FormUtils.java common/src/main/java/org/apache/sqoop/validation/ValidationError.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop2-hadoop100 #11 (See https://builds.apache.org/job/Sqoop2-hadoop100/11/)
          SQOOP-774: exception is thrown when creating a connection object if (Revision 649178222589b3abe38d96224edc3c5855d4d8e3)

          Result = SUCCESS
          cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=649178222589b3abe38d96224edc3c5855d4d8e3
          Files :

          • common/src/main/java/org/apache/sqoop/json/ValidationBean.java
          • connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcValidator.java
          • common/src/main/java/org/apache/sqoop/validation/ValidationError.java
          • common/src/test/java/org/apache/sqoop/model/TestFormUtils.java
          • common/src/main/java/org/apache/sqoop/model/FormUtils.java
          • common/src/main/java/org/apache/sqoop/validation/Validation.java
          • common/src/test/java/org/apache/sqoop/json/TestValidationBean.java
          Show
          Hudson added a comment - Integrated in Sqoop2-hadoop100 #11 (See https://builds.apache.org/job/Sqoop2-hadoop100/11/ ) SQOOP-774 : exception is thrown when creating a connection object if (Revision 649178222589b3abe38d96224edc3c5855d4d8e3) Result = SUCCESS cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=649178222589b3abe38d96224edc3c5855d4d8e3 Files : common/src/main/java/org/apache/sqoop/json/ValidationBean.java connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcValidator.java common/src/main/java/org/apache/sqoop/validation/ValidationError.java common/src/test/java/org/apache/sqoop/model/TestFormUtils.java common/src/main/java/org/apache/sqoop/model/FormUtils.java common/src/main/java/org/apache/sqoop/validation/Validation.java common/src/test/java/org/apache/sqoop/json/TestValidationBean.java

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development