File move error using Java IO
Issue
We have an application that moves files and renames them from one path to another.
The application receives the error shown below, we cannot replicate the error while running mv commands as the same user that the application runs as.
We do not believe this to be a file permission issue.
2014-05-09 12:48:37,651 com.eMeter.PIPe.util.FileUtils [filePoller] INFO - rename file [/home/boone/Incoming/Utility/FlexSync/amit59EquipLoc_Boone.xml] to [/home/pipe/Processed/Utility/FlexSync/Boone/amit59EquipLoc_Boone_1.xml]
2014-05-09 12:48:37,651 com.emeter.sync3.fileprocessors.RealTimeSyncObjectFilePoller [filePoller] ERROR - Rename of file [amit59EquipLoc_Boone.xml] to [amit59EquipLoc_Boone_1.xml] failed
java.io.IOException: Rename of file [amit59EquipLoc_Boone.xml] to [amit59EquipLoc_Boone_1.xml] failed
at com.eMeter.PIPe.util.FileUtils.renameFile(FileUtils.java:133)
at com.eMeter.PIPe.hydrofw.component.importer.file.handler.FileProcessorMover.onFile(FileProcessorMover.java:93)
at com.eMeter.PIPe.hydrofw.component.eventlistener.SimpleFileEventListener.dispatch(SimpleFileEventListener.java:61)
at com.emeter.sync3.fileprocessors.RealTimeSyncObjectFilePoller.poll(RealTimeSyncObjectFilePoller.java:53)
at com.eMeter.PIPe.hydrofw.component.importer.AbstractPoller.run(AbstractPoller.java:135)
at java.lang.Thread.run(Unknown Source)
The developer tested the application by attempting to move files on the same mount point & did not have this error.
Below shows the current LVM file system setup. We have this issue when attempting to migrate any files located in /home/ to the second mount point /home/pipe.
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00_root-LogVol_root
21G 3.9G 16G 21% /
/dev/mapper/VolGroup00_root-LogVol_var
4.9G 278M 4.4G 6% /var
/dev/mapper/VolGroup00_root-LogVol_home
25G 1.3G 22G 6% /home
/dev/mapper/VolGroup00_root-LogVol_opt
39G 2.8G 34G 8% /opt
/dev/mapper/VolGroup00_root-LogVol_tmp
4.9G 140M 4.5G 3% /tmp
/dev/sda1 244M 30M 201M 13% /boot
tmpfs 5.9G 0 5.9G 0% /dev/shm
/dev/mapper/VolGroup00_root-LogVol_PipeHome
197G 5.9G 181G 4% /home/pipe
Environment
Red Hat Enterprise Linux 5.10
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
