[JBoss JIRA] (JGRP-2279) Error during ASYM_ENCRYPT-----exception occurred decrypting messagejavax.crypto.BadPaddingException: Given final block not properly padded
by George Jiang (JIRA)
[ https://issues.jboss.org/browse/JGRP-2279?page=com.atlassian.jira.plugin.... ]
George Jiang updated JGRP-2279:
-------------------------------
Attachment: jgroups-protocol.xml
> Error during ASYM_ENCRYPT-----exception occurred decrypting messagejavax.crypto.BadPaddingException: Given final block not properly padded
> ------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: JGRP-2279
> URL: https://issues.jboss.org/browse/JGRP-2279
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 4.0.1
> Environment: OS:Red Hat
> JDK:1.8
> Reporter: George Jiang
> Assignee: Bela Ban
> Priority: Critical
> Fix For: 4.0.13
>
> Attachments: asym-ssl2.xml, jgroups-protocol.xml
>
>
> *asym parameters:*
> <ASYM_ENCRYPT encrypt_entire_message="true"
> sign_msgs="true"
> sym_keylength="128"
> sym_algorithm="AES/ECB/PKCS5Padding"
> asym_keylength="2048"
> asym_algorithm="RSA"
> change_key_on_leave="true"/>
> *Throws the following error:*
> 2018-05-23T03:11:53,891 +2903450778 [jgroups--12467,-1491537117,1] ERROR org.jgroups.protocols.ASYM_ENCRYPT - 1: failed decrypting message from 2 (offset=0, length=1136, buf.length=1136): javax.crypto.BadPaddingException: Given final block not properly padded, headers are ASYM_ENCRYPT: [ENCRYPT version=16 bytes], TP: [cluster_name=-1491537117]
> 2018-05-23T03:11:53,893 +2903450780 [jgroups--12467,-1491537117,1] TRACE org.jgroups.protocols.TCP_NIO2 - 1: received message batch of 1 messages from 2
> 2018-05-23T03:11:53,895 +2903450782 [jgroups--12467,-1491537117,1] DEBUG org.jgroups.protocols.ASYM_ENCRYPT - 1: received secret key from keyserver 2
> 2018-05-23T03:11:53,895 +2903450782 [jgroups--12467,-1491537117,1] DEBUG org.jgroups.protocols.ASYM_ENCRYPT - 1: created 8 symmetric ciphers with secret key (16 bytes)
> 2018-05-23T03:11:54,369 +2903451256 [jgroups--12467,-1491537117,1] TRACE org.jgroups.protocols.TCP_NIO2 - 1: received [dst:***
> 2018-05-23T03:11:54,369 +2903451256 [jgroups--12467,-1491537117,1] WARN org.jgroups.protocols.ASYM_ENCRYPT - 1: exception occurred decrypting message
> javax.crypto.BadPaddingException: Given final block not properly padded
> at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:991) ~[sunjce_provider.jar:1.8.0_162]
> at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:847) ~[sunjce_provider.jar:1.8.0_162]
> at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446) ~[sunjce_provider.jar:1.8.0_162]
> at javax.crypto.Cipher.doFinal(Cipher.java:2222) ~[?:1.8.0_171]
> at org.jgroups.protocols.Encrypt.code(Encrypt.java:365) ~[jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.protocols.Encrypt.decryptChecksum(Encrypt.java:387) ~[jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.protocols.Encrypt._decrypt(Encrypt.java:299) ~[jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.protocols.Encrypt.decryptMessage(Encrypt.java:283) ~[jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.protocols.Encrypt.handleEncryptedMessage(Encrypt.java:242) ~[jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.protocols.Encrypt.handleUpMessage(Encrypt.java:229) ~[jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.protocols.Encrypt.up(Encrypt.java:155) [jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.protocols.ASYM_ENCRYPT.up(ASYM_ENCRYPT.java:143) [jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:129) [jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:197) [jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:252) [jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.protocols.MERGE3.up(MERGE3.java:277) [jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.protocols.Discovery.up(Discovery.java:262) [jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.protocols.TP.passMessageUp(TP.java:1203) [jgroups-4.0.1.Final.jar:4.0.1.Final]
> at org.jgroups.util.SubmitToThreadPool$SingleMessageHandler.run(SubmitToThreadPool.java:87) [jgroups-4.0.1.Final.jar:4.0.1.Final]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_162]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_162]
> at java.lang.Thread.run(Thread.java:748) [?:1.8.0_162]
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 3 months
[JBoss JIRA] (WFLY-10652) Mdb Clustered Singleton Delivery is not working
by Paul Ferraro (JIRA)
[ https://issues.jboss.org/browse/WFLY-10652?page=com.atlassian.jira.plugin... ]
Paul Ferraro edited comment on WFLY-10652 at 6/28/18 6:43 PM:
--------------------------------------------------------------
MdbDeliveryDependenciesProcessor should be changed to depend on CLUSTERED_SINGLETON_CAPABILITY.getCapabilityServiceName().
The recent changes to the singleton service API changed the internal service names such that usage like this can rely only on well known service names.
It looks like the lack of a test allowed this regression to go unnoticed.
was (Author: pferraro):
MdbDeliveryDependenciesProcessor should be changed to depend on CLUSTERED_SINGLETON_CAPABILITY.getCapabilityServiceName().
> Mdb Clustered Singleton Delivery is not working
> ------------------------------------------------
>
> Key: WFLY-10652
> URL: https://issues.jboss.org/browse/WFLY-10652
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Reporter: Flavia Rainone
> Assignee: Flavia Rainone
> Fix For: 14.0.0.CR1
>
>
> When trying to deploy an application with clustered singleton MDB delivery, we see this error:
> "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.ejb3.clustered.singleton"],"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"messaging-clustering-singleton.war\".clustered.singleton.dependency is missing [org.wildfly.ejb3.clustered.singleton]"]}}}
> The clustered singleton service is not being installed with the expected name.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 3 months
[JBoss JIRA] (WFLY-10652) Mdb Clustered Singleton Delivery is not working
by Paul Ferraro (JIRA)
[ https://issues.jboss.org/browse/WFLY-10652?page=com.atlassian.jira.plugin... ]
Paul Ferraro commented on WFLY-10652:
-------------------------------------
MdbDeliveryDependenciesProcessor should be changed to depend on CLUSTERED_SINGLETON_CAPABILITY.getCapabilityServiceName().
> Mdb Clustered Singleton Delivery is not working
> ------------------------------------------------
>
> Key: WFLY-10652
> URL: https://issues.jboss.org/browse/WFLY-10652
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Reporter: Flavia Rainone
> Assignee: Flavia Rainone
> Fix For: 14.0.0.CR1
>
>
> When trying to deploy an application with clustered singleton MDB delivery, we see this error:
> "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.ejb3.clustered.singleton"],"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"messaging-clustering-singleton.war\".clustered.singleton.dependency is missing [org.wildfly.ejb3.clustered.singleton]"]}}}
> The clustered singleton service is not being installed with the expected name.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 3 months
[JBoss JIRA] (WFLY-10652) Mdb Clustered Singleton Delivery is not working
by Paul Ferraro (JIRA)
[ https://issues.jboss.org/browse/WFLY-10652?page=com.atlassian.jira.plugin... ]
Paul Ferraro edited comment on WFLY-10652 at 6/28/18 6:37 PM:
--------------------------------------------------------------
[~flavia.rainone] Are clustered MDBs covered by the testsuite? I can't seem to find any tests. If not, -do you have a reproducer- (and can we create a test from it)?
nm - looks like the reproducer is the quickstart.
was (Author: pferraro):
[~flavia.rainone] Are clustered MDBs covered by the testsuite? I can't seem to find any tests. If not, do you have a reproducer (and can we create a test from it)?
> Mdb Clustered Singleton Delivery is not working
> ------------------------------------------------
>
> Key: WFLY-10652
> URL: https://issues.jboss.org/browse/WFLY-10652
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Reporter: Flavia Rainone
> Assignee: Flavia Rainone
> Fix For: 14.0.0.CR1
>
>
> When trying to deploy an application with clustered singleton MDB delivery, we see this error:
> "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.ejb3.clustered.singleton"],"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"messaging-clustering-singleton.war\".clustered.singleton.dependency is missing [org.wildfly.ejb3.clustered.singleton]"]}}}
> The clustered singleton service is not being installed with the expected name.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 3 months
[JBoss JIRA] (WFLY-10652) Mdb Clustered Singleton Delivery is not working
by Paul Ferraro (JIRA)
[ https://issues.jboss.org/browse/WFLY-10652?page=com.atlassian.jira.plugin... ]
Paul Ferraro commented on WFLY-10652:
-------------------------------------
[~flavia.rainone] Are clustered MDBs covered by the testsuite? I can't seem to find any tests. If not, do you have a reproducer (and can we create a test from it)?
> Mdb Clustered Singleton Delivery is not working
> ------------------------------------------------
>
> Key: WFLY-10652
> URL: https://issues.jboss.org/browse/WFLY-10652
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Reporter: Flavia Rainone
> Assignee: Flavia Rainone
> Fix For: 14.0.0.CR1
>
>
> When trying to deploy an application with clustered singleton MDB delivery, we see this error:
> "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.ejb3.clustered.singleton"],"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"messaging-clustering-singleton.war\".clustered.singleton.dependency is missing [org.wildfly.ejb3.clustered.singleton]"]}}}
> The clustered singleton service is not being installed with the expected name.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 3 months
[JBoss JIRA] (WFLY-10653) [GSS] (7.1.z) degraded performance from ImportedClassELResolver
by Ilia Vassilev (JIRA)
[ https://issues.jboss.org/browse/WFLY-10653?page=com.atlassian.jira.plugin... ]
Ilia Vassilev moved JBEAP-14960 to WFLY-10653:
----------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-10653 (was: JBEAP-14960)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Web (Undertow)
(was: Web (Undertow))
Fix Version/s: (was: 7.1.4.GA)
> [GSS] (7.1.z) degraded performance from ImportedClassELResolver
> ---------------------------------------------------------------
>
> Key: WFLY-10653
> URL: https://issues.jboss.org/browse/WFLY-10653
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Reporter: Ilia Vassilev
> Assignee: Ilia Vassilev
>
> Some cases have shown degraded performance on 7.1 compared to 7.0 because of extra processing overhead added in 7.1's new org.wildlfy.extension.undertow.ImportedClassELResolver.getValue method and its underlying javax.el.ImportHandler.resolveClass calls.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 3 months
[JBoss JIRA] (WFLY-10652) Mdb Clustered Singleton Delivery is not working
by Flavia Rainone (JIRA)
[ https://issues.jboss.org/browse/WFLY-10652?page=com.atlassian.jira.plugin... ]
Flavia Rainone commented on WFLY-10652:
---------------------------------------
[~pferraro] I can see that depending on org.wildfly.ejb3.clustered.singleton.singleton fixes the problem above. However, it appears there is no org.wildfly.ejb3.clustered.singleton.primary service anymore. Did that service also changed its name? I need the name of the primary service that identifies the elected singleton node, i.e., the lifecycle service that is UP only in the elected node.
If you need any pointers, the service is created in ClusteredSingletonServiceCreator, and the service dependencies are set in MdbDeliveryDependenciesProcessor.
So, changing line 97 of MdbDeliveryDependenciesProcessor to
{{.addDependency(CLUSTERED_SINGLETON_CAPABILITY.getCapabilityServiceName().append("singleton")).install();}}
solved the problem described in this Jira. Still, the messages are never delivered to a node, even if the cluster contains only a single node. That's why I'm betting that the service named CLUSTERED_SINGLETON_CAPABILITY.getCapabilityServiceName().append("primary") no longer has the same name. (see line 77 of MdbDeliveryDependenciesProcessor) .
Thanks for your help!
> Mdb Clustered Singleton Delivery is not working
> ------------------------------------------------
>
> Key: WFLY-10652
> URL: https://issues.jboss.org/browse/WFLY-10652
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Reporter: Flavia Rainone
> Assignee: Flavia Rainone
> Fix For: 14.0.0.CR1
>
>
> When trying to deploy an application with clustered singleton MDB delivery, we see this error:
> "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.ejb3.clustered.singleton"],"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"messaging-clustering-singleton.war\".clustered.singleton.dependency is missing [org.wildfly.ejb3.clustered.singleton]"]}}}
> The clustered singleton service is not being installed with the expected name.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 3 months
[JBoss JIRA] (WFLY-10652) Mdb Clustered Singleton Delivery is not working
by Flavia Rainone (JIRA)
[ https://issues.jboss.org/browse/WFLY-10652?page=com.atlassian.jira.plugin... ]
Flavia Rainone reassigned WFLY-10652:
-------------------------------------
Assignee: Flavia Rainone
> Mdb Clustered Singleton Delivery is not working
> ------------------------------------------------
>
> Key: WFLY-10652
> URL: https://issues.jboss.org/browse/WFLY-10652
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Reporter: Flavia Rainone
> Assignee: Flavia Rainone
> Fix For: 14.0.0.CR1
>
>
> When trying to deploy an application with clustered singleton MDB delivery, we see this error:
> "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.ejb3.clustered.singleton"],"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"messaging-clustering-singleton.war\".clustered.singleton.dependency is missing [org.wildfly.ejb3.clustered.singleton]"]}}}
> The clustered singleton service is not being installed with the expected name.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 3 months