devnumbertwo - $h!t for developers

View Original

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

See this content in the original post

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