Re: Connector/J "Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost."
Posted by: Ermicioi Andrei
Date: November 30, 2008 03:15AM

It seems that I solve problem adding:
ds.setTestOnBorrow(true);
ds.setValidationQuery("SELECT 1");
to DataSource object

Options: ReplyQuote


Subject
Written By
Posted
Re: Connector/J "Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost."
November 30, 2008 03:15AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.