I have the following code from my Java process (a spring boot app which listens to ActiveMQ) which is deployed on tomcat and it is throwing following error. Sometimes it has worked and I saw the file getting created at an appropriate directory. Howver, sometimes it fails.
Is there something wrong in my java code?
The error from tomcat log is shown below:
Code from my java process(spring boot app) deployedo on tomcat
Edited post to include more details below:
The following is the code which is listening to ActiveMQ continously and as soon as it sees COMPLETE, it sends out an email to the user after generating a file.
My RequestDao interface looks like the following:
And RequestDaoImpl.java looks like the following:
In application.properties file, I have the following defined: