Topic
  • 5 replies
  • Latest Post - ‏2007-11-12T15:12:26Z by alban_igems
SystemAdmin
SystemAdmin
1215 Posts

Pinned topic PMI application using JMX

‏2005-07-04T18:30:40Z |
Hi All,

I am a newbie to WAS and I am trying to write a PMI program sample given by this article "IBM WebSphere Developer Technical Journal: Writing PMI applications using the JMX interface".

http://www-128.ibm.com/developerworks/websphere/techjournal/0402_qiao/0402_qiao.html

What I would like to do is to use the PMI/JMX interface to extract JDBC connection pool settings on the server. I've also enabled the PMI on the server before I run the program. I've verified it working using Tivoli Performance Manager. Btw, I am using WAS5.1 on XP.

When I run the script, I am getting the error below. It seems to me that the PMI admin client cannot connect to the admin server via SOAP. I tried RMI approach too but to no avail.

Is there anything that I am missing out ? Do I have to enable anything to get the SOAP or RMI connection working ?

Has anybody one similar thing ? Any help is greatly appreciated. Many thanks.

Regards,
Win

=======================================
USING SOAP:

C:\>"C:\WAS51\WebSphere\AppServer\bin\jmxJDBCstat.bat" -host cmstc1s -port 9080
-connector SOAP -refreshRate 1

Connect to cmstc1s:9080:SOAP
com.ibm.websphere.management.exception.AdminException
at JmxJDBCStat.getAdminClient(JmxJDBCStat.java:305)
at JmxJDBCStat.main(JmxJDBCStat.java:60)
Caused by: com.ibm.websphere.management.exception.ConnectorException: ADMC0016E:
Could not create SOAP Connector to connect to host cmstc1s at port 9080
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
inClientFactory.java:354)
at JmxJDBCStat.getAdminClient(JmxJDBCStat.java:299)
... 1 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:79)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:43)
at java.lang.reflect.Constructor.newInstance(Constructor.java:313)
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
inClientFactory.java:285)
... 2 more
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException

at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SO
APConnectorClient.java:250)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPC
onnectorClient.java:183)
... 7 more
Caused by: [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response
content type "text/html; charset=utf-8", must be: "text/xml&quot
;. Response was:
Error 404: No target servlet configured for uri: /
]
at org.apache.soap.rpc.Call.getEnvelopeString(Unknown Source)
at org.apache.soap.rpc.Call.invoke(Unknown Source)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient$2.run(SOAPCo
nnectorClient.java:233)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessControll
er.java:111)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SO
APConnectorClient.java:230)
... 8 more
  • Begin backtrace for nested exception
com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: Could not
create SOAP Connector to connect to host cmstc1s at port 9080
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
inClientFactory.java:354)
at JmxJDBCStat.getAdminClient(JmxJDBCStat.java:299)
at JmxJDBCStat.main(JmxJDBCStat.java:60)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:79)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:43)
at java.lang.reflect.Constructor.newInstance(Constructor.java:313)
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
inClientFactory.java:285)
... 2 more
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException

at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SO
APConnectorClient.java:250)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPC
onnectorClient.java:183)
... 7 more
Caused by: [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response
content type "text/html; charset=utf-8", must be: "text/xml&quot
;. Response was:
Error 404: No target servlet configured for uri: /
]
at org.apache.soap.rpc.Call.getEnvelopeString(Unknown Source)
at org.apache.soap.rpc.Call.invoke(Unknown Source)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient$2.run(SOAPCo
nnectorClient.java:233)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessControll
er.java:111)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SO
APConnectorClient.java:230)
... 8 more
  • Begin backtrace for nested exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:79)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:43)
at java.lang.reflect.Constructor.newInstance(Constructor.java:313)
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
inClientFactory.java:285)
at JmxJDBCStat.getAdminClient(JmxJDBCStat.java:299)
at JmxJDBCStat.main(JmxJDBCStat.java:60)
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException

at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SO
APConnectorClient.java:250)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPC
onnectorClient.java:183)
... 7 more
Caused by: [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response
content type "text/html; charset=utf-8", must be: "text/xml&quot
;. Response was:
Error 404: No target servlet configured for uri: /
]
at org.apache.soap.rpc.Call.getEnvelopeString(Unknown Source)
at org.apache.soap.rpc.Call.invoke(Unknown Source)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient$2.run(SOAPCo
nnectorClient.java:233)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessControll
er.java:111)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SO
APConnectorClient.java:230)
... 8 more
getAdminClient: exception

==================================================================
USING RMI:

C:\>"C:\WAS51\WebSphere\AppServer\bin\jmxJDBCstat.bat" -host cmstc1s -port 9080
-connector RMI -refreshRate 1

Connect to cmstc1s:9080:RMI
com.ibm.websphere.management.exception.AdminException
at JmxJDBCStat.getAdminClient(JmxJDBCStat.java:305)
at JmxJDBCStat.main(JmxJDBCStat.java:60)
Caused by: com.ibm.websphere.management.exception.ConnectorException: ADMC0017E:
Could not create RMI Connector to connect to host cmstc1s at port 9080
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
inClientFactory.java:461)
at JmxJDBCStat.getAdminClient(JmxJDBCStat.java:299)
... 1 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:79)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:43)
at java.lang.reflect.Constructor.newInstance(Constructor.java:313)
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
inClientFactory.java:395)
... 2 more
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException

at com.ibm.ws.management.connector.rmi.RMIConnectorClient.reconnect(RMIC
onnectorClient.java:225)
at com.ibm.ws.management.connector.rmi.RMIConnectorClient.<init>(RMIConn
ectorClient.java:109)
... 7 more
Caused by: javax.naming.CommunicationException: A communication failure occurred
while attempting to obtain an initial context with the provider URL: "corbaloc:
iiop:cmstc1s:9080/WsnAdminNameService". Make sure that any bootstrap address in
formation in the URL is correct and that the target name server is running. A b
ootstrap address with no port specification defaults to port 2809. Possible cau
ses other than an incorrect bootstrap address or unavailable name server include
the network environment and workstation network configuration. [Root exception
is org.omg.CORBA.COMM_FAILURE: purge_calls:1218 reason=1 state=5 vmcid: IBM mi
nor code: 306 completed: Maybe]
at com.ibm.ws.naming.util.WsnInitCtxFactory.mapInitialReferenceFailure(W
snInitCtxFactory.java:1857)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getCosRootContext(WsnInitCtx
Factory.java:1020)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(Wsn
InitCtxFactory.java:688)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCt
xFactory.java:583)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(Ws
nInitCtxFactory.java:481)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:40
8)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:131)
at javax.naming.InitialContext.lookup(InitialContext.java:360)
at com.ibm.ws.management.connector.rmi.RMIConnectorClient.reconnect(RMIC
onnectorClient.java:216)
... 8 more
  • Begin backtrace for nested exception
com.ibm.websphere.management.exception.ConnectorException: ADMC0017E: Could not
create RMI Connector to connect to host cmstc1s at port 9080
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
inClientFactory.java:461)
at JmxJDBCStat.getAdminClient(JmxJDBCStat.java:299)
at JmxJDBCStat.main(JmxJDBCStat.java:60)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:79)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:43)
at java.lang.reflect.Constructor.newInstance(Constructor.java:313)
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
inClientFactory.java:395)
... 2 more
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException

at com.ibm.ws.management.connector.rmi.RMIConnectorClient.reconnect(RMIC
onnectorClient.java:225)
at com.ibm.ws.management.connector.rmi.RMIConnectorClient.<init>(RMIConn
ectorClient.java:109)
... 7 more
Caused by: javax.naming.CommunicationException: A communication failure occurred
while attempting to obtain an initial context with the provider URL: "corbaloc:
iiop:cmstc1s:9080/WsnAdminNameService". Make sure that any bootstrap address in
formation in the URL is correct and that the target name server is running. A b
ootstrap address with no port specification defaults to port 2809. Possible cau
ses other than an incorrect bootstrap address or unavailable name server include
the network environment and workstation network configuration. [Root exception
is org.omg.CORBA.COMM_FAILURE: purge_calls:1218 reason=1 state=5 vmcid: IBM mi
nor code: 306 completed: Maybe]
at com.ibm.ws.naming.util.WsnInitCtxFactory.mapInitialReferenceFailure(W
snInitCtxFactory.java:1857)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getCosRootContext(WsnInitCtx
Factory.java:1020)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(Wsn
InitCtxFactory.java:688)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCt
xFactory.java:583)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(Ws
nInitCtxFactory.java:481)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:40
8)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:131)
at javax.naming.InitialContext.lookup(InitialContext.java:360)
at com.ibm.ws.management.connector.rmi.RMIConnectorClient.reconnect(RMIC
onnectorClient.java:216)
... 8 more
  • Begin backtrace for nested exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:79)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:43)
at java.lang.reflect.Constructor.newInstance(Constructor.java:313)
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
inClientFactory.java:395)
at JmxJDBCStat.getAdminClient(JmxJDBCStat.java:299)
at JmxJDBCStat.main(JmxJDBCStat.java:60)
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException

at com.ibm.ws.management.connector.rmi.RMIConnectorClient.reconnect(RMIC
onnectorClient.java:225)
at com.ibm.ws.management.connector.rmi.RMIConnectorClient.<init>(RMIConn
ectorClient.java:109)
... 7 more
Caused by: javax.naming.CommunicationException: A communication failure occurred
while attempting to obtain an initial context with the provider URL: "corbaloc:
iiop:cmstc1s:9080/WsnAdminNameService". Make sure that any bootstrap address in
formation in the URL is correct and that the target name server is running. A b
ootstrap address with no port specification defaults to port 2809. Possible cau
ses other than an incorrect bootstrap address or unavailable name server include
the network environment and workstation network configuration. [Root exception
is org.omg.CORBA.COMM_FAILURE: purge_calls:1218 reason=1 state=5 vmcid: IBM mi
nor code: 306 completed: Maybe]
at com.ibm.ws.naming.util.WsnInitCtxFactory.mapInitialReferenceFailure(W
snInitCtxFactory.java:1857)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getCosRootContext(WsnInitCtx
Factory.java:1020)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(Wsn
InitCtxFactory.java:688)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCt
xFactory.java:583)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(Ws
nInitCtxFactory.java:481)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:40
8)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:131)
at javax.naming.InitialContext.lookup(InitialContext.java:360)
at com.ibm.ws.management.connector.rmi.RMIConnectorClient.reconnect(RMIC
onnectorClient.java:216)
... 8 more
getAdminClient: exception

================================================
Updated on 2007-11-12T15:12:26Z at 2007-11-12T15:12:26Z by alban_igems
  • SystemAdmin
    SystemAdmin
    1215 Posts

    Re: PMI application using JMX

    ‏2005-07-19T15:19:00Z  
    I am having the exact same problem and with different WAS servers - my local server within WSAD and an external WAS on a linux system. I can't get past this and can't find much information on it via google. If you find the answer, please post as reply (I'll do the same).
  • SystemAdmin
    SystemAdmin
    1215 Posts

    Re: PMI application using JMX

    ‏2005-09-05T22:54:16Z  
    Hi,

    I got a similar error while trying to run HATS LE and fixed it by going into the WAS admin console and following the instruction at;

    http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/xrun_jvm_sendredirect.html

    I hope this helps,

    Paul.
  • SystemAdmin
    SystemAdmin
    1215 Posts

    Re: PMI application using JMX

    ‏2006-06-09T21:41:38Z  
    Hi,

    I got a similar error while trying to run HATS LE and fixed it by going into the WAS admin console and following the instruction at;

    http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/xrun_jvm_sendredirect.html

    I hope this helps,

    Paul.
    So did u set the property mentioned in at URL. Did u set it to true or false.
    Suman
  • alban_igems
    alban_igems
    2 Posts

    Re: PMI application using JMX

    ‏2007-11-08T19:26:48Z  
    Hi All,

    I am a newbie to Websphere & java. I am also getting similar error. I have an IBM supplied pmi client (pmicmd) based on a jar file which is called through WSlauncher through a batch file. My problem is that, it is able to retrieve the PMI parameter values if Global security is not enabled. However when security is enabled in Websphere server (6.1), I am getting the following error:

    C:\>\WebSphere\AppServer\bin\pmicmd.bat -host localhost -port 8880 -connector SO
    AP -isSecurityEnabled 1 -user sysdep -pwd WAS12345 -cmd getobjstats -mtyp
    e DynaCache
    WSVR0027I: The product will expire in 23 days.
    Nov 8, 2007 6:11:45 PM com.ibm.ws.ssl.config.SSLConfigManager
    INFO: ssl.disable.url.hostname.verification.CWPKI0027I
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:64)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:263)
    Caused by: com.ibm.websphere.management.exception.ConnectorException: ADMC0053E:
    The system cannot create a SOAP connector to connect to host localhost at port
    8880 with SOAP connector security enabled.
    at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
    inClientFactory.java:476)
    at com.ibm.websphere.fvt.pmi.pmicmd.createAdminClient(pmicmd.java:747)
    at com.ibm.websphere.fvt.pmi.pmicmd.runCommand(pmicmd.java:109)
    at com.ibm.websphere.fvt.pmi.pmicmd.main(pmicmd.java:94)
    ... 5 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:67)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
    at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
    inClientFactory.java:331)
    ... 8 more
    Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException
    : [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.net.
    SocketException; targetException=java.lang.IllegalArgumentException: Error openi
    ng socket: java.net.SocketException]
    at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SO
    APConnectorClient.java:338)
    at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPC
    onnectorClient.java:175)
    ... 13 more
    Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket:
    java.net.SocketException; targetException=java.lang.IllegalArgumentException: Er
    ror opening socket: java.net.SocketException]
    at org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown Source
    )
    at org.apache.soap.rpc.Call.invoke(Unknown Source)
    at com.ibm.ws.management.connector.soap.SOAPConnectorClient$4.run(SOAPCo
    nnectorClient.java:311)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessControll
    er.java:118)
    at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SO
    APConnectorClient.java:296)
    ... 14 more

    When I try to use the same username and password to stop the WAS server it works okay. Is there anything I am missing here ?

    Thanks in advance,

    Alban
  • alban_igems
    alban_igems
    2 Posts

    Re: PMI application using JMX

    ‏2007-11-12T15:12:26Z  
    Hi All,

    I am a newbie to Websphere & java. I am also getting similar error. I have an IBM supplied pmi client (pmicmd) based on a jar file which is called through WSlauncher through a batch file. My problem is that, it is able to retrieve the PMI parameter values if Global security is not enabled. However when security is enabled in Websphere server (6.1), I am getting the following error:

    C:\>\WebSphere\AppServer\bin\pmicmd.bat -host localhost -port 8880 -connector SO
    AP -isSecurityEnabled 1 -user sysdep -pwd WAS12345 -cmd getobjstats -mtyp
    e DynaCache
    WSVR0027I: The product will expire in 23 days.
    Nov 8, 2007 6:11:45 PM com.ibm.ws.ssl.config.SSLConfigManager
    INFO: ssl.disable.url.hostname.verification.CWPKI0027I
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:64)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:263)
    Caused by: com.ibm.websphere.management.exception.ConnectorException: ADMC0053E:
    The system cannot create a SOAP connector to connect to host localhost at port
    8880 with SOAP connector security enabled.
    at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
    inClientFactory.java:476)
    at com.ibm.websphere.fvt.pmi.pmicmd.createAdminClient(pmicmd.java:747)
    at com.ibm.websphere.fvt.pmi.pmicmd.runCommand(pmicmd.java:109)
    at com.ibm.websphere.fvt.pmi.pmicmd.main(pmicmd.java:94)
    ... 5 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:67)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
    at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Adm
    inClientFactory.java:331)
    ... 8 more
    Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException
    : [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.net.
    SocketException; targetException=java.lang.IllegalArgumentException: Error openi
    ng socket: java.net.SocketException]
    at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SO
    APConnectorClient.java:338)
    at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPC
    onnectorClient.java:175)
    ... 13 more
    Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket:
    java.net.SocketException; targetException=java.lang.IllegalArgumentException: Er
    ror opening socket: java.net.SocketException]
    at org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown Source
    )
    at org.apache.soap.rpc.Call.invoke(Unknown Source)
    at com.ibm.ws.management.connector.soap.SOAPConnectorClient$4.run(SOAPCo
    nnectorClient.java:311)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessControll
    er.java:118)
    at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SO
    APConnectorClient.java:296)
    ... 14 more

    When I try to use the same username and password to stop the WAS server it works okay. Is there anything I am missing here ?

    Thanks in advance,

    Alban
    I was able to resolve this by including the following parameters in soap.client.props file.

    com.ibm.SOAP.securityEnabled
    com.ibm.SOAP.loginUserID
    com.ibm.SOAP.loginPassword
    com.ibm.SOAP.loginSource
    com.ibm.ssl.keyStore
    com.ibm.ssl.keyStorePassword
    com.ibm.ssl.keyStoreType
    com.ibm.ssl.keyStoreProvider
    com.ibm.ssl.keyStoreFileBased
    com.ibm.ssl.trustStore
    com.ibm.ssl.trustStorePassword
    com.ibm.ssl.trustStoreType
    com.ibm.ssl.trustStoreProvider
    com.ibm.ssl.trustStoreFileBased

    Initially I assumed that these values will be retrieved from ssl.client.props file because of the line "com.ibm.ssl.alias=DefaultSSLSettings" in both soap.client.props and ssl.client.props. Somehow that didn't work.

    1. ./pmicmd.sh -host micheline -port 8880 -connector SOAP -cmd getobjstats -mtype JVM
    Nov 11, 2007 10:09:59 PM com.ibm.ws.ssl.config.SSLConfig
    WARNING: ssl.default.password.in.use.CWPKI0041W
    Nov 11, 2007 10:10:00 PM com.ibm.ws.ssl.config.SSLConfigManager
    INFO: ssl.disable.url.hostname.verification.CWPKI0027I
    queryMBean: WebSphere:type=Server,*
    queryMBean: found 1
    queryMBean: WebSphere:type=Perf,*
    queryMBean: found 1
    queryMBean: WebSphere:type=PerfPrivate,*
    queryMBean: found 1

    executing command: getobjstats
    queryMBean: WebSphere:type=JVM,*
    queryMBean: found 1
    target mbean: JVM
    isStatisticProvider = true

    HeapSize, The total memory (in KBytes) in the Java virtual machine run time., KILOBYTE, 1194835542915, 1194836965389
    Results,Sun Nov 11 22:10:03 EST 2007,JVM,HeapSize,81054, hwm = 81054, lwm = 51200

    FreeMemory, The free memory (in KBytes) in the Java virtual machine run time., KILOBYTE, 1194835542914, 1194837003853
    Results,Sun Nov 11 22:10:03 EST 2007,JVM,FreeMemory,232

    UsedMemory, The amount of used memory (in KBytes) in the Java virtual machine run time., KILOBYTE, 1194835542914, 1194837003853
    Results,Sun Nov 11 22:10:03 EST 2007,JVM,UsedMemory,80822

    UpTime, The amount of time (in seconds) that the Java virtual machine has been running., SECOND, 1194835542914, 1194837003853
    Results,Sun Nov 11 22:10:03 EST 2007,JVM,UpTime,1460

    ProcessCpuUsage, The CPU Usage (in percent) of the Java virtual machine., N/A, 1194835542910, 1194837003856
    Results,Sun Nov 11 22:10:03 EST 2007,JVM,ProcessCpuUsage,0

    Thanks,

    Alban