Ad Widget

Collapse

What is the reason for this below error?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sriram ganesh
    Junior Member
    • Aug 2013
    • 5

    #1

    What is the reason for this below error?

    java.io.EOFException]
    at com.zabbix.gateway.JMXItemChecker.getValues(JMXIte mChecker.java:100) ~[zabbix-java-gateway-2.0.6.jar:na]
    at com.zabbix.gateway.SocketProcessor.run(SocketProce ssor.java:63) ~[zabbix-java-gateway-2.0.6.jar:na]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:895) [na:1.6.0_45]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:918) [na:1.6.0_45]
    at java.lang.Thread.run(Thread.java:662) [na:1.6.0_45]
    Caused by: 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:
    java.io.EOFException]
    at javax.management.remote.rmi.RMIConnector.connect(R MIConnector.java:338) ~[na:1.6.0_45]
    at javax.management.remote.JMXConnectorFactory.connec t(JMXConnectorFactory.java:248) ~[na:1.6.0_45]
    at com.zabbix.gateway.JMXItemChecker.getValues(JMXIte mChecker.java:92) ~[zabbix-java-gateway-2.0.6.jar:na]
    ... 4 common frames omitted
    Caused by: javax.naming.CommunicationException: null
    at com.sun.jndi.rmi.registry.RegistryContext.lookup(R egistryContext.java:101) ~[na:1.6.0_45]
    at com.sun.jndi.toolkit.url.GenericURLContext.lookup( GenericURLContext.java:185) ~[na:1.6.0_45]
    at javax.naming.InitialContext.lookup(InitialContext. java:392) ~[na:1.6.0_45]
    at javax.management.remote.rmi.RMIConnector.findRMISe rverJNDI(RMIConnector.java:1886) ~[na:1.6.0_45]
    at javax.management.remote.rmi.RMIConnector.findRMISe rver(RMIConnector.java:1856) ~[na:1.6.0_45]
    at javax.management.remote.rmi.RMIConnector.connect(R MIConnector.java:255) ~[na:1.6.0_45]
    ... 6 common frames omitted
    Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.io.EOFException
    at sun.rmi.transport.tcp.TCPChannel.createConnection( TCPChannel.java:286) ~[na:1.6.0_45]
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCP Channel.java:184) ~[na:1.6.0_45]
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java: 322) ~[na:1.6.0_45]
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) ~[na:1.6.0_45]
    at com.sun.jndi.rmi.registry.RegistryContext.lookup(R egistryContext.java:97) ~[na:1.6.0_45]
    ... 11 common frames omitted
    Caused by: java.io.EOFException: null
    at java.io.DataInputStream.readByte(DataInputStream.j ava:250) ~[na:1.6.0_45]
    at sun.rmi.transport.tcp.TCPChannel.createConnection( TCPChannel.java:228) ~[na:1.6.0_45]
    ... 15 common frames omitted
    Hi,
    This is happen when monitoring the java process via java gateway.
    thanks,
    -Sriram G
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    Not sure but look like a communication problem.
    If you have firewalls between then that could be the problem.
    As I remember the communication require more then on port - and at least one is dynamic allocated.
    Yes now I found the post - look in post #5:

    BR
    Erik

    Comment

    • sriram ganesh
      Junior Member
      • Aug 2013
      • 5

      #3
      Is possible to connect java gateway with JVM directly?

      thank you very much for the reply.

      I need to monitor all the java process running locally. So I don't want to specify any port number in JMX interface of that host. Is this possible?
      or it is possible to connect zabbix agent with zabbix java gateway?

      Thanks
      -Sriram G
      Last edited by sriram ganesh; 23-08-2013, 07:50.

      Comment

      Working...