Mirth 1.4, Java RTE 1.6, Windows XP Pro
FileWriter Destination
============================
Drag-and-drop, "Formatted Date" in "File Name:" text box, results in ${date.get('yyyy-M-d H:m:s'
}.HL7
When Mirth tries to write the HL7 message file out, it throws, "parameter is incorrect" error. Tried removing the single space before the time format. Same problem.
No error for other format like Test_${UUID}.HL7
mirth.log:
ERROR 2007-04-20 10:52:04,019 [cf26c64f-212c-4d60-ae3e-20d2bd1b021e_destination_1_connector.dispatcher.1] org.mule.impl.DefaultComponentExceptionStrategy: Caught exception in Exception Strategy for: cf26c64f-212c-4d60-ae3e-20d2bd1b021e: java.io.IOException: The parameter is incorrect
java.io.IOException: The parameter is incorrect
at java.io.WinNTFileSystem.createFileExclusively(Nati ve Method)
at java.io.File.createNewFile(Unknown Source)
at org.mule.util.Utility.createFile(Utility.java:67)
at com.webreach.mirth.server.mule.providers.file.File MessageDispatcher.doDispatch(FileMessageDispatcher .java:94)
at org.mule.providers.AbstractMessageDispatcher$Worke r.run(AbstractMessageDispatcher.java:257)
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)
ERROR 2007-04-20 13:03:10,045 [cf26c64f-212c-4d60-ae3e-20d2bd1b021e_destination_1_connector.dispatcher.1] org.mule.impl.DefaultComponentExceptionStrategy: Caught exception in Exception Strategy for: cf26c64f-212c-4d60-ae3e-20d2bd1b021e: java.io.IOException: The parameter is incorrect
java.io.IOException: The parameter is incorrect
at java.io.WinNTFileSystem.createFileExclusively(Nati ve Method)
at java.io.File.createNewFile(Unknown Source)
at org.mule.util.Utility.createFile(Utility.java:67)
at com.webreach.mirth.server.mule.providers.file.File MessageDispatcher.doDispatch(FileMessageDispatcher .java:94)
at org.mule.providers.AbstractMessageDispatcher$Worke r.run(AbstractMessageDispatcher.java:257)
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)
FileWriter Destination
============================
Drag-and-drop, "Formatted Date" in "File Name:" text box, results in ${date.get('yyyy-M-d H:m:s'

When Mirth tries to write the HL7 message file out, it throws, "parameter is incorrect" error. Tried removing the single space before the time format. Same problem.
No error for other format like Test_${UUID}.HL7
mirth.log:
ERROR 2007-04-20 10:52:04,019 [cf26c64f-212c-4d60-ae3e-20d2bd1b021e_destination_1_connector.dispatcher.1] org.mule.impl.DefaultComponentExceptionStrategy: Caught exception in Exception Strategy for: cf26c64f-212c-4d60-ae3e-20d2bd1b021e: java.io.IOException: The parameter is incorrect
java.io.IOException: The parameter is incorrect
at java.io.WinNTFileSystem.createFileExclusively(Nati ve Method)
at java.io.File.createNewFile(Unknown Source)
at org.mule.util.Utility.createFile(Utility.java:67)
at com.webreach.mirth.server.mule.providers.file.File MessageDispatcher.doDispatch(FileMessageDispatcher .java:94)
at org.mule.providers.AbstractMessageDispatcher$Worke r.run(AbstractMessageDispatcher.java:257)
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)
ERROR 2007-04-20 13:03:10,045 [cf26c64f-212c-4d60-ae3e-20d2bd1b021e_destination_1_connector.dispatcher.1] org.mule.impl.DefaultComponentExceptionStrategy: Caught exception in Exception Strategy for: cf26c64f-212c-4d60-ae3e-20d2bd1b021e: java.io.IOException: The parameter is incorrect
java.io.IOException: The parameter is incorrect
at java.io.WinNTFileSystem.createFileExclusively(Nati ve Method)
at java.io.File.createNewFile(Unknown Source)
at org.mule.util.Utility.createFile(Utility.java:67)
at com.webreach.mirth.server.mule.providers.file.File MessageDispatcher.doDispatch(FileMessageDispatcher .java:94)
at org.mule.providers.AbstractMessageDispatcher$Worke r.run(AbstractMessageDispatcher.java:257)
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)
Comment