com.microsoft.sqlserver.jdbc.SQLServerException: The connection is closed.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

If you're not using yet, consider using the SQLServerDataSource to set your server configurations. Also, check if the server is accepting TCP/IP connections and if there's no firewall blocking the connections.

Solutions on the web

via sourceforge.net by Unknown author, 1 year ago
com.microsoft.sqlserver.jdbc.SQLServerException: The connection is closed.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.checkClosed(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.checkClosed(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.checkClosed(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getterGetColumn(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getLong(Unknown Source)
at com.triactive.jdo.store.OIDMapping.getObject(OIDMapping.java:87)
at com.triactive.jdo.store.DatabaseAdapter.newDataStoreException(DatabaseAdapter.java:482)
at com.triactive.jdo.store.OIDMapping.getObject(OIDMapping.java:92)
at com.triactive.jdo.store.PersistentIDROF.getObject(PersistentIDROF.java:46)
at com.triactive.jdo.store.QueryResult.nextResultSetElement(QueryResult.java:68)
at com.triactive.jdo.store.QueryResult.advanceToEndOfResultSet(QueryResult.java:52)
at com.triactive.jdo.store.QueryResult.size(QueryResult.java:167)
at com.abc.box.ejb.BoxManagerBean.getAllBoxes(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Once, 1 month ago
6 times, 3 months ago
4 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago
94 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.