"Invalid OS name in license" error in Spectrum wrapper log

Product Affected: Spectrum Technology Platform
Product Feature: Licensing


Applying incorrect Spectrum .key license file in the import directory causes a PolicyException citing Invalid OS name in license for currently running OS.

Below is a sample of the error that references SUN Solaris and Windows Server 2008:

WrapperSimpleApp Error: Caused by: com.pb.spectrum.platform.server.runtime.core.license.impl.policy.PolicyException: Invalid OS name in license [SUN: SOLARIS] for currently running OS [Windows Server 2008 R2]

After applying the correct Spectrum license, the Spectrum Server cannot be started.


The "Invalid OS name in license" indicates that the Spectrum instance is running on an Operating System that is not specified on the Spectrum .key file.


UPDATED: June 26, 2020
1. Ensure that the Spectrum instance is installed on the supported Operating System.
This can be checked in the Spectrum Install Guide documentation.

2. If the Spectrum key was recently provided, respond back to the email mentioning the error and the OS where the Spectrum key is being imported.
The concerned team will issue with an updated Spectrum key.

After getting the correct Spectrum key, follow the below steps:
  1. Stop the Spectrum server and make sure there are no orphaned java process.
  2. Restore the current graph.db (\Spectrum\repository\data\databases) with the back up, if you have one.
  3. Restart the server and apply a Spectrum .key file for the licensed Operating System.