I'm trying to get the SUP101 with HWE example application running and I've encountered a problem. The error is:
2012-11-16 14:43:20.016 SUP101[11837:c07] [ERROR] [SUPApplication.m:1960] SUPPersistenceException from getConfigProperty: -- MessagingClientException: MessagingClientLib: initInstance must be called prior to getInstanceRuntimeException: Application ID is required
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
SUPApplication *app = [SUPApplication getInstance];
// if([SUPApplication registrationStatus] != SUPRegistrationStatus_REGISTERED) <=== Error occurs here
app.applicationIdentifier = @"SUP101";
CallbackHandler * ch = [CallbackHandler getInstance];
app.applicationCallback = ch;
[SUP101SUP101DB registerCallbackHandler:ch];
SUPConnectionProperties* props= app.connectionProperties;
[props setNetworkProtocol:@"http"];
[props setServerName:@"192.168.45.141"];
[props setPortNumber:80];
[props setFarmId:@"jssupdev.msg"];
I commented the If statement out and ran it again and got the following error:
2012-11-16 15:09:48.979 SUP101[12046:c07] [ERROR] [SUPApplication.m:1975] SUPPersistenceException from setConfigProperty: -- MessagingClientException: RuntimeException: Failure in setConfigProperty
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
SUPApplication *app = [SUPApplication getInstance];
// if([SUPApplication registrationStatus] != SUPRegistrationStatus_REGISTERED)
app.applicationIdentifier = @"SUP101";
CallbackHandler * ch = [CallbackHandler getInstance];
app.applicationCallback = ch;
[SUP101SUP101DB registerCallbackHandler:ch];
SUPConnectionProperties* props= app.connectionProperties;
[props setNetworkProtocol:@"http"]; <=== Oddly enough, there is no error here
[props setServerName:@"192.168.45.141"]; <=== Error occurs here
Any help would be greatly appreciated.
Thanks,
Ross