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

  1. ,
    Expert tip

    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.

  2. ,
    Expert tip

    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

Solutions on the web

via robertivey.org by Unknown author, 1 year ago
Could not create connection; - nested throwable: (org.postgresql.util.PSQLException: The connection attempt failed.)
via hivmr.com by Unknown author, 2 years ago
Could not create connection; - nested throwable: (java.sql.SQLException: Io exception: The Network Adapter could not establish the connection)
via hivmr.com by Unknown author, 2 years ago
Could not create connection; - nested throwable: (java.sql.SQLException: Io exception: The Network Adapter could not establish the connection)
via Oracle Community by 843830, 1 year ago
Could not create connection; - nested throwable: (java.sql.SQLException: Io exception: The Network Adapter could not establish the connection)
via mysql.com by Unknown author, 1 year ago
Could not create connection; - nested throwable: (com.mysql.jdbc.CommunicationsException: Communications link failure Last packet sent to the server was 354 ms ago.)
via redhat.com by Unknown author, 1 year ago
Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for URL: class: org.postgresql.Driver, url: jdbc:postgresql:exoshell)
java.net.SocketException: Connection timed out	at java.net.SocketInputStream.socketRead0(Native Method)	at java.net.SocketInputStream.read(Unknown Source)	at org.postgresql.core.VisibleBufferedInputStream.readMore(VisibleBufferedInputStream.java:135)	at org.postgresql.core.VisibleBufferedInputStream.ensureBytes(VisibleBufferedInputStream.java:104)	at org.postgresql.core.VisibleBufferedInputStream.read(VisibleBufferedInputStream.java:73)	at org.postgresql.core.PGStream.ReceiveChar(PGStream.java:259)	at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:254)	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:95)	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)	at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:124)	at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30)	at org.postgresql.jdbc3.Jdbc3Connection.(Jdbc3Connection.java:24)	at org.postgresql.Driver.makeConnection(Driver.java:386)	at org.postgresql.Driver.connect(Driver.java:260)	at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:207)	at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)	at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)	at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267)	at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:679)	at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404)	at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)	at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)	at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)	at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)	at org.jboss.messaging.core.impl.JDBCSupport.createSchema(JDBCSupport.java:287)	at org.jboss.messaging.core.impl.JDBCSupport.start(JDBCSupport.java:167)	at org.jboss.jms.server.plugin.JDBCJMSUserManager.start(JDBCJMSUserManager.java:98)	at org.jboss.jms.server.plugin.JDBCJMSUserManagerService.startService(JDBCJMSUserManagerService.java:78)	at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)	at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)	at java.lang.reflect.Method.invoke(Unknown Source)	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)	at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)	at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)	at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)	at $Proxy38.start(Unknown Source)	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)	at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)	at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)	at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)	at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)	at org.jboss.system.ServiceController.doChange(ServiceController.java:688)	at org.jboss.system.ServiceController.start(ServiceController.java:460)	at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)	at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)	at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)	at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)	at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)	at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)	at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)	at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)	at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)	at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)	at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)	at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)	at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)	at org.jboss.Main.boot(Main.java:221)	at org.jboss.Main$1.run(Main.java:556)	at java.lang.Thread.run(Unknown Source)