Ops Center CLI credentials module command results in a java exception (Doc ID 2109365.1)

Last updated on FEBRUARY 26, 2016

Applies to:

Enterprise Manager Ops Center - Version 12cR3 (12.3) to 12cR3 (12.3) [Release 12.0]
Information in this document applies to any platform.

Symptoms

 -bash-4.1# /opt/SUNWoccli/bin/oc

Oracle Enterprise Manager Ops Center
Copyright (c) 2007, 2015 Oracle and/or its affiliates. All rights reserved.
Use is subject to license terms.

Use the -connect- command to get started
The tab key will always show the available command set

xvmSh > version
CLI version: 12.3.1.1418
Platform: Java-1.8.0_45-Java_HotSpot-TM-_64-Bit_Server_VM,_25.45-b02,_Oracle_Corporation-on-SunOS-5.11-sparcv9
Jython Version: 2.7.0
xvmSh > credentials
Active connection required for mode [credentials]
xvmSh > connect
localhost > credentials
localhost/credentials > list
Driver Credentials:
ID | Name | Type | Description |
--------------------------------------------------------------------------------
2058 | user1 | SNMP |
2052 | user2 | SSH | None
localhost/credentials > list -l 2058
Driver Credentials:
ID | Name | Type | Description | Attributes |
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
An unexpected Exception occurred : [<type 'java.lang.NullPointerException'>: java.lang.NullPointerException]
java.lang.NullPointerException
at java.io.StringReader.<init>(StringReader.java:50)
at com.sun.hss.domain.util.json.JSONTokener.<init>(JSONTokener.java:66)
at com.sun.xvm.services.common.json.JSONTokener.<init>(JSONTokener.java:59)
at com.sun.xvm.services.common.json.JSONObject.<init>(JSONObject.java:306)
at com.sun.xvm.services.common.json.JSONUtils.jsonToMap(JSONUtils.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
at org.python.core.PyObject.__call__(PyObject.java:461)
at org.python.core.PyObject.__call__(PyObject.java:465)
at occli.xvm_discovery$py.JSONtoPy$7(/opt/SUNWoccli/share/lib/occli/xvm_discovery.py:159)
at occli.xvm_discovery$py.call_function(/opt/SUNWoccli/share/lib/occli/xvm_discovery.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:138)
at org.python.core.PyFunction.__call__(PyFunction.java:413)
at occli.xvm_discovery$py.print_credentials$4(/opt/SUNWoccli/share/lib/occli/xvm_discovery.py:104)
at occli.xvm_discovery$py.call_function(/opt/SUNWoccli/share/lib/occli/xvm_discovery.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:153)
at org.python.core.PyFunction.__call__(PyFunction.java:423)
at occli.modes.credentialsModes$py.listCredentials$3(/opt/SUNWoccli/share/lib/occli/modes/credentialsModes.py:34)
at occli.modes.credentialsModes$py.call_function(/opt/SUNWoccli/share/lib/occli/modes/credentialsModes.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:170)
at org.python.core.PyFunction.__call__(PyFunction.java:434)
at org.python.core.PyMethod.__call__(PyMethod.java:156)
at occli.mode$py.handle$57(/opt/SUNWoccli/share/lib/occli/mode.py:515)
at occli.mode$py.call_function(/opt/SUNWoccli/share/lib/occli/mode.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCo

Changes

 None known

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