UnsupportedClassVersionError-AMQPSpout:风暴拓扑未运行

时间:2013-12-25 11:57:16

标签: java rabbitmq amqp apache-storm

尝试提交风暴拓扑时,

./storm jar /home/winoria1/Desktop/stormtopology.jar com.storm.StormTopology 

我收到以下错误 -

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/rapportive/storm/spout/AMQPSpout : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at com.winoria.frequest.SuggestionTopology.main(SuggestionTopology.java:28)

我的java版本是

winoria1 @ winoria:〜$ java -version

java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.4)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

winoria1 @ winoria:〜$ javac -version

javac 1.6.0_27
winoria1@winoria:~$ 

任何人都请帮帮我.....

1 个答案:

答案 0 :(得分:5)

主要版本51表示此类是使用java 7编译的。 您需要升级java才能运行它。