Hi Erel,
I didn't know about the possibility of inserting the "application_error" sub into the main, and thanks to this I intercepted the error.
This is the error log:
----------------------------------------------------------------------------
Inf 20231228 16:12:29
(FileNotFoundException) java.io.FileNotFoundException: C:\Users\ADMINI~1.PAS\AppData\Local\Temp\2 (Accesso negato)
___________________________________________________________
Inf 20231228 16:12:29
java.io.FileNotFoundException: C:\Users\ADMINI~1.PAS\AppData\Local\Temp\2 (Accesso negato)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at anywheresoftware.b4a.objects.streams.File.OpenOutput(File.java:465)
at b4j.example.httputils2service._hc_responsesuccess(httputils2service.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111)
at
anywheresoftware.b4a.BA$3.run(BA.java:267)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$4(WinApplication.java:185)
at java.lang.Thread.run(Thread.java:748)
---------------------------------------------------------------------------------------------------
On my PC I have no errors from IDE or .jar, and the really strange thing is that the first response on the server is always received, the second time the request is launched it generates the error reported above when receiving the job.success. Always.
The user who launches the .jar is the domain administrator, so he has no problems with credentials.
Do you have any suggestions?
Thank you,
Christian