adorsys / datasafe

Secure, Encrypted and Versioned Data Storage Library
https://adorsys.github.io/datasafe/
GNU Affero General Public License v3.0
55 stars 23 forks source link

java.lang.UnsupportedOperationException in Wildfly #187

Closed francis-pouatcha closed 11 months ago

francis-pouatcha commented 4 years ago

Technical issue:

· I can create service, register user, save, read & delete the file using adorsys in a java standalone application.

· Same way I tried using wildfly server as a web application, I have created the services but I am getting the following exception while try to register the user,

java.lang.UnsupportedOperationException

            at java.security.KeyStoreSpi.engineLoad(KeyStoreSpi.java:418)

            at java.security.KeyStore.load(KeyStore.java:1479)

            at de.adorsys.keymanagement.bouncycastle.adapter.services.persist.DefaultKeyStoreOperImpl.createBCFKSKeystore(DefaultKeyStoreOperImpl.java:176)

            at de.adorsys.keymanagement.bouncycastle.adapter.services.persist.DefaultKeyStoreOperImpl.generate(DefaultKeyStoreOperImpl.java:88)

            at de.adorsys.keymanagement.bouncycastle.adapter.services.persist.DefaultKeyStoreOperImpl.generate(DefaultKeyStoreOperImpl.java:54)

            at de.adorsys.keymanagement.bouncycastle.adapter.services.persist.DefaultKeyStoreOperImpl.generate(DefaultKeyStoreOperImpl.java:48)

            at de.adorsys.datasafe.encrypiton.impl.keystore.KeyStoreServiceImpl.createKeyStore(KeyStoreServiceImpl.java:105)

            at de.adorsys.datasafe.encrypiton.impl.keystore.KeyStoreServiceImplRuntimeDelegatable.createKeyStore(KeyStoreServiceImplRuntimeDelegatable.java:57)

            at de.adorsys.datasafe.encrypiton.impl.keystore.KeyStoreServiceImpl.createKeyStore(KeyStoreServiceImpl.java:65)

            at de.adorsys.datasafe.encrypiton.impl.keystore.KeyStoreServiceImplRuntimeDelegatable.createKeyStore(KeyStoreServiceImplRuntimeDelegatable.java:47)

            at de.adorsys.datasafe.directory.impl.profile.keys.DocumentKeyStoreOperationsImpl.createAndWriteKeyStore(DocumentKeyStoreOperationsImpl.java:90)

            at de.adorsys.datasafe.directory.impl.profile.keys.DocumentKeyStoreOperationsImplRuntimeDelegatable.createAndWriteKeyStore(DocumentKeyStoreOperationsImplRuntimeDelegatable.java:65)

            at de.adorsys.datasafe.directory.impl.profile.operations.actions.ProfileRegistrationServiceImpl.createDocumentKeystore(ProfileRegistrationServiceImpl.java:99)

            at de.adorsys.datasafe.directory.impl.profile.operations.actions.ProfileRegistrationServiceImplRuntimeDelegatable.createDocumentKeystore(ProfileRegistrationServiceImplRuntimeDelegatable.java:72)

            at de.adorsys.datasafe.directory.impl.profile.operations.actions.ProfileRegistrationServiceImpl.createAllAllowableKeystores(ProfileRegistrationServiceImpl.java:92)

            at de.adorsys.datasafe.directory.impl.profile.operations.actions.ProfileRegistrationServiceImplRuntimeDelegatable.createAllAllowableKeystores(ProfileRegistrationServiceImplRuntimeDelegatable.java:63)

            at de.adorsys.datasafe.directory.impl.profile.operations.actions.ProfileRegistrationServiceImpl.registerUsingDefaults(ProfileRegistrationServiceImpl.java:118)

            at de.adorsys.datasafe.directory.impl.profile.operations.actions.ProfileRegistrationServiceImplRuntimeDelegatable.registerUsingDefaults(ProfileRegistrationServiceImplRuntimeDelegatable.java:90)

            at de.adorsys.datasafe.directory.impl.profile.operations.DFSBasedProfileStorageImpl.registerUsingDefaults(DFSBasedProfileStorageImpl.java:22)
valb3r commented 4 years ago

Sample WildFly deployments:

  1. OpenJDK https://github.com/valb3r/datasafe-wildfly-test/tree/wildfly-11-openjdk
  2. Oracle JDK https://github.com/valb3r/datasafe-wildfly-test/tree/wildfly-11-oracle-jdk8 No issues detected with configurations from these.