Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Bruno Antunes
AutoLoginFilter: BadPaddingException: Given final block not properly
September 12, 2012 4:01 PM
Answer

Bruno Antunes

Rank: New Member

Posts: 5

Join Date: April 12, 2011

Recent Posts

We have upgraded Liferay from version 6.0.6 to 6.1.0 GA1

When starting and using the portal we observe the following messages in the log files

23:27:52,975 ERROR [AutoLoginFilter:232] Current URL /c/portal/render_portlet?p_l_id=24107&p_auth=p_auth_84_&p_p_id=84&p_p_action=0&p_p_state=normal&p_p_mode=view&automatic=auto generates exception: com.liferay.portal.kernel.exception.SystemException: com.liferay.util.EncryptorException: com.liferay.util.EncryptorException: javax.crypto.BadPaddingException: Given final block not properly padded

23:27:53,117 ERROR [AutoLoginFilter:232] Current URL /c/portal/login?redirect=%2Fc%2Fportal%2Frender_portlet%3Fp_l_id%3D24107%26p_auth%3Dp_auth_84_%26p_p_id%3D84%26p_p_action%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26automatic%3Dauto&p_l_id=10160 generates exception: com.liferay.portal.kernel.exception.SystemException: com.liferay.util.EncryptorException: com.liferay.util.EncryptorException: javax.crypto.BadPaddingException: Given final block not properly padded

Portal is accessible, and its usable besides this error.

Any ideas for what to look for?
Bruno Antunes
RE: AutoLoginFilter: BadPaddingException: Given final block not properly
September 12, 2012 5:07 PM
Answer

Bruno Antunes

Rank: New Member

Posts: 5

Join Date: April 12, 2011

Recent Posts

Now the stack traces, enable logging for logging categories
com.liferay.portal.servlet.filters.autologin.AutoLoginFilter
com.liferay.portal.security.auth.RememberMeAutoLogin

=== START ===
01:03:08,343 WARN [RememberMeAutoLogin:108] com.liferay.portal.kernel.exception.SystemException: com.liferay.util.EncryptorException: com.liferay.util.EncryptorException: javax.crypto.BadPaddingException: Given final block not properly padded
com.liferay.portal.kernel.exception.SystemException: com.liferay.util.EncryptorException: com.liferay.util.EncryptorException: javax.crypto.BadPaddingException: Given final block not properly padded
at com.liferay.portal.service.impl.UserLocalServiceImpl.decryptUserId(UserLocalServiceImpl.java:1515)
at sun.reflect.GeneratedMethodAccessor426.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
at $Proxy669.decryptUserId(Unknown Source)
...
01:03:08,346 WARN [AutoLoginFilter:219] com.liferay.portal.security.auth.AutoLoginException: com.liferay.portal.kernel.exception.SystemException: com.liferay.util.EncryptorException: com.liferay.util.EncryptorException: javax.crypto.BadPaddingException: Given final block not properly padded
com.liferay.portal.security.auth.AutoLoginException: com.liferay.portal.kernel.exception.SystemException: com.liferay.util.EncryptorException: com.liferay.util.EncryptorException: javax.crypto.BadPaddingException: Given final block not properly padded
at com.liferay.portal.security.auth.RememberMeAutoLogin.login(RememberMeAutoLogin.java:112)
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:185)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
=== END ===
Raphael Crivelli
RE: AutoLoginFilter: BadPaddingException: Given final block not properly
October 16, 2012 1:27 AM
Answer

Raphael Crivelli

Rank: New Member

Posts: 23

Join Date: May 14, 2012

Recent Posts

Hi Bruno

I have the same problem after the upgrade.
How did you solved the problem?