[jboss-jira] [JBoss JIRA] Created: (JGRP-1257) ENCRYPT protocol UnrecoverableKeyException: Given final block not properly padded

Andres Garcia Garcia (JIRA) jira-events at lists.jboss.org
Wed Dec 1 03:27:04 EST 2010


ENCRYPT protocol UnrecoverableKeyException: Given final block not properly padded
---------------------------------------------------------------------------------

                 Key: JGRP-1257
                 URL: https://jira.jboss.org/browse/JGRP-1257
             Project: JGroups
          Issue Type: Bug
    Affects Versions: 2.11, 2.8, 2.7
         Environment: Windows XP SP3, Java 1.6
            Reporter: Andres Garcia Garcia
            Assignee: Bela Ban


Recently I updated my jgroups version from 2.4.x to 2.11. Suddenly my applications thrown this exception.

org.jgroups.ChannelException: unable to setup the protocol stack: Given final block not properly padded
        at org.jgroups.JChannel.init(JChannel.java:1574)
        at org.jgroups.JChannel.<init>(JChannel.java:257)
        at org.jgroups.JChannel.<init>(JChannel.java:240)
        at org.jgroups.demos.Draw.<init>(Draw.java:52)
        at org.jgroups.demos.Draw.main(Draw.java:141)
Caused by: java.security.UnrecoverableKeyException: Given final block not properly padded
        at com.sun.crypto.provider.SunJCE_z.a(DashoA13*..)
        at com.sun.crypto.provider.JceKeyStore.engineGetKey(DashoA13*..)
        at java.security.KeyStore.getKey(Unknown Source)
        at org.jgroups.protocols.ENCRYPT.initConfiguredKey(ENCRYPT.java:269)
        at org.jgroups.protocols.ENCRYPT.init(ENCRYPT.java:231)
        at org.jgroups.stack.ProtocolStack.initProtocolStack(ProtocolStack.java:641)
        at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:468)
        at org.jgroups.JChannel.init(JChannel.java:1570)
        ... 4 more

The ENCRYPT protocol config is

	<ENCRYPT  sym_init="448"
		sym_algorithm="Blowfish"
		encrypt_entire_message="true"
		key_store_name="cloudencrypt.keystore"
		store_password="password" 
		alias="test"/> 

I tested the same code with different versions. 2.6.15 GA is the last working version, and every version I tested from 2.7 GA to 2.11 GA throw the same exception. I made a little use case with it. Maybe I am missing something?

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list