Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
Thomas Berg
LocaleException during startup
5. August 2012 02:33

Thomas Berg

Rang: Regular Member

Nachrichten: 134

Eintrittsdatum: 7. September 2009

Neue Beiträge


Using Liferay 6.1.1 CE GA2. I get this exception during startup. Haven't noticed any problems related to this but would of course like to know why this happens:

 111:23:09,895 INFO  [pool-2-thread-1][AutoDeployDir:106] Auto deploy scanner started for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy
 211:23:12,629 ERROR [pool-2-thread-1][PortalInstances:468] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.LocaleException
 3com.liferay.portal.kernel.events.ActionException: com.liferay.portal.LocaleException
 4        at com.liferay.portal.events.AddDefaultDocumentLibraryStructuresAction.run(AddDefaultDocumentLibraryStructuresAction.java:64)
 5        at com.liferay.portal.events.AddDefaultDataAction.run(AddDefaultDataAction.java:30)
 6        at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:106)
 7        at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:58)
 8        at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:53)
 9        at com.liferay.portal.util.PortalInstances._initCompany(PortalInstances.java:462)
10        at com.liferay.portal.util.PortalInstances.initCompany(PortalInstances.java:92)
11        at com.liferay.portal.servlet.MainServlet.initCompanies(MainServlet.java:798)
12        at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:355)
13        at javax.servlet.GenericServlet.init(GenericServlet.java:160)

Hitoshi Ozawa
RE: LocaleException during startup
5. August 2012 04:16

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7949

Eintrittsdatum: 23. März 2010

Neue Beiträge

I was also getting some errors when I first startup liferay. I was wondering if you're getting the error during when you first started up liferay or if you've added something in the document and media library.
Soeren Unruh
RE: LocaleException during startup
8. August 2012 03:10

Soeren Unruh

Rang: New Member

Nachrichten: 1

Eintrittsdatum: 16. April 2010

Neue Beiträge


I found the reason for this exception. It is coming from DDMStructureLocalServiceImpl.validateLanguages().

This method checks whether the default locale specified in the document library structure (com/liferay/portal/events/dependencies/document-library-structures.xml) is contained in the available locales of the company.

These (default) document library structures are created in each company if they do not exist.

I suppose, you removed all or one of them and also removed the en_US locale from one or all of your companies.

You could try to override application.startup.events in your portal-ext.properties, removing com.liferay.portal.events.AddDefaultDataAction as a workaround.


Michele Giacobazzi
RE: LocaleException during startup
22. August 2012 08:01

Michele Giacobazzi

Rang: Junior Member

Nachrichten: 40

Eintrittsdatum: 9. September 2011

Neue Beiträge

I solved this problem deleting a space:

from portal-ext.properties:

1locales=it_IT, en_US

gives the error


does not!

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!