title: java.lang.NoSuchMethodError: org.springframework.util.Assert.noNullElements
body: <p>I upgraded the <code>spring-web</code> module version from <code>5.1.2.RELEASE</code> to <code>5.2.4.RELEASE</code> for my Micronaut application deployed on AWS. I had to upgrade to a more stable version (suggested fix by WhiteSource) as the older version jar was considered to be highly vulnerable from a security standpoint by the WhiteSource tool. </p>
  
  <p>The issue is that most of my application's endpoints worked just fine as they were mainly database queries but I noticed that if I make a REST call, the endpoint fails with the following error:</p>
  
  <pre><code>Invocation with requestId [ca31a9a5-35b3-4b52-a955-e304d9021880] failed: org.springframework.util.Assert.noNullElements(java.util.Collection, java.lang.String)java.lang.NoSuchMethodError: org.springframework.util.Assert.noNullElements(java.util.Collection, java.lang.String)
  at org.springframework.web.client.HttpMessageConverterExtractor.&lt;init&gt;(HttpMessageConverterExtractor.java:77)
  at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.&lt;init&gt;(RestTemplate.java:988)
  at org.springframework.web.client.RestTemplate.responseEntityExtractor(RestTemplate.java:819)
  at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:582)
  at com.connector.getToken(Connector.java:58)
  </code></pre>
  
  <p>Downgrading the version is not much of an option as those jars will be rejected/deemed vulnerable by WhiteSource. Is there another workaround/solution for this? Please let me know! Thanks.</p>