gpt4 book ai didi

java - 许多Keycloak快速启动在测试阶段失败

转载 作者:行者123 更新时间:2023-12-02 02:37:06 32 4
gpt4 key购买 nike

例如,在app-profile-saml-jee-jsp快速启动上运行mvn install wildfly:deploy时,出现以下错误。

尝试在app-profile-jee-vanilla快速启动上运行相同命令的测试也将失败。

任何想法如何解决这个问题?谢谢。

错误:

-------------------------------------------------- -----测试
-------------------------------------------------- -----运行org.keycloak.quickstart.ArquillianProfileSamlJeeJspTest测试运行:1,失败:0,错误:1,跳过:0,经过的时间:0.491秒<<<失败! -在org.keycloak.quickstart.ArquillianProfileSamlJeeJspTest中-org.keycloak.quickstart.ArquillianProfileSamlJeeJspTest经过的时间:
0.49秒<<<错误! java.lang.RuntimeException:无法在org.jboss上的org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:166)上创建类org.jboss.arquillian.test.impl.EventTestRunnerAdaptor的新实例。 org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)上的arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:103)在org.jboss.arquillian.junit.Arquillian.run( Arquillian.java:114)位于org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)位于org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)上的.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)在org.apache.maven.surefire.booter位于org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.ja的.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) va:103)由以下原因引起:java.lang.reflect.InvocationTargetException:在sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native方法)处为null,在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)处在sun.reflect.DelegatingConstructorAccessorImpl。 org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:162)上的java.lang.reflect.Constructor.newInstance(Constructor.java:423)上的newInstance(DelegatingConstructorAccessorImpl.java:45) org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)上的.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:103)在org.jboss.arquillian.junit.Arquillian.run (Arquillian.java:114)在org.apache.maven.surefire.junfire4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)在org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) org.apache.maven.surefire.junit4.JUnit4Provider.in在org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)处的vooke(JUnit4Provider.java:124)在org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)处在org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)上,原因:org.jboss.arquillian.container.impl.ContainerCreationException:无法在org.jboss.arquillian.container上创建Container jboss。在org.jboss.arquillian.container.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:78)处的impl.LocalContainerRegistry.create(LocalContainerRegistry.java:85)在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法) org.jboss处java.lang.reflect.Method.invoke(Method.java:498)处sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)处的sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) .arquillian.core.impl.ObserverImpl.in在org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)上的org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)上的voke(ObserverImpl.java:96)在org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)在org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)在org.jboss.arquillian.core org.jboss.arquillian.core.impl.InstanceImpl.set(InstanceImpl.java:74)的.impl.ManagerImpl.bindAndFire(ManagerImpl.java:265)在org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration (ConfigurationRegistrar.java:73)at sun.reflect.NativeMethodAccessorImpl.invoke0(本地方法)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) org.jboss.arquillian.core.impl.Observer上的java.lang.reflect.Method.invoke(Method.java:498)Impl.invoke(Obs erverImpl.java:96)位于org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)位于org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81) org.jboss.arquillian.core.impl.Manager的.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116) org.jboss.arquillian.test.impl.EventTestRunnerAdaptor。(EventTestRunnerAdaptor.java:63)上的.ManagerImpl.start(ManagerImpl.java:290)在sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)在sun.reflect.NativeConstructorAccessorImpl。 org.jboss.arquillian.test.spipi上的newInstance(NativeConstructorAccessorImpl.java:62)在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)在java.lang.reflect.Constructor.newInstance(Constructor.java:423) org.jboss.arquillian.test.sp上的.SecurityActions.newInstance(SecurityActions.java:162) org.jboss.arquillian.junit.Arquillian.run(Arquillian.java :)上的org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)上的i.SecurityActions.newInstance(SecurityActions.java:103) 114),位于org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)的org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)上的.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)在org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess (ForkedBooter.java:153)位于org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)原因:java.lang.IllegalArgumentException:必须在org.jboss.arquillian.core处指定DeployableContainer。 org.jboss.arquillian.container.impl.ContainerImpl上的spi.Validate.notNull(Validate.java:44)(ContainerImpl.java:71 ),位于星期日的org.jboss.arquillian.container.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:78)的org.jboss.arquillian.container.impl.LocalContainerRegistry.create(LocalContainerRegistry.java:80)处。在java.lang.reflect.Method.invoke(sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)处的sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)处的Reflection.NativeMethodAccessorImpl.invoke0(本机方法)在org.jboss.arquillian.core.impl.ObserverImpl.invoke(Method.java:498)(ObserverImpl.java:96)在org.org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99) org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)上的.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)在org.jboss.arquillian.core.impl org.jboss.arquillian.core.impl.ManagerImpl.bin上的.ManagerImpl.fire(ManagerImpl.java:116) org.jboss.arquillian.core.impl.InstanceImpl.set(InstanceImpl.java:74)的dAndFire(ManagerImpl.java:265)在org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java: 73)在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)在java.lang.reflect处sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) org.jboss.arquillian.core.impl.Method.invoke(Method.java:498),org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java.ovserver(ObserverImpl.java:96) :99),位于org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81),位于org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145),位于org.jboss。 org.jboss.arquillian.core.impl.ManagerImpl.start(Manag)上的arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116) erImpl.java:290),位于org.jboss.arquillian.test.impl.EventTestRunnerAdaptor。(EventTestRunnerAdaptor.java:63),位于sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法),位于sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor) :62),位于org.jboss.arquillian.test.spi.SecurityActions.newInstance(java.lang.reflect.Constructor.newInstance(Constructor.java:423)处的sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)处org.jboss.arquillian.test.spi上的SecurityActions.java:162).org.org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)上的SecurityActions.newInstance(SecurityActions.java:103) org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)的.jboss.arquillian.junit.Arquillian.run(Arquillian.java:114)在org.apache.maven.surefire.junit4.JUnit4Provider .executeTestSet(JUnit4Provider.java:153)在org.apac org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)上的he.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124),位于org.apache.maven.surefire.booter。位于org.apache.maven.surefire.booter.ForkedBooter.main的ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)(ForkedBooter.java:103)

最佳答案

使用mvn clean install -Pwildfly-managed -Denforcer.skip=true运行应该可以解决您的问题,如果您不想运行集成测试,则可以跳过它们。

我将更新自述文件以使其更加明确。

关于java - 许多Keycloak快速启动在测试阶段失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46159697/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com