title: Reposted from GitHub: Spring Boot Application fails to start with error "java.lang.NoSuchMethodError
body: <p>Please note: This is an issue moved from GitHub
  <strong>Spring Boot Application fails to start: Reports an error "Caused by: java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.([Ljava/lang/Object;)V</strong></p>
  
  <p>**I am trying to add a dependency(using older spring boot 1.5.10.RELEASE) to  spring new boot application that I am trying to build using 2.0.3.RELEASE.</p>
  
  <p>Before the dependency is added, the new spring Boot application works fine, but once I add the dependency, the application fails to run, although the compilation works seamlessly. The dependency has critical business logic that needs to be used, rather than re-coding the entire thing.
  Any idea, someone had faced a similar issue? Would be great to find help...</p>
  
  <p>Trying to understand, if its issue with incompatible versions, or is it something silly that I am missing.</p>
  
  <p>Following is the error that I get..**</p>
  
  <pre><code>20:10:54.966 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
  java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.&lt;init&gt;([Ljava/lang/Object;)V
      at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:161)
      at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:102)
      at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:68)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
      at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)
      at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
      at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:358)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:317)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
      at au.com.vish.ai.conversation.BillApplicationBoot.main(BillApplicationBoot.java:17)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:496)
      at java.lang.Thread.run(Thread.java:748)
  [WARNING] 
  java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:498)
      at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:496)
      at java.lang.Thread.run (Thread.java:748)
  Caused by: java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.&lt;init&gt;([Ljava/lang/Object;)V
      at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext (BootstrapApplicationListener.java:161)
      at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent (BootstrapApplicationListener.java:102)
      at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent (BootstrapApplicationListener.java:68)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener (SimpleApplicationEventMulticaster.java:172)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener (SimpleApplicationEventMulticaster.java:165)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent (SimpleApplicationEventMulticaster.java:139)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent (SimpleApplicationEventMulticaster.java:127)
      at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared (EventPublishingRunListener.java:74)
      at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared (SpringApplicationRunListeners.java:54)
      at org.springframework.boot.SpringApplication.prepareEnvironment (SpringApplication.java:358)
      at org.springframework.boot.SpringApplication.run (SpringApplication.java:317)
      at org.springframework.boot.SpringApplication.run (SpringApplication.java:1255)
      at org.springframework.boot.SpringApplication.run (SpringApplication.java:1243)
      at au.com.vish.ai.conversation.yaagent.BillApplicationBoot.main (BillApplicationBoot.java:17)
      at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:498)
      at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:496)
      at java.lang.Thread.run (Thread.java:748)
  </code></pre>
  
  <p><strong>The POM file has the following as part of dependencies.</strong></p>
  
  <pre><code>&lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;!-- Import dependency management from Spring Boot --&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-dependencies&lt;/artifactId&gt;
                  &lt;version&gt;2.0.3.RELEASE&lt;/version&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;net.sf.flexjson&lt;/groupId&gt;
                  &lt;artifactId&gt;flexjson&lt;/artifactId&gt;
                  &lt;version&gt;3.3&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;commons-io&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
                  &lt;version&gt;RELEASE&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;!-- The below internal dependency coded in SpringBoot 1.5.10-RELEASE when added causes the issue. When commented, works like fine--&gt;
               &lt;dependency&gt;
                  &lt;groupId&gt;au.com.server.viewpaybills&lt;/groupId&gt;
                  &lt;artifactId&gt;viewbills-common&lt;/artifactId&gt;
                  &lt;version&gt;0.3.35.CB&lt;/version&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  </code></pre>