Hi there,
I tried using JmxTrans on Jonas 5.1.5 on Linux (remotely, then locally), then on SoapUI on WinXP Pro SP3 (locally), but got the exception shown in subject.
Feels like I'm missing something big time..
When pointing JmxTrans to itself (port 2101), it works perfectly, but otherwise : ./jmxtrans.sh start simple.json
[15 oct. 2013 16:54:04] [ServerScheduler_Worker-1] 297 DEBUG (com.googlecode.jmxtrans.jobs.ServerJob:31) - +++++ Started server job: Server [host=127.0.0.1, port=1481, url=null, cronExpression=null, numQueryThreads=null]
[15 oct. 2013 16:54:04] [ServerScheduler_Worker-1] 312 ERROR (com.googlecode.jmxtrans.jobs.ServerJob:41) - Error
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at com.googlecode.jmxtrans.util.JmxUtils.getServerConnection(JmxUtils.java:351)
at com.googlecode.jmxtrans.util.JmxConnectionFactory.makeObject(JmxConnectionFactory.java:31)
at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212)
at com.googlecode.jmxtrans.jobs.ServerJob.execute(ServerJob.java:37)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
simple.json :
{
"servers" : [ {
"host" : "127.0.0.1",
"port" : "1481",
"queries" : [ {
"obj" : "java.lang:type=Memory",
"attr" : [ "HeapMemoryUsage" ],
"outputWriters" : [ {
"@class" : "com.googlecode.jmxtrans.model.output.KeyOutWriter",
"settings" : {
"outputFile" : "keyout.txt",
"maxLogFileSize" : "10MB",
"maxLogBackupFiles" : 200,
"debug" : true,
"typeNames" : ["name"]
}
} ]
} ]
} ]
}
Using jmxtrans-20131005.085505.7d66dbf55a & jdksun_1.6.0_22
The soapUI process started listening on 1481 after jconsole successfully connected to it.. (jconsole does it every time) ; before, there was no such listening port open..
Any hints appreciated.