I have a webapp that runs fine when launched from a command window, but bombs when launched from scheduled tasks. Everything works in debug and release mode under the ide as well.
The server initiates an API request for each chess player (from Lichess) and receives a json string which is used to populate a table. This is presented in a simple datatable which provides a ranking list.
I have sent the logs to a file and the very first request seems to work fine (first player in green text), but from the second player the request kicks out the message :
2020-06-24 15:12:55
{"id":"banelevich","username":"Banelevich","online":false,"perfs":{"chess960":{"games":101,"rating":2005,"rd":62,"prog":65},"antichess":{"games":1,"rating":1475,"rd":345,"prog":0,"prov":true},"puzzle":{"games":206,"rating":2185,"rd":74,"prog":5},"racingKings":{"games":5,"rating":1656,"rd":178,"prog":0,"prov":true},"ultraBullet":{"games":449,"rating":2009,"rd":49,"prog":-34},"blitz":{"games":11533,"rating":2475,"rd":45,"prog":13},"crazyhouse":{"games":8,"rating":1505,"rd":148,"prog":0,"prov":true},"bullet":{"games":3190,"rating":2532,"rd":45,"prog":14},"correspondence":{"games":0,"rating":1500,"rd":350,"prog":0,"prov":true},"classical":{"games":6,"rating":1954,"rd":238,"prog":0,"prov":true},"rapid":{"games":81,"rating":2134,"rd":68,"prog":22}},"createdAt":1491742692902,"profile":{"country":"ZA","firstName":"Banele Fortune ","lastName":"Mhango","fideRating":2117,"links":"https://kingsof64squares.webnode.com/"},"seenAt":1592972532831,"patron":true,"playTime":{"total":4136716,"tv":82386},"language":"en-GB","title":"FM","url":"https://lichess.org/@/Banelevich","nbFollowing":140,"nbFollowers":721,"completionRate":100,"count":{"all":15521,"rated":15379,"ai":0,"draw":1308,"drawH":1308,"loss":5296,"lossH":5296,"win":8917,"winH":8917,"bookmark":26,"playing":0,"import":0,"me":0}}
Sleeping
main._appstart (java line: 85)
java.lang.RuntimeException: java.io.FileNotFoundException: C:\Users\ADMINI~1\AppData\Local\Temp\2 (Access is denied)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:120)
at anywheresoftware.b4a.BA$3.run(BA.java:247)
at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30)
at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:153)
at b4j.example.main._appstart(main.java:85)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
at b4j.example.main.main(main.java:28)
I would assume permission issues and have tried various options without any difference. Also it would not explain why the first one is successful.
I have also checked "C:\Users\Administrator\AppData\Local\Temp\2" and I see that every json reply has created a new file (is this normal?). The web service part continues serving web pages without updating.
It is currently running fine, but under a cmd window, which is not ideal. I need the app to start automatically if the server reboots. Any ideas would be appreciated.
The server initiates an API request for each chess player (from Lichess) and receives a json string which is used to populate a table. This is presented in a simple datatable which provides a ranking list.
I have sent the logs to a file and the very first request seems to work fine (first player in green text), but from the second player the request kicks out the message :
2020-06-24 15:12:55
{"id":"banelevich","username":"Banelevich","online":false,"perfs":{"chess960":{"games":101,"rating":2005,"rd":62,"prog":65},"antichess":{"games":1,"rating":1475,"rd":345,"prog":0,"prov":true},"puzzle":{"games":206,"rating":2185,"rd":74,"prog":5},"racingKings":{"games":5,"rating":1656,"rd":178,"prog":0,"prov":true},"ultraBullet":{"games":449,"rating":2009,"rd":49,"prog":-34},"blitz":{"games":11533,"rating":2475,"rd":45,"prog":13},"crazyhouse":{"games":8,"rating":1505,"rd":148,"prog":0,"prov":true},"bullet":{"games":3190,"rating":2532,"rd":45,"prog":14},"correspondence":{"games":0,"rating":1500,"rd":350,"prog":0,"prov":true},"classical":{"games":6,"rating":1954,"rd":238,"prog":0,"prov":true},"rapid":{"games":81,"rating":2134,"rd":68,"prog":22}},"createdAt":1491742692902,"profile":{"country":"ZA","firstName":"Banele Fortune ","lastName":"Mhango","fideRating":2117,"links":"https://kingsof64squares.webnode.com/"},"seenAt":1592972532831,"patron":true,"playTime":{"total":4136716,"tv":82386},"language":"en-GB","title":"FM","url":"https://lichess.org/@/Banelevich","nbFollowing":140,"nbFollowers":721,"completionRate":100,"count":{"all":15521,"rated":15379,"ai":0,"draw":1308,"drawH":1308,"loss":5296,"lossH":5296,"win":8917,"winH":8917,"bookmark":26,"playing":0,"import":0,"me":0}}
Sleeping
main._appstart (java line: 85)
java.lang.RuntimeException: java.io.FileNotFoundException: C:\Users\ADMINI~1\AppData\Local\Temp\2 (Access is denied)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:120)
at anywheresoftware.b4a.BA$3.run(BA.java:247)
at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30)
at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:153)
at b4j.example.main._appstart(main.java:85)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
at b4j.example.main.main(main.java:28)
I would assume permission issues and have tried various options without any difference. Also it would not explain why the first one is successful.
I have also checked "C:\Users\Administrator\AppData\Local\Temp\2" and I see that every json reply has created a new file (is this normal?). The web service part continues serving web pages without updating.
It is currently running fine, but under a cmd window, which is not ideal. I need the app to start automatically if the server reboots. Any ideas would be appreciated.