[JBoss JIRA] (WFLY-10173) EjbInvocationStatisticsTestCase fails on Windows: wait-time=0
by Brian Stansberry (Jira)
[ https://issues.redhat.com/browse/WFLY-10173?page=com.atlassian.jira.plugi... ]
Brian Stansberry updated WFLY-10173:
------------------------------------
Fix Version/s: 21.0.0.Beta1
(was: 20.0.0.Final)
> EjbInvocationStatisticsTestCase fails on Windows: wait-time=0
> -------------------------------------------------------------
>
> Key: WFLY-10173
> URL: https://issues.redhat.com/browse/WFLY-10173
> Project: WildFly
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 12.0.0.Final
> Reporter: Jan Kalina
> Assignee: Cheng Fang
> Priority: Major
> Fix For: 21.0.0.Beta1
>
>
> Sometime, when running EjbInvocationStatisticsTestCase on Windows, assertion fails, as wait-time is 0 (verified it is 0 by adding debug message).
> For me it fails allTests in most of cases, but when running test standalone, it fails only in 1 of 4 cases.
> I suppose it is because of too short sleep in AbstractManagedBean. (in test is called 4 times, each invocation include 50ms sleep, so I consider probable the wait-time is 0 - need to use longer sleeps to fulfill the test)
> {code}
> [ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.078 s <<< FAILURE! - in org.jboss.as.test.integration.ejb.management.deployments.EjbInvocationStatisticsTestCase
> [ERROR] testSingletonWaitTime(org.jboss.as.test.integration.ejb.management.deployments.EjbInvocationStatisticsTestCase) Time elapsed: 0.438 s <<< FAILURE!
> java.lang.AssertionError
> at org.junit.Assert.fail(Assert.java:86)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.junit.Assert.assertTrue(Assert.java:52)
> at org.jboss.as.test.integration.ejb.management.deployments.EjbInvocationStatisticsTestCase.validateWaitTimeStatistic(EjbInvocationStatisticsTestCase.java:179)
> at org.jboss.as.test.integration.ejb.management.deployments.EjbInvocationStatisticsTestCase.testSingletonWaitTime(EjbInvocationStatisticsTestCase.java:148)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:564)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at org.jboss.arquillian.junit.Arquillian$8$1.invoke(Arquillian.java:379)
> ...
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 7 months
[JBoss JIRA] (WFLY-13568) SSLEJBRemoteClientTestCase shouldn't deal with dirs out of the codebase or java.io.tmpdir
by Cheng Fang (Jira)
[ https://issues.redhat.com/browse/WFLY-13568?page=com.atlassian.jira.plugi... ]
Cheng Fang commented on WFLY-13568:
-----------------------------------
this test alway passes for me locally.
{code}
testsuite/integration/manualmode >
mvn clean test -Dtest=org.jboss.as.test.manualmode.ejb.ssl.SSLEJBRemoteClientTestCase
{code}
[The test|https://github.com/wildfly/wildfly/blob/master/testsuite/integration...] uses the code source of the test class (usually resolves to {{target/test-classes/}}) as the parent dir for the temp keystore files. In my testing, the keystore files ({{target/test-classes/ejb3/ssl/jbossServer.keystore}}) are always under the local test target directory.
The fact that it complained about /Library/Java/Extensions/engines/, seems to suggest you have some libs under there which might have affected classloading. This directory in my machine is empty.
> SSLEJBRemoteClientTestCase shouldn't deal with dirs out of the codebase or java.io.tmpdir
> -----------------------------------------------------------------------------------------
>
> Key: WFLY-13568
> URL: https://issues.redhat.com/browse/WFLY-13568
> Project: WildFly
> Issue Type: Task
> Components: EJB, Security
> Reporter: Brian Stansberry
> Assignee: Cheng Fang
> Priority: Major
>
> When I run org.jboss.as.test.manualmode.ejb.ssl.SSLEJBRemoteClientTestCase locally it fails. Looking in the logs I see:
> {code}
> [31m10:02:07,579 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service org.wildfly.core.management.security.realm.SSLRealm.key-manager: org.jboss.msc.service.StartException in service org.wildfly.core.management.security.realm.SSLRealm.key-manager: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1731)
> at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.IllegalStateException: org.jboss.msc.service.StartException in anonymous service: WFLYDM0086: The KeyStore can not be found at /Library/Java/Extensions/engines/ejb3/ssl/jbossServer.keystore
> at org.jboss.as.domain.management.security.FileKeyManagerService.loadKeyStore(FileKeyManagerService.java:179)
> at org.jboss.as.domain.management.security.AbstractKeyManagerService.createKeyManagers(AbstractKeyManagerService.java:128)
> at org.jboss.as.domain.management.security.AbstractKeyManagerService.start(AbstractKeyManagerService.java:93)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
> ... 6 more
> Caused by: org.jboss.msc.service.StartException in anonymous service: WFLYDM0086: The KeyStore can not be found at /Library/Java/Extensions/engines/ejb3/ssl/jbossServer.keystore
> at org.jboss.as.domain.management.security.FileKeystore.load(FileKeystore.java:114)
> at org.jboss.as.domain.management.security.FileKeyManagerService.loadKeyStore(FileKeyManagerService.java:175)
> ... 10 more
> {code}
> I haven't analyzed what's going on but I don't think a test should be expected to find content created by the test in /Library/Java/Extensions/engines/.
> I don't know how long this has been an issue but I suspect it's not at all recent. I generally use ci.wildfly.org for running testsuite/integration/manualmode or I'm doing something focused and don't pay deep attention to issues not related to that focus.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 7 months
[JBoss JIRA] (WFLY-13568) SSLEJBRemoteClientTestCase shouldn't deal with dirs out of the codebase or java.io.tmpdir
by Brian Stansberry (Jira)
Brian Stansberry created WFLY-13568:
---------------------------------------
Summary: SSLEJBRemoteClientTestCase shouldn't deal with dirs out of the codebase or java.io.tmpdir
Key: WFLY-13568
URL: https://issues.redhat.com/browse/WFLY-13568
Project: WildFly
Issue Type: Task
Components: EJB, Security
Reporter: Brian Stansberry
Assignee: Cheng Fang
When I run org.jboss.as.test.manualmode.ejb.ssl.SSLEJBRemoteClientTestCase locally it fails. Looking in the logs I see:
{code}
[31m10:02:07,579 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service org.wildfly.core.management.security.realm.SSLRealm.key-manager: org.jboss.msc.service.StartException in service org.wildfly.core.management.security.realm.SSLRealm.key-manager: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1731)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: org.jboss.msc.service.StartException in anonymous service: WFLYDM0086: The KeyStore can not be found at /Library/Java/Extensions/engines/ejb3/ssl/jbossServer.keystore
at org.jboss.as.domain.management.security.FileKeyManagerService.loadKeyStore(FileKeyManagerService.java:179)
at org.jboss.as.domain.management.security.AbstractKeyManagerService.createKeyManagers(AbstractKeyManagerService.java:128)
at org.jboss.as.domain.management.security.AbstractKeyManagerService.start(AbstractKeyManagerService.java:93)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
... 6 more
Caused by: org.jboss.msc.service.StartException in anonymous service: WFLYDM0086: The KeyStore can not be found at /Library/Java/Extensions/engines/ejb3/ssl/jbossServer.keystore
at org.jboss.as.domain.management.security.FileKeystore.load(FileKeystore.java:114)
at org.jboss.as.domain.management.security.FileKeyManagerService.loadKeyStore(FileKeyManagerService.java:175)
... 10 more
{code}
I haven't analyzed what's going on but I don't think a test should be expected to find content created by the test in /Library/Java/Extensions/engines/.
I don't know how long this has been an issue but I suspect it's not at all recent. I generally use ci.wildfly.org for running testsuite/integration/manualmode or I'm doing something focused and don't pay deep attention to issues not related to that focus.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 7 months
[JBoss JIRA] (WFCORE-4993) Organize feature pack code to facilitate separate EE 8 and EE 9 variants
by Brian Stansberry (Jira)
[ https://issues.redhat.com/browse/WFCORE-4993?page=com.atlassian.jira.plug... ]
Brian Stansberry updated WFCORE-4993:
-------------------------------------
Description:
Separate feature pack code for EE 8 API modules and other modules we may not want in a EE 9 feature pack from the others.
See if the maven dependency set from those two sections can be used by both the legacy feature pack and the galleon feature pack, thus eliminating the duplication of dependency declaration we currently have.
License.xml generation will likely require https://github.com/wildfly/maven-plugins/issues/10 as the split would mean the input would be split as well.
> Organize feature pack code to facilitate separate EE 8 and EE 9 variants
> ------------------------------------------------------------------------
>
> Key: WFCORE-4993
> URL: https://issues.redhat.com/browse/WFCORE-4993
> Project: WildFly Core
> Issue Type: Task
> Components: Build System
> Reporter: Brian Stansberry
> Assignee: Brian Stansberry
> Priority: Major
> Fix For: 13.0.0.Beta1
>
>
> Separate feature pack code for EE 8 API modules and other modules we may not want in a EE 9 feature pack from the others.
> See if the maven dependency set from those two sections can be used by both the legacy feature pack and the galleon feature pack, thus eliminating the duplication of dependency declaration we currently have.
> License.xml generation will likely require https://github.com/wildfly/maven-plugins/issues/10 as the split would mean the input would be split as well.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 7 months