Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialmuhammadammaraamir
8,392 PointsNeed help deploying a gradle/spring app to heroku.
I am following along the "Deploying to heroku" video in Chris Ramacciotti's "Deploying a spring application" course. When I run the command "heroku local web", the server appears to start working but then gets killed. The following error is outputted:
4:53:50 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type java.lang.String to type java.lang.Integer] 4:53:50 AM web.1 | at org.springframework.boot.bind.PropertiesConfigurationFactory.validate(PropertiesConfigurationFactory.java:296) 4:53:50 AM web.1 | at org.springframework.boot.bind.PropertiesConfigurationFactory.doBindPropertiesToTarget(PropertiesConfigurationFactory.java:255) 4:53:50 AM web.1 | at org.springframework.boot.bind.PropertiesConfigurationFactory.bindPropertiesToTarget(PropertiesConfigurationFactory.java:227) 4:53:50 AM web.1 | at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.ja va:297) 4:53:50 AM web.1 | ... 51 common frames omitted [DONE] Killing all processes with signal null 4:53:51 AM web.1 Exited with exit code 1
1 Answer
Craig Dennis
Treehouse TeacherSounds like something in your config is passing a String
value when it expecting a int
value. Is the code someplace you can share?
muhammadammaraamir
8,392 Pointsmuhammadammaraamir
8,392 Pointshttps://github.com/ivartheboneless/numberspellWebApp
^That's all my code. The executable jar file is in the builds/libs folder. When I run "gradlew.bat stage", it builds successfully but when I run "heroku local web", I get this error.
muhammadammaraamir
8,392 Pointsmuhammadammaraamir
8,392 PointsI hope my code makes sense
muhammadammaraamir
8,392 Pointsmuhammadammaraamir
8,392 PointsHey Craig Dennis, were you able to check out my code?
muhammadammaraamir
8,392 Pointsmuhammadammaraamir
8,392 PointsIt appears that the error is referring to the following part of my code:
It's referring to the line where is says " SpringApplication.run(AppConfig.class, args); "
Craig Dennis
Treehouse TeacherCraig Dennis
Treehouse TeacherWhat happens when you call Dictionary.load() outside of Spring?