Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestNG test suites are instable with current master branch #531

Closed
dstenger opened this issue Jun 10, 2022 · 4 comments
Closed

TestNG test suites are instable with current master branch #531

dstenger opened this issue Jun 10, 2022 · 4 comments
Assignees

Comments

@dstenger
Copy link
Contributor

Describe the bug
When a TestNG test suite (e.g. ets-ogcapi-features10) is put into the same tomcat as the deps artifact of ets-kml22 (https://search.maven.org/remotecontent?filepath=org/opengis/cite/ets-kml22/1.14/ets-kml22-1.14-deps.zip), the execution of the TestNG test suite fails with error:

Error in call to extension function {public java.lang.Object com.occamlab.te.TECore.callFunction(net.sf.saxon.expr.XPathContext,java.lang.String,java.lang.String,net.sf.saxon.om.NodeInfo) throws java.lang.Exception}: Exception in extension function net.sf.saxon.s9api.SaxonApiException: Error in call to extension function {public javax.xml.transform.Source org.opengis.cite.ogcapifeatures10.TestNGController.doTestRun(org.w3c.dom.Document) throws java.lang.Exception}: Exception in extension function java.util.ServiceConfigurationError: org.testng.ITestNGListener: Provider com.occamlab.te.spi.executors.testng.EarlReporter could not be instantiated

This error did not occur with TEAM Engine v5.4.1.

To Reproduce
Steps to reproduce the behavior:

  1. https://github.com/opengeospatial/teamengine-docker project can be used to easily reproduce the error.
  2. Build TEAM Engine v5.5-SNAPSHOT locally.
  3. Add v5.5-SNAPSHOT to pom file of teamengine-docker project.
  4. Build and start TEAM Engine: mvn clean install && docker run --rm -p 8081:8080 --name beta ogccite/teamengine-beta
  5. TEAM Engine can be accessed via http://localhost:8081/te2/.
  6. Error can be reproduced by running ets-ogcapi-features10.
  7. Remove ets-kml22 dependency from teamengine-docker project.
  8. Error does not occur anymore when running ets-ogcapi-features10.

Expected behavior
It should be analyzed why this error is occurring now and was not occurring previously (v5.4.1).
Afterwards, a fix either in TEAM Engine or ets-kml22 shall be implemented.

@dstenger dstenger added the bug label Jun 10, 2022
@dstenger dstenger added this to the 5.5 milestone Jun 13, 2022
@dstenger dstenger self-assigned this Jun 20, 2022
@bpross-52n
Copy link
Contributor

The reason for this is the slf4j-log4j12-1.7.6.jar library.

@dstenger
Copy link
Contributor Author

I can confirm that removing dependency slf4j-log4j12-1.7.6.jar solves the problem described in this issue.
Also ets-kml22 is still working.

Issue was created in ets-kml22 repository: opengeospatial/ets-kml22#30

@dstenger
Copy link
Contributor Author

@bpross-52n Could you please provide some more details why this library is breaking TEAM Engine?
Afterwards, the issue can be closed.

@dstenger dstenger assigned bpross-52n and unassigned dstenger Jun 24, 2022
@dstenger dstenger assigned dstenger and unassigned bpross-52n Jun 30, 2022
@dstenger dstenger assigned bpross-52n and unassigned dstenger Jun 30, 2022
@dstenger dstenger assigned dstenger and unassigned bpross-52n Jun 30, 2022
@dstenger dstenger assigned bpross-52n and unassigned dstenger Jun 30, 2022
@bpross-52n
Copy link
Contributor

With Teamengine 5.5-SNAPSHOT, there is a ClassNotFoundException: org.apache.log4j.Level. With Teamengine 5.4.1 another library is present: slf4j-jdk14-1.7.21.jar. This contains an implementation of the org.apache.log4j.Level.

@dstenger dstenger removed this from the 5.5 milestone Jul 7, 2022
@dstenger dstenger removed the bug label Jul 7, 2022
@dstenger dstenger added this to CITE Aug 1, 2024
@dstenger dstenger moved this to Done in CITE Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants