java.security.KeyStoreException: DatabaseKeyStore not found

Hi,

after installing some updates on a Ubuntu 10.0.4 LTS Djigzo (2.3.1-7) doesn't start anymore. Instead the log file contains the following errors:

org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: Component named "djigzo" failed to pass through the Parameterizing stage. (Reason: org.springframework.beans.factory.
BeanCreationException: Error creating bean with name 'mitm.application.djigzo.service.GlobalPreferencesPlaceholderConfigurer#0' defined in file [/usr/share/djigzo/conf/spring/services.xm
l]: Cannot resolve reference to bean 'globalPreferencesManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'globalPreferencesManager' defined in file [/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve reference to bean 'userPreferencesCategoryManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userPreferencesCategoryManager' defined in file [/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve reference to bean 'pkiSecurityServices' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pkiSecurityServices' defined in file [/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve reference to bean 'pkiSecurityServicesFactory' while setting constructor argument; nested exc
eption is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pkiSecurityServicesFactory' defined in file [/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve reference to bean 'keyAndCertStore' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'keyAndCertStore' defined in file [/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve reference to bean 'keyStore' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'keyStore' defined in file [/usr/share/djigzo/conf/spring/services.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static mitm.application.djigzo.service.KeyStoreService mitm.application.djigzo.service.SecurityServices.buildKeyStoreService(java.
lang.String,mitm.common.hibernate.SessionManager) throws java.security.KeyStoreException,java.security.NoSuchProviderException,java.security.NoSuchAlgorithmException,java.security.cert.CertificateException,java.io.IOException] threw exception; nested exception is java.security.KeyStoreException: DatabaseKeyStore not found).

Caused by: java.security.NoSuchAlgorithmException: class configured for KeyStore (provider: mitm) is not public.
        at java.security.Provider$Service.getImplClass(Provider.java:1284)
        at java.security.Provider$Service.newInstance(Provider.java:1237)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:206)
        at java.security.Security.getImpl(Security.java:699)
        at java.security.KeyStore.getInstance(KeyStore.java:648)

rethrown from
java.security.KeyStoreException: DatabaseKeyStore not found
        at java.security.KeyStore.getInstance(KeyStore.java:651)
        at mitm.application.djigzo.service.SecurityServices.buildKeyStoreService(SecurityServices.java:192)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:622)

More info about the system:

java version "1.6.0_32"
OpenJDK Runtime Environment (IcedTea6 1.13.4) (6b32-1.13.4-4ubuntu0.10.04.2)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

I'm quite sure that I deselcted all updates, that might have something to do with java.

Thanks for any hints or suggestions,

Stefan

There was a warning about this on the mailing list a couple of months ago

For more information see

https://www.ciphermail.com/other/additional-release-notes-2.8.6-3.html

According to Ubuntu – Error the
latest version of OpenJDK is 6b32 so it looks like you have updated OpenJDK.

Kind regards,

Martijn Brinkers

···

On 10/10/2014 03:15 PM, Stefan Michael Guenther wrote:

after installing some updates on a Ubuntu 10.0.4 LTS Djigzo (2.3.1-7) doesn't start anymore. Instead the log file contains the following errors:

org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: Component named "djigzo" failed to pass through the Parameterizing stage. (Reason: org.springframework.beans.factory.
BeanCreationException: Error creating bean with name 'mitm.application.djigzo.service.GlobalPreferencesPlaceholderConfigurer#0' defined in file [/usr/share/djigzo/conf/spring/services.xm
l]: Cannot resolve reference to bean 'globalPreferencesManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'globalPreferencesManager' defined in file [/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve reference to bean 'userPreferencesCategoryManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userPreferencesCategoryManager' defined in file [/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve reference to bean 'pkiSecurityServices' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pkiSecurityServices' defined in file [/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve reference to bean 'pkiSecurityServicesFactory' while setting constructor argument; nested exc
eption is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pkiSecurityServicesFactory' defined in file [/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve reference to bean 'keyAndCertStore' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'keyAndCertStore' defined in file [/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve reference to bean 'keyStore' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'keyStore' defined in file [/usr/share/djigzo/conf/spring/services.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static mitm.application.djigzo.service.KeyStoreService mitm.application.djigzo.service.SecurityServices.buildKeyStoreService(java.
lang.String,mitm.common.hibernate.SessionManager) throws java.security.KeyStoreException,java.security.NoSuchProviderException,java.security.NoSuchAlgorithmException,java.security.cert.CertificateException,java.io.IOException] threw exception; nested exception is java.security.KeyStoreException: DatabaseKeyStore not found).

Caused by: java.security.NoSuchAlgorithmException: class configured for KeyStore (provider: mitm) is not public.
        at java.security.Provider$Service.getImplClass(Provider.java:1284)
        at java.security.Provider$Service.newInstance(Provider.java:1237)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:206)
        at java.security.Security.getImpl(Security.java:699)
        at java.security.KeyStore.getInstance(KeyStore.java:648)

rethrown from
java.security.KeyStoreException: DatabaseKeyStore not found
        at java.security.KeyStore.getInstance(KeyStore.java:651)
        at mitm.application.djigzo.service.SecurityServices.buildKeyStoreService(SecurityServices.java:192)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:622)

More info about the system:

java version "1.6.0_32"
OpenJDK Runtime Environment (IcedTea6 1.13.4) (6b32-1.13.4-4ubuntu0.10.04.2)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

I'm quite sure that I deselcted all updates, that might have something to do with java.

Thanks for any hints or suggestions,

--
CipherMail email encryption

Open source email encryption gateway with support for S/MIME, OpenPGP
and PDF messaging.

Twitter: http://twitter.com/CipherMail

Zitat von Stefan Michael Guenther <s.guenther(a)in-put.de>:

Hi,

after installing some updates on a Ubuntu 10.0.4 LTS Djigzo
(2.3.1-7) doesn't start anymore. Instead the log file contains the
following errors:

org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
Component named "djigzo" failed to pass through the Parameterizing
stage. (Reason: org.springframework.beans.factory.
BeanCreationException: Error creating bean with name
'mitm.application.djigzo.service.GlobalPreferencesPlaceholderConfigurer#0'
defined in file [/usr/share/djigzo/conf/spring/services.xm
l]: Cannot resolve reference to bean 'globalPreferencesManager'
while setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'globalPreferencesManager' defined in file
[/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve
reference to bean 'userPreferencesCategoryManager' while setting
constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'userPreferencesCategoryManager' defined in
file [/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve
reference to bean 'pkiSecurityServices' while setting constructor
argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'pkiSecurityServices' defined in file
[/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve
reference to bean 'pkiSecurityServicesFactory' while setting
constructor argument; nested exc
eption is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'pkiSecurityServicesFactory' defined
in file [/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve
reference to bean 'keyAndCertStore' while setting constructor
argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'keyAndCertStore' defined in file
[/usr/share/djigzo/conf/spring/services.xml]: Cannot resolve
reference to bean 'keyStore' while setting constructor argument;
nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'keyStore' defined in file
[/usr/share/djigzo/conf/spring/services.xml]: Instantiation of bean
failed; nested exception is
org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public static
mitm.application.djigzo.service.KeyStoreService
mitm.application.djigzo.service.SecurityServices.buildKeyStoreService(java.
lang.String,mitm.common.hibernate.SessionManager) throws
java.security.KeyStoreException,java.security.NoSuchProviderException,java.security.NoSuchAlgorithmException,java.security.cert.CertificateException,java.io.IOException] threw exception; nested exception is java.security.KeyStoreException: DatabaseKeyStore not
found).

Caused by: java.security.NoSuchAlgorithmException: class configured
for KeyStore (provider: mitm) is not public.
        at java.security.Provider$Service.getImplClass(Provider.java:1284)
        at java.security.Provider$Service.newInstance(Provider.java:1237)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:206)
        at java.security.Security.getImpl(Security.java:699)
        at java.security.KeyStore.getInstance(KeyStore.java:648)

rethrown from
java.security.KeyStoreException: DatabaseKeyStore not found
        at java.security.KeyStore.getInstance(KeyStore.java:651)
        at
mitm.application.djigzo.service.SecurityServices.buildKeyStoreService(SecurityServices.java:192)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:622)

More info about the system:

java version "1.6.0_32"
OpenJDK Runtime Environment (IcedTea6 1.13.4) (6b32-1.13.4-4ubuntu0.10.04.2)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

I'm quite sure that I deselcted all updates, that might have
something to do with java.

https://www.ciphermail.com/other/additional-release-notes-2.8.6-3.html

http://changelogs.ubuntu.com/changelogs/pool/main/o/openjdk-6/openjdk-6_6b32-1.13.4-4ubuntu0.10.04.2/changelog

The 1.13.4-4ubuntu Part of your version looks like latest Java updates
have been installed.

Regards

Andreas