Results 1 to 2 of 2
- 02-14-2014, 05:41 AM #1Member
- Join Date
- Feb 2014
- Rep Power
Strange java.io.FileNotFoundException Error
A java listener process is running on unix server. This java listener process listens to a MQueue. When a message is received by the queue, it is passed on to the java listener process. The java process stores the message to a file in the input directory and calls a db procedure by passing the file name. The db procedure then processes it creates an acknowledgement file in the output directory and passes the ack file name back to java process. Then the java process reads the contents of the file and sends it to another MQueue. If any of the steps fail in between, the process calls the another db procedure with the error message as parameter and the procedure generates a fail acknowledgement file in the output directory and passes the fail ack file name back to java process. Then the java process reads the contents of the file and sends it to another MQueue.
The process also writes each and every step in the logger.
This listener process has been running successfully for more than two months with no issues. But for the past two days, for some messages from MQueue (say 4 out of 20), the listener fails to store the message to an input file (java.io.FileNotFoundException) and hence calls the db procedure to generate fail acknowledge message. Then, the java process is not able to read the fail acknowledgement file (java.io.FileNotFoundException). Above all this, it is not able to write the steps to the log file during this time. There is nothing in the log file for these 4 failed messages.
We checked the unix permissions for all these folders, everything is alright.
Any help would be appreciated.
- 02-15-2014, 08:17 PM #2Senior Member
- Join Date
- Jan 2013
- Northern Virginia, United States
- Rep Power
Re: Strange java.io.FileNotFoundException Error
Actually, this is a forum to help folks debug their submitted programs and help them better understand certain aspects of Java. I suggest you contact the folks who wrote the code for you system. They would be in a better position to figure this out.
Last edited by jim829; 02-15-2014 at 08:19 PM.
- By Zelaine in forum New To JavaReplies: 11Last Post: 09-18-2013, 09:21 PM
- By willemien in forum AWT / SwingReplies: 24Last Post: 04-19-2013, 08:26 PM
- By cyentw in forum New To JavaReplies: 4Last Post: 01-17-2013, 05:34 PM
- By stevenpalomino in forum New To JavaReplies: 29Last Post: 06-25-2011, 02:46 PM
- By AJArmstron@aol.com in forum New To JavaReplies: 1Last Post: 04-18-2010, 10:31 PM