title: IllegalStateException:Target object must not be null Spring Boot
body: <p>I am developing a platform based on the micro services architecture (JAX-RS) and a nodeJS API.</p>
  
  <p>I have a problem adding an object to the database, because it always marks null by spring boot.</p>
  
  <p>*Here is my REST controller code (JAX-RS):</p>
  
  <pre><code>@RequestMapping(value="/Add")
      public Actifs AjouterActifs( @RequestBody Actifs act){
  
          return Actif.saveT(act);
      }
  </code></pre>
  
  <p>*Here the code node API to add the object "Actifs":</p>
  
  <pre><code>app.post("/act/add",function (req,res) {
  
          var addActif = JSON.stringify(req.body);
          console.log("params: "+addActif);
  
          try {
              http.get(url+"/Add",+addActif, function (response) { //problem is here "addActif is null"
                  var dataJson ='';
                  response.on('data',function(data){
                      dataJson += data;
                  });
                  response.on('end',function(){
                      try
                      {
                          var addAct = JSON.parse(dataJson);
                      }
                      catch(err) {
                          console.log('erreur de retourner l\'actif  --&gt;', +err);
                      }
                      res.json(addAct);
                  });
              });
          }
          catch(e) {
              console.log("erreur d'ajouter les info d'actif --&gt;", +e);
          }
      });
  </code></pre>
  
  <p>*Postman:
  <a href="https://i.stack.imgur.com/o7xXP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o7xXP.png" alt="enter image description here"></a></p>
  
  <p>I get this error:</p>
  
  <blockquote>
    <p>org.springframework.http.converter.HttpMessageNotReadableException:
    Required request body is missing:</p>
  </blockquote>
  
  <p>How to avoid a null object passing from node JS to the JAX-RS service ?</p>
  
  <p>thank you for helping me,</p>