Foren

Importing LAR not working

Chaitali Shah, geändert vor 10 Jahren.

Importing LAR not working

New Member Beiträge: 7 Beitrittsdatum: 05.03.14 Neueste Beiträge
Hi,

We are using liferay sdk 6.1.0 and we are seeing problems importing LAR file. This was working fine earlier. Now its throwing below exception.
The size of lar file is around 4.3MB.

Can you please let us know what should be done in this case.

15:24:05,171 ERROR [LayoutImporter:1247] No theme loaders are deployed
15:24:10,926 ERROR [JDBCExceptionReporter:234] ORA-01013: user requested cancel of current operation

15:24:10,928 ERROR [JDBCExceptionReporter:234] ORA-01013: user requested cancel of current operation

15:24:10,933 ERROR [ImportLayoutsAction:85] com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.QueryTimeoutException: Could not execute JDBC batch update
com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.QueryTimeoutException: Could not execute JDBC batch update
at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:193)
at com.liferay.portal.service.persistence.LayoutSetPersistenceImpl.updateImpl(LayoutSetPersistenceImpl.java:343)
at com.liferay.portal.service.persistence.LayoutSetPersistenceImpl.updateImpl(LayoutSetPersistenceImpl.java:1)
at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:257)
at com.liferay.portal.service.impl.LayoutSetLocalServiceImpl.updateLookAndFeel(LayoutSetLocalServiceImpl.java:317)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Caused by: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.QueryTimeoutException: Could not execute JDBC batch update
at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:30)
at com.liferay.portal.dao.orm.hibernate.SessionImpl.flush(SessionImpl.java:122)
at com.liferay.portal.kernel.dao.orm.ClassLoaderSession.flush(ClassLoaderSession.java:218)
at com.liferay.portal.service.persistence.BatchSessionImpl.update(BatchSessionImpl.java:95)
at com.liferay.portal.service.persistence.BatchSessionUtil.update(BatchSessionUtil.java:49)
at com.liferay.portal.service.persistence.LayoutSetPersistenceImpl.updateImpl(LayoutSetPersistenceImpl.java:338)
... 182 more
Caused by: org.hibernate.QueryTimeoutException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:124)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:268)

Thanks,
thumbnail
Samuel Kong, geändert vor 10 Jahren.

RE: Importing LAR not working

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
From the error, it seems like you might need to deploy the Theme Loader plugin.
Chaitali Shah, geändert vor 10 Jahren.

RE: Importing LAR not working

New Member Beiträge: 7 Beitrittsdatum: 05.03.14 Neueste Beiträge
Hi Samuel,

Earlier lar file import was working fine, it stopped importing recently. Am not sure why its complaining about theme loader plugin now.
What is theme loader plugin?
thumbnail
Samuel Kong, geändert vor 10 Jahren.

RE: Importing LAR not working

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
I'm taking a guess here, but perhaps you previously didn't check the "Theme" option in the import page.
Chaitali Shah, geändert vor 10 Jahren.

RE: Importing LAR not working

New Member Beiträge: 7 Beitrittsdatum: 05.03.14 Neueste Beiträge
No Samuel, the options are same. I was trying to do the same way now which I was doing it earlier.
Perhaps, I got old lar file which is of size 1.73 MB and I tried adding 2-3 portlets and then tried exporting, it dint work.
I again imported to old lar (size 1.73MB ) and just tried exporting it back without any changes, even then it failed. Not sure what is going wrong. Any thoughts?