You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Taken from a REST integration test (e.g.ClassificationControllerIntTest) - can we fix this easily?
2023-03-24T08:56:37.5308588Z 2023-03-24 08:56:37.499 WARN 1876 --- [ main] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [Thread-178] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
2023-03-24T08:56:37.5309415Z [email protected]/java.net.SocketInputStream.socketRead0(Native Method)
2023-03-24T08:56:37.5309885Z [email protected]/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)
2023-03-24T08:56:37.5310343Z [email protected]/java.net.SocketInputStream.read(SocketInputStream.java:168)
2023-03-24T08:56:37.5311072Z [email protected]/java.net.SocketInputStream.read(SocketInputStream.java:140)
2023-03-24T08:56:37.5311556Z [email protected]/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
2023-03-24T08:56:37.5312187Z [email protected]/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
2023-03-24T08:56:37.5312690Z [email protected]/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
2023-03-24T08:56:37.5313169Z [email protected]/com.sun.jndi.ldap.Connection.run(Connection.java:855)
2023-03-24T08:56:37.5313570Z [email protected]/java.lang.Thread.run(Thread.java:829)
The text was updated successfully, but these errors were encountered:
As far as I can tell after investigation the problem is that the client (LDAPTemplate) is not closed before shutting down the server, and it is completely controlled by spring right now.
It seems the server is shutdown way before the client, e.g., when hooking in a destroy method for the client to close the connection the exception has already happened.
Closing the client before the server should solve it, however, at this moment it seems to be only an issue while testing right?
Taken from a REST integration test (e.g.ClassificationControllerIntTest) - can we fix this easily?
2023-03-24T08:56:37.5308588Z 2023-03-24 08:56:37.499 WARN 1876 --- [ main] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [Thread-178] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
2023-03-24T08:56:37.5309415Z [email protected]/java.net.SocketInputStream.socketRead0(Native Method)
2023-03-24T08:56:37.5309885Z [email protected]/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)
2023-03-24T08:56:37.5310343Z [email protected]/java.net.SocketInputStream.read(SocketInputStream.java:168)
2023-03-24T08:56:37.5311072Z [email protected]/java.net.SocketInputStream.read(SocketInputStream.java:140)
2023-03-24T08:56:37.5311556Z [email protected]/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
2023-03-24T08:56:37.5312187Z [email protected]/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
2023-03-24T08:56:37.5312690Z [email protected]/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
2023-03-24T08:56:37.5313169Z [email protected]/com.sun.jndi.ldap.Connection.run(Connection.java:855)
2023-03-24T08:56:37.5313570Z [email protected]/java.lang.Thread.run(Thread.java:829)
The text was updated successfully, but these errors were encountered: