Skip to Content

Problem with setConfigProperty

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



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Nov 17, 2012 at 05:09 PM

    I've discovered that if I delete the contents of the simulator's folder I can run the app one time. The second time I get the same errors on the setConfig method. Is it possible this is related to using the iPhone 6 simulator?

    Ross

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.