{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2610","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2610/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2610/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2610/events","html_url":"https://github.com/spring-projects/spring-boot/issues/2610","id":60103703,"number":2610,"title":"MustacheEnvironmentCollector, InvalidPropertyException when JMustache is in the classpath","user":{"login":"lfridael","id":1849337,"avatar_url":"https://avatars.githubusercontent.com/u/1849337?v=3","gravatar_id":"","url":"https://api.github.com/users/lfridael","html_url":"https://github.com/lfridael","followers_url":"https://api.github.com/users/lfridael/followers","following_url":"https://api.github.com/users/lfridael/following{/other_user}","gists_url":"https://api.github.com/users/lfridael/gists{/gist_id}","starred_url":"https://api.github.com/users/lfridael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfridael/subscriptions","organizations_url":"https://api.github.com/users/lfridael/orgs","repos_url":"https://api.github.com/users/lfridael/repos","events_url":"https://api.github.com/users/lfridael/events{/privacy}","received_events_url":"https://api.github.com/users/lfridael/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-06T13:49:27Z","updated_at":"2015-03-06T14:35:17Z","closed_at":null,"body":"This configuration\r\n\r\n```properties\r\n# Necessary when Spring Security is in the classpath\r\nshell.auth = simple\r\nshell.auth.simple.user.name = name\r\nshell.auth.simple.user.password = password\r\n```\r\n\r\nyields this exception, when JMustache autoconfiguration (which I think is new in 1.2.2) is also in the classpath:\r\n\r\n```java\r\norg.springframework.beans.InvalidPropertyException: Invalid property 'map[shell][auth][simple][user][password]' of bean class [org.springframework.boot.bind.RelaxedDataBinder$MapHolder]: Illegal attempt to get property 'map' threw exception; nested exception is org.springframework.beans.InvalidPropertyException: Invalid property 'map[shell][auth][simple][user][password]' of bean class [org.springframework.boot.bind.RelaxedDataBinder$MapHolder]: Property referenced in indexed property path 'map[shell][auth][simple][user][password]' is neither an array nor a List nor a Set nor a Map; returned value was [simple]\r\n\tat org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:853)\r\n\tat org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:948)\r\n\tat org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:927)\r\n\tat org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:95)\r\n\tat org.springframework.validation.DataBinder.applyPropertyValues(DataBinder.java:749)\r\n\tat org.springframework.validation.DataBinder.doBind(DataBinder.java:645)\r\n\tat org.springframework.boot.bind.RelaxedDataBinder.doBind(RelaxedDataBinder.java:119)\r\n\tat org.springframework.validation.DataBinder.bind(DataBinder.java:630)\r\n\tat org.springframework.boot.autoconfigure.mustache.MustacheEnvironmentCollector.setEnvironment(MustacheEnvironmentCollector.java:54)\r\n\tat org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration.collector(MustacheAutoConfiguration.java:82)\r\n\tat org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration.mustacheCompiler(MustacheAutoConfiguration.java:76)\r\n\tat org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration$$EnhancerBySpringCGLIB$$69430051.CGLIB$mustacheCompiler$0(<generated>)\r\n\tat org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration$$EnhancerBySpringCGLIB$$69430051$$FastClassBySpringCGLIB$$a923c792.invoke(<generated>)\r\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)\r\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309)\r\n\tat org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration$$EnhancerBySpringCGLIB$$69430051.mustacheCompiler(<generated>)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)\r\n\t... 48 more\r\n```"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/77567773","html_url":"https://github.com/spring-projects/spring-boot/issues/2610#issuecomment-77567773","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2610","id":77567773,"user":{"login":"snicoll","id":490484,"avatar_url":"https://avatars.githubusercontent.com/u/490484?v=3","gravatar_id":"","url":"https://api.github.com/users/snicoll","html_url":"https://github.com/snicoll","followers_url":"https://api.github.com/users/snicoll/followers","following_url":"https://api.github.com/users/snicoll/following{/other_user}","gists_url":"https://api.github.com/users/snicoll/gists{/gist_id}","starred_url":"https://api.github.com/users/snicoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snicoll/subscriptions","organizations_url":"https://api.github.com/users/snicoll/orgs","repos_url":"https://api.github.com/users/snicoll/repos","events_url":"https://api.github.com/users/snicoll/events{/privacy}","received_events_url":"https://api.github.com/users/snicoll/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T14:35:17Z","updated_at":"2015-03-06T14:35:17Z","body":"Hello, I tried wit your config and I don't have an issue. Besides, I hardly understand how mustache would be related to the issue.\r\n\r\nI created a sample app using https://start.spring.io with security, mustache, remote shell and the following config\r\n\r\n```\r\nshell.auth = simple\r\nshell.auth.simple.user.name = name\r\nshell.auth.simple.user.password = password\r\n```"}}