java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.

JFrog JIRA | Aaron Rhodes | 2 years ago
  1. 0

    Large artifact deploy (> 20 GB) is causing an error. Increasing the DB timeout is a workaround but the error should not happen. Here is the stacktrace: {code} 2014-10-16 10:22:53,204 [http-bio-8081-exec-3] [INFO ] (o.a.e.UploadServiceImpl:473) - Deploy to 'plugins-release-local:test.tar' Content-Length: 554004480 2014-10-16 10:23:56,459 [http-bio-8081-exec-3] [ERROR] (o.a.r.d.DbStoringRepoMixin:263) - IO error while trying to save resource plugins-release-local:test.tar'': java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. 2014-10-16 10:23:56,490 [http-bio-8081-exec-3] [ERROR] (o.s.t.i.TransactionInterceptor:95) - Application exception overridden by commit exception java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2914) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3337) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3327) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2526) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2484) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1446) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.ConnectionImpl.isReadOnly(ConnectionImpl.java:3597) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.ConnectionImpl.isReadOnly(ConnectionImpl.java:3572) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2107) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2077) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2062) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at org.artifactory.storage.db.util.JdbcHelper.executeUpdate(JdbcHelper.java:131) ~[artifactory-storage-db-3.4.0.jar:na] at org.artifactory.storage.db.fs.dao.NodesDao.create(NodesDao.java:147) ~[artifactory-storage-db-3.4.0.jar:na] at org.artifactory.storage.db.fs.service.FileServiceImpl.createFile(FileServiceImpl.java:144) ~[artifactory-storage-db-3.4.0.jar:na] at org.artifactory.storage.db.fs.model.DbMutableFile.doCreateNode(DbMutableFile.java:205) ~[artifactory-storage-db-3.4.0.jar:na] at org.artifactory.storage.db.fs.model.DbMutableItem.save(DbMutableItem.java:204) ~[artifactory-storage-db-3.4.0.jar:na] at org.artifactory.storage.fs.lock.SessionLockEntry.save(SessionLockEntry.java:72) ~[artifactory-storage-common-3.4.0.jar:na] at org.artifactory.storage.db.fs.session.SqlStorageSession.save(SqlStorageSession.java:66) ~[artifactory-storage-db-3.4.0.jar:na] at org.artifactory.repo.db.DbStoringRepoMixin.invokeAfterCreateInterceptors(DbStoringRepoMixin.java:380) ~[artifactory-core-3.4.0.jar:na] at org.artifactory.repo.db.DbStoringRepoMixin.saveResource(DbStoringRepoMixin.java:236) ~[artifactory-core-3.4.0.jar:na] at org.artifactory.repo.db.DbLocalRepo.saveResource(DbLocalRepo.java:141) ~[artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.uploadItemWithContent(UploadServiceImpl.java:607) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.uploadItemWithProvidedContent(UploadServiceImpl.java:585) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.uploadItem(UploadServiceImpl.java:522) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.uploadFile(UploadServiceImpl.java:495) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.uploadArtifact(UploadServiceImpl.java:474) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.uploadWithinTransaction(UploadServiceImpl.java:145) [artifactory-core-3.4.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.artifactory.request.aop.RequestAdvice.invoke(RequestAdvice.java:65) ~[artifactory-core-3.4.0.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98) ~[spring-tx-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262) ~[spring-tx-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95) [spring-tx-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.artifactory.storage.fs.lock.aop.LockingAdvice.invoke(LockingAdvice.java:64) [artifactory-storage-common-3.4.0.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at com.sun.proxy.$Proxy43.uploadWithinTransaction(Unknown Source) [na:na] at org.artifactory.engine.UploadServiceImpl.adjustResponseAndUpload(UploadServiceImpl.java:231) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.validateRequestAndUpload(UploadServiceImpl.java:186) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.upload(UploadServiceImpl.java:131) [artifactory-core-3.4.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at com.sun.proxy.$Proxy43.upload(Unknown Source) [na:na] at org.artifactory.webapp.servlet.RepoFilter.doUpload(RepoFilter.java:206) [artifactory-web-application-3.4.0.jar:na] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:161) [artifactory-web-application-3.4.0.jar:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:85) [artifactory-web-application-3.4.0.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.39] at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationFilter.doFilter(ArtifactoryBasicAuthenticationFilter.java:91) [artifactory-web-application-3.4.0.jar:na] at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:138) [artifactory-web-application-3.4.0.jar:na] at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:224) [artifactory-web-application-3.4.0.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:184) [artifactory-web-application-3.4.0.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:152) [artifactory-web-application-3.4.0.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.39] at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:62) [artifactory-web-application-3.4.0.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.39] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:92) [artifactory-web-application-3.4.0.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.39] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) [catalina.jar:7.0.39] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) [catalina.jar:7.0.39] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) [catalina.jar:7.0.39] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) [catalina.jar:7.0.39] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.39] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) [catalina.jar:7.0.39] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009) [tomcat-coyote.jar:7.0.39] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) [tomcat-coyote.jar:7.0.39] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) [tomcat-coyote.jar:7.0.39] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2014-10-16 10:23:56,493 [http-bio-8081-exec-3] [WARN ] (o.a.w.s.RepoFilter :212) - Sending HTTP error code 404: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. {code}

    JFrog JIRA | 2 years ago | Aaron Rhodes
    java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
  2. 0

    Large artifact deploy (> 20 GB) is causing an error. Increasing the DB timeout is a workaround but the error should not happen. Here is the stacktrace: {code} 2014-10-16 10:22:53,204 [http-bio-8081-exec-3] [INFO ] (o.a.e.UploadServiceImpl:473) - Deploy to 'plugins-release-local:test.tar' Content-Length: 554004480 2014-10-16 10:23:56,459 [http-bio-8081-exec-3] [ERROR] (o.a.r.d.DbStoringRepoMixin:263) - IO error while trying to save resource plugins-release-local:test.tar'': java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. 2014-10-16 10:23:56,490 [http-bio-8081-exec-3] [ERROR] (o.s.t.i.TransactionInterceptor:95) - Application exception overridden by commit exception java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2914) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3337) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3327) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2526) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2484) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1446) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.ConnectionImpl.isReadOnly(ConnectionImpl.java:3597) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.ConnectionImpl.isReadOnly(ConnectionImpl.java:3572) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2107) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2077) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2062) ~[mysql-connector-java-5.1.33-bin.jar:5.1.33] at org.artifactory.storage.db.util.JdbcHelper.executeUpdate(JdbcHelper.java:131) ~[artifactory-storage-db-3.4.0.jar:na] at org.artifactory.storage.db.fs.dao.NodesDao.create(NodesDao.java:147) ~[artifactory-storage-db-3.4.0.jar:na] at org.artifactory.storage.db.fs.service.FileServiceImpl.createFile(FileServiceImpl.java:144) ~[artifactory-storage-db-3.4.0.jar:na] at org.artifactory.storage.db.fs.model.DbMutableFile.doCreateNode(DbMutableFile.java:205) ~[artifactory-storage-db-3.4.0.jar:na] at org.artifactory.storage.db.fs.model.DbMutableItem.save(DbMutableItem.java:204) ~[artifactory-storage-db-3.4.0.jar:na] at org.artifactory.storage.fs.lock.SessionLockEntry.save(SessionLockEntry.java:72) ~[artifactory-storage-common-3.4.0.jar:na] at org.artifactory.storage.db.fs.session.SqlStorageSession.save(SqlStorageSession.java:66) ~[artifactory-storage-db-3.4.0.jar:na] at org.artifactory.repo.db.DbStoringRepoMixin.invokeAfterCreateInterceptors(DbStoringRepoMixin.java:380) ~[artifactory-core-3.4.0.jar:na] at org.artifactory.repo.db.DbStoringRepoMixin.saveResource(DbStoringRepoMixin.java:236) ~[artifactory-core-3.4.0.jar:na] at org.artifactory.repo.db.DbLocalRepo.saveResource(DbLocalRepo.java:141) ~[artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.uploadItemWithContent(UploadServiceImpl.java:607) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.uploadItemWithProvidedContent(UploadServiceImpl.java:585) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.uploadItem(UploadServiceImpl.java:522) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.uploadFile(UploadServiceImpl.java:495) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.uploadArtifact(UploadServiceImpl.java:474) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.uploadWithinTransaction(UploadServiceImpl.java:145) [artifactory-core-3.4.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.artifactory.request.aop.RequestAdvice.invoke(RequestAdvice.java:65) ~[artifactory-core-3.4.0.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98) ~[spring-tx-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262) ~[spring-tx-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95) [spring-tx-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.artifactory.storage.fs.lock.aop.LockingAdvice.invoke(LockingAdvice.java:64) [artifactory-storage-common-3.4.0.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at com.sun.proxy.$Proxy43.uploadWithinTransaction(Unknown Source) [na:na] at org.artifactory.engine.UploadServiceImpl.adjustResponseAndUpload(UploadServiceImpl.java:231) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.validateRequestAndUpload(UploadServiceImpl.java:186) [artifactory-core-3.4.0.jar:na] at org.artifactory.engine.UploadServiceImpl.upload(UploadServiceImpl.java:131) [artifactory-core-3.4.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) [spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at com.sun.proxy.$Proxy43.upload(Unknown Source) [na:na] at org.artifactory.webapp.servlet.RepoFilter.doUpload(RepoFilter.java:206) [artifactory-web-application-3.4.0.jar:na] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:161) [artifactory-web-application-3.4.0.jar:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:85) [artifactory-web-application-3.4.0.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.39] at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationFilter.doFilter(ArtifactoryBasicAuthenticationFilter.java:91) [artifactory-web-application-3.4.0.jar:na] at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:138) [artifactory-web-application-3.4.0.jar:na] at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:224) [artifactory-web-application-3.4.0.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:184) [artifactory-web-application-3.4.0.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:152) [artifactory-web-application-3.4.0.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.39] at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:62) [artifactory-web-application-3.4.0.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.39] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:92) [artifactory-web-application-3.4.0.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.39] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) [catalina.jar:7.0.39] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) [catalina.jar:7.0.39] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) [catalina.jar:7.0.39] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) [catalina.jar:7.0.39] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.39] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) [catalina.jar:7.0.39] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009) [tomcat-coyote.jar:7.0.39] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) [tomcat-coyote.jar:7.0.39] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) [tomcat-coyote.jar:7.0.39] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2014-10-16 10:23:56,493 [http-bio-8081-exec-3] [WARN ] (o.a.w.s.RepoFilter :212) - Sending HTTP error code 404: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. {code}

    JFrog JIRA | 2 years ago | Aaron Rhodes
    java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
  3. 0

    Connection issues

    GitHub | 6 years ago | mhudspeth
    java.io.EOFException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    WARN SqlExceptionHelper:143 - SQL Error: 0, SQLState: 08S01- SqlExceptionHelper:144 - Communications link failure

    Stack Overflow | 4 years ago | Haris Dautović
    org.hibernate.exception.JDBCConnectionException: Communications link failure The last packet successfully received from the server was 120,017 milliseconds ago. The last packet sent successfully to the server was 9 milliseconds ago.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.EOFException

      Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.

      at com.mysql.jdbc.MysqlIO.readFully()
    2. MySQL jdbc
      PreparedStatement.executeUpdate
      1. com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2914)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      2. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3337)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      3. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3327)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      4. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      5. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      6. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      7. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2526)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      8. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2484)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      9. com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1446)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      10. com.mysql.jdbc.ConnectionImpl.isReadOnly(ConnectionImpl.java:3597)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      11. com.mysql.jdbc.ConnectionImpl.isReadOnly(ConnectionImpl.java:3572)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      12. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2107)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      13. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2077)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      14. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2062)[mysql-connector-java-5.1.33-bin.jar:5.1.33]
      14 frames
    3. org.artifactory.storage
      SqlStorageSession.save
      1. org.artifactory.storage.db.util.JdbcHelper.executeUpdate(JdbcHelper.java:131)[artifactory-storage-db-3.4.0.jar:na]
      2. org.artifactory.storage.db.fs.dao.NodesDao.create(NodesDao.java:147)[artifactory-storage-db-3.4.0.jar:na]
      3. org.artifactory.storage.db.fs.service.FileServiceImpl.createFile(FileServiceImpl.java:144)[artifactory-storage-db-3.4.0.jar:na]
      4. org.artifactory.storage.db.fs.model.DbMutableFile.doCreateNode(DbMutableFile.java:205)[artifactory-storage-db-3.4.0.jar:na]
      5. org.artifactory.storage.db.fs.model.DbMutableItem.save(DbMutableItem.java:204)[artifactory-storage-db-3.4.0.jar:na]
      6. org.artifactory.storage.fs.lock.SessionLockEntry.save(SessionLockEntry.java:72)[artifactory-storage-common-3.4.0.jar:na]
      7. org.artifactory.storage.db.fs.session.SqlStorageSession.save(SqlStorageSession.java:66)[artifactory-storage-db-3.4.0.jar:na]
      7 frames
    4. org.artifactory.repo
      DbLocalRepo.saveResource
      1. org.artifactory.repo.db.DbStoringRepoMixin.invokeAfterCreateInterceptors(DbStoringRepoMixin.java:380)[artifactory-core-3.4.0.jar:na]
      2. org.artifactory.repo.db.DbStoringRepoMixin.saveResource(DbStoringRepoMixin.java:236)[artifactory-core-3.4.0.jar:na]
      3. org.artifactory.repo.db.DbLocalRepo.saveResource(DbLocalRepo.java:141)[artifactory-core-3.4.0.jar:na]
      3 frames
    5. org.artifactory.engine
      UploadServiceImpl.uploadWithinTransaction
      1. org.artifactory.engine.UploadServiceImpl.uploadItemWithContent(UploadServiceImpl.java:607)[artifactory-core-3.4.0.jar:na]
      2. org.artifactory.engine.UploadServiceImpl.uploadItemWithProvidedContent(UploadServiceImpl.java:585)[artifactory-core-3.4.0.jar:na]
      3. org.artifactory.engine.UploadServiceImpl.uploadItem(UploadServiceImpl.java:522)[artifactory-core-3.4.0.jar:na]
      4. org.artifactory.engine.UploadServiceImpl.uploadFile(UploadServiceImpl.java:495)[artifactory-core-3.4.0.jar:na]
      5. org.artifactory.engine.UploadServiceImpl.uploadArtifact(UploadServiceImpl.java:474)[artifactory-core-3.4.0.jar:na]
      6. org.artifactory.engine.UploadServiceImpl.uploadWithinTransaction(UploadServiceImpl.java:145)[artifactory-core-3.4.0.jar:na]
      6 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_51]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_51]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_51]
      4. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_51]
      4 frames
    7. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
      3 frames
    8. org.artifactory.request
      RequestAdvice.invoke
      1. org.artifactory.request.aop.RequestAdvice.invoke(RequestAdvice.java:65)[artifactory-core-3.4.0.jar:na]
      1 frame
    9. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
      1 frame
    10. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)[spring-tx-4.0.5.RELEASE.jar:4.0.5.RELEASE]
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)[spring-tx-4.0.5.RELEASE.jar:4.0.5.RELEASE]
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)[spring-tx-4.0.5.RELEASE.jar:4.0.5.RELEASE]
      3 frames
    11. org.artifactory.storage
      LockingAdvice.invoke
      1. org.artifactory.storage.fs.lock.aop.LockingAdvice.invoke(LockingAdvice.java:64)[artifactory-storage-common-3.4.0.jar:na]
      1 frame
    12. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
      2 frames
    13. com.sun.proxy
      $Proxy43.uploadWithinTransaction
      1. com.sun.proxy.$Proxy43.uploadWithinTransaction(Unknown Source)[na:na]
      1 frame
    14. org.artifactory.engine
      UploadServiceImpl.upload
      1. org.artifactory.engine.UploadServiceImpl.adjustResponseAndUpload(UploadServiceImpl.java:231)[artifactory-core-3.4.0.jar:na]
      2. org.artifactory.engine.UploadServiceImpl.validateRequestAndUpload(UploadServiceImpl.java:186)[artifactory-core-3.4.0.jar:na]
      3. org.artifactory.engine.UploadServiceImpl.upload(UploadServiceImpl.java:131)[artifactory-core-3.4.0.jar:na]
      3 frames
    15. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_51]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_51]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_51]
      4. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_51]
      4 frames
    16. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
      2 frames
    17. com.sun.proxy
      $Proxy43.upload
      1. com.sun.proxy.$Proxy43.upload(Unknown Source)[na:na]
      1 frame
    18. org.artifactory.webapp
      RepoFilter.doFilter
      1. org.artifactory.webapp.servlet.RepoFilter.doUpload(RepoFilter.java:206)[artifactory-web-application-3.4.0.jar:na]
      2. org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:161)[artifactory-web-application-3.4.0.jar:na]
      3. org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:85)[artifactory-web-application-3.4.0.jar:na]
      3 frames
    19. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39]
      2 frames
    20. Spring Security
      BasicAuthenticationFilter.doFilter
      1. org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201)[spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]
      1 frame
    21. org.artifactory.webapp
      AccessFilter.doFilter
      1. org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationFilter.doFilter(ArtifactoryBasicAuthenticationFilter.java:91)[artifactory-web-application-3.4.0.jar:na]
      2. org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:138)[artifactory-web-application-3.4.0.jar:na]
      3. org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:224)[artifactory-web-application-3.4.0.jar:na]
      4. org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:184)[artifactory-web-application-3.4.0.jar:na]
      5. org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:152)[artifactory-web-application-3.4.0.jar:na]
      5 frames
    22. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39]
      2 frames
    23. org.artifactory.webapp
      RequestFilter.doFilter
      1. org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:62)[artifactory-web-application-3.4.0.jar:na]
      1 frame
    24. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39]
      2 frames
    25. org.artifactory.webapp
      ArtifactoryFilter.doFilter
      1. org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:92)[artifactory-web-application-3.4.0.jar:na]
      1 frame
    26. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)[catalina.jar:7.0.39]
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)[catalina.jar:7.0.39]
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)[catalina.jar:7.0.39]
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)[catalina.jar:7.0.39]
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[catalina.jar:7.0.39]
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)[catalina.jar:7.0.39]
      8 frames
    27. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)[tomcat-coyote.jar:7.0.39]
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)[tomcat-coyote.jar:7.0.39]
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)[tomcat-coyote.jar:7.0.39]
      3 frames
    28. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_51]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_51]
      3. java.lang.Thread.run(Thread.java:744)[na:1.7.0_51]
      3 frames