Studio Pro 19.16.1/Make It Native 9-Irregular File Lock Requiring Reboot Continues to Occur

0
System.IO.IOException: The process cannot access the file 'C:\Users\bloye\Documents\Mendix\MyBeverageBuddy-main\deployment\log\m2ee_log.txt' because it is being used by another process.    at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)    at Mendix.Modeler.Utility.FileSystem.OpenNewTextFileForWriting(String filePath) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility\FileSystem.cs:line 236    at Mendix.Modeler.M2EEConnector.RuntimeLauncher.SetLogWriter(Process process, String logFileLocation) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.M2EEConnector\RuntimeLauncher.cs:line 162    at Mendix.Modeler.M2EEConnector.RuntimeLauncher.StartM2EEServer(LaunchConfig launchConfig, String logFileLocation) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.M2EEConnector\RuntimeLauncher.cs:line 73    at Mendix.Modeler.M2EEConnector.RuntimeLauncher.LaunchRuntime(LaunchConfig launchConfig) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.M2EEConnector\RuntimeLauncher.cs:line 53    at Mendix.Modeler.Deployment.Local.LocalRunner.DoLaunchRuntime(IConfiguration config, String javaExePath) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Deployment\Local\LocalRunner.cs:line 237    at Mendix.Modeler.Deployment.Local.LocalRunner.<>c__DisplayClass65_0.<LaunchRuntime>b__0() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Deployment\Local\LocalRunner.cs:line 226    at Mendix.Modeler.Utility.BackgroundUtil.<>c__DisplayClass1_0`1.<Do>b__0(Object s, DoWorkEventArgs e) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility\BackgroundUtil.cs:line 29    at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)    at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
asked
2 answers
0

The error message says the file is being used by another process.

Are you running anti-virus software that scans files, or maybe a backup software like Microsoft OneDrive that reads and move files?

If you are running any of those, try temporarily disabling them and trying again.

Hope this helps.

answered
0

I have also got the same error, in this situation I have open the different application and kill the port and update the JDK version and run the application after run the application stop the present application server and run the application what I have got the error its working.....! So try anyone of these changes may be its helpful

answered