Language Switch Issue

thumbnail
Ghulam Abbas, modified 10 Years ago. New Member Posts: 5 Join Date: 8/26/14 Recent Posts
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 Ansari, modified 3 Years ago. Expert Posts: 322 Join Date: 3/11/10 Recent Posts
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, modified 10 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
:| -- 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, modified 10 Years ago. New Member Post: 1 Join Date: 11/6/13 Recent Posts
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, modified 10 Years ago. New Member Posts: 5 Join Date: 8/26/14 Recent Posts
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, modified 10 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Ghulam,

Are you still struggling with this one or did you find a solution?
Roshan Qureshi, modified 10 Years ago. Regular Member Posts: 159 Join Date: 8/24/10 Recent Posts
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, modified 10 Years ago. New Member Posts: 5 Join Date: 8/26/14 Recent Posts
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
Bwi Scarletake, modified 4 Years ago. Expert Posts: 327 Join Date: 12/20/10 Recent Posts
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.