Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2014
    Posts
    1
    Rep Power
    0

    Default 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.

  2. #2
    jim829 is online now Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,763
    Rep Power
    5

    Default 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.

    Regards,
    Jim
    Last edited by jim829; 02-15-2014 at 07:19 PM.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Strange Error
    By Zelaine in forum New To Java
    Replies: 11
    Last Post: 09-18-2013, 08:21 PM
  2. Strange Error
    By willemien in forum AWT / Swing
    Replies: 24
    Last Post: 04-19-2013, 07:26 PM
  3. Replies: 4
    Last Post: 01-17-2013, 04:34 PM
  4. strange error in eclipse
    By stevenpalomino in forum New To Java
    Replies: 29
    Last Post: 06-25-2011, 01:46 PM
  5. Strange Error
    By AJArmstron@aol.com in forum New To Java
    Replies: 1
    Last Post: 04-18-2010, 09:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •