I am using RMI connector to add notification listener to an Mbean. (jboss 3.2.5) All work well at startup. The client can receive all remote notification sent by Mbean. But after jboss run several hours, there is an exception while Mbean is sending out notification:
java.lang.reflect.UndeclaredThrowableException at $Proxy42.handleNotification(Unknown Source) at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:98) at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:81) at test.NotificationMgr.sendNotification(Unknown Source) at test.NotificationMgr.handleNotification(Unknown Source) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invokeMethod.java:324) at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138) at $Proxy37.handleNotification(Unknown Source) at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:98) at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:81) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138) ... 26 more Caused by: org.jboss.util.NestedRuntimeException: Connection refused to host: 192.168.0.1; nested exception is: java.net.ConnectException: Connection timed out; - nested throwable: (java.rmi.ConnectException: Connection refused to host: 192.168.0.1; nested exception is: java.net.ConnectException: Connection timed out) at org.jboss.jmx.connector.notification.RMINotificationListener.handleNotification(RMINotificationListener.java:74) ... 30 more Caused by: java.rmi.ConnectException: Connection refused to host: 192.168.0.1; nested exception is: java.net.ConnectException: Connection timed out at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101) at org.jboss.jmx.connector.notification.RMIClientNotificationListener_Stub.handleNotification(Unknown Source) at org.jboss.jmx.connector.notification.RMINotificationListener.handleNotification(RMINotificationListener.java:71) ... 30 more Caused by: java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.(Socket.java:309) at java.net.Socket.(Socket.java:124) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562) ... 35 more Any help? Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3888079#3888079 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3888079 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user