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: 386, Answers: 64)
Asked on October 27, 2017 8:19 pm
112 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: 807)
Answered on October 27, 2017 8:20 pm
0
We were using Eclipse and java. The java example here helped us.
( at October 27, 2017 8:22 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top