title: Unable to pass Array from Angular 2 typescript to Spring Java
body: <p>I am trying to pass a String array from my typescript</p>
  
  <pre><code>tmp : Array&lt;string&gt; = [];
  </code></pre>
  
  <p>So I have a function which takes in this array as a parameter input</p>
  
  <pre><code>passValues(test : Array&lt;string&gt;) {
     ........
     // some method to call post method from service
  }
  </code></pre>
  
  <p>So in service</p>
  
  <pre><code>public passingOfValues( test : Array&lt;string&gt; ) : Observable&lt;Array&lt;string&gt;&gt; {
      let headers = new Headers({ 'Content-Type': 'application/json'} );
      let options = new RequestOptions({ headers: headers); 
  
      let response = this.http.post(this.basePath + this.modulePath + '/getArrayValue', {'test' : test }, options)
              .map(this.extractData)
              .catch(this.handleError);
              return response;
  }
  </code></pre>
  
  <p>But I am getting errors such as System property [org.owasp.esapi.devteam] is not set</p>
  
  <p>And I read on other posts that I have to stringify the array before passing to backend.</p>
  
  <p>Is there a reason why I need to stringify / also can I just pass the raw array?</p>
  
  <p>EDIT 1 :
  including backend controller codes</p>
  
  <pre><code>public ResponseEntity&lt;?&gt; getArrayValues( ArrayList&lt;String&gt; test ) {
       logger.debug("@@@ Test if array has a size @@@" + test.size());
  
  
  }
  </code></pre>
  
  <p>Apparently size already shows 0 from here.</p>
  
  <p>EDIT 2 :</p>
  
  <p>While debugging, i realised that the SQL at the back is receiving 
  say</p>
  
  <pre><code>HOME CHARACTER(20 OCTETS)
  </code></pre>
  
  <p>does this make any difference?
  Like passing of string into octets or do I have to do some conversion?</p>
  
  <p>Sorry if I have alot of questions am also working hard on debugging and learning more about it! </p>