[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
RMI issue: java.lang.ClassNotFoundException: org.quartz.core.QuartzScheduler_Stub  XML
Forum Index -> Quartz
Author Message
Dckc

master

Joined: 09/08/2010 09:00:39
Messages: 59
Offline

Hi all,

I am using RMI quartz in a remote node to remotely sends jobs, I want to have the RMI register server in another computer 10.243.10.20, however I am getting the following error when the node starts up:

java.lang.ClassNotFoundException: org.quartz.core.QuartzScheduler_Stub

I must be doing something wrong as I googled this issue and it is very old.

I have tried many things, I am very struggled with this, the last thing I tried was:

java -Djava.rmi.server.codebase:file:lib/quartz-2.1.1.jar or -Djava.rmi.server.codebase:file:/c:/app/lib/quartz-2.1.1.jar

The node configuration is as follows:

Code:
 org.quartz.scheduler.instanceId	jobStore094id
 org.quartz.scheduler.instanceName	jobStore094
 org.quartz.scheduler.rmi.createRegistry	true
 org.quartz.scheduler.rmi.export	false // because I dont want to have it localhost but in the 10.243.10.20
 org.quartz.scheduler.rmi.registryHost	10.243.10.20
 org.quartz.scheduler.rmi.registryPort	2020
 org.quartz.scheduler.rmi.serverPort	5000
 org.quartz.scheduler.skipUpdateCheck	true
 


I very much appreciate any input.

Thank you

Daniel
adahanne

master

Joined: 03/20/2012 23:14:46
Messages: 78
Offline

hello, can you please send the log of your application and attach your quartz.properties ?
thanks
Dckc

master

Joined: 09/08/2010 09:00:39
Messages: 59
Offline

Hi Adahanne, thanks for your reply.

Just to sum up what I am trying to do is to say to quartz to create the RMI registry in another server.

This is the quartz server logs:
Code:
 
 May 7, 2012 3:18:02 PM org.quartz.impl.StdSchedulerFactory instantiate
 INFO: Using default implementation for ThreadExecutor
 May 7, 2012 3:18:02 PM org.quartz.core.SchedulerSignalerImpl <init>
 INFO: Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
 May 7, 2012 3:18:02 PM org.quartz.core.QuartzScheduler <init>
 INFO: Quartz Scheduler v.2.1.1 created.
 May 7, 2012 3:18:02 PM org.quartz.simpl.RAMJobStore initialize
 INFO: RAMJobStore initialized.
 May 7, 2012 3:18:02 PM org.quartz.core.QuartzScheduler shutdown
 INFO: Scheduler jobStore082_$_jobStore082id shutting down.
 May 7, 2012 3:18:02 PM org.quartz.core.QuartzScheduler standby
 INFO: Scheduler jobStore082_$_jobStore082id paused.
 May 7, 2012 3:18:03 PM org.quartz.core.QuartzScheduler shutdown
 INFO: Scheduler jobStore082_$_jobStore082id shutdown complete.
 org.quartz.SchedulerException: Unable to bind scheduler to RMI Registry. [See nested exception: java.rmi.ServerException: RemoteException occurred in serve
         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
         java.lang.ClassNotFoundException: org.quartz.core.QuartzScheduler_Stub]
 org.quartz.SchedulerException: Unable to bind scheduler to RMI Registry. [See nested exception: java.rmi.ServerException: RemoteException occurred in serve
         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
         java.lang.ClassNotFoundException: org.quartz.core.QuartzScheduler_Stub]
         at org.quartz.core.QuartzScheduler.initialize(QuartzScheduler.java:255)
         at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1304)
         at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1484)
         at JobStore.Jobsharvester.initJobStore(Jobsharvester.java:39)
         at JobStore.Jobsharvester.<init>(Jobsharvester.java:29)
         at harvester.HarvesterCtrl.initJobStore(HarvesterCtrl.java:920)
         at harvester.HarvesterCtrl.<init>(HarvesterCtrl.java:248)
         at harvester.HarvesterCtrl.<init>(HarvesterCtrl.java:48)
         at harvester.HarvesterCtrl$InstanceController.<clinit>(HarvesterCtrl.java:201)
         at harvester.HarvesterCtrl.getInstance(HarvesterCtrl.java:207)
         at Jobsharvester.HarvesterGUI$1.run(HarvesterGUI.java:85)
         at java.lang.Thread.run(Unknown Source)
 Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
         java.lang.ClassNotFoundException: org.quartz.core.QuartzScheduler_Stub
         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
         at sun.rmi.transport.Transport$1.run(Transport.java:159)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:662)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
         at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
         at sun.rmi.server.UnicastRef.invoke(Unknown Source)
         at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
         at org.quartz.core.QuartzScheduler.bind(QuartzScheduler.java:408)
         at org.quartz.core.QuartzScheduler.initialize(QuartzScheduler.java:253)
         ... 11 more
 Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
         java.lang.ClassNotFoundException: org.quartz.core.QuartzScheduler_Stub
         at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
         at sun.rmi.transport.Transport$1.run(Transport.java:159)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:662)
 Caused by: java.lang.ClassNotFoundException: org.quartz.core.QuartzScheduler_Stub
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:247)
         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:434)
         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
         at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
         at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
         at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)


This is the quartz server config:

Code:
 org.quartz.scheduler.instanceId	jobStore082id
 org.quartz.scheduler.instanceName	jobStore082
 org.quartz.scheduler.rmi.createRegistry	false
 org.quartz.scheduler.rmi.export	true
 org.quartz.scheduler.rmi.registryHost	10.243.50.195
 org.quartz.scheduler.rmi.registryPort	2025
 org.quartz.scheduler.rmi.serverPort	2030
 org.quartz.scheduler.skipUpdateCheck	true
 org.quartz.threadPool.threadCount	400
 org.quartz.threadPool.threadPriority	6
 


this is the conf file of the client that connects to that server:
Code:
 org.quartz.scheduler.instanceId	jobStore082id
 org.quartz.scheduler.instanceName	jobStore082
 org.quartz.scheduler.rmi.proxy	true
 org.quartz.scheduler.rmi.registryHost	10.243.50.195
 org.quartz.scheduler.rmi.registryPort	2025
 org.quartz.scheduler.rmi.serverPort	2030
 org.quartz.scheduler.skipUpdateCheck	true
 



I think I am overlooking something, but I still dont know why I am getting this class not found. am I using RMI right?

thanks
adahanne

master

Joined: 03/20/2012 23:14:46
Messages: 78
Offline

thanks.
which JDK version are you using ? 1.4, 5.0, 6.0 ?
Dckc

master

Joined: 09/08/2010 09:00:39
Messages: 59
Offline

I am using

java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)

Thank you.
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team