Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8006

Unable to store value into credential store while using ibm java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • fuse-7.x-GA
    • fuse-7.0
    • Karaf
    • None
    • % %
    • Hide
      • create credential store:
         credential-store:create -a location=credential.store -k password="passwd" -k algorithm=masked-MD5-DES 
      • shutdown fuse
      • add outputted variables into bin/setenv (those with export)
      • start fuse
      • store value into credential store:
         credential-store:store -a my.property -s "some msg" 
      Show
      create credential store: credential-store:create -a location=credential.store -k password= "passwd" -k algorithm=masked-MD5-DES shutdown fuse add outputted variables into bin/setenv (those with export) start fuse store value into credential store: credential-store:store -a my.property -s "some msg"

      There is a null pointer exception while trying to store value into credential store:

      01:34:50.751 ERROR [Karaf local console user karaf] Exception caught while executing command
      java.lang.NullPointerException: null
              at com.ibm.security.pkcs12.AuthenticatedSafe.getContentInfos(AuthenticatedSafe.java:240) ~[?:?]
              at com.ibm.security.pkcs12.BasicPFX.getPFXContents(BasicPFX.java:2284) ~[?:?]
              at com.ibm.security.pkcs12.BasicPFX.getBags(BasicPFX.java:2082) ~[?:?]
              at com.ibm.security.pkcs12.BasicPFX.getTypedBags(BasicPFX.java:1943) ~[?:?]
              at com.ibm.security.pkcs12.BasicPFX.getAllPrivateKeyEntryAliases(BasicPFX.java:712) ~[?:?]
              at com.ibm.security.pkcs12.PFX.getAllPrivateKeyEntryAliases(PFX.java:609) ~[?:?]
              at com.ibm.crypto.provider.PKCS12KeyStoreOracle.engineLoad(Unknown Source) ~[?:?]
              at java.security.KeyStore.load(KeyStore.java:1456) ~[?:?]
              at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.load(KeyStoreCredentialStore.java:757) ~[?:?]
              at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.initialize(KeyStoreCredentialStore.java:157) ~[?:?]
              at org.wildfly.security.credential.store.CredentialStore.initialize(CredentialStore.java:118) ~[?:?]
              at org.jboss.fuse.credential.store.karaf.util.CredentialStoreHelper.credentialStoreFromEnvironment(CredentialStoreHelper.java:93) ~[?:?]
              at org.jboss.fuse.credential.store.karaf.command.StoreInCredentialStore.execute(StoreInCredentialStore.java:46) ~[?:?]
              at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?]
              at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?]
              at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?]
              at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) ~[?:?]
              at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) ~[?:?]
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) ~[?:?]
              at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) ~[?:?]
              at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
              at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
              at java.util.concurrent.FutureTask.run(FutureTask.java:277) ~[?:?]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153) ~[?:?]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
              at java.lang.Thread.run(Thread.java:785) [?:?]
      

            ggrzybek Grzegorz Grzybek
            vhais Vratislav Hais (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: