ptreves
asked on
Eclipse Hibernate Project: No buffer space available
Hello,
I am trying to run my project and am getting the following stack trace:
Could not connect to: : 2407
java.net.SocketException: No buffer space available (maximum connections reached?): connect
at java.net.PlainSocketImpl.s ocketConne ct(Native Method)
at java.net.PlainSocketImpl.d oConnect(U nknown Source)
at java.net.PlainSocketImpl.c onnectToAd dress(Unkn own Source)
at java.net.PlainSocketImpl.c onnect(Unk nown Source)
at java.net.SocksSocketImpl.c onnect(Unk nown Source)
at java.net.Socket.connect(Un known Source)
at java.net.Socket.connect(Un known Source)
at java.net.Socket.<init>(Unk nown Source)
at java.net.Socket.<init>(Unk nown Source)
at org.eclipse.jdt.internal.j unit.runne r.RemoteTe stRunner.c onnect(Rem oteTestRun ner.java:5 70)
at org.eclipse.jdt.internal.j unit.runne r.RemoteTe stRunner.r un(RemoteT estRunner. java:381)
at org.eclipse.jdt.internal.j unit.runne r.RemoteTe stRunner.m ain(Remote TestRunner .java:197)
I read that the maximum number of connection has been reached.
I can I resolve this issue ?
Paolo
I am trying to run my project and am getting the following stack trace:
Could not connect to: : 2407
java.net.SocketException: No buffer space available (maximum connections reached?): connect
at java.net.PlainSocketImpl.s
at java.net.PlainSocketImpl.d
at java.net.PlainSocketImpl.c
at java.net.PlainSocketImpl.c
at java.net.SocksSocketImpl.c
at java.net.Socket.connect(Un
at java.net.Socket.connect(Un
at java.net.Socket.<init>(Unk
at java.net.Socket.<init>(Unk
at org.eclipse.jdt.internal.j
at org.eclipse.jdt.internal.j
at org.eclipse.jdt.internal.j
I read that the maximum number of connection has been reached.
I can I resolve this issue ?
Paolo
Seems that either your test case is leaking connecions or that your actual code is doing it . Can you detail when you are seeing this exception?
ASKER
When I run an JUnit test class from eclipse.
Not a Hibernate/Java person but check that for every connection 'open', you call a 'close'.
To what exactly is your test case trying to connect to?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.