java.lang.IllegalStateException

Failed to execute CommandLineRunner

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web13498

  • via Coderanch by Samantha Spillane, 6 months ago
    Failed to execute CommandLineRunner
  • via GitHub by kopax
    , 6 months ago
    Failed to execute CommandLineRunner
  • Failed to execute CommandLineRunner
  • Stack trace

    • java.lang.IllegalStateException: Failed to execute CommandLineRunner at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:304) at org.springframework.boot.SpringApplication.runCommandLineRunners(SpringApplication.java:675) at com.example.closures.ClosuresApplication$_run_closure1.doCall(ClosuresApplication.groovy:22) at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:690) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at org.springframework.boot.SpringApplication.run(SpringApplication.java:321) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at org.springframework.boot.SpringApplication.run(SpringApplication.java:957) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.springframework.boot.SpringApplication.run(SpringApplication.java:946) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.boot.SpringApplication$run.call(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:292) at com.example.closures.ClosuresApplication.main(ClosuresApplication.groovy:27) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016) Caused by: groovy.lang.MissingPropertyException: No such property: bank for class: com.example.closures.ClosuresApplication$$EnhancerBySpringCGLIB$$44735576 at groovy.lang.Closure.call(Closure.java:423) at groovy.lang.Closure.call(Closure.java:439) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2027) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:51) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2012) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2053) at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:304) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53) at com.example.closures.ClosuresApplication$_run_closure1.doCall(ClosuresApplication.groovy:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122) at java.lang.reflect.Method.invoke(Method.java:497) at com.example.closures.ClosuresApplication.run(ClosuresApplication.groovy:21) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at org.springframework.boot.SpringApplication.runCommandLineRunners(SpringApplication.java:672) ... 9 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.