Hello,
I am connecting to a handful of RMI Schedulers across the globe. One particular RMI Scheduler instance is in Sydney, Australia and the client is located in the NorthEast of the US. When I try to connect to the RMI Schedulers from the distant client I eventually receive a timeout after about 40 seconds. Is there a timeout set within quartz? Could there be a configuration property for quartz to extend timeouts or would a certain rmi property help (I have tried some to no avail)?
I have 2 other RMI objects binded on that server that I can connect to without a timeout occuring. Those objects I connect/setup using Spring Remoting.
Any ideas. The following is a stacktrace of the timeout.
Thanks in advance,
Anthony Bargnesi
org.quartz.SchedulerException: Error communicating with remote scheduler. [See nested exception: java.rmi.ConnectException: Connection refused to host: 172.16.10.97; nested exception is:
java.net.ConnectException: Connection timed out: connect]
at org.quartz.impl.RemoteScheduler.invalidateHandleCr eateException(RemoteScheduler.java:135)
at org.quartz.impl.RemoteScheduler.getSchedulerName(R emoteScheduler.java:149)
at org.quartz.impl.SchedulerRepository.bind(Scheduler Repository.java:80)
at org.quartz.impl.DirectSchedulerFactory.createRemot eScheduler(DirectSchedulerFactory.java:226)
at com.aquent.benchmark.SchedulerFactory.createRMISch eduler(SchedulerFactory.java:15)
at com.aquent.benchmark.BenchmarkInstanceProxy.afterP ropertiesSet(BenchmarkInstanceProxy.java:41)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1091)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:396)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:233)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:283)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:313)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:87)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:72)
at com.aquent.benchmark.ControllerInstance.start(Cont rollerInstance.java:32)
at com.aquent.benchmark.ControllerInstance.main(Contr ollerInstance.java:72)
* Nested Exception (Underlying Cause) ---------------
java.rmi.ConnectException: Connection refused to host: 172.16.10.97; nested exception is:
java.net.ConnectException: Connection timed out: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEnd point.java:574)
at sun.rmi.transport.tcp.TCPChannel.createConnection( TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCP Channel.java:171)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:9 4)
at org.quartz.core.QuartzScheduler_Stub.getSchedulerN ame(Unknown Source)
at org.quartz.impl.RemoteScheduler.getSchedulerName(R emoteScheduler.java:147)
at org.quartz.impl.SchedulerRepository.bind(Scheduler Repository.java:80)
at org.quartz.impl.DirectSchedulerFactory.createRemot eScheduler(DirectSchedulerFactory.java:226)
at com.aquent.benchmark.SchedulerFactory.createRMISch eduler(SchedulerFactory.java:15)
at com.aquent.benchmark.BenchmarkInstanceProxy.afterP ropertiesSet(BenchmarkInstanceProxy.java:41)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1091)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:396)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:233)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:283)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:313)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:87)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:72)
at com.aquent.benchmark.ControllerInstance.start(Cont rollerInstance.java:32)
at com.aquent.benchmark.ControllerInstance.main(Contr ollerInstance.java:72)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:366)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.<init>(Socket.java:365)
at java.net.Socket.<init>(Socket.java:178)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.cre ateSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.cre ateSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEnd point.java:569)
... 19 more


Reply With Quote