com.microsoft.sqlserver.jdbc.SQLServerException: While reading current row from host, a premature end-of-message was encountered--an incoming data stream was interrupted when the server expected to see more data. The host program may have terminated. Ensure that you are using a supported client application programming interface (API).

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by saif.rizvi
, 1 year ago
While reading current row from host, a premature end-of-message was encountered--an incoming data stream was interrupted when the server expected to see more data. The host program may have terminated. Ensure that you are using a supported client application programming interface (API).
via Stack Overflow by sirdaiz
, 2 days ago
Unable to open the "Test" database requested by the login. Login failed. Client connection ID: 577da72f-f0d4-4ac6-abab-243f0f84d0e3
via Stack Overflow by Saad Khan
, 2 years ago
Conversion failed when converting date and/or time from character string.
via Stack Overflow by gordon613
, 1 year ago
Cannot open database "MyDB" requested by the login. The login failed.
via Stack Overflow by Kim Lindqvist
, 10 months ago
Unicode data is odd byte size for column 1. Should be even byte size.
via GitHub by denislepage
, 1 month ago
The column name 'comments' is specified more than once in the SET clause. A column cannot be assigned more than one value in the same SET clause. Modify the SET clause to make sure that a column is updated only once. If the SET clause updates columns of a view, then the column name 'comments' may appear twice in the view definition.
com.microsoft.sqlserver.jdbc.SQLServerException: While reading current row from host, a premature end-of-message was encountered--an incoming data stream was interrupted when the server expected to see more data. The host program may have terminated. Ensure that you are using a supported client application programming interface (API).
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:217)
at com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(tdsparser.java:251)
at com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:81)
at com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:36)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 4 weeks ago
4 times, 1 month ago
14 times, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago

Write tip

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