5

首次启动 Talend Open Studio 时出现错误

java.lang.NoSuchMethodException: sun.misc.Unsafe.defineClass(java.lang.String,[B,int,int,java.lang.ClassLoader,java.security.ProtectionDomain)
    at java.base/java.lang.Class.getDeclaredMethod(Class.java:2613)
    at org.apache.webbeans.proxy.Unsafe.lambda$unsafeDefineClass$2(Unsafe.java:163)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:312)
    at org.apache.webbeans.proxy.Unsafe.unsafeDefineClass(Unsafe.java:160)
    at org.apache.webbeans.proxy.Unsafe.defineAndLoadClass(Unsafe.java:126)
    at org.apache.webbeans.proxy.AbstractProxyFactory.createProxyClass(AbstractProxyFactory.java:280)
    at org.apache.webbeans.proxy.AbstractProxyFactory.createProxyClass(AbstractProxyFactory.java:250)
    at org.apache.webbeans.proxy.InterceptorDecoratorProxyFactory.createProxyClass(InterceptorDecoratorProxyFactory.java:216)
    at org.apache.webbeans.proxy.InterceptorDecoratorProxyFactory.createProxyClass(InterceptorDecoratorProxyFactory.java:188)
    at org.apache.webbeans.portable.AbstractProducer.defineInterceptorStack(AbstractProducer.java:105)
    at org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:1183)
    at org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:1104)
    at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:330)
    at org.apache.webbeans.lifecycle.AbstractLifeCycle.bootstrapApplication(AbstractLifeCycle.java:137)
    at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:103)
    at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:98)
    at org.apache.webbeans.servlet.WebBeansConfigurationListener.doStart(WebBeansConfigurationListener.java:207)
    at org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:85)
    at org.apache.meecrowave.openwebbeans.OWBAutoSetup$EagerBootListener.doContextInitialized(OWBAutoSetup.java:84)
    at org.apache.meecrowave.openwebbeans.OWBAutoSetup$EagerBootListener.access$100(OWBAutoSetup.java:65)
    at org.apache.meecrowave.openwebbeans.OWBAutoSetup.onStartup(OWBAutoSetup.java:61)
    at org.apache.meecrowave.Meecrowave.lambda$deployWebapp$9(Meecrowave.java:280)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5135)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
    at org.apache.meecrowave.Meecrowave.deployWebapp(Meecrowave.java:420)
    at org.apache.meecrowave.Meecrowave.deployClasspath(Meecrowave.java:190)
    at org.talend.sdk.component.server.cli.EnhancedCli.run(EnhancedCli.java:52)
    at org.talend.sdk.component.studio.ProcessManager$2.run(ProcessManager.java:288)

以管理员和用户身份启动。

尝试使用 Java 16、Java 11 和“OpenJDK(推荐发行版:Zulu)”

我该如何解决这个问题?

4

1 回答 1

0

我遇到过同样的问题。当我在 pom.xml 中将休眠版本从 5.3.1.final 更改为 5.4.1 final 时,它解决了

于 2021-11-25T09:36:00.693 回答