Failed moving documents between folders after splitting functionality

0
Having two separate Java-calls actually doing the same: storing the fileDocument content (of a particular document type) into the mendix application and subsequently moving the document from a physical location to another with the file.renameTo statement. First Java-call giving no trouble: inputStream successfully read, document moved as seen in explorer. 2nd java call fails: inputStream successfully read, document NOT moved. Seems that document is locked and, as a result, cannot be moved. Strangly enough, when I merge all Java-functionality in one Java-call all document-inputStreams are successfully read and ALL documents get physically moved. However, customer prefers seperate Java-calls so processing can be performed during different stages. Any suggestions?
asked
0 answers