Skip to content

Commit

Permalink
Ignore ISE while stopping the server
Browse files Browse the repository at this point in the history
The tests do a stop server before updating the config. This stops the WAB io.openliberty.microprofile.openapi.2.0.internal.servlet.
But sometimes it throws ISE: BundleContext is no longer valid,  intermittently when ungetting the service because the service is chenged and the service tracker tries to unget the service and notices that the bundle context was closed and invalid.

Updated Equinox would no longer throw exceptions on invalid context when ungetService is called.
For reference: eclipse-equinox/equinox#172
  • Loading branch information
anjumfatima90 committed Dec 1, 2023
1 parent 5fafde2 commit 21c3ea6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void setup() throws Exception {
@After
public void teardown() throws Exception {
try {
server.stopServer();
server.stopServer("CWWKE0701E: .*BundleContext is no longer valid io.openliberty.microprofile.openapi.2.0.internal.servlet*");
} finally {
configureEnvVariable(server, emptyMap());
}
Expand Down

0 comments on commit 21c3ea6

Please sign in to comment.