cancel
Showing results for 
Search instead for 
Did you mean: 

Error code -22: Error while registering

Former Member
0 Kudos

Hi Guys.

I'm new to NW Mobile 7.1.

I'm able to run developed applications and see data on physical devices (PDAs).

I'm also able to deploy and run the same applications on the NWDS Client (Simulator) BUT SEE NO data, because It can't sync.

My question is very simple: How can I set up NWDS Mobile Client (Simulator) so I can get data?

When I get to the Device Information screen (NWDS Mobile Client Simulator),values for Device Name and Device Id are blank

After a sync, the folowing messages appear on my console:

Windows XP

messageReceived in ContainerSyncEventListener: Connected to the server Level: 1

messageReceived in ContainerSyncEventListener: Sending logon data to server Level: 1

messageReceived in ContainerSyncEventListener: Waiting for response from server Level: 1

messageReceived in ContainerSyncEventListener: Receiving data from server Level: 1

messageReceived in ContainerSyncEventListener: Error code -22: Error while registering

I know that it is a must to setup a Device Name with one that exists in DOE (then Device Id is assigned during registration with DOE). But how can I place a value on Device Name? Should I set it up? then, Is it by copying a .propierties file under a MI/Folder or something?

I can't navigate my applications on the simulator so I need to deploy the files to a physical device every time I build, and this obviously takes more time than just running it on the simulator.

In just a few words, it is driving me nuts.

Thank you in advance,

David.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi.

I created a test device with a dummy name and a dummy user and it worked fine.

Thank you!

Former Member
0 Kudos

Hi,

yes, exactly - you can choose any name you like - just make sure this name has to be unique.

Regards,

Oliver

Former Member
0 Kudos

Hi Oliver.

One more question.

I have successfully deployed the application and syncronized the simulator.

I'm able to see data the first time (after registration) but if I re-deploy the components I stop seeing the data.

My initial approach is to reset the client installation and reinitialise the device using Admin Portal everytime after I deploy, but I'm pretty sure that is not an expected behaviour from the simulator.

What am I missing then?

I have DMSWCV assgined to the device.

Thank you.

David.

rohith_deraje
Employee
Employee
0 Kudos

Hi David,

Do not use reinitialize device. This will remove the registration. .Use "Recover Device" to resend the data to Device.

Also if you are redeploying application locally from IDE, you get an option (check box) to refresh persistency. If it is not selected then DB persistency will not be refreshed.You can use the old data.

Regards

Rohith

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

if you have used MI7.0 you expect: sync a device and it is registered. This does not work in Mi7.1

In MI7.1 you need to create a device for a user first, before you are able to sync and get data.

To do this, open the Mobile Administration Portal in MI7.1, go to Administration and create a device for your user. Once this is done, you need to Enable the device.

If the device is enabled, in status INITIAL and has the correct user assigned, you can sync this device with the MI server.

Hope this helps!

Regards,

Oliver

Former Member
0 Kudos

Hi Oliver.

Thank you for your reply.

What value should I set up for Device Name on Mobile Administration Portal?

Thank you.

David.