During device registration service interface TIBCO ActiveMatrix BusinessWorks™ Plug-in for Mobile Integration (BWMI) failed with 404 Exception.

During device registration service interface TIBCO ActiveMatrix BusinessWorks™ Plug-in for Mobile Integration (BWMI) failed with 404 Exception.

book

Article ID: KB0084309

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Mobile Integration -
Not Applicable -

Description

Device registration is failed with below error:

****
[2016-01-15 12:54:02,362]:[DEBUG]:[org.mortbay.log] [40]- RESPONSE /device/{ "deviceId":"APA91bGt08Wmg2vfEL4Eq7p5rI65TjMhjGj4PRkRrrM7E_EBROF84o9ICsqGvH9IETPheKHi6vplYeAYLMsaeW1R5fzx7VR1Xy2CTfzUoL6s-YKtNSrsYbfeJ8VpVEwevzK_tvmeRAUJ_MyDA_jHRbAzIPK2M2gqiVwzcWqoDNW7bHqOcqXgLNU", "type":"ANDROID", "user": { "phone": "+918600003452", "email": "abc@gmail.com" } }  404

[2014-09-17 12:54:12,337]:[DEBUG]:[org.mortbay.log] [40]- EOF
****
 

Issue/Introduction

During device registration service interface TIBCO ActiveMatrix BusinessWorks™ Plug-in for Mobile Integration (BWMI) failed with 404 Exception.

Environment

Product: TIBCO ActiveMatrix BusinessWorks™ Plug-in for Mobile Integration Version: 1.0,1.1, 2.0 OS: All Supported Operating Systems

Resolution

For this error change url to devices, Please note that there is typo error in the documentation (BWMI 1.0 ,1.1 and 2.0) which misspells the service url as /device instead it should be /devices in the Resource URI in project for REST/JASON.

And the below API cannot be called by hitting it on the browser.

The following REST/JSON data(having the Registration ID) is to be communicated back to the BWMI server using appropriate REST/JSON services:

URI : http://<serverHost>:<serverPort>/devices
Method: PUT
Request Headers: Content-Type: application/json; charset=UTF-8
Request Body:
{
"deviceId":"GPA91bEthw8OzOYyDykm1Lvvcd3gP7oe52C9fiYobOVPems10fGmgQ
pkTpJIht9UplhsygL2zUwa2B5YjpsP3MexPb6hmv-2E9AkJKQyeBCrLvSvJL_FBser
PXskrx4LhVQeHZu3_maSIW6GkFVPtwNIzfxY-GfsIA",
"type":"ANDROID",
"user": {
"phone": "+19883999901",
"email": "abc@yahoo.com"
}
}

Additional Information

https://docs.tibco.com/pub/businessworks_plugin_mobile_integration/1.1.0_sept_2013/doc/pdf/tib_bwmi_developers_guide.pdf