License error: Keysight TAP 9.10 not throwing license error

We were using Keysight TAP 9.1.3 and recently migrated to Keysight TAP 9.10 using fixed license. In TAP 9.1.3 development environment when we try to call testplan.Open() API where the license has been removed , We notice the following error as part of inner exception “System.ComponentModel.LicenseException: License required: KS8000A or KS8400A”. When the same scenario is repeated under Keysight TAP 9.10 we are unable to reproduce the license issue and also we observe that now the inner exception holds " one or more error occurred".
Kindly let us know if there is any change need to be updated in our application to get the license issue as previously.

1 Like

@kaushik.santhanam do you think you could to see what may have changed/how to check for a missing license now?

1 Like

Hi,

According to an issue filed, there was cleanup done regarding how the exceptions were being displayed.

In 9.1.3, if a license was missing the exception that would be printed was something like this:

Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.LicenseException: License required: KS8400A or KS8101A
   at PluginCacheProxy.CheckCachedProxy(Type t)
   at Keysight.OpenTap.Plugins.Python.SDK.PythonCliAction..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at OpenTap.Cli.CliActionExecutor.Execute()
   at OpenTap.Cli.TapEntry.wrapGoInProcess()
   at OpenTap.Cli.TapEntry.Go()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at tap.Program.Main(String[] args)

In 9.3, they are consuming the inner exception and posting a simpler cleaner message:

Unable to load CLI Action : Details:

This is the merge request where the changes were made for this:

Could you let us know what is the full message you are getting now?

1 Like