Cadet 1st Class
Cadet 1st Class
2038 views

HPE Mobile Center Error 2049

I have been trying to run a sample mobile application via HPE Mobile Center but after selecting the Mobile device and the application and on clicking on OK the application is throughing this following error:

"Unexpected error from HPE Mobile Center.[Error 2049]"

I have attached the screenshot of the error code.

Help me out. What should I do.

Thanks

 

0 Likes
9 Replies
Admiral
Admiral

Hi,

Please post log files from the server (can be retrieved from MC web UI - Admin), so we will be able to examine the root-cause of the issue.

0 Likes
Cadet 3rd Class
Cadet 3rd Class

Hi,
I tried to connect Ipad 11.2 to HPE Mobile Center but status is: disconnected.
The connetion.log have error:
[2018-03-06 13:57:24,309] [9404774d-4678-4bb2-8207-7ef62ea5fc1f] [1] [-1] [8f56906a4896cb96e077d030b107a67340921626] [] [] [] [MC_CustomThreadFactory#1] [ERROR] [c.h.m.c.s.impl.DeviceServiceImpl] CANNOT unregister device, INVALID DEVICE = null (CLS=c.h.m.c.s.impl.DeviceServiceImpl)

Could you please help me check the error and resolve?

 

0 Likes
Lieutenant Commander Lieutenant Commander
Lieutenant Commander

Hi Dong Do,

Have you emebed the your device ID  to HPMC agent and laucher?

https://admhelp.microfocus.com/mobilecenter/en/2.60/Content/IOS_device_setup.htm?Highlight=Apple%20devices

If yes, just try to restart the device and reconnect it to mobile center.

 

 

 

0 Likes
Lieutenant
Lieutenant

Hi @evgenyk,

I have a similar issue, but im using android emulators, when i try to launch record it throws me unxpected error 2049. 

Btw, im using Mobile Add-in for local device instead. 

Hope u can help !

0 Likes
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Hello Amirul,

Could you please let us know the UFT version being used?

Also, please confirm if you are using either Genymotion or Android SDK since those are the only emulators supported: https://admhelp.microfocus.com/mobilecenter/en/3.3/Content/Emulators.htm

In that document, there is also additional information to help set up the emulator. 

I hope that helps!

UFT Mobile Customer Facing R&D
0 Likes
Lieutenant
Lieutenant

Hi @l_rolfe,

Im using UFT v14.53 with Android SDK. 

I have followed guidelines but still received the same error 2049

 

0 Likes
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Hello Amirul,

Just to confirm, could you please try using an older version of Android? (Let's say 7 for instance). Also, if possible, we would like you to test using Genymotion to verify if the behavior is the same. Also, we have found Genymotion more stable for testing.

Finally, the error 2049 usually indicates that the test could not be created, since it fails to create an Appium session for the device. Are you by any chance trying to use Appium in your UFT test as well?

UFT Mobile Customer Facing R&D
0 Likes
Lieutenant
Lieutenant

Hi, I am also encountering this error. Please help.
I am trying to record using iPhone device.
I am using Mobile add-ins and it is already available in my localhost lab.

On my logs, it says:
2020-12-26 20:30:23,700 LogCatPackMobile [ 1] ERROR JSON convert error. JSON string: . error message: * Line 1, Column 1
Syntax error: value, object or array expected.
Func=MobileLauncherUtil::GetJsonFromAString File=MobileLauncherUtil.cpp Line=46 ThreadID=29512 ProcessID=15704
2020-12-26 20:31:23,306 LogCatPackMobile [ 1] ERROR Unable to find cookie with name JSESSIONID
2020-12-26 20:31:24,830 LogCatPackMobile [ 1] ERROR 2049: The test could not be created, failed to create Appium session for the device.
2020-12-26 20:31:24,832 LogCatPackMobile [ 1] ERROR Hp4mRestChannel::CreateJob() failed! Func=CMobileSessionMgr::CJobMgr::CreateNewJob File=MobileJobMgr.cpp Line=542 ThreadID=29512 ProcessID=15704
2020-12-26 20:32:11,159 LogCatPackMobile [ 1] ERROR Unable to find cookie with name JSESSIONID
2020-12-26 20:32:11,325 LogCatPackMobile [ 1] ERROR 2049: The test could not be created, failed to create Appium session for the device.
2020-12-26 20:32:11,327 LogCatPackMobile [ 1] ERROR Hp4mRestChannel::CreateJob() failed! Func=CMobileSessionMgr::CJobMgr::CreateNewJob File=MobileJobMgr.cpp Line=542 ThreadID=29512 ProcessID=15704
2020-12-26 20:48:58,392 LogCatPackMobile [ 1] ERROR JSON convert error. JSON string: . error message: * Line 1, Column 1
Syntax error: value, object or array expected.
Func=MobileUtil::GetJsonFromAString File=MobileUtil.cpp Line=309 ThreadID=20752 ProcessID=20280
2020-12-26 20:48:59,909 LogCatPackMobile [ 1] ERROR JSON convert error. JSON string: . error message: * Line 1, Column 1
Syntax error: value, object or array expected.
0 Likes
Micro Focus Expert
Micro Focus Expert

Hi Amirul,

Lets continue to investigate this issue via a support case.

Can you please send me the support case number so I can ensure its properly handled?

Regards,

Erez.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.