This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes semaphore timeout period has expired Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "semaphore timeout period has expired" Watch "semaphore timeout period has expired" New topic
Author

semaphore timeout period has expired

Robin John
Ranch Hand

Joined: Sep 10, 2008
Posts: 270

I am getting the error "semaphore timeout period has expired" randomly in my application, this issue is happening when I try to decrypt a file and move the file to a shared drive from windows to Linux.

This is quite random and I am not able to replicate this issue... Please help.

Thanks in advance.
Robin John
Ranch Hand

Joined: Sep 10, 2008
Posts: 270

Any Input guys ? : (

Is this always when we move file around shared network drives ?
Tom Reilly
Rancher

Joined: Jun 01, 2010
Posts: 618
I suggest posting your code and the full error.
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2833
    
  11

I believe Windows can report this error when the total length of the source path plus the destination path is greater than 128 characters. When it happens randomly, is it for long paths?
Robin John
Ranch Hand

Joined: Sep 10, 2008
Posts: 270

yes Greg, the paths are really long having long file names and over shared drives....
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2833
    
  11

So, with that information, were you able to solve the problem? The typical way would be to copy the file first to a short path name like /tmp/a, then copy it to its real destination. You'd only need to do that if, as I said, the total characters from the combined source and destination paths was greater than 128.

Another solution is to dump Window and get Linux.
Robin John
Ranch Hand

Joined: Sep 10, 2008
Posts: 270

yeah Greg.. 'was thinking of Windows to Linux but some products are not yet ready for Linux.. anyways..

I solved it by moving the file location to a temp directory and shortening the path names.

Thanks a lot.
 
 
subject: semaphore timeout period has expired
 
Similar Threads
Session Management Problem
is there ipc in java
warn the user before session timeout & login back when session time out is over
Timeout configuration in Apache
ipc problems