all stopped working after update to 5.2

Gabriel T

Member
Help. found how to update from 5.0 to 5.2. did it, looked fine. just now all my apps stopped working.
if i start a video stream, other clients dont receive the info, and are disconnected soon after.
i found this error so far in the logs:
10:53:09,694 WARN RestUtils - API-ASYNC-pool-12-thread-2 Can't overwrite field timeShift
java.lang.NoSuchFieldException: timeShift
at java.lang.Class.getDeclaredField(Class.java:2070)
at com.flashphoner.server.commons.util.RestUtils.applyRestOverwriteConfig(Unknown Source)
at com.flashphoner.server.rmi.ManagerApiConnection.getApiMethodResult(Unknown Source)
at com.flashphoner.server.rmi.ManagerApiConnection.lambda$queryApiAsync$0(Unknown Source)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
urgent help needed !

thank you
 

Gabriel T

Member
ok, got the rest api working again, still have this error on each connection:

11:26:25,097 WARN RestUtils - API-ASYNC-pool-12-thread-15 Can't overwrite field timeShift
java.lang.NoSuchFieldException: timeShift
at java.lang.Class.getDeclaredField(Class.java:2070)
at com.flashphoner.server.commons.util.RestUtils.applyRestOverwriteConfig(Unknown Source)
at com.flashphoner.server.rmi.ManagerApiConnection.getApiMethodResult(Unknown Source)
at com.flashphoner.server.rmi.ManagerApiConnection.lambda$queryApiAsync$0(Unknown Source)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
my app is based on the conference example
 

Gabriel T

Member
its terrible...it works for few minutes, then totally mess up. clients get disconnected, streams not playing...i dont know what to do...
 

Max

Administrator
Staff member
Good day.

What versions of a WebSDK and WCS do you have installed?
This information can be found in the files:
Code:
WCS_HOME/client2/client.version
Code:
WCS_HOME/conf/WCS.version
And Java version:
Code:
java -version

ok by strange way its now working.
just rest api are not working anymore. with previous version was using curl_setopt($ch, CURLOPT_URL, "http://localhost:9091/rest-api/stream/find_all"); to list active streams, but now this return an empty response...any clue ? thank you
Ports have been changed for the REST API: port 8081 is now used with http, instead of 9091.
In WCS_HOME/client2/examples/demo/streaming/console/console.js, replace 9091 with 8081
Code:
var api = FlashphonerRestApi.instance("http://"+ip+":8081", "http://"+ip+":8081");
Try using TCP.
Is enabled with the following parameter in flashphoner.properties file:
Code:
ice_tcp_transport=true
 
Last edited:
Top