Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

semaphore timeout period has expired

 
Robin John
Ranch Hand
Posts: 281
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 281
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any Input guys ? : (

Is this always when we move file around shared network drives ?
 
Tom Reilly
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest posting your code and the full error.
 
Greg Charles
Sheriff
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 281
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes Greg, the paths are really long having long file names and over shared drives....
 
Greg Charles
Sheriff
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 281
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic