«

»

Print this Post

Unexpected exception from Plugin: java.lang.NullPointerException starting OHS HTTP Server

the problem:¬†you used¬†DOMAIN/bin/installNodeMgrSvc.cmd to install the OHS node manager, and when starting the OHS using startComponent.cmd ohs1 you get –> Server start command for OHS server ‘ohs1’ failed due to: Unexpected exception from Plugin: java.lang.NullPointerException

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/dev2_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 message from Node Manager Server: 
[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.]. Please check Node Manager log for details.
Successfully disconnected from Node Manager.

Exiting WebLogic Scripting Tool.

Done

this is a bug! (16883059) fix this suckah by doing the following:

  1. you need to uninstall the nodemanager service
    cd DOMAIN\bin\
    uninstallNodeMgrSvc.cmd
  2. set the following java options first and then install the nodemanager service again:
    cd DOMAIN\bin
    set JAVA_OPTIONS=-Dohs.product.home=<product_home> -Dweblogic.rootdirectory=<domain_directory>
    installNodeMgrSvc.cmd

    example:

    -Dohs.product.home=C:\\Oracle\\Middleware\\Oracle_Home\\ohs -Dweblogic.rootdirectory=C:\\Oracle\\Middleware\\Oracle_Home\\user_projects\\domains\\base_domain
    installNodeMgrSvc.cmd
  3. start the Nodemanager service
  4. start OHS using the startComponent.cmd command again. you should be all set

About devnumbertwo

IT consultant, software developer, technical writer, nba basketball spectator, tea (and occasionally coffee) drinker, cheese enthusiast, dog lover, and a person who once spotted heather locklear at the mall. chiggity check me out on twitter and
Unexpected exception from Plugin: java.lang.NullPointerException starting OHS HTTP Server was last modified: June 16th, 2014 by devnumbertwo

Permanent link to this article: http://devnumbertwo.com/unexpected-exception-from-plugin-java-lang-nullpointerexception/