SQL Database Toolbox Communication Error - Caused by: java.net.SocketException: Software caused connection abort: recv failed
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I am experiencing a communication failure problem while trying to write to a database via MATLAB Database Toolbox.
Though I am trying to ensure that the connection object is valid before using it, I somehow end up with this error.
while(~isconnection(conn))
conn = database('', username , password , 'com.mysql.jdbc.Driver', url);
hand = conn.Handle;
StatementObject = hand.prepareStatement(insertcommand);
end
In this particular run, I had the code run for 4 days and it caused the problem during the 2nd day - It's not even clear when this error would be caused since I require my code to run for a few days continuously.
Please let me know what could I do to prevent this issue.
Thanks, Chaitanya
The exact error message is pasted below:
------------------------------------------------------------------------------------
Java exception occurred: java.sql.SQLException: Could not retrieve transation read-only status server
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1078)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:951)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:941)
at com.mysql.jdbc.ConnectionImpl.isReadOnly(ConnectionImpl.java:3939)
at com.mysql.jdbc.ConnectionImpl.isReadOnly(ConnectionImpl.java:3910)
at com.mysql.jdbc.PreparedStatement.checkReadOnlySafeStatement(PreparedStatement.java:1258)
at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1278)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 43,090,699 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1121)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3673)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3562)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4113)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2812)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2761)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1612)
at com.mysql.jdbc.ConnectionImpl.isReadOnly(ConnectionImpl.java:3933)
... 3 more
Caused by: java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:114)
at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:161)
at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:189)
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:3116)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3573)
... 11 more
------------------------------------------------------------------------------------
0 commentaires
Réponses (1)
Lucas
le 21 Juil 2014
http://imgur.com/a/QfKrB http://www.ign.com/boards/threads/video-teen-wolf-season-4-episode-5-online.454122369/ http://gtamc.net/forum/threads/stream-watch-teen-wolf-season-4-episode-5-online-free.83547/ http://ellinel.com/threads/s4e5-watch-teen-wolf-season-4-episode-5-free-online-streaming.6498/ http://campmediterraneo.com/ca/node/66158 http://socjobs2009.proboards.com/thread/1404/putlocker-watch-season-episode-online http://www.ccel.org/node/26281 http://skysadko.com/forum/index.php?topic=20993.0 http://www.deepershades.net/usa/teen-wolf-s04e05-watch-online-free.html http://davars.com/blog/teenwolf/post/se4ep5 http://www.rockmelon.pl/forum/full-video-watch-teen-wolf-season-4-episode-5-online-ied http://www.identistyler.com/blog/teenwolf/post/Free-to-Watch-Teen-Wolf-Season-4-Episode-5-Online-IED
0 commentaires
Voir également
Catégories
En savoir plus sur Database Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!