cancel
Showing results for 
Search instead for 
Did you mean: 

SUP101Sample Android ApplicationRuntimeException

Former Member
0 Kudos

Hello everybody,

I have some problems while running the application SUP101Sample of the tutorial. I copied the code of the tutorial and changed the information for the server connection, where i put my connection settings. I'm using an emulator, with the 2.2 version of android. When i run the app, first the progressbar appears and "Please wait while download initial data..." is written on it, but when the progressbar has finished loading, nothing happens, except a black screen with a button on it:

And on the logCat I can see, that there are some exceptions:

09-03 06:44:30.960: I/MocaLog(266): 03T064430, T1, ThreadID = Thread[main,5,main] maps to short thread id 1

09-03 06:44:30.990: I/MocaLog(266): 03T064430, T1, Starting Log.  Current time: 20120903T064430

09-03 06:44:31.010: I/MocaLog(266): 03T064430, T1, MocaLog Logging Level: Everything

09-03 06:44:31.020: I/MocaLog(266): 03T064431, T1, MocaLog AppId: null

09-03 06:44:31.041: I/MocaLog(266): 03T064431, T1, iMo Version Number: 2.1.3.6319

09-03 06:44:31.060: I/MocaLog(266): 03T064431, T1, Creating DATA_CONNECTION_STATE listener

09-03 06:44:31.100: I/MocaLog(266): 03T064431, T1, MessagingClientLib: initInstance. App ID: SUP101, Log Level 4

09-03 06:44:31.121: I/MocaLog(266): 03T064431, T1, Starting CmoBinary::cleanOldFiles

09-03 06:44:31.140: I/MocaLog(266): 03T064431, T1, Searching file pattern: /data/data/com.sybase.sup.samples.objectapi/app_mobinary/mobinary_cookie_*

09-03 06:44:31.160: I/MocaLog(266): 03T064431, T1, Finished CmoBinary::cleanOldFiles

09-03 06:44:31.291: D/dalvikvm(266): GC_FOR_MALLOC freed 4868 objects / 287856 bytes in 114ms

09-03 06:44:32.660: D/dalvikvm(266): GC_FOR_MALLOC freed 13888 objects / 521320 bytes in 113ms

09-03 06:44:33.300: D/dalvikvm(266): GC_FOR_MALLOC freed 10108 objects / 468872 bytes in 101ms

09-03 06:44:33.610: I/MocaLog(266): 03T064433, T1, MessagingClientLib: getConfigProperty

09-03 06:44:34.010: D/dalvikvm(266): GC_FOR_MALLOC freed 7826 objects / 388688 bytes in 121ms

09-03 06:44:34.290: I/System.out(266): CONSOLE TRACE: setListener

09-03 06:44:34.290: I/System.out(266): CONSOLE TRACE: addConnection for Connection key: sup101:1.0

09-03 06:44:34.290: I/System.out(266): CONSOLE TRACE: leave setListener

09-03 06:44:34.380: I/MocaLog(266): 03T064434, T2, ThreadID = Thread[Thread-9,5,main] maps to short thread id 2

09-03 06:44:34.390: I/MocaLog(266): 03T064434, T2, MessagingClientLib: setConfigProperty

09-03 06:44:34.420: I/MocaLog(266): 03T064434, T2, MessagingClientLib: propertyDisplayOnly

09-03 06:44:34.450: I/MocaLog(266): 03T064434, T2, MessagingClientLib: setConfigProperty (1305):

09-03 06:44:34.500: I/MocaLog(266): 03T064434, T2, Property 1305 is changed, saved: /tm/?cid=%cid%, new:

09-03 06:44:34.582: I/MocaLog(266): 03T064434, T2, Property 1305 is changed, saved: /tm/?cid=%cid%, new:

09-03 06:44:34.990: I/MocaLog(266): 03T064434, T2, MessagingClientLib: setConfigProperty

09-03 06:44:35.111: I/MocaLog(266): 03T064435, T2, MessagingClientLib: propertyDisplayOnly

09-03 06:44:35.270: I/MocaLog(266): 03T064435, T2, MessagingClientLib: setConfigProperty (20): false

09-03 06:44:35.350: I/MocaLog(266): 03T064435, T2, MessagingClientLib: setConnectionProperties

09-03 06:44:35.890: D/UpgradeUtil(266): upgrade takes : 0ms

09-03 06:44:36.092: I/MocaLog(266): 03T064436, T3, ThreadID = Thread[registerApplication,5,main] maps to short thread id 3

09-03 06:44:36.130: D/dalvikvm(266): Trying to load lib /data/data/com.sybase.sup.samples.objectapi/lib/libultralitej12.so 0x44edece0

09-03 06:44:36.170: I/MocaLog(266): 03T064435, T3, MessagingClientLib: initClient.

09-03 06:44:36.310: I/MocaLog(266): 03T064436, T3, MessagingClientLib: initClient error. Start aborted due to incomplete configuration.

09-03 06:44:36.420: D/dalvikvm(266): Added shared lib /data/data/com.sybase.sup.samples.objectapi/lib/libultralitej12.so 0x44edece0

09-03 06:44:36.420: D/dalvikvm(266): No JNI_OnLoad found in /data/data/com.sybase.sup.samples.objectapi/lib/libultralitej12.so 0x44edece0, skipping init

09-03 06:44:36.440: I/MocaLog(266): 03T064436, T3, MocaLibrary: client initialize exception:

09-03 06:44:36.440: I/MocaLog(266): Error: 14802 Message: Connection settings are incomplete.

09-03 06:44:36.440: I/MocaLog(266):           at com.sybase.mo.MessagingClientLib.initClient(MessagingClientLib.java:139)

09-03 06:44:36.440: I/MocaLog(266):           at com.sybase.mo.MessagingClientLib.getConfig(MessagingClientLib.java:1161)

09-03 06:44:36.440: I/MocaLog(266):           at com.sybase.mo.MessagingClientMoObject.getNewConnection(MessagingClientMoObject.java:30)

09-03 06:44:36.440: I/MocaLog(266):           at com.sybase.mo.MessagingClientMoObject.<init>(MessagingClientMoObject.java:58)

09-03 06:44:36.440: I/MocaLog(266):           at com.sybase.messaging.MclServerRmiCalls.<init>(MclServerRmiCalls.java:37)

09-03 06:44:36.440: I/MocaLog(266):           at com.sybase.mobile.Application$1.run(Application.java:357)

09-03 06:44:36.520: I/MocaLog(266): 03T064436, T3, Connection settings are incomplete.

09-03 06:44:36.580: I/MocaLog(266): 03T064436, T3, getEmulatorDeviceId: Simulator65d599b6-8757-4238-b455-aa1429d62eac

09-03 06:44:36.740: I/MocaLog(266): 03T064436, T3, MessagingClientLib: getConfigProperty

09-03 06:44:36.771: I/MocaLog(266): 03T064436, T3, MessagingClientLib: getConfigProperty

09-03 06:44:37.020: D/dalvikvm(266): GC_FOR_MALLOC freed 8383 objects / 399328 bytes in 163ms

09-03 06:44:37.041: I/MocaLog(266): 03T064436, T3, MessagingClientLib: getConfigProperty

09-03 06:44:37.080: I/MocaLog(266): 03T064437, T3, MessagingClientLib: getConfigProperty

09-03 06:44:37.150: I/MocaLog(266): 03T064437, T3, execute:  objectName='monet:DeviceManagement.dll:DeviceManagement' methodName='AddDeviceRegistration' param count(false)=9

09-03 06:44:37.210: I/MocaLog(266): 03T064437, T3, execute:  refreshing stale ServerVersionInfo

09-03 06:44:37.301: I/MocaLog(266): 03T064437, T3, Starting URL Template discovery

09-03 06:44:37.320: I/MocaLog(266): 03T064437, T3, Testing Relay Server URL Template:/tm/?cid=%cid%

09-03 06:44:37.450: I/MocaLog(266): 03T064437, T3, Cookies - setRequest:

09-03 06:44:37.560: I/MocaLog(266): 03T064437, T2, MessagingClientLib: getConfigProperty

09-03 06:44:38.100: I/MocaLog(266): 03T064438, T2, MessagingClientLib: getConfigProperty

09-03 06:44:38.191: W/System.err(266): com.sybase.mobile.ApplicationRuntimeException: Application settings are not available

09-03 06:44:38.311: W/System.err(266):           at com.sybase.mobile.ApplicationSettings.checkApplicationSettingsAvailable(ApplicationSettings.java:96)

09-03 06:44:38.311: W/System.err(266):           at com.sybase.sup.client.persistence.RbsDatabaseDelegate.internalSynchronize(RbsDatabaseDelegate.java:463)

09-03 06:44:38.320: W/System.err(266):           at com.sybase.sup.client.persistence.RbsDatabaseDelegate.synchronizeWithCallback(RbsDatabaseDelegate.java:419)

09-03 06:44:38.320: W/System.err(266):           at com.sybase.sup.client.persistence.RbsDatabaseDelegate.synchronize(RbsDatabaseDelegate.java:1168)

09-03 06:44:38.320: W/System.err(266):           at com.sybase.sup.client.persistence.RbsDatabaseDelegate.synchronize(RbsDatabaseDelegate.java:1159)

09-03 06:44:38.320: W/System.err(266):           at SUP101.SUP101DB.synchronize(SUP101DB.java:200)

09-03 06:44:38.320: W/System.err(266):           at com.sybase.sup.samples.objectapi.SUP101SampleActivity$2.run(SUP101SampleActivity.java:134)

09-03 06:44:38.320: W/System.err(266):           at java.lang.Thread.run(Thread.java:1096)

09-03 06:44:38.721: I/MocaLog(266): 03T064438, T3, Property 1305 is changed, saved: , new: /tm/?cid=%cid%

09-03 06:44:38.931: I/MocaLog(266): 03T064438, T3, Found good Relay Server URL Template: /tm/?cid=%cid%

09-03 06:44:39.021: I/MocaLog(266): 03T064439, T3, Retrieved stored keys

09-03 06:44:39.041: I/MocaLog(266): 03T064439, T3, Cookies - setRequest:

09-03 06:44:39.171: D/dalvikvm(266): GC_FOR_MALLOC freed 6634 objects / 347064 bytes in 117ms

09-03 06:44:39.671: I/MocaLog(266): 03T064439, T3, got ServerVersionInfo: 2.1.3.6308,12

09-03 06:44:39.692: I/MocaLog(266): 03T064439, T3, tm uri:  'tm://mo/rmi?cid=0&devid=Simulator65d599b6-8757-4238-b455-aa1429d62eac__SUP101&devtype=android&connid=1&noauth=true'

09-03 06:44:39.711: I/MocaLog(266): 03T064439, T3, Retrieved stored keys

09-03 06:44:39.731: I/MocaLog(266): 03T064439, T3, Cookies - setRequest:

09-03 06:44:39.861: D/dalvikvm(266): GC_FOR_MALLOC freed 2544 objects / 356904 bytes in 129ms

09-03 06:44:39.991: I/MocaLog(266): 03T064439, T3, writeToStream parameter: name='sServerName' type=0 passtype=1

09-03 06:44:40.012: I/MocaLog(266): 03T064440, T3, writeToStream parameter: name='iPort' type=7 passtype=1

09-03 06:44:40.031: I/MocaLog(266): 03T064440, T3, writeToStream parameter: name='sFarmId' type=0 passtype=1

09-03 06:44:40.051: I/MocaLog(266): 03T064440, T3, writeToStream parameter: name='sUserName' type=0 passtype=1

09-03 06:44:40.071: I/MocaLog(266): 03T064440, T3, writeToStream parameter: name='sSUPPassword' type=0 passtype=1

09-03 06:44:40.101: I/MocaLog(266): 03T064440, T3, writeToStream parameter: name='bIsWorkflowclient' type=2 passtype=1

09-03 06:44:40.121: I/MocaLog(266): 03T064440, T3, writeToStream parameter: name='sActivationCode' type=0 passtype=0

09-03 06:44:40.141: I/MocaLog(266): 03T064440, T3, writeToStream parameter: name='iErrorCode' type=7 passtype=0

09-03 06:44:40.161: I/MocaLog(266): 03T064440, T3, writeToStream parameter: name='sErrorMessage' type=0 passtype=0

09-03 06:44:40.181: I/MocaLog(266): 03T064440, T3, execute -- waiting for response

09-03 06:44:42.251: I/MocaLog(266): 03T064442, T3, execute -- done waiting for response

09-03 06:44:42.271: I/MocaLog(266): 03T064442, T3, parseStream parameter 0

09-03 06:44:42.301: I/MocaLog(266): 03T064442, T3, parseStream parameter name='sActivationCode' type=0 passtype=0

09-03 06:44:42.311: I/MocaLog(266): 03T064442, T3, parseStream parameter 1

09-03 06:44:42.340: I/MocaLog(266): 03T064442, T3, parseStream parameter name='iErrorCode' type=7 passtype=0

09-03 06:44:42.351: I/MocaLog(266): 03T064442, T3, parseStream parameter 2

09-03 06:44:42.371: I/MocaLog(266): 03T064442, T3, parseStream parameter name='sErrorMessage' type=0 passtype=0

09-03 06:44:42.391: I/MocaLog(266): 03T064442, T3, parseStream parameter 3

09-03 06:44:42.420: I/MocaLog(266): 03T064442, T3, parseStream parameter name='__mofr' type=12 passtype=2

09-03 06:44:42.431: I/MocaLog(266): 03T064442, T3, MessagingClientLib: getConfigProperty

09-03 06:44:42.450: I/MocaLog(266): 03T064442, T3, MessagingClientLib: getConfigProperty

09-03 06:44:42.471: I/MocaLog(266): 03T064442, T3, MessagingClientLib: getConfigProperty

09-03 06:44:42.490: I/MocaLog(266): 03T064442, T3, MessagingClientLib: getConfigProperty

09-03 06:44:42.510: I/MocaLog(266): 03T064442, T3, execute:  objectName='monet:DeviceManagement.dll:DeviceManagement' methodName='AddDeviceRegistration' param count(false)=9

09-03 06:44:42.520: I/MocaLog(266): 03T064442, T3, tm uri:  'tm://mo/rmi?cid=0&devid=Simulator65d599b6-8757-4238-b455-aa1429d62eac__SUP101&devtype=android&connid=1&noauth=true'

09-03 06:44:42.540: I/MocaLog(266): 03T064442, T3, Retrieved stored keys

09-03 06:44:42.561: I/MocaLog(266): 03T064442, T3, Cookies - setRequest:

09-03 06:44:42.850: D/dalvikvm(266): GC_FOR_MALLOC freed 5421 objects / 375568 bytes in 125ms

09-03 06:44:42.920: I/MocaLog(266): 03T064442, T3, writeToStream parameter: name='sServerName' type=0 passtype=1

09-03 06:44:42.940: I/MocaLog(266): 03T064442, T3, writeToStream parameter: name='iPort' type=7 passtype=1

09-03 06:44:42.960: I/MocaLog(266): 03T064442, T3, writeToStream parameter: name='sFarmId' type=0 passtype=1

09-03 06:44:42.991: I/MocaLog(266): 03T064442, T3, writeToStream parameter: name='sUserName' type=0 passtype=1

09-03 06:44:43.011: I/MocaLog(266): 03T064443, T3, writeToStream parameter: name='sSUPPassword' type=0 passtype=1

09-03 06:44:43.030: I/MocaLog(266): 03T064443, T3, writeToStream parameter: name='bIsWorkflowclient' type=2 passtype=1

09-03 06:44:43.061: I/MocaLog(266): 03T064443, T3, writeToStream parameter: name='sActivationCode' type=0 passtype=0

09-03 06:44:43.081: I/MocaLog(266): 03T064443, T3, writeToStream parameter: name='iErrorCode' type=7 passtype=0

09-03 06:44:43.101: I/MocaLog(266): 03T064443, T3, writeToStream parameter: name='sErrorMessage' type=0 passtype=0

09-03 06:44:43.132: I/MocaLog(266): 03T064443, T3, execute -- waiting for response

09-03 06:44:43.330: I/MocaLog(266): 03T064443, T3, execute -- done waiting for response

09-03 06:44:43.351: I/MocaLog(266): 03T064443, T3, parseStream parameter 0

09-03 06:44:43.370: I/MocaLog(266): 03T064443, T3, parseStream parameter name='sActivationCode' type=0 passtype=0

09-03 06:44:43.391: I/MocaLog(266): 03T064443, T3, parseStream parameter 1

09-03 06:44:43.410: I/MocaLog(266): 03T064443, T3, parseStream parameter name='iErrorCode' type=7 passtype=0

09-03 06:44:43.420: I/MocaLog(266): 03T064443, T3, parseStream parameter 2

09-03 06:44:43.450: I/MocaLog(266): 03T064443, T3, parseStream parameter name='sErrorMessage' type=0 passtype=0

09-03 06:44:43.460: I/MocaLog(266): 03T064443, T3, parseStream parameter 3

09-03 06:44:43.480: I/MocaLog(266): 03T064443, T3, parseStream parameter name='__mofr' type=12 passtype=2

09-03 06:44:43.490: D/com.sybase.mobile.Application(266): registerApplication

09-03 06:44:43.490: D/com.sybase.mobile.Application(266): Error: 14850 Message: Auto registration template not found

09-03 06:44:43.490: D/com.sybase.mobile.Application(266):           at com.sybase.messaging.MclServerRmiCalls.addDeviceRegistration(MclServerRmiCalls.java:143)

09-03 06:44:43.490: D/com.sybase.mobile.Application(266):           at com.sybase.messaging.MclServerRmiCalls.addDeviceRegistration(MclServerRmiCalls.java:206)

09-03 06:44:43.490: D/com.sybase.mobile.Application(266):           at com.sybase.mobile.Application$1.run(Application.java:371)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

  Do re-check the SUP setting given in the application, and what is the device status observed in SCC,is it changed from pending to offline ?

And other reason we can suspect is the network settings in Android manifest, are all the N|W settings permissions provided ?

Thanks,

Srikanth M

Former Member
0 Kudos

Thank you Srikanth for your help, now I have another issue, my app doesn't register, the device status is allways "Pending Activation", and now I have some new Exceptions :

09-03 11:03:26.724: W/System.err(263): com.sybase.mobile.ApplicationRuntimeException: TM Error:InvalidAuthenticationParameters

09-03 11:03:26.896: W/System.err(263):           at com.sybase.mobile.Application.registerApplication(Application.java:409)

09-03 11:03:26.896: W/System.err(263):           at com.sybase.sup.samples.objectapi.SUP101SampleActivity$2.run(SUP101SampleActivity.java:122)

09-03 11:03:26.896: W/System.err(263):           at java.lang.Thread.run(Thread.java:1096)

Former Member
0 Kudos

Hi,

  This error come if we pass invalid Server Address or invalid Application-Name or invalid UserName or Invalid Activation-Code.

   Please do check the Application name and the user created in SCC are mapped to the same Application name.And also check the activation code.

Thanks,

Srikanth M

Former Member
0 Kudos

Check whether the workflow has been assigned or not, probably you could enable the automatic registeration, in that case you have to enter the password, once it is done go to SCC and assign the workflow to the SUP user.

Answers (0)