java.lang.UnsupportedClassVersionError: javax/servlet/ServletContext : Unsupported major.minor version 51.0

csdn.net | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    运行junit测试报javax/servlet/ServletContext : Unsupported major.minor version 51.0错误 - kucoll的专栏 - 博客频道 - CSDN.NET

    csdn.net | 6 months ago
    java.lang.UnsupportedClassVersionError: javax/servlet/ServletContext : Unsupported major.minor version 51.0
  2. 0

    POI - Dev - Build failed in Jenkins: POI #895

    nabble.com | 4 weeks ago
    java.lang.UnsupportedClassVersionError: com/graphbuilder/curve/Point : Unsupported major.minor version 51.0

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.UnsupportedClassVersionError

      javax/servlet/ServletContext : Unsupported major.minor version 51.0

      at java.lang.ClassLoader.defineClass1()
    2. Java RT
      Class.getDeclaredConstructor
      1. java.lang.ClassLoader.defineClass1(Native Method)
      2. java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
      3. java.lang.ClassLoader.defineClass(ClassLoader.java:615)
      4. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
      5. java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
      6. java.net.URLClassLoader.access$000(URLClassLoader.java:58)
      7. java.net.URLClassLoader$1.run(URLClassLoader.java:197)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      10. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      11. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      12. java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      13. java.lang.Class.getDeclaredConstructors0(Native Method)
      14. java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)
      15. java.lang.Class.getConstructor0(Class.java:2708)
      16. java.lang.Class.getDeclaredConstructor(Class.java:1987)
      16 frames
    3. Spring Beans
      BeanUtils.instantiateClass
      1. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:105)
      1 frame
    4. Spring TestContext
      SpringJUnit4ClassRunner.<init>
      1. org.springframework.test.context.TestContextManager.retrieveTestExecutionListeners(TestContextManager.java:232)
      2. org.springframework.test.context.TestContextManager.<init>(TestContextManager.java:120)
      3. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTestContextManager(SpringJUnit4ClassRunner.java:120)
      4. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.<init>(SpringJUnit4ClassRunner.java:109)
      4 frames
    5. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      4 frames
    6. JUnit
      ClassRequest.getRunner
      1. org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)
      2. org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)
      3. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
      4. org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
      5. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
      6. org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
      6 frames
    7. JUnit4 Runner
      JUnit4TestLoader.loadTests
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)
      2. org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)
      3. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:48)
      4. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)
      4 frames
    8. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      4 frames