JMX Client -MalformedURLException

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications JMX Client -MalformedURLException
# 1  
Old 05-18-2012
JMX Client -MalformedURLException

Hi

I am writing a JMX client to fetch the MBeans and its attributes. i am able to display weblogic MBeans using the following code snippet. But my requirement is it should run on Unix box. I copied same client onto unix, then i am getting the following error.

Code:
<b>MalformedURLExceptionjava.net.MalformedURLException: Unsupported protocol: t3</b>

Code Snippet:


Code:
try
{
String protocol =
"t3";
Integer portInteger = Integer.valueOf(portString); int port = portInteger.intValue(); String jndiroot = "/jndi/"; String mserver = "weblogic.management.mbeanservers.runtime"; JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, port,jndiroot + mserver); Hashtable h = new Hashtable(); h.put(Context.SECURITY_PRINCIPAL, username); h.put(Context.SECURITY_CREDENTIALS, password); h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,"weblogic.management.remote"); connector = JMXConnectorFactory.connect(serviceURL, h); connection = connector.getMBeanServerConnection(); }catch(MalformedURLException me){ System.out.println("MalformedURLException"+me); } catch(IOException ie){ System.out.println("IOException"+ie); } catch(Exception e){ System.out.println("Exception"+e);
}


Thanks
tripleM

Last edited by radoulov; 05-18-2012 at 07:28 AM..
# 2  
Old 05-18-2012
No duplicate posting, please read the rules!
Your previous post is here.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

JMX Client MalformedURLException

Hi I am writing a JMX client to fetch the MBeans and its attributes. i am able to display weblogic MBeans using the following code snippet. But my requirement is it should run on Unix box. I copied same client onto unix, then i am getting the following error. ... (0 Replies)
Discussion started by: tripleM
0 Replies

2. AIX

NIM : remove nim client info from the client

Hi. I change my client's IP and hostname but I forgot to change anything on the master. How can I redefine or modify my client's resource from my master, or with using smit niminit from my client ? Tks (2 Replies)
Discussion started by: stephnane
2 Replies

3. Solaris

SSH Client

Hi Gurus, I need an SSH client to connect to a Solaris server from windows and run a few scripts. I am able to put/pull files using "psftp" using below command: psftp -l <username> -pw <password> <hostname> -b <batchfile> However i am unable to find an equivalent for ssh. I tried... (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies

4. Programming

JMX monitoring on unix server

Hi All, I am new to JMX.Can anybody tell me how to use this it on unix server. Using JMX i want to check the system monitoring(%cpu utilization , size utilization )how to start JMX on UNIX Thanks Double post, continued (9 Replies)
Discussion started by: aish11
9 Replies

5. Shell Programming and Scripting

JMX monitoring on UNIX

Hi All, I am new to JMX.Can anybody tell me how to use this it on unix server. Using JMX i want to check the system monitoring(%cpu utilization , size utilization )how to start JMX on UNIX Thanks (3 Replies)
Discussion started by: aish11
3 Replies

6. Programming

Client/Server Socket Application - Preventing Client from quitting on server crash

Problem - Linux Client/Server Socket Application: Preventing Client from quitting on server crash Hi, I am writing a Linux socket Server and Client using TCP protocol on Ubuntu 9.04 x64. I am having problem trying to implement a scenario where the client should keep running even when the... (2 Replies)
Discussion started by: varun.nagpaal
2 Replies

7. HP-UX

SSH client

As user root and with some users I can use ssh to connect to remote hosts. But with a specific user I can't use ssh client because: $ ssh OpenSSL version mismatch. Built against 90807f, you have 90703f Is it a $PATH problem or what? HP-UX version is 11.11. (2 Replies)
Discussion started by: untamed
2 Replies

8. Programming

Multihomed Client

Hi, I am writing a socket program at the moment that uses both of the clients network interfaces. The program tries to create two socket connections to the server over a LAN connection and a GPRS connection. I have tried to update the routing table using the route command but that proved... (0 Replies)
Discussion started by: mhynes
0 Replies

9. UNIX for Dummies Questions & Answers

SSH client

How can I use ssh client with proxy support? If possible: with proxy chain support. :) (2 Replies)
Discussion started by: zylwyz
2 Replies
Login or Register to Ask a Question