У меня есть Java-приложение с использованием провайдеров RSA-BSAFE JCE.6-20 я запустил обновление программного обеспечения и кучу библиотек, ядра были обновлены.(полный список вставлен ниже).После этого, когда мое java-приложение пытается подключиться к postgres9.5, оно завершается неудачно с клиентом
at com.rsa.cryptoj.o.ma.a(Unknown Source)
at com.rsa.cryptoj.o.ma.engineInit(Unknown Source)
at java.base/javax.crypto.Mac.init(Mac.java:433)
at java.base/sun.security.ssl.HKDF.extract(HKDF.java:91)
at java.base/sun.security.ssl.HKDF.extract(HKDF.java:119)
at java.base/sun.security.ssl.ECDHKeyExchange$ECDHEKAKeyDerivation.t13DeriveKey(ECDHKeyExchange.java:470)
... 28 more
psql
, и PGAdmin работает, поэтому БД действительно работает.Далее, трассировка стека включает
Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> com.redsealsys.srm.server.dao.jdbc.RSConnectionCustomizer, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 1hgeb9ga3xwfc3b16gwnfg|4da9f723, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> org.postgresql.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 1hgeb9ga3xwfc3b16gwnfg|4da9f723, idleConnectionTestPeriod -> 300, initialPoolSize -> 10, jdbcUrl -> jdbc:postgresql://127.0.0.1/redseal, maxAdministrativeTaskTime -> 60, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 120, maxPoolSize -> 50, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 10, numHelperThreads -> 3, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {password=******, user=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 1, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
18:46:47.514 [WARN ] [.cfg.SettingsFactory.buildSettings | main] - Could not obtain connection metadata
java.sql.SQLException: Connections could not be acquired from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:692)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140)
at org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy$LazyConnectionInvocationHandler.getTargetConnection(LazyConnectionDataSourceProxy.java:400)
at org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy$LazyConnectionInvocationHandler.invoke(LazyConnectionDataSourceProxy.java:375)
at com.sun.proxy.$Proxy56.getMetaData(Unknown Source)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:113)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:863)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:782)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:188)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
Список обновленных пакетов
Start-Date: 2019-06-20 08:54:34
Commandline: /usr/bin/unattended-upgrade
Upgrade: firefox:amd64 (67.0.2+build2-0ubuntu0.18.04.1, 67.0.3+build1-0ubuntu0.18.04.1)
End-Date: 2019-06-20 08:54:41
Start-Date: 2019-06-20 08:54:43
Commandline: /usr/bin/unattended-upgrade
Upgrade: firefox-locale-en:amd64 (67.0.2+build2-0ubuntu0.18.04.1, 67.0.3+build1-0ubuntu0.18.04.1)
End-Date: 2019-06-20 08:54:44
Start-Date: 2019-06-20 08:54:46
Commandline: /usr/bin/unattended-upgrade
Upgrade: libsqlite3-0:amd64 (3.22.0-1, 3.22.0-1ubuntu0.1)
End-Date: 2019-06-20 08:54:46
Start-Date: 2019-06-20 08:54:49
Commandline: /usr/bin/unattended-upgrade
Upgrade: linux-libc-dev:amd64 (4.15.0-51.55, 4.15.0-52.56)
End-Date: 2019-06-20 08:54:49
Start-Date: 2019-06-20 08:54:51
Commandline: /usr/bin/unattended-upgrade
Install: linux-modules-4.15.0-52-generic:amd64 (4.15.0-52.56, automatic), linux-headers-4.15.0-52-generic:amd64 (4.15.0-52.56, automatic), linux-headers-4.15.0-52:amd64 (4.15.0-52.56, automatic), linux-image-4.15.0-52-generic:amd64 (4.15.0-52.56, automatic), linux-modules-extra-4.15.0-52-generic:amd64 (4.15.0-52.56, automatic)
Upgrade: linux-headers-generic:amd64 (4.15.0.51.53, 4.15.0.52.54), linux-image-generic:amd64 (4.15.0.51.53, 4.15.0.52.54), linux-generic:amd64 (4.15.0.51.53, 4.15.0.52.54)
End-Date: 2019-06-20 08:55:11
Start-Date: 2019-06-20 09:01:51
Commandline: aptdaemon role='role-commit-packages' sender=':1.96'
Upgrade: open-vm-tools-desktop:amd64 (2:10.3.5-7~ubuntu0.18.04.1, 2:10.3.10-1~ubuntu0.18.04.1), python2.7-dev:amd64 (2.7.15~rc1-1ubuntu0.1, 2.7.15-4ubuntu4~18.04), libpython3.6-minimal:amd64 (3.6.7-1~18.04, 3.6.8-1~18.04.1), libcups2:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), libnet-ssleay-perl:amd64 (1.84-1build1, 1.84-1ubuntu0.1), libapt-inst2.0:amd64 (1.6.10, 1.6.11), libegl1:amd64 (1.0.0-2ubuntu2.2, 1.0.0-2ubuntu2.3), openssl:amd64 (1.1.0g-2ubuntu4.3, 1.1.1-1ubuntu2.1~18.04.2), ruby2.5:amd64 (2.5.1-1ubuntu1.2, 2.5.1-1ubuntu1.4), update-notifier-common:amd64 (3.192.1.5, 3.192.1.7), libsystemd0:amd64 (237-3ubuntu10.21, 237-3ubuntu10.22), apt:amd64 (1.6.10, 1.6.11), libgl1:amd64 (1.0.0-2ubuntu2.2, 1.0.0-2ubuntu2.3), python2.7-minimal:amd64 (2.7.15~rc1-1ubuntu0.1, 2.7.15-4ubuntu4~18.04), libpython3.6-stdlib:amd64 (3.6.7-1~18.04, 3.6.8-1~18.04.1), libpython2.7:amd64 (2.7.15~rc1-1ubuntu0.1, 2.7.15-4ubuntu4~18.04), google-chrome-stable:amd64 (75.0.3770.80-1, 75.0.3770.100-1), python2.7:amd64 (2.7.15~rc1-1ubuntu0.1, 2.7.15-4ubuntu4~18.04), libpython3.6:amd64 (3.6.7-1~18.04, 3.6.8-1~18.04.1), python3.6:amd64 (3.6.7-1~18.04, 3.6.8-1~18.04.1), open-vm-tools:amd64 (2:10.3.5-7~ubuntu0.18.04.1, 2:10.3.10-1~ubuntu0.18.04.1), libpython2.7-dev:amd64 (2.7.15~rc1-1ubuntu0.1, 2.7.15-4ubuntu4~18.04), udev:amd64 (237-3ubuntu10.21, 237-3ubuntu10.22), cups-server-common:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), libwww-perl:amd64 (6.31-1, 6.31-1ubuntu0.1), cups-common:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), ruby2.5-dev:amd64 (2.5.1-1ubuntu1.2, 2.5.1-1ubuntu1.4), libapt-pkg5.0:amd64 (1.6.10, 1.6.11), ruby2.5-doc:amd64 (2.5.1-1ubuntu1.2, 2.5.1-1ubuntu1.4), libudev1:amd64 (237-3ubuntu10.21, 237-3ubuntu10.22), libio-socket-ssl-perl:amd64 (2.056-1, 2.060-3~ubuntu18.04.1), python3.6-minimal:amd64 (3.6.7-1~18.04, 3.6.8-1~18.04.1), python-cryptography:amd64 (2.1.4-1ubuntu1.2, 2.1.4-1ubuntu1.3), python3-cryptography:amd64 (2.1.4-1ubuntu1.2, 2.1.4-1ubuntu1.3), cups-ppdc:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), libcupsmime1:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), libruby2.5:amd64 (2.5.1-1ubuntu1.2, 2.5.1-1ubuntu1.4), thunderbird-locale-en-us:amd64 (1:60.7.0+build1-0ubuntu0.18.04.1, 1:60.7.1+build1-0ubuntu0.18.04.1), systemd-sysv:amd64 (237-3ubuntu10.21, 237-3ubuntu10.22), libpam-systemd:amd64 (237-3ubuntu10.21, 237-3ubuntu10.22), libglx0:amd64 (1.0.0-2ubuntu2.2, 1.0.0-2ubuntu2.3), systemd:amd64 (237-3ubuntu10.21, 237-3ubuntu10.22), apt-utils:amd64 (1.6.10, 1.6.11), libnss-systemd:amd64 (237-3ubuntu10.21, 237-3ubuntu10.22), thunderbird:amd64 (1:60.7.0+build1-0ubuntu0.18.04.1, 1:60.7.1+build1-0ubuntu0.18.04.1), libcupsppdc1:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), libpython2.7-minimal:amd64 (2.7.15~rc1-1ubuntu0.1, 2.7.15-4ubuntu4~18.04), cups-bsd:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), cups-core-drivers:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), cups-daemon:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), libssl1.1:amd64 (1.1.0g-2ubuntu4.3, 1.1.1-1ubuntu2.1~18.04.2), libcupsimage2:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), libpython2.7-stdlib:amd64 (2.7.15~rc1-1ubuntu0.1, 2.7.15-4ubuntu4~18.04), python3-gdbm:amd64 (3.6.7-1~18.04, 3.6.8-1~18.04), cups:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), libcupscgi1:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), cups-client:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), cups-ipp-utils:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), thunderbird-locale-en:amd64 (1:60.7.0+build1-0ubuntu0.18.04.1, 1:60.7.1+build1-0ubuntu0.18.04.1), update-notifier:amd64 (3.192.1.5, 3.192.1.7), python-pip-whl:amd64 (9.0.1-2.3~ubuntu1, 9.0.1-2.3~ubuntu1.18.04.1), python-pip:amd64 (9.0.1-2.3~ubuntu1, 9.0.1-2.3~ubuntu1.18.04.1), libglvnd0:amd64 (1.0.0-2ubuntu2.2, 1.0.0-2ubuntu2.3)
Remove: linux-image-4.15.0-50-generic:amd64 (4.15.0-50.54), linux-headers-4.15.0-50:amd64 (4.15.0-50.54), linux-modules-extra-4.15.0-50-generic:amd64 (4.15.0-50.54), linux-modules-4.15.0-50-generic:amd64 (4.15.0-50.54), linux-headers-4.15.0-50-generic:amd64 (4.15.0-50.54)
End-Date: 2019-06-20 09:19:23
Start-Date: 2019-06-20 11:19:37
Commandline: packagekit role='remove-packages'
Requested-By: pk (1000)
Remove: pidgin:amd64 (1:2.12.0-1ubuntu4), pidgin-libnotify:amd64 (0.14-9ubuntu2)
End-Date: 2019-06-20 11:19:38
Start-Date: 2019-06-20 11:19:55
Commandline: packagekit role='remove-packages'
Requested-By: pk (1000)
Remove: sgt-launcher:amd64 (0.2.4-0ubuntu1)
End-Date: 2019-06-20 11:19:57
Start-Date: 2019-06-20 11:20:03
Commandline: packagekit role='remove-packages'
Requested-By: pk (1000)
Remove: simple-scan:amd64 (3.28.0-0ubuntu1)
End-Date: 2019-06-20 11:20:04