留言板

Language Switch Issue

thumbnail
Ghulam Abbas,修改在9 年前。

Language Switch Issue

New Member 帖子: 5 加入日期: 14-8-26 最近的帖子
Hi ,

I am facing an issue in language switch, whenever I click on lang to switch it , it does't switch and says 'language temporarily unavailable'. In the log it throws following exception:

[org.apache.struts.action.RequestProcessor] (http--0.0.0.0-8010-63) Unhandled Exception thrown: class com.liferay.portal.ReservedUserEmailAddressException
14:49:14,586 INFO [stdout] (http--0.0.0.0-8010-63) 14:49:14,584 ERROR [http--0.0.0.0-8010-63][render_portlet_jsp:132] null
14:49:14,588 INFO [stdout] (http--0.0.0.0-8010-63) com.liferay.portal.ReservedUserEmailAddressException
14:49:14,589 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validateEmailAddress(UserLocalServiceImpl.java:6008)
14:49:14,592 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:5945)
14:49:14,594 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.updateUser(Us

Need help if any experienced it.

Thanks,
Abbas
thumbnail
Tanweer Ahmed .,修改在1 年前。

RE: Language Switch Issue

Expert 帖子: 322 加入日期: 10-3-11 最近的帖子
Hi Ghulam,

From the log, it looks like your application is trying to update the User details and the email that is sent for update belongs to the "Reserved Emails" category of the Portal.

If this is case, please make sure you remove this email from the below section in the portal-ext.properties.
#
    # Input a list of reserved email addresses separated by \n characters.
    #
    admin.reserved.email.addresses=


Regards,
Tanweer.
thumbnail
Andew Jardine,修改在9 年前。

RE: Language Switch Issue

Liferay Legend 帖子: 2416 加入日期: 10-12-22 最近的帖子
:| -- that doesn't make sense.

Do you mean you are trying to update the USERS language? or do you mean you are using the Language Portlet to try to change the locale used for the site (that you are browsing)? If it is the latter, which page are you on when you try to change the language? I just did a search of the portal source (6.2) and the only places I can find references to that class are "user management" functions -- like UserLocalServiceUtil -- which should not be invoked (I don't think) when you toggle a language.

If you are getting that when you try to change the Users default language, then most likely it is the property as stated by Tanweer.
metcox metcox,修改在9 年前。

RE: Language Switch Issue

New Member 发布: 1 加入日期: 13-11-6 最近的帖子
Hi,

I faced the same bug today.

the code matching the stacktrace is (for liferay-portal-6.2-ce-ga2):


		String pop3User = PrefsPropsUtil.getString(
			PropsKeys.MAIL_SESSION_MAIL_POP3_USER,
			PropsValues.MAIL_SESSION_MAIL_POP3_USER);

		if (StringUtil.equalsIgnoreCase(emailAddress, pop3User)) {
			throw new ReservedUserEmailAddressException();
		}


This control is a non-sense for me but it is there. So if you have defined (or not, the field is prefilled with the admin user I guess) the field "Admin > Control Panel > Server Administration > Mail > User Name" with the same email as the current user, it will fail.

Regards,

Mathieu

Ghulam Abbas:
Hi ,

I am facing an issue in language switch, whenever I click on lang to switch it , it does't switch and says 'language temporarily unavailable'. In the log it throws following exception:

[org.apache.struts.action.RequestProcessor] (http--0.0.0.0-8010-63) Unhandled Exception thrown: class com.liferay.portal.ReservedUserEmailAddressException
14:49:14,586 INFO [stdout] (http--0.0.0.0-8010-63) 14:49:14,584 ERROR [http--0.0.0.0-8010-63][render_portlet_jsp:132] null
14:49:14,588 INFO [stdout] (http--0.0.0.0-8010-63) com.liferay.portal.ReservedUserEmailAddressException
14:49:14,589 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validateEmailAddress(UserLocalServiceImpl.java:6008)
14:49:14,592 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:5945)
14:49:14,594 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.updateUser(Us

Need help if any experienced it.

Thanks,
Abbas
thumbnail
Ghulam Abbas,修改在9 年前。

RE: Language Switch Issue

New Member 帖子: 5 加入日期: 14-8-26 最近的帖子
Hi,
Apology for delay, infact stucked in some problems, I tried the suggestions but still getting the same exception. Actually I am using liferay build in language portlet and when I switching language it throws this exception. According to Tanveer , I put the property in portal-ext but still issue persist.

Regards,
thumbnail
Andew Jardine,修改在9 年前。

RE: Language Switch Issue

Liferay Legend 帖子: 2416 加入日期: 10-12-22 最近的帖子
Ghulam,

Are you still struggling with this one or did you find a solution?
Roshan Qureshi,修改在9 年前。

RE: Language Switch Issue

Regular Member 帖子: 159 加入日期: 10-8-24 最近的帖子
Dear Abbas,

Please provide the information about the version of liferay you are using.
Are you using any hooks or custom code as well?


Regards,
Roshan Qureshi
thumbnail
Ghulam Abbas,修改在9 年前。

RE: Language Switch Issue

New Member 帖子: 5 加入日期: 14-8-26 最近的帖子
Unfortunately I am still struggling with it , I am using 6.2 EE with Jboss 7.1. I am not using any hook or custom code for the language portlet or any thing custom for users.

Regards
Abbas
Scarletake Bwi,修改在3 年前。

RE: Language Switch Issue

Expert 帖子: 326 加入日期: 10-12-20 最近的帖子
i face same issue. i found, the only way is change the user on Control Panel > Server Administration > Mail > User Namei use 6.2, it's very weird because it works before, and after i update the smtp setting of mail config.