Home > Back-end >  Problem for a Class not found so assuming code is running on a pre - j9 JVM
Problem for a Class not found so assuming code is running on a pre - j9 JVM

Time:12-09

When start the project to the problem, very afflictive, baidu along while also have no solution, for bosses to have a look at this how to solve the
 14:29:04 2020-07-24. 41512-394 the DEBUG [main] o.apache.tomcat.util.com. Pat Jre9Compat: Class not found so assuming code is running on a pre - j9 JVM 

Java. Lang. ClassNotFoundException: Java. Lang. Reflect. InaccessibleObjectException
The at java.net.URLClassLoader.findClass (URLClassLoader. Java: 381) ~ [na: 1.8.0 comes with _181]
The at Java. Lang. This. LoadClass (424). This Java: ~ [na: 1.8.0 comes with _181]
At sun. Misc. The Launcher $AppClassLoader. LoadClass (349). The Launcher Java: ~ [na: 1.8.0 comes with _181]
The at Java. Lang. This. LoadClass (357). This Java: ~ [na: 1.8.0 comes with _181]
The at Java. Lang. Class. ForName0 (Native Method) ~ [na: 1.8.0 comes with _181]
The at Java. Lang. Class.forname (Class. Java: 264) ~ [na: 1.8.0 comes with _181]
At org.apache.tomcat.util.com, pat. Jre9Compat. & lt; Clinit> (Jre9Compat. Java: 81) ~ [tomcat embed - core - 9.0.36. Jar: 9.0.36]
At org.apache.tomcat.util.com, pat. JreCompat. & lt; Clinit> (JreCompat. Java: 55) [tomcat - embed - core - 9.0.36. Jar: 9.0.36]
The at org. Apache. Catalina. Startup. Tomcat. & lt; Clinit> (Tomcat. Java: 1276) [Tomcat - embed - core - 9.0.36. Jar: 9.0.36]
At org. Springframework. Boot. Web. Embedded. Tomcat. TomcatServletWebServerFactory. GetWebServer (TomcatServletWebServerFactory. Java: 177) [spring - the boot - 2.3.1. The jar: 2.3.1. RELEASE]
At org. Springframework. Boot. Web. Servlet. Context. ServletWebServerApplicationContext. CreateWebServer (ServletWebServerApplicationContext. Java: 178) [spring - the boot - 2.3.1. The jar: 2.3.1. RELEASE]
At org. Springframework. Boot. Web. Servlet. Context. ServletWebServerApplicationContext. OnRefresh (ServletWebServerApplicationContext. Java: 158) [spring - the boot - 2.3.1. The jar: 2.3.1. RELEASE]
The at org. Springframework. Context. Support. AbstractApplicationContext. Refresh (AbstractApplicationContext. Java: 545) [spring - the context - 5.2.7. The jar: 5.2.7. RELEASE]
At org. Springframework. Boot. Web. Servlet. Context. ServletWebServerApplicationContext. Refresh (ServletWebServerApplicationContext. Java: 143) [spring - the boot - 2.3.1. The jar: 2.3.1. RELEASE]
At org. Springframework. Boot. SpringApplication. Refresh (SpringApplication. Java: 758) [spring - the boot - 2.3.1. The jar: 2.3.1. RELEASE]
At org. Springframework. Boot. SpringApplication. Refresh (SpringApplication. Java: 750) [spring - the boot - 2.3.1. The jar: 2.3.1. RELEASE]
At org. Springframework. Boot. SpringApplication. RefreshContext (SpringApplication. Java: 397) [spring - the boot - 2.3.1. The jar: 2.3.1. RELEASE]
At org. Springframework. Boot. SpringApplication. Run (SpringApplication. Java: 315) [spring - the boot - 2.3.1. The jar: 2.3.1. RELEASE]
At org. Springframework. Boot. SpringApplication. Run (SpringApplication. Java: 1237) [spring - the boot - 2.3.1. The jar: 2.3.1. RELEASE]
At org. Springframework. Boot. SpringApplication. Run (SpringApplication. Java: 1226) [spring - the boot - 2.3.1. The jar: 2.3.1. RELEASE]
At com. Asc. Interfaceapi. InterfaceapiApplication. Main (InterfaceapiApplication. Java: 10)/classes/: na

CodePudding user response:

Use the high version of the JDK, 9 or more
  • Related