Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JMX Admin Client Blues

9 views
Skip to first unread message

uni...@yahoo.com

unread,
Aug 7, 2006, 7:00:32 PM8/7/06
to
I am trying to connect to a remote server and I am getting this error. The system.out log says this

Any help is appreciated.

System.out
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[8/1/06 11:14:49:502 CDT] 0000000a RoleBasedConf W loadSecurityPolicy: cannot load AdminOperations ,continue with the default mbean security policy.
[8/1/06 11:14:49:767 CDT] 0000000a JMXSoapAdapte A ADMC0013I: The SOAP connector is available at port 8880
[8/1/06 11:14:51:158 CDT] 0000000a distSecurityC I SECJ0243I: Security service started successfully

But I get this error
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: Could not create SOAP Connector to connect to host ACDV0548 at port 8880
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:368)
at com.rps.was.jmx.JMXRemoteClientApp.createAdminClient(JMXRemoteClientApp.java:64)
at com.rps.was.jmx.JMXRemoteClientApp.main(JMXRemoteClientApp.java:42)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:299)
... 2 more
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:251)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPConnectorClient.java:184)
... 7 more
Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error parsing HTTP status line &quot;...&quot;: java.util.NoSuchElementException; targetException=java.lang.IllegalArgumentException: Error parsing HTTP status line : java.util.NoSuchElementException]
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$2.run(SOAPConnectorClient.java:234)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:231)
... 8 more

amru...@yahoo.com

unread,
Aug 8, 2006, 8:46:30 AM8/8/06
to
Even i am facing the same problem.I have enabled security and made relative changes in soap.client.props and client program.
What could be the possible solution?
Also how can we make self signed certificate trusted?

Stephen Cocks

unread,
Aug 8, 2006, 1:04:57 PM8/8/06
to
There's very little information to work with from just the exception stack.
What version of WAS are you using?
How are you invoking your client from the command line? Have you run
setupCmdLine or otherwise set up some classpath?
Is security enabled?

--
Stephen Cocks

<uni...@yahoo.com> wrote in message
news:1590287241.115499166...@ltsgwas010.sby.ibm.com...

m...@pricken.com

unread,
Aug 10, 2006, 8:01:56 AM8/10/06
to
I have had the same problem.

I solved it by adding these rows when creating the AdminClient. This is if your using the default key and trustStore. If in unix change path to Dummy-files.

props.setProperty(AdminClient.USERNAME, "wasadmin");
props.setProperty(AdminClient.PASSWORD, "SecretPwd");
props.setProperty(AdminClient.CONNECTOR_SECURITY_ENABLED, "true");
props.setProperty("javax.net.ssl.trustStore", "C:/was51/AppServer/etc/DummyClientTrustFile.jks");

props.setProperty("javax.net.ssl.keyStore", "C:/was51/AppServer/etc/DummyClientKeyFile.jks");

props.setProperty("javax.net.ssl.trustStorePassword", "WebAS");
props.setProperty("javax.net.ssl.keyStorePassword", "WebAS");


Hope this helps!

Manne Björkhagen
Websphere Consultant
Vipra Tech AB

0 new messages