[JBoss JIRA] (DROOLS-3880) Bug when parsing fact from String to Double in Drools
by Mario Fusco (Jira)
[ https://issues.jboss.org/browse/DROOLS-3880?page=com.atlassian.jira.plugi... ]
Mario Fusco updated DROOLS-3880:
--------------------------------
Sprint: 2019 Week 14-16
> Bug when parsing fact from String to Double in Drools
> -----------------------------------------------------
>
> Key: DROOLS-3880
> URL: https://issues.jboss.org/browse/DROOLS-3880
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.0.0.Final
> Environment: Ubuntu, Intellij Idea
> Reporter: Almas Toimbekov
> Assignee: Mario Fusco
> Priority: Major
>
> When one inserts a new object in drl file and afterward wants to compare its String representation of a number with another number in next rules Drools gives an exception. It is much clearer with an example (below in code section)
> Interesting that when you compare it as a String (amount == "10") - it works fine. But when you try to parse "amount" to Double then Java doesn't know that there is any value at all (thinks amount == null and therefore cannot parse it). The second interesting thing is that if you created this object (resource) in java and inserted it before "fireAllRules()" - "amount" field become visible to the parser and it works.
> But the matter is that I cannot create this object before firing rules because I don't know wheter there will be a need of it. And my fields must be String as well. And I have to compare it like "more than" or "less than", so comparing strings doesn't apply.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (DROOLS-3880) Bug when parsing fact from String to Double in Drools
by Mario Fusco (Jira)
[ https://issues.jboss.org/browse/DROOLS-3880?page=com.atlassian.jira.plugi... ]
Mario Fusco resolved DROOLS-3880.
---------------------------------
Resolution: Rejected
> Bug when parsing fact from String to Double in Drools
> -----------------------------------------------------
>
> Key: DROOLS-3880
> URL: https://issues.jboss.org/browse/DROOLS-3880
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.0.0.Final
> Environment: Ubuntu, Intellij Idea
> Reporter: Almas Toimbekov
> Assignee: Mario Fusco
> Priority: Major
>
> When one inserts a new object in drl file and afterward wants to compare its String representation of a number with another number in next rules Drools gives an exception. It is much clearer with an example (below in code section)
> Interesting that when you compare it as a String (amount == "10") - it works fine. But when you try to parse "amount" to Double then Java doesn't know that there is any value at all (thinks amount == null and therefore cannot parse it). The second interesting thing is that if you created this object (resource) in java and inserted it before "fireAllRules()" - "amount" field become visible to the parser and it works.
> But the matter is that I cannot create this object before firing rules because I don't know wheter there will be a need of it. And my fields must be String as well. And I have to compare it like "more than" or "less than", so comparing strings doesn't apply.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (DROOLS-3880) Bug when parsing fact from String to Double in Drools
by Almas Toimbekov (Jira)
[ https://issues.jboss.org/browse/DROOLS-3880?page=com.atlassian.jira.plugi... ]
Almas Toimbekov commented on DROOLS-3880:
-----------------------------------------
Sorry, this was my fault. When I created separate project it worked fine. The problem is that I had another resources with amount == null field.
What is the best way to get facts which field is not null?
Like this?
When
$resource: Resource(amount != null, Double.parseDouble(amount) > 0.0)
or
not Resource(amount == null)
$resource: Resource(Double.parseDouble(amount) > 0.0)
Then
> Bug when parsing fact from String to Double in Drools
> -----------------------------------------------------
>
> Key: DROOLS-3880
> URL: https://issues.jboss.org/browse/DROOLS-3880
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.0.0.Final
> Environment: Ubuntu, Intellij Idea
> Reporter: Almas Toimbekov
> Assignee: Mario Fusco
> Priority: Major
>
> When one inserts a new object in drl file and afterward wants to compare its String representation of a number with another number in next rules Drools gives an exception. It is much clearer with an example (below in code section)
> Interesting that when you compare it as a String (amount == "10") - it works fine. But when you try to parse "amount" to Double then Java doesn't know that there is any value at all (thinks amount == null and therefore cannot parse it). The second interesting thing is that if you created this object (resource) in java and inserted it before "fireAllRules()" - "amount" field become visible to the parser and it works.
> But the matter is that I cannot create this object before firing rules because I don't know wheter there will be a need of it. And my fields must be String as well. And I have to compare it like "more than" or "less than", so comparing strings doesn't apply.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (WFLY-11998) elytron-tool.sh : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
by Martin Choma (Jira)
[ https://issues.jboss.org/browse/WFLY-11998?page=com.atlassian.jira.plugin... ]
Martin Choma moved ELY-1791 to WFLY-11998:
------------------------------------------
Project: WildFly (was: WildFly Elytron)
Key: WFLY-11998 (was: ELY-1791)
Component/s: Security
(was: Command-Line Tool)
Affects Version/s: 17.0.0.Beta1
(was: 1.9.0.CR3)
Affects Testing: Regression
> elytron-tool.sh : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
> ---------------------------------------------------------------------------------------------------
>
> Key: WFLY-11998
> URL: https://issues.jboss.org/browse/WFLY-11998
> Project: WildFly
> Issue Type: Bug
> Components: Security
> Affects Versions: 17.0.0.Beta1
> Reporter: Martin Choma
> Priority: Blocker
>
> We are hitting regression in our tests against WF master
> {code}
> 01:48:56,706 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main) Command:[/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/openjdk-1.8.0/bin/java, -jar, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/dist/jboss-eap/bin/wildfly-elytron-tool.jar, credential-store, -c, -a, secret-key, -x, pass123+, -p, pass123+, -l, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/workaround_dir, -u, keyStoreType=PKCS11;external=true;keyAlias=my-key;externalPath=/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/secure-data-file, --debug]
> 01:48:57,255 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main) Process output:
> 01:48:57,255 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main)
> 01:48:57,256 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Process error:
> 01:48:57,257 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Exception encountered executing the command:
> org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
> at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:402)
> at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:242)
> at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:226)
> at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:242)
> at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)
> Caused by: java.security.NoSuchAlgorithmException: class configured for PasswordFactory (provider: WildFlyElytron) cannot be found.
> at java.security.Provider$Service.getImplClass(Provider.java:1649)
> at java.security.Provider$Service.newInstanceGeneric(Provider.java:1660)
> at java.security.Provider$Service.newInstance(Provider.java:1584)
> at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:119)
> at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:76)
> at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:276)
> ... 4 more
> Caused by: java.lang.ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
> at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.security.Provider$Service.getImplClass(Provider.java:1636)
> ... 9 more
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (ELY-1791) elytron-tool.sh : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
by Martin Choma (Jira)
Martin Choma created ELY-1791:
---------------------------------
Summary: elytron-tool.sh : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
Key: ELY-1791
URL: https://issues.jboss.org/browse/ELY-1791
Project: WildFly Elytron
Issue Type: Bug
Components: Command-Line Tool
Affects Versions: 1.9.0.CR3
Reporter: Martin Choma
We are hitting regression in our tests against WF master
{code}
01:48:56,706 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main) Command:[/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/openjdk-1.8.0/bin/java, -jar, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/dist/jboss-eap/bin/wildfly-elytron-tool.jar, credential-store, -c, -a, secret-key, -x, pass123+, -p, pass123+, -l, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/workaround_dir, -u, keyStoreType=PKCS11;external=true;keyAlias=my-key;externalPath=/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/secure-data-file, --debug]
01:48:57,255 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main) Process output:
01:48:57,255 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main)
01:48:57,256 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Process error:
01:48:57,257 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Exception encountered executing the command:
org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:402)
at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:242)
at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:226)
at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:242)
at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)
Caused by: java.security.NoSuchAlgorithmException: class configured for PasswordFactory (provider: WildFlyElytron) cannot be found.
at java.security.Provider$Service.getImplClass(Provider.java:1649)
at java.security.Provider$Service.newInstanceGeneric(Provider.java:1660)
at java.security.Provider$Service.newInstance(Provider.java:1584)
at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:119)
at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:76)
at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:276)
... 4 more
Caused by: java.lang.ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.security.Provider$Service.getImplClass(Provider.java:1636)
... 9 more
{code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (ELY-1790) elytron-tool.sh : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
by Martin Choma (Jira)
[ https://issues.jboss.org/browse/ELY-1790?page=com.atlassian.jira.plugin.s... ]
Martin Choma updated ELY-1790:
------------------------------
Summary: elytron-tool.sh : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl (was: wildfly-elytron-tool.jar : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl)
> elytron-tool.sh : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
> ---------------------------------------------------------------------------------------------------
>
> Key: ELY-1790
> URL: https://issues.jboss.org/browse/ELY-1790
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Command-Line Tool
> Affects Versions: 1.9.0.CR3
> Reporter: Martin Choma
> Priority: Blocker
>
> We are hitting regression in our tests against WF master
> {code}
> 01:48:56,706 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main) Command:[/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/openjdk-1.8.0/bin/java, -jar, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/dist/jboss-eap/bin/wildfly-elytron-tool.jar, credential-store, -c, -a, secret-key, -x, pass123+, -p, pass123+, -l, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/workaround_dir, -u, keyStoreType=PKCS11;external=true;keyAlias=my-key;externalPath=/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/secure-data-file, --debug]
> 01:48:57,255 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main) Process output:
> 01:48:57,255 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main)
> 01:48:57,256 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Process error:
> 01:48:57,257 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Exception encountered executing the command:
> org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
> at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:402)
> at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:242)
> at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:226)
> at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:242)
> at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)
> Caused by: java.security.NoSuchAlgorithmException: class configured for PasswordFactory (provider: WildFlyElytron) cannot be found.
> at java.security.Provider$Service.getImplClass(Provider.java:1649)
> at java.security.Provider$Service.newInstanceGeneric(Provider.java:1660)
> at java.security.Provider$Service.newInstance(Provider.java:1584)
> at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:119)
> at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:76)
> at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:276)
> ... 4 more
> Caused by: java.lang.ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
> at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.security.Provider$Service.getImplClass(Provider.java:1636)
> ... 9 more
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (ELY-1790) wildfly-elytron-tool.jar : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
by Martin Choma (Jira)
[ https://issues.jboss.org/browse/ELY-1790?page=com.atlassian.jira.plugin.s... ]
Martin Choma updated ELY-1790:
------------------------------
Steps to Reproduce:
# build WF from master
# {code}./elytron-tool.sh credential-store --add secret_alias --password pass123 --create -x secret_password -l store.jceks --debug{code}
# There is exception {code}Exception encountered executing the command:
org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:402)
at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:242)
at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:226)
at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:242)
at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)
Caused by: java.security.NoSuchAlgorithmException: class configured for PasswordFactory (provider: WildFlyElytron) cannot be found.
at java.security.Provider$Service.getImplClass(Provider.java:1649)
at java.security.Provider$Service.newInstanceGeneric(Provider.java:1660)
at java.security.Provider$Service.newInstance(Provider.java:1584)
at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:119)
at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:76)
at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:276)
... 4 more
Caused by: java.lang.ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.security.Provider$Service.getImplClass(Provider.java:1636)
... 9 more
{code}
was:
# build WF from master
# {code}./elytron-tool.sh credential-store --add secret_alias --password pass123 --create -x secret_password -l store.jceks --debug
Exception encountered executing the command:
org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:402)
at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:242)
at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:226)
at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:242)
at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)
Caused by: java.security.NoSuchAlgorithmException: class configured for PasswordFactory (provider: WildFlyElytron) cannot be found.
at java.security.Provider$Service.getImplClass(Provider.java:1649)
at java.security.Provider$Service.newInstanceGeneric(Provider.java:1660)
at java.security.Provider$Service.newInstance(Provider.java:1584)
at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:119)
at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:76)
at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:276)
... 4 more
Caused by: java.lang.ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.security.Provider$Service.getImplClass(Provider.java:1636)
... 9 more
{code}
> wildfly-elytron-tool.jar : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
> ------------------------------------------------------------------------------------------------------------
>
> Key: ELY-1790
> URL: https://issues.jboss.org/browse/ELY-1790
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Command-Line Tool
> Affects Versions: 1.9.0.CR3
> Reporter: Martin Choma
> Priority: Blocker
>
> We are hitting regression in our tests against WF master
> {code}
> 01:48:56,706 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main) Command:[/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/openjdk-1.8.0/bin/java, -jar, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/dist/jboss-eap/bin/wildfly-elytron-tool.jar, credential-store, -c, -a, secret-key, -x, pass123+, -p, pass123+, -l, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/workaround_dir, -u, keyStoreType=PKCS11;external=true;keyAlias=my-key;externalPath=/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/secure-data-file, --debug]
> 01:48:57,255 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main) Process output:
> 01:48:57,255 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main)
> 01:48:57,256 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Process error:
> 01:48:57,257 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Exception encountered executing the command:
> org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
> at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:402)
> at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:242)
> at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:226)
> at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:242)
> at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)
> Caused by: java.security.NoSuchAlgorithmException: class configured for PasswordFactory (provider: WildFlyElytron) cannot be found.
> at java.security.Provider$Service.getImplClass(Provider.java:1649)
> at java.security.Provider$Service.newInstanceGeneric(Provider.java:1660)
> at java.security.Provider$Service.newInstance(Provider.java:1584)
> at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:119)
> at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:76)
> at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:276)
> ... 4 more
> Caused by: java.lang.ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
> at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.security.Provider$Service.getImplClass(Provider.java:1636)
> ... 9 more
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (ELY-1790) wildfly-elytron-tool.jar : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
by Martin Choma (Jira)
[ https://issues.jboss.org/browse/ELY-1790?page=com.atlassian.jira.plugin.s... ]
Martin Choma updated ELY-1790:
------------------------------
Steps to Reproduce:
# build WF from master
# {code}./elytron-tool.sh credential-store --add secret_alias --password pass123 --create -x secret_password -l store.jceks --debug
Exception encountered executing the command:
org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:402)
at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:242)
at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:226)
at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:242)
at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)
Caused by: java.security.NoSuchAlgorithmException: class configured for PasswordFactory (provider: WildFlyElytron) cannot be found.
at java.security.Provider$Service.getImplClass(Provider.java:1649)
at java.security.Provider$Service.newInstanceGeneric(Provider.java:1660)
at java.security.Provider$Service.newInstance(Provider.java:1584)
at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:119)
at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:76)
at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:276)
... 4 more
Caused by: java.lang.ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.security.Provider$Service.getImplClass(Provider.java:1636)
... 9 more
{code}
was:
1. build WF from master
2. ./elytron-tool.sh credential-store --add secret_alias --password pass123 --create -x secret_password -l store.jceks --summary
> wildfly-elytron-tool.jar : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
> ------------------------------------------------------------------------------------------------------------
>
> Key: ELY-1790
> URL: https://issues.jboss.org/browse/ELY-1790
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Command-Line Tool
> Affects Versions: 1.9.0.CR3
> Reporter: Martin Choma
> Priority: Blocker
>
> We are hitting regression in our tests against WF master
> {code}
> 01:48:56,706 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main) Command:[/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/openjdk-1.8.0/bin/java, -jar, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/dist/jboss-eap/bin/wildfly-elytron-tool.jar, credential-store, -c, -a, secret-key, -x, pass123+, -p, pass123+, -l, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/workaround_dir, -u, keyStoreType=PKCS11;external=true;keyAlias=my-key;externalPath=/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/secure-data-file, --debug]
> 01:48:57,255 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main) Process output:
> 01:48:57,255 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main)
> 01:48:57,256 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Process error:
> 01:48:57,257 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Exception encountered executing the command:
> org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
> at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:402)
> at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:242)
> at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:226)
> at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:242)
> at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)
> Caused by: java.security.NoSuchAlgorithmException: class configured for PasswordFactory (provider: WildFlyElytron) cannot be found.
> at java.security.Provider$Service.getImplClass(Provider.java:1649)
> at java.security.Provider$Service.newInstanceGeneric(Provider.java:1660)
> at java.security.Provider$Service.newInstance(Provider.java:1584)
> at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:119)
> at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:76)
> at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:276)
> ... 4 more
> Caused by: java.lang.ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
> at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.security.Provider$Service.getImplClass(Provider.java:1636)
> ... 9 more
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months
[JBoss JIRA] (ELY-1790) wildfly-elytron-tool.jar : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
by Martin Choma (Jira)
[ https://issues.jboss.org/browse/ELY-1790?page=com.atlassian.jira.plugin.s... ]
Martin Choma updated ELY-1790:
------------------------------
Steps to Reproduce:
1. build WF from master
2. ./elytron-tool.sh credential-store --add secret_alias --password pass123 --create -x secret_password -l store.jceks --summary
> wildfly-elytron-tool.jar : ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
> ------------------------------------------------------------------------------------------------------------
>
> Key: ELY-1790
> URL: https://issues.jboss.org/browse/ELY-1790
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Command-Line Tool
> Affects Versions: 1.9.0.CR3
> Reporter: Martin Choma
> Priority: Blocker
>
> We are hitting regression in our tests against WF master
> {code}
> 01:48:56,706 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main) Command:[/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/openjdk-1.8.0/bin/java, -jar, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/dist/jboss-eap/bin/wildfly-elytron-tool.jar, credential-store, -c, -a, secret-key, -x, pass123+, -p, pass123+, -l, /home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/workaround_dir, -u, keyStoreType=PKCS11;external=true;keyAlias=my-key;externalPath=/home/hudson/hudson_workspace/workspace/eap-7.x-security-fips-matrix/d6d35f0f/fips-testsuite/fips/target/FipsCsElytronToolTestCase/secure-data-file, --debug]
> 01:48:57,255 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main) Process output:
> 01:48:57,255 INFO [com.redhat.eap.qe.cli.CommandExecutor] (main)
> 01:48:57,256 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Process error:
> 01:48:57,257 ERROR [com.redhat.eap.qe.cli.CommandExecutor] (main) Exception encountered executing the command:
> org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
> at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:402)
> at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:242)
> at org.wildfly.security.credential.store.CredentialStore.store(CredentialStore.java:226)
> at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:242)
> at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:84)
> Caused by: java.security.NoSuchAlgorithmException: class configured for PasswordFactory (provider: WildFlyElytron) cannot be found.
> at java.security.Provider$Service.getImplClass(Provider.java:1649)
> at java.security.Provider$Service.newInstanceGeneric(Provider.java:1660)
> at java.security.Provider$Service.newInstance(Provider.java:1584)
> at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:119)
> at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:76)
> at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:276)
> ... 4 more
> Caused by: java.lang.ClassNotFoundException: org.wildfly.security.password.impl.PasswordFactorySpiImpl
> at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.security.Provider$Service.getImplClass(Provider.java:1636)
> ... 9 more
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 3 months