Skip to Main Content

GoldenGate

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Please ask technical questions in the appropriate category. Thank you!

[OGG Monitoring] Coud not get WSInstance error when starting Jagent in GGSCI

user-zwdj4Apr 22 2023

Hi, I install Jagent and Monitor Server in the same machine. When I start Jagent via GGSCI, got this error:

[2023-04-21T21:02:31.327+07:00] [JAGENT] [ERROR] [OGGMON-20366] [com.goldengate.monitor.jagent.comm.ws.ManagerWSAdapter] [tid: getInstanceList] [ecid: 0000OU^7ucnFw000jzwkno1^GdTr000001,0] Could not get WSInstance Information , [[
com.goldengate.monitor.model.AgentCommunicationException: Failed to get Registry.
at com.goldengate.monitor.jagent.comm.ws.ManagerWSApi.getInstanceInfo(ManagerWSApi.java:239)
at com.goldengate.monitor.jagent.comm.ws.ManagerWSAdapter.getInstanceInfoNative(ManagerWSAdapter.java:105)
at com.goldengate.monitor.jagent.comm.impl.ManagerFacadeImpl.fillInstanceMap(ManagerFacadeImpl.java:259)
at com.goldengate.monitor.jagent.comm.impl.ManagerFacadeImpl.getInstances(ManagerFacadeImpl.java:253)
at com.goldengate.monitor.jagent.jmx.MBeansContainerImpl.createMBeans(MBeansContainerImpl.java:344)
at com.goldengate.monitor.jagent.jmx.MBeansContainerImpl$1.run(MBeansContainerImpl.java:836)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: source parameter must not be null
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:119)
at com.sun.xml.internal.ws.message.AbstractMessageImpl.readPayloadAsJAXB(AbstractMessageImpl.java:135)
at com.sun.xml.internal.ws.api.message.MessageWrapper.readPayloadAsJAXB(MessageWrapper.java:171)
at com.sun.xml.internal.ws.client.dispatch.JAXBDispatch.toReturnValue(JAXBDispatch.java:88)
at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:274)
at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:289)
at com.goldengate.monitor.jagent.comm.ws.ManagerService.getRegistry(ManagerService.java:267)
at com.goldengate.monitor.jagent.comm.ws.ManagerWSApi.getInstanceInfo(ManagerWSApi.java:230)
... 6 more

]]

Below is my Config.properties and oggmon.properties file

Config.properties

####################################################################
## jagent.host: Host name of the machine where jAgent is running ###
## Note: This host name has to be reachable from Monitor Server  ###
####################################################################
jagent.host=localhost

####################################################################
## jagent.jmx.port: jAgent's JMX port number                     ###
####################################################################
jagent.jmx.port=5556
####################################################################
## interval.regular, interval.quick:                             ###
## jAgent's regular and quick polling interval for new           ###
## Monitoring Point values.                                         ###
## Default values are 60 and 30 seconds                          ###
####################################################################
interval.regular=60
interval.quick=30
####################################################################
## monitor.host: Monitor Server host name.                        ###
## Note: This property has to be the same with the property:     ###
## monitor.jmx.server.host in monitor.properties file            ###
## on Monitor Server side                                        ###
####################################################################
monitor.host=localhost.localdomain
####################################################################
## monitor.jmx.port: Monitor Server JMX port number              ###
####################################################################
monitor.jmx.port=5502

####################################################################
## monitor.jmx.username: Monitor Server JMX username             ###
## This is the JMX username defined during Monitor Installation  ###
####################################################################
monitor.jmx.username=webjmx

####################################################################
## jagent.username: jAgent username                              ###
## It can be any name. This jAgent username will be passed to    ###
## Monitor Server during jAgent registration.                    ###
####################################################################
jagent.username=oggmajmxusr

oggmon.properties

# Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
#Oracle GoldenGate Monitor
#Thu May 02 16:27:01 PDT 2013
#JMX server is enabled by default (otherwise Agents cannot register), so property is optional
monitor.jmx.server.enabled=true
#JMX server's host name
# underscore in JMX server's hostname is not valid e.g. XXX_YZW is invalid JMX server's host name
monitor.jmx.server.host=localhost.localdomain
#Port that is bound by the JMX server
monitor.jmx.server.port=5502
#JMX server's user
monitor.jmx.server.user=webjmx
#Whether internal components are exposed as MBeans - useful for troubleshooting
#monitor.jmx.internal.mbeans.enabled=false

What ‘s WSInstance and how to fix it?

Comments
Post Details
Added on Apr 22 2023
1 comment
393 views