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

RestClientException: Could not extract response. no suitable HttpMessageConverter found

The main problem here is content type [text/html;charset=iso-8859-1] received from the service, however the real content type should be application/json;charset=iso-8859-1 In order to overcome this you can introduce custom message converter. and register it for all kind of responses (i.e. ignore the response content type header). Just like this

What does java:comp/env/ do?

Quoting https://web.archive.org/web/20140227201242/http://v1.dione.zcu.cz/java/docs/jndi-1.2/tutorial/beyond/misc/policy.html At the root context of the namespace is a binding with the name “comp”, which is bound to a subtree reserved for component-related bindings. The name “comp” is short for component. There are no other bindings at the root context. However, the root context is reserved for the future expansion of the policy, specifically … Read more

No found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations:

Look at the exception: This means that there’s no bean available to fulfill that dependency. Yes, you have an implementation of the interface, but you haven’t created a bean for that implementation. You have two options: Annotate UserDaoImpl with @Component or @Repository, and let the component scan do the work for you, exactly as you have done with UserService. Add the … Read more

MultipartException: Current request is not a multipart request

When you are using Postman for multipart request then don’t specify a custom Content-Type in Header. So your Header tab in Postman should be empty. Postman will determine form-data boundary. In Body tab of Postman you should select form-data and select file type. You can find related discussion at https://github.com/postmanlabs/postman-app-support/issues/576

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