Can't overwrite field timeShift error

Discussion in 'Web Call Server 5' started by Gabriel T, Jan 7, 2020.

  1. Gabriel T

    Gabriel T Member

    Hello

    i have a lot of these errors in the logs:

    09:29:29,684 WARN RestUtils - API-ASYNC-pool-12-thread-3 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)
    any idea how to fix it, and what is the impact of performances ?
    thank you
  2. Max

    Max Administrator Staff Member

    Hello,

    Please specify the version of the WCS and describe the scenario when the error occurs.
  3. Gabriel T

    Gabriel T Member

    hello, it is latest version. app based on the conference demo app. on ubuntu server 14.10
    thanks
    Last edited: Jan 8, 2020
  4. Gabriel T

    Gabriel T Member

    looks like it is happening when using:
    var participants = _room.getParticipants();
    var message = action+"#"+params;
    for (var i = 0; i < participants.length; i++) {
    participants.sendMessage(message);
    }
  5. Gabriel T

    Gabriel T Member

    looks like it is happening when a user join the room, more precisely when issuing rest request to retrieve all strams:

    09:27:53,727 INFO RoomApp - HTTP-pool-2-thread-381 Add user id /36.255.233.105:53050/46.105.105.227:8443-d35b373f-18bd-48ed-951f-c92257d28a90 to room 1
    09:27:53,727 INFO Room - HTTP-pool-2-thread-381 Add user /36.255.233.105:53050/46.105.105.227:8443-d35b373f-18bd-48ed-951f-c92257d28a90
    09:27:53,727 INFO Room - HTTP-pool-2-thread-381 sendEvent to user /36.255.233.105:53050/46.105.105.227:8443-d35b373f-18bd-48ed-951f-c92257d28a90
    09:27:53,728 WARN RestUtils - API-ASYNC-pool-12-thread-59 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)
    09:27:54,034 INFO RestStreamController - HTTP-pool-2-thread-381 handleRequest /rest-api/stream/find_all

    edit: after trying to narrow the source of this error, it appears its not this...but it happens during the connection/joiningRoom process...been trying to call manually all the js functions involved in this process but unable to reproduce it manually...any idea what it could be, maybe if i know with what it is related i can find the responsible function/server call
    Last edited: Jan 8, 2020
  6. Max

    Max Administrator Staff Member

    Good day.
    This issue does not affect server perfomance. It concerns obsolete room participants stream recording synchronization feature which was disabled since build 5.2.142.
    We raised internal ticket WCS-2444 to fix unused REST hook fields and let you know in this topic.
    As workaround, just ignore this exception.
  7. Gabriel T

    Gabriel T Member

    ok many thanks and happy new year !

Share This Page