semaifour / myschedule

Automatically exported from code.google.com/p/myschedule
0 stars 1 forks source link

Unable to load class JdbcSchedulerHistoryPlugin with jdk 1.5 #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Set the jdk version to jdk 1.5
2.run the code with myschedule-extra.jar 

What is the expected output? What do you see instead?
The scheduler should run instead I get an error 

org.quartz.SchedulerException: SchedulerPlugin class 
'myschedule.quartz.extra.JdbcSchedulerHistoryPlugin' could not be instantiated. 
[See nested exception: java.lang.ClassNotFoundException: Unable to load class 
myschedule.quartz.extra.JdbcSchedulerHistoryPlugin by any known loaders.]
    at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1024)
    at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1484)
    at com.macys.dyces.ea.plugin.PluginExample.run(PluginExample.java:31)
    at com.macys.dyces.ea.plugin.PluginExample.main(PluginExample.java:17)
Caused by: java.lang.ClassNotFoundException: Unable to load class 
myschedule.quartz.extra.JdbcSchedulerHistoryPlugin by any known loaders.
    at org.quartz.simpl.CascadingClassLoadHelper.loadClass(CascadingClassLoadHelper.java:126)
    at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1021)
    ... 3 more
Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class 
file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at org.quartz.simpl.InitThreadContextClassLoadHelper.loadClass(InitThreadContextClassLoadHelper.java:72)
    at org.quartz.simpl.CascadingClassLoadHelper.loadClass(CascadingClassLoadHelper.java:114)
    ... 4 more
---Scheduler Initialized---
------- (Not Scheduling any Jobs - relying on XML definitions --
------- Starting Scheduler ----------------
Exception in thread "main" java.lang.NullPointerException
    at com.macys.dyces.ea.plugin.PluginExample.run(PluginExample.java:43)
    at com.macys.dyces.ea.plugin.PluginExample.main(PluginExample.java:17)

Original issue reported on code.google.com by ani...@gmail.com on 22 Mar 2012 at 4:35

GoogleCodeExporter commented 9 years ago
Our distribution is build by JDK6, so you will get that error when loading with 
JDK5.

If you want to use JDK5, then you will have to compile and build your own jar. 
There might be few JDK api that's not compatible too, so you need to fix that.

JDK5 is very old, and will not be supported.

Original comment by saltnlight5 on 22 Mar 2012 at 10:29

GoogleCodeExporter commented 9 years ago

Original comment by saltnlight5 on 3 Jun 2012 at 1:34