Hi Please help me solve this
I am using Java Scope activities in a for each loop to call a java method. Load Jar is throwing an exception “java invoker was not loaded uipath” in the second iteration. Same code is working fine in the debug mode. Please find the exception message below
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.AggregateException: One or more errors occurred. ----> System.InvalidOperationException: Java invoker was not loaded.
at UiPath.Java.Activities.JavaScope.GetJavaInvoker(ActivityContext context)
at UiPath.Java.Activities.LoadJar.d__4.MoveNext()
— End of inner ExceptionDetail stack trace —
at UiPath.Shared.Activities.AsyncTaskCodeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)