Exception when not using LeanFT Default Templates

  • Questions
  • Exception when not using LeanFT Default Templates
Question ID: 107956
2
0

During new project creation and properly referencing the LeanFT SDK exceptions are thrown when trying to invoke an operation. We are not using LeanFT default templates.

Marked as spam
Posted by (Questions: 344, Answers: 24)
Asked on October 27, 2017 8:19 pm
33 views
Answers (1)
2
Private answer

The LeanFT SDK needs to be properly initialized.

Here are examples of how to properly initialize the LeanFT SDK for Java and C#

Java:
--------
Simple initialization:

SDK.init(SDKConfigurationFactory.createDefaultSDKConfiguration());

With custom server address:

ModifiableSDKConfiguration config = SDKConfigurationFactory.createDefaultSDKConfiguration();
config.setServerAddress(new URI(''ws://localhost:2012''));
SDK.init(config);

C#
--------
Simple initialization:

SDK.Init(new SdkConfiguration());

With custom server address:

SDK.Init(new SdkConfiguration{ ServerAddress = new Uri(''ws://localhost:2012'')});

Micro Focus has more information about using your [own frameworks at this link][1].

[1]: https://leanft-help.saas.hpe.com/en/14.01/HelpCenter/Content/HowTo/CustomFrameworks.htm

Marked as spam
Posted by (Questions: 16, Answers: 754)
Answered on October 27, 2017 8:20 pm
We were using Eclipse and java. The java example here helped us.
( at October 27, 2017 8:22 pm)