Highlighted
Micro Focus Expert
Micro Focus Expert
471 views

(SM) Support Tip: How to resolve the error java.lang.NumberFormatException: For input string: "nt"

The Service Manager Webtier fails to start. Within the Application Servers (i.e. Apache Tomcat) logs the following error stack is seen: 

SEVERE: Servlet [HP Service Manager Web] in web application [/9414007p4] threw load() exception java.lang.NumberFormatException: For input string: "nt"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.valueOf(Unknown Source)
at com.hp.ov.sm.client.common.util.encryptor.AbstractEncryptor.converHexStr2Byte(AbstractEncryptor.java:46)
at com.hp.ov.sm.client.common.util.encryptor.LWCryptoAESEncryptor.handleEncryptionBytes(LWCryptoAESEncryptor.java:60)
at com.hp.ov.sm.client.common.util.encryptor.AbstractThirdPartyAESEncryptor.handleEncryption(AbstractThirdPartyAESEncryptor.java:59)
at com.hp.ov.sm.client.common.util.encryptor.AbstractEncryptor.handleEncryption(AbstractEncryptor.java:101)
at com.hp.ov.sm.client.common.util.encryptor.AbstractEncryptor.decrypt(AbstractEncryptor.java:66)
at com.hp.ov.sm.client.common.util.PasswordEncoder.decrypt(PasswordEncoder.java:42)
at com.hp.ov.sm.client.webtier.WebControllerServlet.checkEncryption(WebControllerServlet.java:322)
at com.hp.ov.sm.client.webtier.WebControllerServlet.init(WebControllerServlet.java:151)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5266)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5554)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1948)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

The Cause:

The Webtier's /WEB-INF/webtier.properties file is improperly configured

Solution

The Webtier's SSL Client Keystore Password is stored in the /WEB-INF/webtier.properties file (beginning with Service Manager 9.35 and 9.40). When setting the password field for the first time the webtier.properties file should have this single line and nothing else:

keystorePassword=<SSL Client Keystore Password> (i.e. keystorePassword=clientkeystore)

If any other data is in this file such as a date/time or other literal then the Webtier will fail to start with the error seen.

Labels (1)
0 Likes
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.