While Starting HTTP Server (Stand Alone) Fails With the Error 'Unexpected exception from Plugin: java.lang.NullPointerException' (Doc ID 1600304.1)

Last updated on OCTOBER 02, 2017

Applies to:

Oracle HTTP Server - Version 12.1.2.0.0 and later
Microsoft Windows x64 (64-bit)

Symptoms

While using Standalone HTTP Server, the Nodemanager was created as a service using domain_dir/bin/installNodeMgrSvc.cmd and started from Services.  When attempting to start OHS using "domain_dir\bin\startcomponent.cmd ohs1" the following errors occurs:

 

C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\bin>startComponent.cmd ohs1
Starting System Component ohs1 ...

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Reading domain from C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain

Please enter your password :
Connecting to Node Manager ...
Successfully Connected to Node Manager.
Starting server ohs1 ...
Error Starting server ohs1: weblogic.nodemanager.NMException: Received error mes
sage from Node Manager Server: [Server start command for OHS server 'ohs1' faile
d due to: Unexpected exception from Plugin: java.lang.NullPointerException. Plea
se check Node Manager log and/or server 'ohs1' log for detailed information.]. P
lease check Node Manager log for details.
Successfully disconnected from Node Manager.

Exiting WebLogic Scripting Tool.

Done

C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\bin>

 

The domain_dir\nodemanager\nodemanager.log shows this error:

<Nov 5, 2013 2:05:07 PM EST> <SEVERE> <Plugin threw out unexpected exception java.lang.NullPointerException from method oracle.ohs.plugin.nodemanager.OhsProcessManagementPlugin$ProcessImpl.start(Properties props). This is very likely a BUG in plugin implementation and may lead to unexpected behavior. The legal exception allowed from this method is java.io.IOException. The unexpected exception is: java.lang.NullPointerException>
java.lang.NullPointerException
at java.lang.StringBuilder.<init>(StringBuilder.java:109)
at oracle.ohs.plugin.nodemanager.OhsProcessManagementPlugin$ProcessImpl.buildIoException(OhsProcessManagementPlugin.java:614)
at oracle.ohs.plugin.nodemanager.OhsProcessManagementPlugin$ProcessImpl.start(OhsProcessManagementPlugin.java:296)
at weblogic.nodemanager.server.DecoratedSystemComponentManager$DecoratedProcess.start(DecoratedSystemComponentManager.java:129)
at weblogic.nodemanager.server.ServerMonitor.startProcess(ServerMonitor.java:400)
at weblogic.nodemanager.server.ServerMonitor.start(ServerMonitor.java:82)
at weblogic.nodemanager.server.ServerManager.startServer(ServerManager.java:230)
at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:211)
at weblogic.nodemanager.server.Handler.handleStart(Handler.java:645)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:149)
at weblogic.nodemanager.server.Handler.run(Handler.java:81)
at java.lang.Thread.run(Thread.java:722)
<Nov 5, 2013 2:05:07 PM EST> <WARNING> <Server start command for OHS server 'ohs1' failed due to: Unexpected exception from Plugin: java.lang.NullPointerException. Please check Node Manager log and/or server 'ohs1' log for detailed information.>


The domain_dir\system_components\OHS\save\ohs_nm.log shows:

<2013-11-05 13:55:43> <INFO> <OHS-0> <Domain initialized for C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain>
<2013-11-05 13:58:50> <INFO> <OHS-4018> <Starting server ohs1>
<2013-11-05 13:58:50> <SEVERE> <OHS-0> <null>
<2013-11-05 14:05:07> <INFO> <OHS-4018> <Starting server ohs1>
<2013-11-05 14:05:07> <SEVERE> <OHS-0> <null> 

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms