My Oracle Support Banner

DCS-10001 error when running odacli describe-component (Doc ID 2769697.1)

Last updated on MAY 13, 2021

Applies to:

Oracle Database Appliance X7-2 HA Hardware - Version All Versions and later
Information in this document applies to any platform.

Symptoms

An error occurs when you run the following command:

# odacli describe-component
DCS-10001:Internal error encountered: java.lang.String cannot be cast to com.oracle.dcs.agent.model.DbSystemNodeComponents.

 

You should see output similar to the following in dcs-agent.log on node0:

2020-07-13 18:50:17,330 ERROR [DescribeSystemComponent with Node Information Node] [] c.o.d.a.t.TaskNodeWait: ZK Wait Timed out. DCS Server Node might be Offline: node_1
2020-07-13 18:50:17,332 DEBUG [DescribeSystemComponent with Node Information Node] [] c.o.d.a.t.TaskZJsonRpcExt: Task[id: TaskZJsonRpcExt_84, TaskName: DescribeSystemComponent with Node Information Node] got exception:
! com.oracle.dcs.commons.exception.DcsTaskFailureException: ZK Wait Timed out. DCS Server Node might be Offline: node_1
! at com.oracle.dcs.agent.task.TaskNodeWait.call(TaskNodeWait.java:60)
! at com.oracle.dcs.agent.task.TaskZJsonRpcExt.callInternal(TaskZJsonRpcExt.java:81)
! at com.oracle.dcs.agent.task.TaskZJsonRpc.call(TaskZJsonRpc.java:182)
! at com.oracle.dcs.agent.task.TaskZJsonRpc.call(TaskZJsonRpc.java:26)
! at com.oracle.dcs.commons.task.TaskWrapper.call(TaskWrapper.java:82)
! at com.oracle.dcs.commons.task.TaskApi.call(TaskApi.java:37)
! at com.oracle.dcs.agent.service.DcsAgent.DescribeComponentService.describeDbSystemComponent(DescribeComponentService.java:115)
! at com.oracle.dcs.agent.rest.DescribeSystemComponentApi.describeSystemComponent(DescribeSystemComponentApi.java:65)
! at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
! at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
! at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 :

! at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
! at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
! at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:760)
! at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:678)
! at java.lang.Thread.run(Thread.java:748)
2020-07-13 18:50:17,333 DEBUG [dw-44 - GET /describesystemcomponent] [] c.o.d.c.e.CatchRuntimeExpMapper: got RuntimeException java.lang.ClassCastException: java.lang.String cannot be cast to com.oracle.dcs.agent.model.DbSystemNodeComponents, msg=java.lang.String cannot be cast to com.oracle.dcs.agent.model.DbSystemNodeComponents
2020-07-13 18:50:17,333 ERROR [dw-44 - GET /describesystemcomponent] [] c.o.d.c.e.CatchRuntimeExpMapper: com.oracle.dcs.agent.service.DcsAgent.DescribeComponentService.describeDbSystemComponent(DescribeComponentService.java:116)
com.oracle.dcs.agent.rest.DescribeSystemComponentApi.describeSystemComponent(DescribeSystemComponentApi.java:65)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)

 :

org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:760)
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:678)
java.lang.Thread.run(Thread.java:748)

2020-07-13 18:50:17,336 DEBUG [dw-44 - GET /describesystemcomponent] [] c.o.d.c.n.MessageUtil: load locale as en_US
2020-07-13 18:50:17,336 DEBUG [dw-44 - GET /describesystemcomponent] [] c.o.d.c.e.DcsExceptionMapper: Got DcsException DcsException{errorHttpCode=InternalError, msg=Internal error encountered: java.lang.String cannot be cast to com.oracle.dcs.agent.model.DbSystemNodeComponents., msgId=10001, causedBy=java.lang.ClassCastException: java.lang.String cannot be cast to com.oracle.dcs.agent.model.DbSystemNodeComponents}

 

You should see output similar to the following in dcs-agent.log on node1:

2020-07-13 18:50:35,535 ERROR [DescribeSystemComponent with Node Information Node] [] c.o.d.c.j.JsonRequestProcessor: RPC request invocation failed on request: {"classz":"com.oracle.dcs.agent.rpc.service.patching.DescribeComponentActions","method":"describeDbSystemInfo","params":[{"type":"java.util.ArrayList","value":["oak","gi","opatch","dbsystemversion","dcsagent","ilom","bios","os","firmwarecontroller","firmwareexpander","firmwaredisk","asr"]}],"revertable":false,"threadId":46}
! java.lang.NullPointerException: null
! at com.oracle.dcs.agent.rpc.service.gi.GiUtils.getGiHomeName(GiUtils.java:1089)
! at com.oracle.dcs.agent.rpc.service.patching.PatchingComponents.getListOfSubcomponentsForComponent(PatchingComponents.java:224)
! at com.oracle.dcs.agent.utils.patching.BmsPatchingUtils.buildSystemPatches(BmsPatchingUtils.java:1317)
! at com.oracle.dcs.agent.utils.patching.BmsPatchingUtils.buildSystemPatchInfo(BmsPatchingUtils.java:1299)
! at com.oracle.dcs.agent.rpc.service.patching.DescribeComponentActions.describeDbSystemInfo(DescribeComponentActions.java:99)
! 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:498)
! at com.oracle.dcs.commons.jrpc.JsonRequestProcessor.invokeRequest(JsonRequestProcessor.java:33)

 :

! at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
! at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
! at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:760)
! at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:678)
! at java.lang.Thread.run(Thread.java:748)
2020-07-13 18:50:35,536 DEBUG [DescribeSystemComponent with Node Information Node] [] c.o.d.a.t.TaskZJsonRpcExt: Task[id: TaskZJsonRpcExt_71, TaskName: DescribeSystemComponent with Node Information Node] got exception:
! com.oracle.dcs.commons.exception.DcsTaskFailureException: DCS-10001:Internal error encountered: null.
! at com.oracle.dcs.agent.task.TaskZJsonRpc.processJsonResponse(TaskZJsonRpc.java:58)
! at com.oracle.dcs.agent.task.TaskZJsonRpcExt.callInternal(TaskZJsonRpcExt.java:72)
! at com.oracle.dcs.agent.task.TaskZJsonRpc.call(TaskZJsonRpc.java:182)
! at com.oracle.dcs.agent.task.TaskZJsonRpc.call(TaskZJsonRpc.java:26)
! at com.oracle.dcs.commons.task.TaskWrapper.call(TaskWrapper.java:82)
! at com.oracle.dcs.commons.task.TaskApi.call(TaskApi.java:37)
! at com.oracle.dcs.agent.service.DcsAgent.DescribeComponentService.describeDbSystemComponent(DescribeComponentService.java:115)
! at com.oracle.dcs.agent.rest.DescribeSystemComponentApi.describeSystemComponent(DescribeSystemComponentApi.java:65)
! 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:498)

 :

! at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:760)
! at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:678)
! at java.lang.Thread.run(Thread.java:748)
2020-07-13 18:50:35,537 DEBUG [dw-46 - GET /describesystemcomponent] [] c.o.d.c.e.CatchRuntimeExpMapper: got RuntimeException java.lang.ClassCastException: java.lang.String cannot be cast to com.oracle.dcs.agent.model.DbSystemNodeComponents, msg=java.lang.String cannot be cast to com.oracle.dcs.agent.model.DbSystemNodeComponents
2020-07-13 18:50:35,537 ERROR [dw-46 - GET /describesystemcomponent] [] c.o.d.c.e.CatchRuntimeExpMapper: com.oracle.dcs.agent.service.DcsAgent.DescribeComponentService.describeDbSystemComponent(DescribeComponentService.java:116)
com.oracle.dcs.agent.rest.DescribeSystemComponentApi.describeSystemComponent(DescribeSystemComponentApi.java:65)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)

 :

org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:760)
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:678)
java.lang.Thread.run(Thread.java:748)

2020-07-13 18:50:35,537 DEBUG [dw-46 - GET /describesystemcomponent] [] c.o.d.c.e.DcsExceptionMapper: Got DcsException DcsException{errorHttpCode=InternalError, msg=Internal error encountered: java.lang.String cannot be cast to com.oracle.dcs.agent.model.DbSystemNodeComponents., msgId=10001, causedBy=java.lang.ClassCastException: java.lang.String cannot be cast to com.oracle.dcs.agent.model.DbSystemNodeComponents}

 

"odacli describe-component" has the following consequences with the -local option:

At node0:

# odacli descrive-component --local

System Version
---------------
18.5.0.0.0

System node Name
---------------
oda-web-p01

Local System Version
---------------
18.5.0.0.0

Component                                Installed Version Available Version
---------------------------------------- -------------------- --------------------
OAK                                       18.5.0.0.0 up-to-date

GI                                        18.5.0.0.190115 up-to-date

DB                                        18.5.0.0.190115 up-to-date

DCSAGENT                                  18.5.0.0.0 up-to-date

ILOM                                      4.0.4.21.r126801 up-to-date

BIOS                                      41040100 up-to-date

OS                                        6.10 up-to-date

FIRMWARECONTROLLER                        13.00.00.00 up-to-date

FIRMWAREEXPANDER                          0309 0306

FIRMWAREDISK {
[ c0d0,c0d1 ]                             0121 0112
[ c1d0,c1d1,c1d2,c1d3,c1d4,c1d5,c1d6,     A170 a122
c1d7,c1d8,c1d9,c1d10,c1d11,c1d12,c1d13,
c2d0,c2d1,c2d2,c2d3,c2d4,c2d5,c2d6,c2d7,
c2d8,c2d9,c2d10,c2d11,c2d12,c2d13 ]
}

ASR                                       18.3.1 up-to-date

 

At Node1:

# odacli descrive-component --local

DCS-10001:Internal error encountered: java.lang.String cannot be cast to com.oracle.dcs.agent.model.DbSystemNodeComponents.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.