Announcement

Collapse
No announcement yet.

Error File is not reabable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error File is not reabable

    Hi all,

    We migrated from Mirth 2.2.1 from Mirth 3.0.3 and since we have alert mail with Channel File Reader Source => File Writer Destination:

    Code:
    File is not readable.
    Jun 23, 2014 5:26:55 PM
    Source Connector (File Reader) error
    com.mirth.connect.connectors.file.FileConnectorException: File is not readable.
    	at com.mirth.connect.connectors.file.FileReceiver.processFile(FileReceiver.java:301)
    	at com.mirth.connect.connectors.file.FileReceiver.processFiles(FileReceiver.java:236)
    	at com.mirth.connect.connectors.file.FileReceiver.poll(FileReceiver.java:192)
    	at com.mirth.connect.donkey.server.channel.PollConnector$PollConnectorTask.run(PollConnector.java:141)
    	at java.util.TimerThread.mainLoop(Unknown Source)
    	at java.util.TimerThread.run(Unknown Source)
    However the files are processed correctly.

    Do you have an idea?

    Thank's

  • #2
    Up?

    Comment


    • #3
      Up?

      Comment


      • #4
        That happens when the File Reader comes across an entry that isn't readable due to OS permissions, or that isn't a file (like a symlink). Other valid files in the polling window will still process correctly.
        Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

        Nicholas Rupley
        Work: 949-237-6069
        Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


        - How do I foo?
        - You just bar.

        Comment


        • #5
          Hi,

          Thanks for your response.

          The OS permissions is OK

          Seeking, I change various settings:

          Before:

          - Polling frequency: 5'000ms
          - Check File age: 1'000ms

          After:

          - Polling frequency: 10'000ms
          - Check File age: 3'000ms

          And since I have no error, why?

          System OS latence?
          Lock copy source file?

          I do not know...

          Thanks

          Comment


          • #6
            Hello,

            We have this same problem happening with version 3.2.1.

            It is definitely not a problem of file permissions, as the various directories concerned are filled with files by one single application each, or by copying manually files to these directories.

            I have currently one characteristic situation that makes this error appear:
            When copying/writing a large amount of files (several hundred) at once, have them processed, and during the processing adding more files to the directory makes this error message appear numerous times.
            It looks like the growing and falling number of files causes trouble.

            Symlinks are not involved (but possibly subdirectories, still investigationg this one).
            JJ Mouris
            FFE Luxembourg
            IT-Department

            Comment


            • #7
              NOt able to Move file using FileUtils ; getting error

              Hello Narupley,

              Greetings for the day !!.

              I am trying to move a file from one location to another location if it fails on header validation .

              Because the file is containing more than 10,000 records and i have enabled batch processing.

              If header of file is wrong , i dont want it to iterate through entire 10,000 records and want to move file on header level validation .

              I am trying to use FileUtils.moveFile(src,dest) , but its throwing below error.

              Can you please help me in this , how can i make it sucessfull here .

              You mostly help all , i do expect help here .

              I am not able to attach my chanel .

              [2015-07-30 20:36:41,398] ERROR (postprocessor:?): :: Message Errored BecauseJavaException: java.io.IOException: Failed to delete original file 'C:\Users\Admin\Documents\MirthExamples\csvexample s\File Reader\processed_30-07-15_19-22-42.483.csv' after copy to 'C:\Users\Admin\Documents\MirthExamples\csvexample s\error\20150730083641.csv'

              Comment


              • #8
                hello,

                I have again the same problem with Mirth 3.4.2.8129

                Error: Source Connector (File Reader) error
                com.mirth.connect.connectors.file.FileConnectorExc eption: File is not readable.
                at com.mirth.connect.connectors.file.FileReceiver.pro cessFile(FileReceiver.java:315)
                at com.mirth.connect.connectors.file.FileReceiver.pro cessFiles(FileReceiver.java:247)
                at com.mirth.connect.connectors.file.FileReceiver.pol l(FileReceiver.java:203)
                at com.mirth.connect.donkey.server.channel.PollConnec torJob.execute(PollConnectorJob.java:49)
                at org.quartz.core.JobRunShell.run(JobRunShell.java:2 13)
                at org.quartz.simpl.SimpleThreadPool$WorkerThread.run (SimpleThreadPool.java:557)

                Error Message: File is not readable.
                Error Type: Source Connector
                Channel ID: 976fd088-aec1-42f1-ae4e-23bb0c5eb32b
                Connector Name: Source
                Connector Type: File Reader

                But The files are processed correctly.

                How to prevent this errors? A Mirth Bug?

                Thanks

                Comment


                • #9
                  Solved my issue

                  I had my file locations (to poll) setup in the configuration map.

                  the polling location had a "space" at the end of the path that I did not notice right away.

                  BEFORE: "//servernametest/data2 "

                  I removed the space from the entry in the Configuration Map and boom ! was not getting that error message.

                  AFTER: "//servernametest/data2"

                  Comment

                  Working...
                  X