Announcement

Collapse
No announcement yet.

File to File Channel - Access denied to destination file writer

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

  • File to File Channel - Access denied to destination file writer

    I am working on a file to file channel. The Source is an HL7 file in one folder, C:/hl7 messages/*.hl7 and the destination uses a File Writer to place the message file into C:/mirth/ as ${UUID}.hl7. The file is to be moved to C:/oldhl7 and retains the ${ORIGINALNAME}. The folders exist on C:.

    When the channel is enabled and deployed and the channel is started on the Dashboard. The process runs and the original single hl7 message is repeatedly received and an Error is created each time the file write is attempted in Destination 1.

    The Error information is as follows:

    ERROR-403: File connector error
    ERROR MESSAGE: Error writing file
    java.io.FileNotFoundException: c:\mirth (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at com.webreach.mirth.server.mule.providers.file.File MessageDispatcher.doDispatch(FileMessageDispatcher .java:108)
    at com.webreach.mirth.server.mule.providers.file.File MessageDispatcher.doSend(FileMessageDispatcher.jav a:203)
    at org.mule.providers.AbstractMessageDispatcher.send( AbstractMessageDispatcher.java:166)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:191)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:130)
    at org.mule.routing.outbound.AbstractOutboundRouter.s end(AbstractOutboundRouter.java:85)
    at org.mule.routing.outbound.FilteringMulticastingRou ter.route(FilteringMulticastingRouter.java:89)
    at org.mule.routing.outbound.OutboundMessageRouter$1. doInTransaction(OutboundMessageRouter.java:78)
    at org.mule.transaction.TransactionTemplate.execute(T ransactionTemplate.java:48)
    at org.mule.routing.outbound.OutboundMessageRouter.ro ute(OutboundMessageRouter.java:82)
    at org.mule.impl.model.DefaultMuleProxy.onCall(Defaul tMuleProxy.java:247)
    at org.mule.impl.model.seda.SedaComponent.doSend(Seda Component.java:209)
    at org.mule.impl.model.AbstractComponent.sendEvent(Ab stractComponent.java:277)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:201)
    at org.mule.routing.inbound.InboundMessageRouter.send (InboundMessageRouter.java:161)
    at org.mule.routing.inbound.InboundMessageRouter.rout e(InboundMessageRouter.java:128)
    at org.mule.providers.AbstractMessageReceiver$Default InternalMessageListener.onMessage(AbstractMessageR eceiver.java:492)
    at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:271)
    at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:230)
    at com.webreach.mirth.server.mule.providers.file.File MessageReceiver.processFile(FileMessageReceiver.ja va:186)
    at com.webreach.mirth.server.mule.providers.file.File MessageReceiver.poll(FileMessageReceiver.java:114)
    at org.mule.providers.PollingMessageReceiver.run(Poll ingMessageReceiver.java:73)
    at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
    at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
    at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :675)
    at java.lang.Thread.run(Unknown Source)

    I am running Mirth on a networked computer to which I am logged into and to which I have local admin priv.

    Any thoughts will be welcomed.

    Thanks,

    pzelenka



  • #2
    Re: File to File Channel - Access denied to destination file writer

    Does c:\mirth exist?
    Chris Lang

    Comment


    • #3
      Re: File to File Channel - Access denied to destination file writer

      Yes, C:\mirth exists.
      I&#039;ve gone as far as sharing the drive & folder with everyone locally.

      pzelenka

      Comment


      • #4
        Re: File to File Channel - Access denied to destination file writer

        Is Mirth running as a Service?
        Chris Lang

        Comment


        • #5
          Re: File to File Channel - Access denied to destination file writer

          When I logged on this morning and went to Start/Programs/Mirth/Install Mirth Service, the cmd window message informed me that it was already installed and running.

          I listed the services running at the present time and I don&#039;t see anything specifically described as mirth. What name is used for the mirth service?

          Comment


          • #6
            Re: File to File Channel - Access denied to destination file writer

            I found a clean list of services using cmd/serivces.msc and Mirth is listed.

            Comment


            • #7
              Re: File to File Channel - Access denied to destination file writer

              In the services.msc, go to the Mirth service->Properties->Log On. Make sure the service is set to run as administrator in order to access network shares.

              -Chris
              Chris Lang

              Comment


              • #8
                Re: File to File Channel - Access denied to destination file writer

                That did it!

                So much of life is either access or timing.
                In this case it was both.
                Thank you for taking the time to guide me through this access issue.
                It is very much appreciated.

                I will now go back to my LLP to File channel where I think the issue is the very same.

                Comment

                Working...
                X