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

Re: PostgreSQL + SSL - sun.security.validator.ValidatorException

From: Andrew M <andrew(at)jibeya(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: PostgreSQL + SSL - sun.security.validator.ValidatorException
Date: 2004-12-08 15:30:33
Message-ID: 1996BB14-492E-11D9-870C-0003938366A4@jibeya.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Vadim,
I have posted this message to the jboss forum, and in the meantime here  
is the complete stack trace:

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:  
sun.security.validator.ValidatorException: No trusted certificate found
         at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(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.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
Caused by: sun.security.validator.ValidatorException: No trusted  
certificate found
         at  
sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator 
.java:304)
         at  
sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.ja 
va:107)
         at sun.security.validator.Validator.validate(Validator.java:202)
         at  
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Das 
hoA12275)
         at  
com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(Das 
hoA12275)
         ... 124 more
11:05:26,464 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:  
sun.security.validator.ValidatorException: No trusted certificate found
         at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(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.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
Caused by: sun.security.validator.ValidatorException: No trusted  
certificate found
         at  
sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator 
.java:304)
         at  
sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.ja 
va:107)
         at sun.security.validator.Validator.validate(Validator.java:202)
         at  
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Das 
hoA12275)
         at  
com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(Das 
hoA12275)
         ... 124 more

many thanks

Andrew

On 8 Dec 2004, at 13:37, Vadim Nasardinov wrote:

> On Wednesday 08 December 2004 05:06, Andrew M wrote:
>> I'm nearly there but not yet.....
> ...
>> I specify properties in jboss like so:
>>
>> 	javax.net.ssl.keyStore=/library/java/home/lib/security/cacerts
>> 	javax.net.ssl.keyStorePassword=changeit
>> 	javax.net.ssl.keyStoreType= JKS
>
>
> This is starting to look increasingly like a JBoss-specific issue that
> you may have better luck finding a solution to if you direct your
> questions to the JBoss crowd.  I, for one, haven't done anything with
> keycerts in a long time.
>
>
>> The error message I get back is:
>> 	sun.security.validator.ValidatorException: No trusted certificate  
>> found
> ...
>> I  get the following error:
>> 	java.net.SocketException: Default SSL context init failed: null
>
> It is generally more informative to post the entire stack trace.
>
>


In response to

pgsql-jdbc by date

Next:From: Andrew MDate: 2004-12-08 17:39:08
Subject: Re: PostgreSQL + SSL - sun.security.validator.ValidatorException
Previous:From: Vadim NasardinovDate: 2004-12-08 13:37:57
Subject: Re: PostgreSQL + SSL - sun.security.validator.ValidatorException

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