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

 

  • 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.

  • 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?

     

  • 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 devices

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

     

     

     

  • Hi ,

    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 !

  • 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!

  • Hi ,

    Im using UFT v14.53 with Android SDK. 

    I have followed guidelines but still received the same error 2049

     

  • 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?

  • 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.
  • 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.