1 Reply Latest reply: Aug 10, 2012 7:52 PM by Rakshit Doshi RSS

Native Android App Error

Kristof Mangelsen
Currently Being Moderated

Hi,

 

i am trying to build a native Android application to connect to SUP. But i cant get it to recognize the server response (Errorcode 7001 and 7132).

 

What i have done:

  • I have already build a simple Workflow application with a connected mbo. This works with the Workflow application.
  • I took the examples for a native android application and generated the android java code for the previous mentioned mbo.
  • Solved many other connection issues and failures (see the nice blog on this site).
  •  

    But now i am stuck. The following exceptions is all i got:

    07-12 13:50:05.530: I/MocaLog(20113): 12T135005, T2, MoObject.execute -- caught exception - Error: 7007

    07-12 13:50:05.540: I/MocaLog(20113): 12T135005, T2, MoObject.execute -- caught MoException - Error: 7132

     

    07-12 13:50:05.540: D/com.sybase.mobile.Application(20113): com.sybase.mobile.ApplicationRuntimeException:

    07-12 13:50:05.540: D/com.sybase.mobile.Application(20113):           at com.sybase.sup.client.mbs.SupHandler.pingMessagingServer(SupHandler.java:155)

    07-12 13:50:05.540: D/com.sybase.mobile.Application(20113):           at com.sybase.mobile.Application$1.run(Application.java:339)

    07-12 13:50:05.540: D/com.sybase.mobile.Application(20113): Caused by: Error: 7132

    07-12 13:50:05.540: D/com.sybase.mobile.Application(20113):           at com.sybase.mo.MoObject.parseStreamedResponse(MoObject.java:1060)

    07-12 13:50:05.540: D/com.sybase.mobile.Application(20113):           at com.sybase.mo.MoObject.execute(MoObject.java:570)

    07-12 13:50:05.540: D/com.sybase.mobile.Application(20113):           at com.sybase.sup.client.mbs.SupMoObject.sendMessageToServer(SupHandler.java:759)

    07-12 13:50:05.540: D/com.sybase.mobile.Application(20113):           at com.sybase.sup.client.mbs.SupHandler.pingMessagingServer(SupHandler.java:150)

     

    The device shows as registered on the SUP after the Android application calls app.registerApplication(TIMEOUT).

     

    To get it more complex:

    If i try to connect with a new generated username on the same device, i used with the Workflow application, and without deleting the old user, it tells me that i am using the "wrong user". So someone is talking to me... ;-)

     

    You're help would be highly appreciated!

     

    With kind regards

    Kristof

    Actions