Can't start a video call when adding more than one users to opponents - quickblox

We can't start a video call when we adding more than one users to opponents. It works well when only one user(in your demo code) in opponents.
The following is the crash information:
07-02 15:53:19.022 499-1208/? E/IMGSRV﹕ :0: gralloc_device_alloc: attach special flag :Format32315659.
07-02 15:53:19.026 499-499/? E/IMGSRV﹕ :0: gralloc_device_alloc: attach special flag :Format32315659.
07-02 15:53:19.028 499-1441/? E/IMGSRV﹕ :0: gralloc_device_alloc: attach special flag :Format32315659.
07-02 15:53:19.281 7442-7673/com.quickblox.sample.videochatwebrtcnew E/VideoCapturerAndroid﹕ startCapture failed
java.lang.RuntimeException: Fail to connect to camera service
at android.hardware.Camera.native_setup(Native Method)
at android.hardware.Camera.<init>(Camera.java:423)
at android.hardware.Camera.open(Camera.java:384)
at org.webrtc.VideoCapturerAndroid.startCaptureOnCameraThread(VideoCapturerAndroid.java:345)
at org.webrtc.VideoCapturerAndroid.access$200(VideoCapturerAndroid.java:72)
at org.webrtc.VideoCapturerAndroid$2.run(VideoCapturerAndroid.java:332)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:153)
at org.webrtc.VideoCapturerAndroid$CameraThread.run(VideoCapturerAndroid.java:295)
07-02 15:53:19.290 135-135/? E/DrmMtkUtil/DrmUtil﹕ checkDcf: not dcf type, dcf version value [80]
07-02 15:53:19.291 135-135/? E/DrmMtkUtil/DrmUtil﹕ checkDcf: not dcf type, dcf version value [80]
07-02 15:53:19.291 135-135/? E/DrmMtkUtil/DrmUtil﹕ checkDcf: not dcf type, dcf version value [80]
07-02 15:53:19.292 134-444/? E/DrmMtkUtil/DrmUtil﹕ parseDcf: not dcf type, dcf version value [80]
07-02 15:53:19.292 134-444/? E/DrmMtkPlugIn﹕ onOpenDecryptSession() : failed to parse dcf file.
07-02 15:53:19.299 135-135/? E/FlvExtractor﹕ [ERROR]:Not an FLV file!!!
07-02 15:53:19.299 135-135/? E/FlvExtractor﹕ [ERROR]:[FLV]mtk_flv_extractor_recognize OUT
07-02 15:53:19.299 135-135/? E/﹕ SniffFLV return 0
07-02 15:53:19.339 499-512/? E/IMGSRV﹕ :0: gralloc_device_alloc: attach special flag :Format32315659.
07-02 15:53:19.362 499-1441/? E/IMGSRV﹕ :0: gralloc_device_alloc: attach special flag :Format32315659.
07-02 15:53:19.831 6945-6955/? E/com.miui.video.MiuiVideoWatermarkProvider﹕ ================getWatermarkList()======================
07-02 15:53:26.883 7442-7673/? E/AndroidRuntime﹕ FATAL EXCEPTION: Thread-2724
java.lang.NullPointerException
at org.webrtc.VideoCapturerAndroid.doStopCaptureOnCamerathread(VideoCapturerAndroid.java:444)
at org.webrtc.VideoCapturerAndroid.stopCaptureOnCameraThread(VideoCapturerAndroid.java:437)
at org.webrtc.VideoCapturerAndroid.access$300(VideoCapturerAndroid.java:72)
at org.webrtc.VideoCapturerAndroid$3.run(VideoCapturerAndroid.java:427)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:153)
at org.webrtc.VideoCapturerAndroid$CameraThread.run(VideoCapturerAndroid.java:295)
07-02 15:53:26.960 517-569/? E/InputDispatcher﹕ channel '42543090 com.quickblox.sample.videochatwebrtcnew/com.quickblox.sample.videochatwebrtcnew.activities.ListUsersActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
07-02 15:53:26.963 135-7666/? E/SurfaceTextureClient﹕ queueBuffer: error queuing buffer to SurfaceTexture, -2147483646
07-02 15:53:26.963 135-7666/? E/MtkCam/DisplayClient﹕ (7666)[enquePrvOps] mpStreamOps->enqueue_buffer failed: status[Unknown error 2147483646(2147483646)], rpImgBuf(0x42fc1478,0x44bb2000) (enquePrvOps){#356:mediatek/hardware/camera/client/DisplayClient/DisplayClient.Stream.cpp}
07-02 15:53:26.995 135-7666/? E/SurfaceTextureClient﹕ queueBuffer: error queuing buffer to SurfaceTexture, -2147483646
07-02 15:53:26.995 135-7666/? E/MtkCam/DisplayClient﹕ (7666)[enquePrvOps] mpStreamOps->enqueue_buffer failed: status[Unknown error 2147483646(2147483646)], rpImgBuf(0x42fc1e08,0x44e74000) (enquePrvOps){#356:mediatek/hardware/camera/client/DisplayClient/DisplayClient.Stream.cpp}
07-02 15:53:27.003 517-569/? E/InputDispatcher﹕ channel '42639cd8 com.quickblox.sample.videochatwebrtcnew/com.quickblox.sample.videochatwebrtcnew.activities.CallActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
07-02 15:53:27.029 135-7666/? E/SurfaceTextureClient﹕ queueBuffer: error queuing buffer to SurfaceTexture, -32
07-02 15:53:27.029 135-7666/? E/MtkCam/DisplayClient﹕ (7666)[enquePrvOps] mpStreamOps->enqueue_buffer failed: status[Broken pipe(32)], rpImgBuf(0x42fc1988,0x46576000) (enquePrvOps){#356:mediatek/hardware/camera/client/DisplayClient/DisplayClient.Stream.cpp}
07-02 15:53:27.290 7750-7750/? E/AEE/DUMPSTATE﹕ copy_file: Copy /proc/7442/status to PROCESS_STATE failed(2), No such file or directory
How can I use the Android to achieve a multi users video call?

A new version of Android WebRTC is to be released on August 27-28 and fix this. Multi-user video-calls are not available yet, QuickBlox is still working on implementing them.

Related

error org.apache.struts2.dispatcher.defaultdispatchererrorhandler

I was trying to convert struts 2.3 to 2.5 after making all the required changes I m getting this exception occurred during processing request nullpointerexception: null and log error: SRVE0293E: [servlet error]-[null] com.ibm.ws.webcontainer.webapp.webApperrorreport

Eclipse Ease - ReferenceError: "loadModule" is not defined

We are using Eclipse ease in a Eclipse Plugin application, and after updating from 0.6 to 0.8 We are having the following errors.
!ENTRY org.eclipse.help.base 4 0 2021-07-29 05:29:13.360
!MESSAGE Help cannot be displayed. The embedded application server could not run help web application.
!STACK 0
org.osgi.framework.BundleException: org.eclipse.equinox.http.registry
at org.eclipse.help.internal.server.JettyHelpServer.checkBundle(JettyHelpServer.java:129)
at org.eclipse.help.internal.server.JettyHelpServer.start(JettyHelpServer.java:119)
at org.eclipse.help.internal.server.WebappManager.start(WebappManager.java:41)
at org.eclipse.help.internal.base.BaseHelpSystem.ensureWebappRunning(BaseHelpSystem.java:186)
at org.eclipse.help.internal.base.BaseHelpSystem.resolve(BaseHelpSystem.java:202)
at org.eclipse.help.ui.internal.DefaultHelpUI.resolve(DefaultHelpUI.java:376)
at org.eclipse.ui.internal.help.WorkbenchHelpSystem.resolve(WorkbenchHelpSystem.java:738)
at org.eclipse.ease.ui.help.hovers.ModuleHelp.getModuleHelpLocation(ModuleHelp.java:37)
at org.eclipse.ease.ui.view.ModuleExplorerView$3.getContent(ModuleExplorerView.java:251)
at org.eclipse.ease.ui.view.ModuleExplorerView$3.getContent(ModuleExplorerView.java:1)
at org.eclipse.ease.ui.help.hovers.internal.ControlHoverManager$3.run(ControlHoverManager.java:142)
!ENTRY org.eclipse.ease.ui 4 0 2021-07-29 05:29:13.410
!MESSAGE Cannot find the module help content
!STACK 0
java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.Socket.connect(Socket.java:609)
at java.base/java.net.Socket.connect(Socket.java:558)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:341)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:362)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1253)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1015)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
at java.base/java.net.URL.openStream(URL.java:1165)
at org.eclipse.ease.ui.help.hovers.ModuleHelp.getHtmlContent(ModuleHelp.java:50)
at org.eclipse.ease.ui.help.hovers.ModuleHelp.<init>(ModuleHelp.java:71)
at org.eclipse.ease.ui.view.ModuleExplorerView$3.getContent(ModuleExplorerView.java:253)
at org.eclipse.ease.ui.view.ModuleExplorerView$3.getContent(ModuleExplorerView.java:1)
at org.eclipse.ease.ui.help.hovers.internal.ControlHoverManager$3.run(ControlHoverManager.java:142)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.eclipse.ease.debugging.model.EaseDebugValue (file:/home/saul/eclipse-workspace/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.ease_0.8.0.I202105061131.jar) to field java.lang.Throwable.depth
WARNING: Please consider reporting this to the maintainers of org.eclipse.ease.debugging.model.EaseDebugValue
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
And also inside the rhino interpreter/console we get the following.
loadModule('/System/Environment'); ReferenceError: "loadModule" is
not defined.
What could we missing? Application compiles successfully and the Eclipse Ease plugins are listed in the Installation details.
EASE is not working with eclipse 2021-03 target platform due to bug 571990

Is kafka SSL connection supported in native?

I wan't to connect to kafka topic with SSL using smallrye-kafka in quarkus.
My code works when executing mvn compile quarkus:dev.
mvn clean package -Pnative is successful. But when i run native binary it fails because it can't find SaslClientCallbackHandler.
I followed quarkus guides for building native with SSL, and configuring kafka with smallrye extension.
My application.property file
mp.messaging.outgoing.stock-topic.connector=smallrye-kafka
mp.messaging.outgoing.stock-topic.value.serializer=org.apache.kafka.common.serialization.ByteArraySerializer
mp.messaging.outgoing.stock-topic.key.serializer=org.apache.kafka.common.serialization.IntegerSerializer
mp.messaging.outgoing.stock-topic.topic=topic
mp.messaging.outgoing.stock-topic.bootstrap.servers=${KAFKA_HOST}:${KAFKA_PORT}
mp.messaging.outgoing.stock-topic.sasl.mechanism=PLAIN
mp.messaging.outgoing.stock-topic.security.protocol=SASL_SSL
mp.messaging.outgoing.stock-topic.ssl.protocol=TLSv1.2
mp.messaging.outgoing.stock-topic.ssl.enabled.protocols=TLSv1.2
mp.messaging.outgoing.stock-topic.ssl.endpoint.identification.algorithm=HTTPS
mp.messaging.outgoing.stock-topic.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="${KAFKA_USER}" password="${KAFKA_PASS}";
quarkus.ssl.native=true
quarkus.native.enable-all-security-services=true
I expect native to work the same. When application.property is commented, native run doesn't throw exceptions.
Error log:
Exception in thread "main" java.lang.RuntimeException: Failed to start quarkus
at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:185)
at io.quarkus.runtime.Application.start(Application.java:94)
at io.quarkus.runtime.Application.run(Application.java:218)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:41)
Caused by: javax.enterprise.inject.spi.DeploymentException: org.apache.kafka.common.KafkaException: Failed to construct kafka producer
at io.quarkus.smallrye.reactivemessaging.runtime.SmallRyeReactiveMessagingLifecycle.onApplicationStart(SmallRyeReactiveMessagingLifecycle.java:22)
at io.quarkus.smallrye.reactivemessaging.runtime.SmallRyeReactiveMessagingLifecycle_Observer_onApplicationStart_4e8937813d9e8faff65c3c07f88fa96615b70e70.notify(SmallRyeReactiveMessagingLifecycle_Observer_onApplicationStart_4e8937813d9e8faff65c3c07f88fa96615b70e70.zig:51)
at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:224)
at io.quarkus.arc.impl.EventImpl.fire(EventImpl.java:65)
at io.quarkus.arc.runtime.LifecycleEventRunner.fireStartupEvent(LifecycleEventRunner.java:23)
at io.quarkus.arc.runtime.ArcRecorder.handleLifecycleEvents(ArcRecorder.java:108)
at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent27.deploy_0(LifecycleEventsBuildStep$startupEvent27.zig:58)
at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent27.deploy(LifecycleEventsBuildStep$startupEvent27.zig:77)
at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:161)
... 3 more
Caused by: org.apache.kafka.common.KafkaException: Failed to construct kafka producer
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:431)
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:271)
at io.vertx.kafka.client.producer.impl.KafkaWriteStreamImpl.create(KafkaWriteStreamImpl.java:52)
at io.vertx.kafka.client.producer.KafkaWriteStream.create(KafkaWriteStream.java:92)
at io.smallrye.reactive.messaging.kafka.KafkaSink.<init>(KafkaSink.java:50)
at io.smallrye.reactive.messaging.kafka.KafkaConnector.getSubscriberBuilder(KafkaConnector.java:73)
at io.smallrye.reactive.messaging.kafka.KafkaConnector_ClientProxy.getSubscriberBuilder(KafkaConnector_ClientProxy.zig:283)
at io.smallrye.reactive.messaging.impl.ConfiguredChannelFactory.createSubscriberBuilder(ConfiguredChannelFactory.java:156)
at io.smallrye.reactive.messaging.impl.ConfiguredChannelFactory.lambda$register$5(ConfiguredChannelFactory.java:124)
at java.util.HashMap.forEach(HashMap.java:1289)
at io.smallrye.reactive.messaging.impl.ConfiguredChannelFactory.register(ConfiguredChannelFactory.java:124)
at io.smallrye.reactive.messaging.impl.ConfiguredChannelFactory.initialize(ConfiguredChannelFactory.java:118)
at io.smallrye.reactive.messaging.impl.ConfiguredChannelFactory_ClientProxy.initialize(ConfiguredChannelFactory_ClientProxy.zig:195)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647)
at io.smallrye.reactive.messaging.extension.MediatorManager.initializeAndRun(MediatorManager.java:132)
at io.smallrye.reactive.messaging.extension.MediatorManager_ClientProxy.initializeAndRun(MediatorManager_ClientProxy.zig:100)
at io.quarkus.smallrye.reactivemessaging.runtime.SmallRyeReactiveMessagingLifecycle.onApplicationStart(SmallRyeReactiveMessagingLifecycle.java:20)
... 11 more
Caused by: org.apache.kafka.common.KafkaException: org.apache.kafka.common.KafkaException: Could not find a public no-argument constructor for org.apache.kafka.common.security.authenticator.SaslClientCallbackHandler
at org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:160)
at org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:146)
at org.apache.kafka.common.network.ChannelBuilders.clientChannelBuilder(ChannelBuilders.java:67)
at org.apache.kafka.clients.ClientUtils.createChannelBuilder(ClientUtils.java:99)
at org.apache.kafka.clients.producer.KafkaProducer.newSender(KafkaProducer.java:439)
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:420)
... 29 more
Caused by: org.apache.kafka.common.KafkaException: Could not find a public no-argument constructor for org.apache.kafka.common.security.authenticator.SaslClientCallbackHandler
at org.apache.kafka.common.utils.Utils.newInstance(Utils.java:314)
at org.apache.kafka.common.network.SaslChannelBuilder.createClientCallbackHandler(SaslChannelBuilder.java:289)
at org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:127)
... 34 more
Caused by: java.lang.NoSuchMethodException: org.apache.kafka.common.security.authenticator.SaslClientCallbackHandler.<init>
at java.lang.Class.getConstructor0(DynamicHub.java:3082)
at java.lang.Class.getDeclaredConstructor(DynamicHub.java:2178)
at org.apache.kafka.common.utils.Utils.newInstance(Utils.java:312)
... 36 more
To reproduce:
Make new quarkus project with quarkus-smallrye-reactive-messaging-kafka extension
Configure application property
Build native and run it.
Note: I don't have any class in src/main/java, native fails when SSL configuration is found in application.property

java.lang.RuntimeException: Failed to bind

When i submitted topology i got in worker log file
[ERROR] Error on initialization of server mk-worker
org.apache.storm.netty.channel.ChannelException: **Failed to bind to:
0.0.0.0/0.0.0.0:6703** at
org.apache.storm.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)
~[storm-core-0.9.5.jar:0.9.5] at backtype.storm.messaging.netty.Server.<init>
(Server.java:130) ~[storm-core-0.9.5.jar:0.9.5] at
backtype.storm.messaging.netty.Context.bind(Context.java:75) ~[storm-
core-0.9.5.jar:0.9.5] at
backtype.storm.messaging.loader$launch_receive_thread_BANG_.doInvoke(loader.clj:
68) ~[storm-core-0.9.5.jar:0.9.5] at
clojure.lang.RestFn.invoke(RestFn.java:668) [clojure-1.5.1.jar:na] at
backtype.storm.daemon.worker$launch_receive_thread.invoke(worker.clj:378)
~[storm-core-0.9.5.jar:0.9.5] at
the version i'm using
storm version 0.9.5
zookeeper -3.4.6

Invalid broker uri when starting apache activemq

I downloaded apache activemq version 5.9 on windows 7, then opened the command prompt and typed ACTIVEMQDIR> .\bin\activemq and got a Invalid Broker URI error.
What configuration information do I need to provide so that activemq works on windows 7?
EDIT:
Here's the stack trace:
C:\activemq\bin>activemq start /p
Java Runtime: Oracle Corporation 1.7.0_79 C:\Program Files\Java jdk1.7.0_79\jre
Heap sizes: current=1005568k free=989808k max=1005568k
JVM args: -Dcom.sun.management.jmxremote -Xms1G -Xmx1G -Djava.util.logging.c
onfig.file=logging.properties -Djava.security.auth.login.config=C:\activemq\bin\
..\conf\login.config -Dactivemq.classpath=C:\activemq\bin\..\conf;C:\activemq\bi
n\../conf;C:\activemq\bin\../conf; -Dactivemq.home=C:\activemq\bin\.. -Dactivemq
.base=C:\activemq\bin\.. -Dactivemq.conf=C:\activemq\bin\..\conf -Dactivemq.data
=C:\activemq\bin\..\data -Djava.io.tmpdir=C:\activemq\bin\..\data\tmp
Extensions classpath:
[C:\activemq\bin\..\lib,C:\activemq\bin\..\lib\camel,C:\activemq\bin\..\lib\op
tional,C:\activemq\bin\..\lib\web,C:\activemq\bin\..\lib\extra]
ACTIVEMQ_HOME: C:\activemq\bin\..
ACTIVEMQ_BASE: C:\activemq\bin\..
ACTIVEMQ_CONF: C:\activemq\bin\..\conf
ACTIVEMQ_DATA: C:\activemq\bin\..\data
Loading message broker from: /p
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: java.la
ng.IllegalArgumentException: Invalid broker URI, no scheme specified: /p
java.lang.RuntimeException: Failed to execute start task. Reason: java.lang.Ille
galArgumentException: Invalid broker URI, no scheme specified: /p
at org.apache.activemq.console.command.StartCommand.runTask(StartCommand
.java:91)
at org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
ommand.java:57)
at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand
.java:150)
at org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
ommand.java:57)
at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.ja
va:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.
The problem is 'start' string is being interpreted as the broker url. Run without argument.
activemq
Just execute only the "activemq" and remove the argument "start",
For example, run it like the below line,
C:\activemq\bin>activemq