com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

Communications link failure Last packet sent to the server was 10 ms ago.

Samebug tips2

It's possible you're trying to write to a connection that's already closed. Another cause for this is that you closed the socket with unread data in the socket receive buffer.

This might be caused by unmatching versions of SSL. Java starts normally with SSLv2 and your server might not be able to negotiate. You have to force Java to use SSLv3. See this comment: https://goo.gl/hx0YB3

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1355

  • Communications link failure Last packet sent to the server was 10 ms ago.
  • via GitHub by surendar
    , 5 months ago
    Communications link failure Last packet sent to the server was 10 ms ago.
  • via Google Groups by Unknown author, 1 year ago
    Communications link failure Last packet sent to the server was 1 ms ago.
  • Stack trace

    • com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 10 ms ago. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[?:1.8.0_92] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[?:1.8.0_92] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[?:1.8.0_92] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)[?:1.8.0_92] at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2873)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2763)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3299)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2537)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2466)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.DatabaseMetaData$2.forEach(DatabaseMetaData.java:2460)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.IterateBlock.doForAll(IterateBlock.java:50)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.DatabaseMetaData.getColumns(DatabaseMetaData.java:2334)[com.mysql.jdbc_5.1.5.jar:?] at org.moqui.impl.entity.EntityDbMeta.getMissingColumns(EntityDbMeta.groovy:279)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.moqui.impl.entity.EntityDbMeta.internalCheckTable(EntityDbMeta.groovy:119)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.moqui.impl.entity.EntityDbMeta.checkTableRuntime(EntityDbMeta.groovy:75)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.moqui.impl.entity.EntityValueImpl.updateExtended(EntityValueImpl.java:149)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.moqui.impl.entity.EntityValueBase.update(EntityValueBase.java:1329)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.moqui.impl.entity.EntityValueBase.createOrUpdate(EntityValueBase.java:557)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.moqui.impl.service.runner.EntityAutoServiceRunner.storeRecursive(EntityAutoServiceRunner.groovy:396)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.moqui.impl.service.runner.EntityAutoServiceRunner.storeEntity(EntityAutoServiceRunner.groovy:352)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.moqui.impl.entity.EntityDataLoaderImpl$LoadValueHandler.handlePlainMap(EntityDataLoaderImpl.groovy:415)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.moqui.impl.entity.EntityDataLoaderImpl$EntityXmlHandler.endElement(EntityDataLoaderImpl.groovy:676)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)[xercesImpl-2.11.0.jar:?] at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)[xercesImpl-2.11.0.jar:?] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)[xercesImpl-2.11.0.jar:?] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)[xercesImpl-2.11.0.jar:?] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)[xercesImpl-2.11.0.jar:?] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[xercesImpl-2.11.0.jar:?] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[xercesImpl-2.11.0.jar:?] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[xercesImpl-2.11.0.jar:?] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)[xercesImpl-2.11.0.jar:?] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)[xercesImpl-2.11.0.jar:?] at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)[xercesImpl-2.11.0.jar:?] at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)[?:1.8.0_92] at org.moqui.impl.entity.EntityDataLoaderImpl.loadSingleFile(EntityDataLoaderImpl.groovy:298)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.moqui.impl.entity.EntityDataLoaderImpl$_internalRun_closure1.doCall(EntityDataLoaderImpl.groovy:273)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.moqui.impl.entity.EntityDataLoaderImpl$_internalRun_closure1.call(EntityDataLoaderImpl.groovy)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.moqui.impl.context.TransactionFacadeImpl$_runRequireNew_closure1.doCall(TransactionFacadeImpl.groovy:196)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at org.moqui.impl.context.TransactionFacadeImpl$_runRequireNew_closure1.call(TransactionFacadeImpl.groovy)[moqui_temp7346945682760087828WEB-INF_lib_moqui-framework-2.0.0.jar.:2.0.0] at groovy.lang.Closure.run(Closure.java:495)[moqui_temp2782208534658787434WEB-INF_lib_groovy-2.4.7.jar.:2.4.7] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_92] Caused by: java.net.SocketException: Socket closed at java.net.SocketInputStream.socketRead0(Native Method)[?:1.8.0_92] at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)[?:1.8.0_92] at java.net.SocketInputStream.read(SocketInputStream.java:170)[?:1.8.0_92] at java.net.SocketInputStream.read(SocketInputStream.java:141)[?:1.8.0_92] at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2329)[com.mysql.jdbc_5.1.5.jar:?] at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2774)[com.mysql.jdbc_5.1.5.jar:?] ... 39 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 month ago
    15 times, 2 months ago
    Unknown user
    Once, 8 months ago
    Unknown user
    Once, 10 months ago
    Once, 1 year ago
    259 more bugmates