QuickBlox / quickblox-android-sdk

QuickBlox Android SDK includes code snippets with main use cases and framework JAR library.
BSD 3-Clause "New" or "Revised" License
417 stars 697 forks source link

Attempt to invoke virtual method 'com.quickblox.chat.QBWebRTCSignaling com.quickblox.chat.QBVideoChatWebRTCSignalingManager.getSignaling(int)' on a null object reference #422

Closed mehulp89 closed 3 years ago

mehulp89 commented 7 years ago

Hello Team,

After getting successful login still facing error when trying to initiate a Video Call.

Kindly do reply fast.. because its an urgency for the application production.

Regards, Mehul Patel

Logs : D/QBASDK: *** * RESPONSE fae4f56a-8172-4fc7-a723-33f1623d7028 STATUS : 422 HEADERS X-Runtime=0.049313 Cache-Control=no-cache QuickBlox-REST-API-Version=0.1.1 X-Android-Selected-Protocol=http/1.1 QB-Token-ExpirationDate=2017-06-19 09:30:24 +0000 Status=422 Unprocessable Entity X-Request-Id=ee80d572-b891-4935-b985-8ba477a01fe3 X-Android-Response-Source=NETWORK 422 Connection=Close X-Android-Sent-Millis=1497857425984 Content-Type=application/json; charset=utf-8 Date=Mon, 19 Jun 2017 07:30:26 GMT X-Content-Type-Options=nosniff Server=openresty/1.9.15.1 Content-Length=48 Strict-Transport-Security=max-age=31536000 X-XSS-Protection=1; mode=block X-Frame-Options=SAMEORIGIN X-Android-Received-Millis=1497857426646 Access-Control-Allow-Origin=* BODY '{"errors":{"login":["has already been taken."]}}'

Your Reply... When Login

=== REQUEST ==== 9a2b47f3-140a-4385-8d45-a80b475dd955 === REQUEST POST https://api.quickblox.com/users.json HEADERS QuickBlox-REST-API-Version=0.1.1 QB-SDK=Android 3.3.1 QB-Token=a10eabe471b747a1659e0fceacb24fe5bc00dfb9 PARAMETERS user[login]=ffffffff-f5c5-8963-ffff-ffff8840c926 user[full_name]=Gautam Sutaria user[tag_list]= user[password]=x6Bt0VDy5 INLINE POST https://api.quickblox.com/users.json?user[login]=ffffffff-f5c5-8963-ffff-ffff8840c926&user[full_name]=Gautam+Sutaria&user[tag_list]=&user[password]=x6Bt0VDy5

Logs.txt

RomanPronin commented 7 years ago

Hi @mehulp89, you should be logged in Chat, do like this chatService.login(), and look at this link

mehulp89 commented 7 years ago

@RomanPronin yes did same But when i try to video call i cant able to do that.

RomanPronin commented 7 years ago

So, you can check chatService.isLoggedIn() before making startCall().

mehulp89 commented 7 years ago

@RomanPronin

Calling like this :

if (isLoggedInChat()) { startCall(true); }

*isLoggedInChat = Login Successful.

mehulp89 commented 7 years ago

Any tips for further resolution? @RomanPronin

RomanPronin commented 7 years ago

First of all, I recommend you to look at our sample, try to reproduce issue in it, and if it is OK, compare sample with your project and find out the problem.

mehulp89 commented 7 years ago

@RomanPronin USE this sample : https://quickblox.com/developers/Sample-webrtc-android And ofcourse same to same code is there.. as per given

Can you come over skype for fast and better communication ?

Or any call support or paid support is there then please let me know!

RomanPronin commented 7 years ago

@mehulp89, our sample works fine, this means something wrong in your code. I can say with certainty that NullPointerException on com.quickblox.chat.QBWebRTCSignaling com.quickblox.chat.QBVideoChatWebRTCSignalingManager.getSignaling(int) from your logs, means you are not logged in chat when you call createNewSessionWithOpponents. So, write detailed steps, some code and if need fresh logs with your issue. And, of course, you always can visit https://quickblox.com/contact/ and contact with our support.

ghost commented 3 years ago

Hello QuickBlox customers,

This is Nikolay from QuickBlox support.

The issue was closed as it is outdated.

Please check the relevant section of our documentation here: https://docs.quickblox.com/docs/android-video-calling

Also, please update the SDK to the latest version: https://github.com/QuickBlox/quickblox-android-sdk-releases/releases/tag/3.9.11

Additionally, please check our new samples: https://docs.quickblox.com/docs/code-samples#video-calling-samples

If it is still relevant after reviewing the updated information, feel free to open a new issue.

Have a nice day.