[jboss-jira] [JBoss JIRA] (REMJMX-84) Jboss JMX: Operation failed with status WAITING

Abhishek Apoorva (JIRA) issues at jboss.org
Wed May 21 07:40:56 EDT 2014


    [ https://issues.jboss.org/browse/REMJMX-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969320#comment-12969320 ] 

Abhishek Apoorva commented on REMJMX-84:
----------------------------------------

we took below mentioned steps to replace the xion jar files. We are using single jboss-client jar to connect to different jboss server. 

1. we deleted xion directory (including files and all its subfolder) from d:/client/jboss-client.jar.
2. copied the xnio-api-3.2.2.Final,xnio-nio-3.2.2.Final jar files at d:/client/ location.

Then we have started jboss server and our client application. But still after some time we have found that we are intermittently getting "java.lang.RuntimeException: Operation failed with status WAITING" exception on client side. We have also not able to see any concrete error or useful logs on jboss side. If server is not able to create a jmx connection then I think it should log error with some meaningful data.

Our application :

Our application is periodically connecting to Jboss-jmx server (Let say in every 60 seconds). Our appplication referring to jboss-client-jar that resides on d:/client/ location.

1. We are trying to get an object of connecting JMXConnector using JMXConnectorFactory.
2. we are getting value of some specified mbeans.
3. After this we are disconnecting our jmx connector.
4. same steps are repeated in every 60 seconds.

Sample program to fetch mBean information.

void createConnection(String port,String name)
    {
       Hashtable environment = new Hashtable();
              environment.put("remote.connection.default.connect.timeout", 5000);
              String urlString = "service:jmx:remoting-jmx://localhost:"+port;     
              JMXConnector connector=null ;

              try {
                     JMXServiceURL serviceURL = new JMXServiceURL(urlString);
                     connector = JMXConnectorFactory.connect(serviceURL, environment);
                     logger.log(0,new Date()+" successful "+name);

					 // Fetching mBean information here.
              } catch (Exception e) {
                     logger.logStackTrace(0, e);

              }
              finally{
                     if(connector!=null)
                     {
                           try {
                                  connector.close();
                                  logger.log(0,"closing connection");
                           } catch (IOException e) {
                                  logger.logStackTrace(0, e);
                           }
                     }
              }
              
    }





> Jboss JMX: Operation failed with status WAITING 
> ------------------------------------------------
>
>                 Key: REMJMX-84
>                 URL: https://issues.jboss.org/browse/REMJMX-84
>             Project: Remoting JMX
>          Issue Type: Bug
>         Environment: jboss-as-7.1.1.Final on windows server
>            Reporter: Abhishek Apoorva
>            Assignee: David Lloyd
>
> Version : jboss-as-7.1.1.Final on windows server
> I am getting below mentioned strange issue intermittently while fetching 
> Jboss JMX Mbean.
> Can anyone help me to find the real cause of the issue? Secong thing is why it is coming intermittently either it should come always or it should not come at all.
> JMXConnectorFactory.connect(serviceURL, environment);
> While executing above mentioned line system is throwing below mentioned exception.
> {noformat}
> May 08 02:30:53:375 [DC#0, jboss] java.lang.RuntimeException: Operation failed with status WAITING
> 	at org.jboss.remotingjmx.RemotingConnector.internalRemotingConnect(RemotingConnector.java:216)
> 	at org.jboss.remotingjmx.RemotingConnector.internalConnect(RemotingConnector.java:143)
> 	at org.jboss.remotingjmx.RemotingConnector.connect(RemotingConnector.java:94)
> 	at javax.management.remote.JMXConnectorFactory.connect(Unknown Source)
> 	at com.nimsoft.nimbus.probe.application.jboss.JmxConnection.createConnection(JmxConnection.java:68)
> 	at com.nimsoft.nimbus.probe.application.jsr160.Entity.createConnection(Entity.java:1772)
> 	at com.nimsoft.nimbus.probe.application.jsr160.Entity.getValue(Entity.java:1567)
> 	at com.nimsoft.nimbus.probe.application.extractbase.Extract.processMonitor(Extract.java:1324)
> 	at com.nimsoft.nimbus.probe.application.extractbase.Extract.processResource(Extract.java:1908)
> 	at com.nimsoft.nimbus.probe.application.extractbase.Extract$DataCollector.run(Extract.java:1158)
> 	at java.lang.Thread.run(Unknown Source)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jboss-jira mailing list