Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006489 [Resin] minor always 09-05-23 03:21 10-01-23 06:53
Reporter nam View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 4.0.66
Summary 0006489: resin.exe fails to start because of mutex issue with Windows service
Description (rep by M. Shimomura)

The mutex in modules/csharp/src/resin/Resin.cs is causing issues when there are two instances of Resin started differently:

1. resin started as a Windows service
2. resin is then started via resin.exe:

The second start throws the following exception:

Unhandled Exception: System.UnauthorizedAccessException: Access to the path 'Global\com.caucho.Resin.' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Threading.Mutex.<>c__DisplayClass3.<.ctor>b__0(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew, MutexSecurity mutexSecurity)
   at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew)
   at Caucho.Resin..ctor(ResinArgs args)
   at Caucho.Resin.Main(String[] args)

The root cause is that we're appending _rootDirectory to the mutex, but it is specified, so it becomes just a dot in "Global\com.caucho.Resin.". However, I don't know why we need a mutex in the first place. The likely solution is to just remove the mutex.

Workaround
==========
Instead of starting resin via resin.exe, the user should instead start resin via "java -jar lib/resin".
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
09-05-23 03:21 nam New Issue
10-01-23 06:53 avni888 Note Added: 0007311
11-14-23 17:23 ferg Note Deleted: 0007311


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker