java.lang.IllegalArgumentException: variable name cannot be empty

JIRA | Yannick Marcon | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Steps to reproduce: * Prepare a table with some variables * import CSV data file with columns having empty name {code} 2013-01-31 12:44:18,810 - ERROR - der.RuntimeExceptionMapper - Unhandled exception java.lang.IllegalArgumentException: variable name cannot be empty at org.obiba.magma.Variable$Builder.<init>(Variable.java:44) at org.obiba.magma.Variable$Builder.newVariable(Variable.java:66) at org.obiba.magma.datasource.csv.CsvValueTable.getMissingVariables(CsvValueTable.java:536) at org.obiba.opal.web.magma.CompareResource.getMissingCsvVariableConflicts(CompareResource.java:201) at org.obiba.opal.web.magma.CompareResource.createTableCompareDto(CompareResource.java:165) at org.obiba.opal.web.magma.CompareResource.createTableCompareDto(CompareResource.java:144) at org.obiba.opal.web.magma.CompareResource.createDatasourceCompareDto(CompareResource.java:121) at org.obiba.opal.web.magma.CompareResource.compare(CompareResource.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252) {code}

    JIRA | 4 years ago | Yannick Marcon
    java.lang.IllegalArgumentException: variable name cannot be empty
  2. 0

    Steps to reproduce: * Prepare a table with some variables * import CSV data file with columns having empty name {code} 2013-01-31 12:44:18,810 - ERROR - der.RuntimeExceptionMapper - Unhandled exception java.lang.IllegalArgumentException: variable name cannot be empty at org.obiba.magma.Variable$Builder.<init>(Variable.java:44) at org.obiba.magma.Variable$Builder.newVariable(Variable.java:66) at org.obiba.magma.datasource.csv.CsvValueTable.getMissingVariables(CsvValueTable.java:536) at org.obiba.opal.web.magma.CompareResource.getMissingCsvVariableConflicts(CompareResource.java:201) at org.obiba.opal.web.magma.CompareResource.createTableCompareDto(CompareResource.java:165) at org.obiba.opal.web.magma.CompareResource.createTableCompareDto(CompareResource.java:144) at org.obiba.opal.web.magma.CompareResource.createDatasourceCompareDto(CompareResource.java:121) at org.obiba.opal.web.magma.CompareResource.compare(CompareResource.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252) {code}

    JIRA | 4 years ago | Yannick Marcon
    java.lang.IllegalArgumentException: variable name cannot be empty

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      variable name cannot be empty

      at org.obiba.magma.Variable$Builder.<init>()
    2. org.obiba.magma
      CsvValueTable.getMissingVariables
      1. org.obiba.magma.Variable$Builder.<init>(Variable.java:44)
      2. org.obiba.magma.Variable$Builder.newVariable(Variable.java:66)
      3. org.obiba.magma.datasource.csv.CsvValueTable.getMissingVariables(CsvValueTable.java:536)
      3 frames
    3. org.obiba.opal
      CompareResource.compare
      1. org.obiba.opal.web.magma.CompareResource.getMissingCsvVariableConflicts(CompareResource.java:201)
      2. org.obiba.opal.web.magma.CompareResource.createTableCompareDto(CompareResource.java:165)
      3. org.obiba.opal.web.magma.CompareResource.createTableCompareDto(CompareResource.java:144)
      4. org.obiba.opal.web.magma.CompareResource.createDatasourceCompareDto(CompareResource.java:121)
      5. org.obiba.opal.web.magma.CompareResource.compare(CompareResource.java:88)
      5 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      4 frames
    5. RESTEasy JAX-RS Implementation
      ResourceMethod.invokeOnTarget
      1. org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
      2. org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252)
      2 frames