Hi,
what does this mean? this comes up after making the following HTTP request.
java.lang.RuntimeException: java.io.FileNotFoundException: C:\Users\dev\AppData\Local\Temp\2 (Access is denied)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114)
at anywheresoftware.b4a.BA$4.run(BA.java:196)
at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(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$149(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: C:\Users\dev\AppData\Local\Temp\2 (Access is denied)
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:371)
at b4j.example.httputils2service._hc_responsesuccess(httputils2service.java:67)
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:497)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
... 8 more
THX
Guido
what does this mean? this comes up after making the following HTTP request.
java.lang.RuntimeException: java.io.FileNotFoundException: C:\Users\dev\AppData\Local\Temp\2 (Access is denied)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114)
at anywheresoftware.b4a.BA$4.run(BA.java:196)
at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(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$149(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: C:\Users\dev\AppData\Local\Temp\2 (Access is denied)
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:371)
at b4j.example.httputils2service._hc_responsesuccess(httputils2service.java:67)
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:497)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
... 8 more
B4X:
Sub MakeRPCRequest( method As String, arguments As List) As Boolean
Dim IPS_URI As String
Dim Send As String
Dim j As HttpJob
Dim myarguments As String
j.Initialize("j", Me)
Dim a As Int
For a = 0 To arguments.Size - 1
myarguments = myarguments & arguments.Get(a)
Next
IPS_URI = "http://" & "192.168.1.154" & ":3777/api/"
Send = "{" & Chr(34) & "jsonrpc" & Chr(34) & ":" & Chr(34) & "2.0" & Chr(34) & "," _
& Chr(34) & "method" & Chr(34) & ":" & Chr(34) & method & Chr(34) & "," _
& Chr(34) & "params" & Chr(34) & ":[" & myarguments & "]," _
& Chr(34) & "id" & Chr(34) & ":" & Chr(34) & "NULL" & Chr(34) & "}"
Log(Send)
Try
j.PostString(IPS_URI, Send)
j.GetRequest.SetContentType("application/json")
Catch
Return False
End Try
End Sub
THX
Guido