Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Janeva License error[1000]: License is not valid or could not be located

Janeva License error[1000]: License is not valid or could not be located

Problem:

A VisiNet based CORBA application fails to start-up and prints the following error message to stdout:

Message: Invalid license: [Janeva License error[1000]: License is not valid or could not be located. Please obtain a valid license and/or configure appropriately]

Resolution:

The error indicates generic problems with locating the VisiNet license. Check if

  • the license location is configured
  • the license was properly installed

If you installed VisiBroker 8.5, an additional VisiNet patch is required, else you will always get this error. Contact SupportLine to get the patch.

Check if the license location is configured

VisiNet offers 3 variants how to configure the license location

  • Windows Registry Entry
  • .Net XML configuration file
  • ORB property

The default location for the VisiNet license is the main folder of the VisiNet installation.

Windows Registry Entry

When VisiNet is deployed through the VisiBroker installer, a registry key pointing to the VisiNet folder is created. The key names are

  • HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Janeva, InstallDir_7.0.0 for VisiBroker 7.0
  • HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Janeva, InstallDir_8.0.0 for VisiBroker 8.0
  • HKEY_LOCAL_MACHINE\SOFTWARE\MicroFocus\Janeva, InstallDir_8.5.0 for VisiBroker 8.5

.Net XML Configuration File

.Net applications can be configured with an XML file. The name of the file is <exe-name>.exe.xml. The license location can be configured in the visinet section, element license, value dir. Applied to the \Corba\Basic\Server example included in VisiNet the configuration for the application would be

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="visinet" type="Janeva.Settings, Borland.Janeva.Runtime"/>
  </configSections>
  <appSettings>
    <add key="IOR" value="..\..\..\..\..\BankServer.ior"/>
  </appSettings>
  <visinet>
    <server defaultPort="14001"/>
    <license dir="C:\MicroFocus\VisiBroker\VisiNet"/>
  </visinet>
</configuration>

ORB Property

ORB properties are stored in an array of strings and passed into the CORBA.ORB.Init method call - usually the args of static void Main(string[] args) are used to feed in the properties from command line. The license location is configured with the property janeva.license.dir. The property syntax for VisiNet is a hyphen prefix ( - ) followed by the property name, a space separator, then followed by the property value. Applied to the \Corba\Basic\Server it means the application can be started by running

BankServerCSharp.exe -janeva.license.dir C:\MicroFocus\VisiBroker\VisiNet

Check if the license was properly installed

The license is normally stored in the VisiNet main directory. But if applications are bundled with VisiNet dependencies also custom locations are possible. The configured license directory must contain a file with the name extension .SLIP, while the file name itself is not relevant. To avoid unexpected behavior ensure that the directory contains only one .SLIP license file.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Version history
Revision #:
1 of 1
Last update:
‎2013-10-31 08:26
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.