Archives : October-2021

Home » 2021 » October

When SQL has issue we get this from Hibernate: org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update The problem is that this error is not very helpful. It doesn’t tell us what SQL statement is causing the problem. The solution is to add the following system properties: This would prevent Hibernate from BATCHING and therefore tell ..

Read more

Uninstall Oracle Java using the Terminal Note: To uninstall Java, you must have Administrator privileges and execute the remove command either as root or by using the sudo tool. Remove one directory and one file (a symlink), as follows: Click on the Finder icon located in your dock Click on the Utilities folder Double-click on the Terminal icon In the Terminal window Copy and Paste the ..

Read more

Add the following in “/etc/nginx/nginx.conf”: location /nginx_status { # Turn on stats stub_status on; access_log off; # only allow access from 192.168.1.5 # Replace with my IP address allow 192.168.1.5; deny all; } Restart Nginx and now you can visit the status page: http://nginx_server_url/nginx_status It will display something like this: Active connections: 7 server accepts ..

Read more