Getting below exception while executing quartz client

126 views
Skip to first unread message

Swapnil Bari

unread,
Jan 16, 2017, 10:39:05 PM1/16/17
to webdriver
Quartz Server Properties:
prop.put("org.quartz.scheduler.rmi.export", "true");
prop.put("org.quartz.scheduler.rmi.createRegistry", "true");
prop.put("org.quartz.scheduler.rmi.registryHost", "localhost");
prop.put("org.quartz.scheduler.rmi.registryPort", "1099");
prop.put("org.quartz.scheduler.rmi.serverPort","0");            
prop.put("org.quartz.threadPool.class", "org.quartz.simpl.SimpleThreadPool");
prop.put("org.quartz.threadPool.threadCount", "2");

Quartz Client Properties:
prop.put("quartz.scheduler.instanceName", "ServerScheduler");
prop.put("org.quartz.scheduler.rmi.proxy", "true");
prop.put("org.quartz.scheduler.rmi.registryHost", "localhost");
prop.put("org.quartz.scheduler.rmi.registryPort", "1099");
prop.put("org.quartz.threadPool.class", "org.quartz.simpl.SimpleThreadPool");
prop.put("org.quartz.threadPool.threadCount", "1");

Quartz Server is running and shows log as below:
2017-01-14 18:34:17.883  INFO 33292 --- [           main] org.quartz.core.QuartzScheduler          : Scheduler bound to RMI registry under name 'QuartzScheduler_$_NON_CLUSTERED'
2017-01-14 18:34:17.891  INFO 33292 --- [           main] org.quartz.core.QuartzScheduler          : Scheduler meta-data: Quartz Scheduler (v2.2.3) 'QuartzScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - access via RMI.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 2 threads.
  Using job-store 'org.quartz.impl.jdbcjobstore.JobStoreTX' - which supports persistence. and is not clustered.

Exception:
org.quartz.SchedulerException: Error communicating with remote scheduler. [See nested exception: java.rmi.ConnectException: Connection refused to host: 192.168.50.1; nested exception is:
        java.net.ConnectException: Connection timed out: connect]
        at org.quartz.impl.RemoteScheduler.invalidateHandleCreateException(RemoteScheduler.java:129)
        at org.quartz.impl.RemoteScheduler.getSchedulerName(RemoteScheduler.java:142)
        at org.quartz.impl.SchedulerRepository.bind(SchedulerRepository.java:79)
        at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:707)
        at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1525)
        at com.xxs.jobscheduler.QuartzClientApplication.main(QuartzClientApplication.java:34)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:58)
Caused by: java.rmi.ConnectException: Connection refused to host: 192.168.50.1; nested exception is:
        java.net.ConnectException: Connection timed out: connect
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at org.quartz.core.QuartzScheduler_Stub.getSchedulerName(Unknown Source)
        at org.quartz.impl.RemoteScheduler.getSchedulerName(RemoteScheduler.java:140)
        ... 12 more
Caused by: java.net.ConnectException: Connection timed out: connect
        at java.net.DualStackPlainSocketImpl.connect0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)

Thanks in advance.

darrell grainger

unread,
Jan 17, 2017, 8:11:42 AM1/17/17
to webdriver
What is your WebDriver question?
Reply all
Reply to author
Forward
0 new messages