Skip site navigation (1) Skip section navigation (2)

LOG: could not accept SSL connection: peer did not return a certificate....

From: Andrew M <andrew(at)jibeya(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: LOG: could not accept SSL connection: peer did not return a certificate....
Date: 2004-12-08 20:01:13
Message-ID: E9A2EC28-4953-11D9-870C-0003938366A4@jibeya.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Hi,
I am now getting the following error when making a connection between  
Jboss and postgreSQL:


 From what I read in the following article, it would seem that this  
issue had already been resolved!:

http://www.mail-archive.com/pgsql-hackers(at)postgresql(dot)org/msg22845.html

If I remove the root.(crt/key) files from the data folder everything is  
ok. Is it adviseable to leave these files out?

The full stack trace is:

19:49:54,907 WARN  [JBossManagedConnectionPool] Throwable while  
attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection;  
- nested throwable: (org.postgresql.util.PSQLException: The connection  
attempt failed.)
         at  
org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.crea 
teManagedConnection(LocalManagedConnectionFactory.java:161)
         at  
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.creat 
eConnectionEventListener(InternalManagedConnectionPool.java:508)
         at  
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getCo 
nnection(InternalManagedConnectionPool.java:207)
         at  
org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool 
.getConnection(JBossManagedConnectionPool.java:534)
         at  
org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedCo 
nnection(BaseConnectionManager2.java:396)
         at  
org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConne 
ction(TxConnectionManager.java:299)
         at  
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConn 
ection(BaseConnectionManager2.java:448)
         at  
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionMa 
nagerProxy.allocateConnection(BaseConnectionManager2.java:838)
         at  
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperD 
ataSource.java:102)
         at  
net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(D 
atasourceConnectionProvider.java:59)
         at  
net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java: 
73)
         at  
net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java: 
1132)
         at  
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav 
a:766)
         at  
org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java: 
476)
         at  
org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:444)
         at  
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupp 
ort.java:271)
         at  
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBean 
Support.java:221)
         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
         at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at  
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. 
java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at  
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav 
a:242)
         at  
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
         at  
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController 
.java:891)
         at $Proxy0.start(Unknown Source)
         at  
org.jboss.system.ServiceController.start(ServiceController.java:416)
         at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
         at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at  
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. 
java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at  
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav 
a:242)
         at  
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
         at  
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
         at $Proxy4.start(Unknown Source)
         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
         at  
org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
         at  
org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
         at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
         at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
         at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
         at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at  
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. 
java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at  
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor. 
java:119)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at  
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBea 
nOperationInterceptor.java:131)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at  
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav 
a:242)
         at  
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
         at  
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
         at $Proxy8.deploy(Unknown Source)
         at  
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentSc 
anner.java:305)
         at  
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScan 
ner.java:481)
         at  
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doS 
can(AbstractDeploymentScanner.java:204)
         at  
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(Abst 
ractDeploymentScanner.java:277)
         at  
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupp 
ort.java:271)
         at  
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBean 
Support.java:221)
         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
         at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at  
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. 
java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at  
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav 
a:242)
         at  
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
         at  
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController 
.java:891)
         at $Proxy0.start(Unknown Source)
         at  
org.jboss.system.ServiceController.start(ServiceController.java:416)
         at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
         at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at  
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. 
java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at  
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav 
a:242)
         at  
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
         at  
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
         at $Proxy4.start(Unknown Source)
         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
         at  
org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
         at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
         at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
         at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:693)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav 
a:39)
         at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at  
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. 
java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at  
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor. 
java:119)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at  
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBea 
nOperationInterceptor.java:131)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at  
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav 
a:242)
         at  
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
         at  
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
         at $Proxy5.deploy(Unknown Source)
         at  
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:396)
         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293)
         at org.jboss.Main.boot(Main.java:151)
         at org.jboss.Main$1.run(Main.java:405)
         at java.lang.Thread.run(Thread.java:552)
Caused by: org.postgresql.util.PSQLException: The connection attempt  
failed.
         at  
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Connecti 
onFactoryImpl.java:136)
         at  
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.j 
ava:63)
         at  
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connect 
ion.java:117)
         at  
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connect 
ion.java:30)
         at  
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
         at org.postgresql.Driver.connect(Driver.java:183)
         at  
org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.crea 
teManagedConnection(LocalManagedConnectionFactory.java:151)
         ... 106 more
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert:  
handshake_failure
         at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.b(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
         at  
com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SunJSSE_az.j(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
         at  
com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA12275)
         at  
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
         at  
java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
         at org.postgresql.core.PGStream.flush(PGStream.java:486)
         at  
org.postgresql.core.v3.ConnectionFactoryImpl.sendStartupPacket(Connectio 
nFactoryImpl.java:243)
         at  
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Connecti 
onFactoryImpl.java:91)
         ... 112 more
19:49:54,942 WARN  [SettingsFactory] Could not obtain connection  
metadata
org.jboss.util.NestedSQLException: Could not create connection; -  
nested throwable: (org.postgresql.util.PSQLException: The connection  
attempt failed.); - nested throwable:  
(org.jboss.resource.JBossResourceException: Could not create  
connection; - nested throwable: (org.postgresql.util.PSQLException: The  
connection attempt failed.))
         at  
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperD 
ataSource.java:106)
         at  
net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(D 
atasourceConnectionProvider.java:59)
         at  
net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java: 
73)
         at  
net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java: 
1132)
         at  
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav 
a:766)
         at  
org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java: 
476)
         at  
org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:444)
         at  
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupp 
ort.java:271)
         at  
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBean 
Support.java:221)
         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
         at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at  
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. 
java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at  
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav 
a:242)
         at  
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
         at  
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController 
.java:891)
         at $Proxy0.start(Unknown Source)
         at  
org.jboss.system.ServiceController.start(ServiceController.java:416)
         at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
         at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at  
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. 
java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at  
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav 
a:242)
         at  
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
         at  
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
         at $Proxy4.start(Unknown Source)
         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
         at  
org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
         at  
org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
         at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
         at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
         at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
         at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at  
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. 
java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at  
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor. 
java:119)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at  
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBea 
nOperationInterceptor.java:131)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at  
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav 
a:242)
         at  
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
         at  
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
         at $Proxy8.deploy(Unknown Source)
         at  
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentSc 
anner.java:305)
         at  
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScan 
ner.java:481)
         at  
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doS 
can(AbstractDeploymentScanner.java:204)
         at  
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(Abst 
ractDeploymentScanner.java:277)
         at  
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupp 
ort.java:271)
         at  
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBean 
Support.java:221)
         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
         at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at  
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. 
java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at  
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav 
a:242)
         at  
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
         at  
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController 
.java:891)
         at $Proxy0.start(Unknown Source)
         at  
org.jboss.system.ServiceController.start(ServiceController.java:416)
         at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
         at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at  
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. 
java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at  
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav 
a:242)
         at  
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
         at  
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
         at $Proxy4.start(Unknown Source)
         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
         at  
org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
         at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
         at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
         at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:693)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav 
a:39)
         at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at  
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. 
java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at  
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor. 
java:119)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at  
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBea 
nOperationInterceptor.java:131)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at  
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav 
a:242)
         at  
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
         at  
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
         at $Proxy5.deploy(Unknown Source)
         at  
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:396)
         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293)
         at org.jboss.Main.boot(Main.java:151)
         at org.jboss.Main$1.run(Main.java:405)
         at java.lang.Thread.run(Thread.java:552)
Caused by: org.jboss.resource.JBossResourceException: Could not create  
connection; - nested throwable: (org.postgresql.util.PSQLException: The  
connection attempt failed.)
         at  
org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.crea 
teManagedConnection(LocalManagedConnectionFactory.java:161)
         at  
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.creat 
eConnectionEventListener(InternalManagedConnectionPool.java:508)
         at  
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getCo 
nnection(InternalManagedConnectionPool.java:207)
         at  
org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool 
.getConnection(JBossManagedConnectionPool.java:534)
         at  
org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedCo 
nnection(BaseConnectionManager2.java:396)
         at  
org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConne 
ction(TxConnectionManager.java:299)
         at  
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConn 
ection(BaseConnectionManager2.java:448)
         at  
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionMa 
nagerProxy.allocateConnection(BaseConnectionManager2.java:838)
         at  
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperD 
ataSource.java:102)
         ... 98 more
Caused by: org.postgresql.util.PSQLException: The connection attempt  
failed.
         at  
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Connecti 
onFactoryImpl.java:136)
         at  
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.j 
ava:63)
         at  
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connect 
ion.java:117)
         at  
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connect 
ion.java:30)
         at  
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
         at org.postgresql.Driver.connect(Driver.java:183)
         at  
org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.crea 
teManagedConnection(LocalManagedConnectionFactory.java:151)
         ... 106 more
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert:  
handshake_failure
         at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.b(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
         at  
com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SunJSSE_az.j(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
         at  
com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA12275)
         at  
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
         at  
java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
         at org.postgresql.core.PGStream.flush(PGStream.java:486)
         at  
org.postgresql.core.v3.ConnectionFactoryImpl.sendStartupPacket(Connectio 
nFactoryImpl.java:243)
         at  
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Connecti 
onFactoryImpl.java:91)
         ... 112 more

regards

Andrew


Responses

pgsql-jdbc by date

Next:From: Andrew MDate: 2004-12-09 00:44:39
Subject: Re: PostgreSQL + SSL - sun.security.validator.ValidatorException
Previous:From: Xavier PoinsardDate: 2004-12-08 18:42:04
Subject: French translation

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group