Forum Stats

  • 3,836,753 Users
  • 2,262,182 Discussions


OCDoctor and error

user551374 Member Posts: 3 Blue Ribbon
edited Jul 23, 2018 5:45PM in Enterprise Manager Ops Center


When trying to run on the EC host, as root, The following error is seen:

[email protected]:~# /var/opt/sun/xvm/OCDoctor/toolbox/ all

Exception in thread "main" java.lang.NullPointerException
        at assetcounter.AssetCounter.getAllAgents(
        at assetcounter.AssetCounter.main(
ERROR: Java program exited with error code 1!
[email protected]:~# view /var/opt/sun/xvm/OCDoctor/toolbox/
[email protected]:~#

Does anyone know this error and what can be done about it?


  • User12616849-Oracle
    User12616849-Oracle Member Posts: 7
    edited Jul 23, 2018 5:45PM


    The error seems to be noting a trouble accessing the information via java.    This would typically be related to the Enterprise Controller instance where this command should be run from as the root user account.     You can manually run the script with the -v to add verbosity.      The script also looks to use alternate arguments than the "all" value please see if any of the arguments helps provide more details to help understand why there is a null pointer complaint.

    # /var/opt/sun/xvm/OCDoctor/toolbox/ -v all

    Output type can be one of: <standard/all/machine/agent>

This discussion has been closed.