Spring Boot – Cannot determine embedded database driver class for database type NONE

You haven’t provided Spring Boot with enough information to auto-configure a DataSource. To do so, you’ll need to add some properties to application.properties with the spring.datasource prefix. Take a look at DataSourceProperties to see all of the properties that you can set. You’ll need to provide the appropriate url and driver class name:

java.lang.IllegalStateException: Failed to introspect Class

Caused by: java.lang.ClassNotFoundException: org.springframework.data.elasticsearch.core.ElasticsearchOperations This error message means that the jar containing this class is not on the application classpath. Add spring-data-elasticsearch jar to it, and your error should be gone. if you are using maven, add the jar to the classpath this way : The version that you should use depends on the version … Read more

Configure active profile in SpringBoot via Maven

The Maven profile and the Spring profile are two completely different things. Your pom.xml defines spring.profiles.active variable which is available in the build process, but not at runtime. That is why only the default profile is activated. How to bind Maven profile with Spring? You need to pass the build variable to your application so that it … Read more

Facing io.netty.handler.timeout.ReadTimeoutException: null while consuming server sent events

In the Mozilla description for server sent events there is a note: A colon as the first character of a line is in essence a comment, and is ignored. Note: The comment line can be used to prevent connections from timing out; a server can send a comment periodically to keep the connection alive. So periodically sending comments can … Read more

java.lang.reflect.InvocationTargetException: null

Root problem Looks like bug https://hibernate.atlassian.net/browse/HHH-12368 They recommended set property (I believe it’s the best workaround): as workaround is to disable hibernate to detect this function by setting flag hibernate.jdbc.lob.non_contextual_creation=true The other solution described here: http://vkuzel.blogspot.com.cy/2016/03/spring-boot-jpa-hibernate-atomikos.html Disable feature detection by this undocumented parameter. Check the org.hibernate.engine.jdbc.internal.JdbcServiceImpl.configure method for more details. spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false So you can also … Read more

SFTP upload file Permission denied

You seemed to upload your local file “C:\Workspace\upload-file\test.xlsx” to remote directory, “/var/www/folder” on SFTP. I guess you have all permissions for reading,writing,executing etc on your local file(“C:\Workspace\upload-file\test.xlsx”), but your remote folder, “/var/www/folder”, might not accept your application’s access including “upload” action. SOLUTION: The most simplest way to solve this issue is just granting all permission for all users to do anything … Read more