Fórumok

Language Switch Issue

thumbnail
Ghulam Abbas, módosítva 9 év-val korábban

Language Switch Issue

New Member Bejegyzések: 5 Csatlakozás dátuma: 2014.08.26. Legújabb bejegyzések
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 ., módosítva 1 év-val korábban

RE: Language Switch Issue

Expert Bejegyzések: 322 Csatlakozás dátuma: 2010.03.11. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: Language Switch Issue

Liferay Legend Bejegyzések: 2416 Csatlakozás dátuma: 2010.12.22. Legújabb bejegyzések
:| -- 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, módosítva 9 év-val korábban

RE: Language Switch Issue

New Member Bejegyzés: 1 Csatlakozás dátuma: 2013.11.06. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: Language Switch Issue

New Member Bejegyzések: 5 Csatlakozás dátuma: 2014.08.26. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: Language Switch Issue

Liferay Legend Bejegyzések: 2416 Csatlakozás dátuma: 2010.12.22. Legújabb bejegyzések
Ghulam,

Are you still struggling with this one or did you find a solution?
Roshan Qureshi, módosítva 9 év-val korábban

RE: Language Switch Issue

Regular Member Bejegyzések: 159 Csatlakozás dátuma: 2010.08.24. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: Language Switch Issue

New Member Bejegyzések: 5 Csatlakozás dátuma: 2014.08.26. Legújabb bejegyzések
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, módosítva 3 év-val korábban

RE: Language Switch Issue

Expert Bejegyzések: 326 Csatlakozás dátuma: 2010.12.20. Legújabb bejegyzések
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.