473,385 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to create groovy client? getting an error, below.

59
how to create groovy client? getting an error, below.


start up jboss with following paremater:
Expand|Select|Wrap|Line Numbers
  1. set JAVA_OPTS= -Djava.rmi.server.hostname=localhost
  2.                -Dcom.sun.management.jmxremote.ssl=false
  3.                -Dcom.sun.management.jmxremote.authenticate=true
  4.                -Dcom.sun.management.jmxremote.password.file=C:\Java\jdk1.7.0\jre\lib\management\jmxremote.password
  5.                -Dcom.sun.management.jmxremote.access.file=C:\Java\jdk1.7.0\jre\lib\management\jmxremote.access"


test jboss is started:
Expand|Select|Wrap|Line Numbers
  1. http://localhost:9999/
  2. username: abc
  3. password: abc1#


Groovy script:
Expand|Select|Wrap|Line Numbers
  1. import javax.management.ObjectName
  2. import javax.management.remote.JMXConnectorFactory as JmxFactory
  3. import javax.management.remote.JMXServiceURL as JmxUrl
  4. import groovy.swing.SwingBuilder
  5. import javax.swing.WindowConstants as WC
  6.  
  7.  
  8. // Connect to server
  9. def serverUrl = 'service:jmx:rmi:///jndi/rmi://localhost:9999/jmxrmi'
  10. def server = JmxFactory.connect(new JmxUrl(serverUrl)).MBeanServerConnection
  11. def serverInfo = new GroovyMBean(server, 'Catalina:type=Server').serverInfo
  12. println "Connected to: $serverInfo"






Error:

Expand|Select|Wrap|Line Numbers
  1. Exception thrown
  2.  
  3. java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
  4.     java.net.SocketTimeoutException: Read timed out]
  5.     at jmxClient.run(jmxClient.groovy:10)
  6.  
  7. Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
  8.     java.net.SocketTimeoutException: Read timed out]
  9.     at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118)
  10.     at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)
  11.     ... 1 more
  12.  
  13. Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
  14.     java.net.SocketTimeoutException: Read timed out
  15.     at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:114)
  16.     ... 2 more
  17.  
  18.  
  19. Caused by: java.net.SocketTimeoutException: Read timed out
  20.     ... 3 more
Jun 30 '14 #1
0 1216

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Gil | last post by:
trying to use a template in a vector, in Visual Studio 6 on Windows 2000 #include <vector> using namespace std; template <typename T> class AnyValue { T val;
3
by: IMS.Rushikesh | last post by:
Hi Friends, My work is stuck up because of this unresolvable and unbelievable Error. I'm trying to Serialize my Class object using XmlSerialization. And at below line, I m getting "error File...
3
by: Gary Varga | last post by:
In the file WebUIValidation.js, when a postback that doesn't fail the validation has a javascript error saying summary is undefined in the ValidationSummaryOnSubmit function....
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
3
by: Freebeerboy | last post by:
Hi, it would be fantastic if anyone could suggest a solution to this problem. I've written an ASP.Net (VB) application which uses stored procedures in Oracle. All seems fine, except occasionally...
1
by: denappel | last post by:
Hi all, We're currently developping an asp.net 2.0 project, and ran into a problem with the new menu control. At the first load of the page, no errors are generated, but after a first...
5
by: Archana | last post by:
Hi all, I am having application where i am downloading xml content using webrequest. my code is as below HttpWebRequest lWebRequest = (HttpWebRequest) WebRequest.Create(URL); HttpWebResponse...
2
by: sony.m.2007 | last post by:
Hi, When i try to set a value for a session variable I'm getting a object refence not set error I tried two methods as below HttpContext.Current.Session.Add("AppStartTime", DateTime.Now);...
0
by: =?Utf-8?B?UmF2aQ==?= | last post by:
Hi, I have WCF service and integrated with STS (WS-Federation). The Service exposes 5 endpoints Win, UNT and Federated Windows, Federated UNT and Mex endpoint. My STS Service exposes 3 endpoints...
2
by: bandy | last post by:
Hi there sorry If I posted this thread under wrong head. When I am trying to run my site I am getting error as Internal Server Error, but when I refresh page , i get result properly. I don't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.